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
1 change: 1 addition & 0 deletions modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.KAIA &&
n.asset !== UnderlyingAsset.IRYS &&
n.asset !== UnderlyingAsset.LINEAETH &&
n.asset !== UnderlyingAsset.IP && // Story Chain
coinFamilyValues.includes(n.name)
);

Expand Down
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 @@ -238,6 +238,9 @@ const mainnetBase: EnvironmentTemplate = {
lineaeth: {
baseUrl: 'https://api.etherscan.io/v2',
},
ip: {
baseUrl: 'https://api.storyscan.app/',
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -348,6 +351,9 @@ const testnetBase: EnvironmentTemplate = {
lineaeth: {
baseUrl: 'https://api.etherscan.io/v2',
},
ip: {
baseUrl: 'https://api.storyscan.app/',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://rpc-testnet.vechain.energy',
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 @@ -106,6 +106,7 @@ export enum CoinFamily {
ZETA = 'zeta',
ZKETH = 'zketh',
LINEAETH = 'lineaeth',
IP = 'ip', // Story Chain
}

/**
Expand Down Expand Up @@ -489,6 +490,7 @@ export enum UnderlyingAsset {
HASH = 'hash', // Provenance
HBAR = 'hbar', // Hedera main coin
ICP = 'icp',
IP = 'ip', // Story Chain
INITIA = 'initia',
INJECTIVE = 'injective',
IRYS = 'irys',
Expand Down
32 changes: 32 additions & 0 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,38 @@ export const coins = CoinMap.fromCoins([
CoinFeature.EVM_COMPATIBLE_UI,
]
),
account(
'ead0435a-ee3f-4dc5-91fd-8897f1811701',
'ip',
'Story',
Networks.main.ip,
18,
UnderlyingAsset.IP,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
]
),
account(
'86e7b7d6-02db-4ef7-9552-e8aeeeec2d52',
'tip',
'Story Testnet',
Networks.test.ip,
18,
UnderlyingAsset.IP,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
]
),
account(
'e907fdbd-2c5d-45d6-b622-9da38937da73',
'hypeevm',
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 @@ -1280,6 +1280,24 @@ class CoredaoTestnet extends Testnet implements EthereumNetwork {
forwarderImplementationAddress = '0xd5fe1c1f216b775dfd30638fa7164d41321ef79b';
}

class IP extends Mainnet implements EthereumNetwork {
name = 'Story';
family = CoinFamily.IP;
explorerUrl = 'https://www.storyscan.io/tx/';
accountExplorerUrl = 'https://www.storyscan.io/address/';
chainId = 1514;
nativeCoinOperationHashPrefix = '1514';
}

class IPTestnet extends Testnet implements EthereumNetwork {
name = 'StoryTestnet';
family = CoinFamily.IP;
explorerUrl = 'https://aeneid.explorer.story.foundation/transactions/';
accountExplorerUrl = 'https://aeneid.storyscan.io/address/';
chainId = 1315;
nativeCoinOperationHashPrefix = '1315';
}

class ApeChain extends Mainnet implements EthereumNetwork {
name = 'ApeChain';
family = CoinFamily.APECHAIN;
Expand Down Expand Up @@ -1759,6 +1777,7 @@ export const Networks = {
hash: Object.freeze(new Hash()),
hedera: Object.freeze(new Hedera()),
icp: Object.freeze(new Icp()),
ip: Object.freeze(new IP()),
initia: Object.freeze(new Initia()),
injective: Object.freeze(new Injective()),
irys: Object.freeze(new Irys()),
Expand Down Expand Up @@ -1848,6 +1867,7 @@ export const Networks = {
hash: Object.freeze(new HashTestnet()),
hedera: Object.freeze(new HederaTestnet()),
icp: Object.freeze(new IcpTestnet()),
ip: Object.freeze(new IPTestnet()),
initia: Object.freeze(new InitiaTestnet()),
injective: Object.freeze(new InjectiveTestnet()),
irys: Object.freeze(new IrysTestnet()),
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 = {
'flr',
'hash',
'icp',
'ip', // Story chain
'initia',
'irys',
'islm',
Expand Down Expand Up @@ -126,6 +127,7 @@ export const expectedColdFeatures = {
'thorchain:rune',
'tia',
'ticp',
'tip', // Story chain
'tinitia',
'tirys',
'tislm',
Expand Down