Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ const mainnetBase: EnvironmentTemplate = {
baseeth: {
baseUrl: 'https://api.etherscan.io/v2',
},
flow: {
baseUrl: 'https://evm.flowscan.io/api',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -383,6 +386,9 @@ const testnetBase: EnvironmentTemplate = {
tbaseeth: {
baseUrl: 'https://api.etherscan.io/v2',
},
flow: {
baseUrl: 'https://evm-testnet.flowscan.io/api',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://rpc-testnet.vechain.energy',
Expand Down
36 changes: 36 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,42 @@ export const allCoinsAndTokens = [
POLYX_FEATURES,
KeyCurve.Ed25519
),
account(
'cf601b71-5ed5-4524-b545-d6d19051781f',
'flow',
'Flow',
Networks.main.flow,
18,
UnderlyingAsset.FLOW,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
]
),
account(
'29a233d0-6d60-4e1e-8f76-16712fee3bf5',
'tflow',
'Testnet Flow',
Networks.test.flow,
18,
UnderlyingAsset.FLOW,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
]
),
gasTankAccount(
'98071460-1488-4edd-857f-0899bc5eee4f',
'vet',
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export enum CoinFamily {
EOS = 'eos',
FETCHAI = 'fetchai',
FIAT = 'fiat',
FLOW = 'flow',
FLR = 'flr',
FLRP = 'flrp',
HASH = 'hash', // Provenance
Expand Down Expand Up @@ -525,6 +526,7 @@ export enum UnderlyingAsset {
EUROC = 'euroc',
EURR = 'eurr',
FETCHAI = 'fetchai',
FLOW = 'flow',
FLR = 'flr',
FLRP = 'flrp',
GTC = 'gtc',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,24 @@ class IotaTestnet extends Testnet implements AccountNetwork {
explorerUrl = 'https://explorer.iota.org/?network=testnet';
}

class Flow extends Mainnet implements EthereumNetwork {
name = 'Flow';
family = CoinFamily.FLOW;
explorerUrl = 'https://evm.flowscan.io/tx/';
accountExplorerUrl = 'https://evm.flowscan.io/address/';
chainId = 747;
nativeCoinOperationHashPrefix = '747';
}

class FlowTestnet extends Testnet implements EthereumNetwork {
name = 'FlowTestnet';
family = CoinFamily.FLOW;
explorerUrl = 'https://evm.flowscan.io/tx/';
accountExplorerUrl = 'https://evm-testnet.flowscan.io/address/';
chainId = 545;
nativeCoinOperationHashPrefix = '545';
}

export const Networks = {
main: {
ada: Object.freeze(new Ada()),
Expand Down Expand Up @@ -1945,6 +1963,7 @@ export const Networks = {
ethereumW: Object.freeze(new EthereumW()),
fiat: Object.freeze(new Fiat()),
fetchai: Object.freeze(new FetchAi()),
flow: Object.freeze(new Flow()),
flr: Object.freeze(new Flare()),
flrP: Object.freeze(new FlareP()),
hash: Object.freeze(new Hash()),
Expand Down Expand Up @@ -2036,6 +2055,7 @@ export const Networks = {
eos: Object.freeze(new EosTestnet()),
fiat: Object.freeze(new FiatTestnet()),
fetchai: Object.freeze(new FetchAiTestnet()),
flow: Object.freeze(new FlowTestnet()),
flr: Object.freeze(new FlareTestnet()),
flrP: Object.freeze(new FlarePTestnet()),
mon: Object.freeze(new MonadTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const expectedColdFeatures = {
'cronos',
'dot',
'fetchai',
'flow',
'flr',
'hash',
'icp',
Expand Down Expand Up @@ -122,6 +123,7 @@ export const expectedColdFeatures = {
'tcronos',
'tdot',
'tfetchai',
'tflow',
'tflr',
'tog',
'tmon',
Expand Down