Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tangle EVM Testnet and update contract addresses #1473

Merged
merged 9 commits into from
Jul 31, 2023
3 changes: 3 additions & 0 deletions apps/faucet/src/config/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ type TokenConfigType = Record<string, string>;
const tokens: Record<string, TokenConfigType> = {
[PresetTypedChainId.AthenaOrbit]: {
webbWETH: '0x915EbFAd9c4Af2F420782a5F03BD544f9a1FF1d1',
shekohex marked this conversation as resolved.
Show resolved Hide resolved
webbtTNT: '0x6aBC6e8E4E4a1fcB43341CeC49cBd5FA3b494520',
},
[PresetTypedChainId.HermesOrbit]: {
webbWETH: '0x915EbFAd9c4Af2F420782a5F03BD544f9a1FF1d1',
webbtTNT: '0x6aBC6e8E4E4a1fcB43341CeC49cBd5FA3b494520',
},
[PresetTypedChainId.DemeterOrbit]: {
webbWETH: '0x915EbFAd9c4Af2F420782a5F03BD544f9a1FF1d1',
webbtTNT: '0x6aBC6e8E4E4a1fcB43341CeC49cBd5FA3b494520',
},
};

Expand Down
9 changes: 6 additions & 3 deletions libs/dapp-config/src/anchors/anchor-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ export const anchorDeploymentBlock: Record<number, Record<string, number>> = {
},

[PresetTypedChainId.HermesOrbit]: {
'0xDa68464c391Da8ff60b40273F2Ef0a9971694F99': 25,
'0x19E60bbC8b19CBBA2936BEC4B5CE6542013DF02c': 70,
},
[PresetTypedChainId.AthenaOrbit]: {
'0xDa68464c391Da8ff60b40273F2Ef0a9971694F99': 25,
'0x19E60bbC8b19CBBA2936BEC4B5CE6542013DF02c': 70,
},
[PresetTypedChainId.DemeterOrbit]: {
'0xDa68464c391Da8ff60b40273F2Ef0a9971694F99': 25,
'0x19E60bbC8b19CBBA2936BEC4B5CE6542013DF02c': 70,
},
[PresetTypedChainId.TangleTestnet]: {
'0x19E60bbC8b19CBBA2936BEC4B5CE6542013DF02c': 158_874,
},

...localAnchorRecord,
Expand Down
5 changes: 5 additions & 0 deletions libs/dapp-types/src/ChainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ export enum PresetTypedChainId {
ChainType.EVM,
EVMChainId.DemeterLocalnet
),

TangleTestnet = calculateTypedChainId(
ChainType.EVM,
EVMChainId.TangleTestnet
),
}

export { EVMChainId, SubstrateChainId };
1 change: 1 addition & 0 deletions libs/dapp-types/src/EVMChainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export enum EVMChainId {
MoonbaseAlpha = 1287,
AvalancheFuji = 43113,
ScrollAlpha = 534353,
TangleTestnet = 4006,

/** Self hosted EVM */
AthenaOrbit = 3884533461,
Expand Down
Loading