Skip to content

Commit cf94b87

Browse files
committed
Use mainnet configs
Update to SDK 3.6.1
1 parent f9736f1 commit cf94b87

File tree

6 files changed

+64
-34
lines changed

6 files changed

+64
-34
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hyperlane-xyz/warp-ui-template",
33
"description": "A web app template for building Hyperlane Warp Route UIs",
4-
"version": "3.5.1",
4+
"version": "3.6.1",
55
"author": "J M Rossy",
66
"dependencies": {
77
"@chakra-ui/next-js": "^2.1.5",
@@ -16,8 +16,8 @@
1616
"@emotion/react": "^11.11.1",
1717
"@emotion/styled": "^11.11.0",
1818
"@headlessui/react": "^1.7.14",
19-
"@hyperlane-xyz/sdk": "^3.5.1",
20-
"@hyperlane-xyz/utils": "^3.5.1",
19+
"@hyperlane-xyz/sdk": "^3.6.1",
20+
"@hyperlane-xyz/utils": "^3.6.1",
2121
"@hyperlane-xyz/widgets": "^3.1.4",
2222
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6",
2323
"@rainbow-me/rainbowkit": "1.3.0",

src/consts/chains.ts

+40-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';
1+
import { ChainMap, ChainMetadata, ExplorerFamily } from '@hyperlane-xyz/sdk';
22
import { ProtocolType } from '@hyperlane-xyz/utils';
33

44
// A map of chain names to ChainMetadata
@@ -30,29 +30,58 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
3030
// logoURI: '/logo.svg',
3131
// },
3232

33-
injectivetestnet: {
33+
inevm: {
34+
blockExplorers: [
35+
{
36+
apiUrl: 'https://inevm.calderaexplorer.xyz/api',
37+
family: ExplorerFamily.Blockscout,
38+
name: 'Caldera inEVM Explorer',
39+
url: 'https://inevm.calderaexplorer.xyz',
40+
},
41+
],
42+
blocks: {
43+
confirmations: 1,
44+
estimateBlockTime: 3,
45+
reorgPeriod: 0,
46+
},
47+
chainId: 2525,
48+
domainId: 2525,
49+
displayName: 'Injective EVM',
50+
displayNameShort: 'inEVM',
51+
name: 'inevm',
52+
nativeToken: {
53+
decimals: 18,
54+
name: 'Injective',
55+
symbol: 'INJ',
56+
},
57+
protocol: ProtocolType.Ethereum,
58+
rpcUrls: [{ http: 'https://inevm.calderachain.xyz/http' }],
59+
logoURI: '/logos/injective.svg',
60+
},
61+
62+
injective: {
3463
blockExplorers: [],
3564
blocks: {
3665
confirmations: 1,
3766
estimateBlockTime: 3,
3867
reorgPeriod: 1,
3968
},
40-
chainId: 'injective-888',
69+
chainId: 'injective-1',
4170
domainId: 6909546,
42-
displayName: 'Injective Testnet',
43-
displayNameShort: 'Inj. Testnet',
44-
name: 'injectivetestnet',
71+
displayName: 'Injective',
72+
displayNameShort: 'Injective',
73+
name: 'injective',
4574
nativeToken: {
4675
decimals: 18,
4776
name: 'Injective',
4877
symbol: 'INJ',
4978
},
50-
bech32Prefix: 'inj',
51-
slip44: 118,
5279
protocol: ProtocolType.Cosmos,
53-
rpcUrls: [{ http: 'https://testnet.tm.injective.network' }],
54-
restUrls: [{ http: 'https://testnet.sentry.lcd.injective.network' }],
55-
isTestnet: true,
80+
slip44: 118,
81+
bech32Prefix: 'inj',
82+
grpcUrls: [{ http: 'grpc-injective-ia.cosmosia.notional.ventures:443' }],
83+
rpcUrls: [{ http: 'https://rpc-injective-ia.cosmosia.notional.ventures' }],
84+
restUrls: [{ http: 'https://injective-lcd.quickapi.com:443' }],
5685
logoURI: '/logos/injective.svg',
5786
},
5887
};

src/consts/igpQuotes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ export const DEFAULT_IGP_QUOTES: Partial<
99
[ProtocolType.Sealevel]: '10000',
1010
[ProtocolType.Cosmos]: {
1111
'neutron-1': '270000',
12-
'injective-888': '100000000000000000',
12+
'injective-1': '10000000000000000',
1313
},
1414
};

src/consts/tokens.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export const tokenList: WarpTokenConfig = [
3030

3131
{
3232
type: 'native',
33-
chainId: 'injective-888',
33+
chainId: 'injective-1',
3434
name: 'Injective Coin',
3535
symbol: 'INJ',
3636
decimals: 18,
37-
hypNativeAddress: 'inj1wn32e0e07yytd4m03n8mynnp6qzgg75qmhsq88',
37+
hypNativeAddress: 'inj1mv9tjvkaw7x8w8y9vds8pkfq46g2vcfkjehc6k',
3838
igpTokenAddressOrDenom: 'inj',
3939
logoURI: '/logos/injective.svg',
4040
},

src/features/chains/cosmosDefault.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const cosmosDefaultChain: ChainMetadata = {
99
domainId: 1234, // TODO
1010
bech32Prefix: 'cosmos',
1111
slip44: 118,
12+
grpcUrls: [{ http: 'grpc-cosmoshub-ia.cosmosia.notional.ventures:443' }],
1213
rpcUrls: [{ http: 'https://rpc-cosmoshub.blockapsis.com' }],
1314
restUrls: [{ http: 'https://lcd-cosmoshub.blockapsis.com' }],
1415
nativeToken: {

yarn.lock

+17-17
Original file line numberDiff line numberDiff line change
@@ -3014,30 +3014,30 @@ __metadata:
30143014
languageName: node
30153015
linkType: hard
30163016

3017-
"@hyperlane-xyz/core@npm:3.5.1":
3018-
version: 3.5.1
3019-
resolution: "@hyperlane-xyz/core@npm:3.5.1"
3017+
"@hyperlane-xyz/core@npm:3.6.1":
3018+
version: 3.6.1
3019+
resolution: "@hyperlane-xyz/core@npm:3.6.1"
30203020
dependencies:
30213021
"@eth-optimism/contracts": "npm:^0.6.0"
3022-
"@hyperlane-xyz/utils": "npm:3.5.1"
3022+
"@hyperlane-xyz/utils": "npm:3.6.1"
30233023
"@openzeppelin/contracts": "npm:^4.9.3"
30243024
"@openzeppelin/contracts-upgradeable": "npm:^v4.9.3"
30253025
peerDependencies:
30263026
"@ethersproject/abi": "*"
30273027
"@ethersproject/providers": "*"
30283028
"@types/sinon-chai": "*"
3029-
checksum: ed32e9fc9055dd5f11c3ad8fd319cd0b9440ea5c9fd390f45ea4f1a1619cff570d038c13a36cfb95fcab2b4174e474829624b8e2a828cb69614a6fea9bb1e9ab
3029+
checksum: 15cf69663a6f80ef8c656f283a2af84c9be58cb2a84f88820cda5b6233157aaac69557b97983ad4138078b0dc0a77cb37f6bc992d4ba8bf4b5e512cbf942526f
30303030
languageName: node
30313031
linkType: hard
30323032

3033-
"@hyperlane-xyz/sdk@npm:^3.5.1":
3034-
version: 3.5.1
3035-
resolution: "@hyperlane-xyz/sdk@npm:3.5.1"
3033+
"@hyperlane-xyz/sdk@npm:^3.6.1":
3034+
version: 3.6.1
3035+
resolution: "@hyperlane-xyz/sdk@npm:3.6.1"
30363036
dependencies:
30373037
"@cosmjs/cosmwasm-stargate": "npm:^0.31.3"
30383038
"@cosmjs/stargate": "npm:^0.31.3"
3039-
"@hyperlane-xyz/core": "npm:3.5.1"
3040-
"@hyperlane-xyz/utils": "npm:3.5.1"
3039+
"@hyperlane-xyz/core": "npm:3.6.1"
3040+
"@hyperlane-xyz/utils": "npm:3.6.1"
30413041
"@solana/spl-token": "npm:^0.3.8"
30423042
"@solana/web3.js": "npm:^1.78.0"
30433043
"@types/coingecko-api": "npm:^1.0.10"
@@ -3054,19 +3054,19 @@ __metadata:
30543054
peerDependencies:
30553055
"@ethersproject/abi": "*"
30563056
"@ethersproject/providers": "*"
3057-
checksum: 59bac962050ea59ed98fad0369309fcbb8c83af4add7a0c5f043e5bfd4b1abd9e2ae91ec615b6b4bd295c4cfa098965de996c4fc6e65d170e499a2d6be35cc38
3057+
checksum: 9c5b0cd9c44ff8f8193740cd895a87c84990d9466ffd695a35f1a0f71dafb8dee2ac294295df3be2849f520ef4ec236cc641f98eb93369a67d2727a75249c7cb
30583058
languageName: node
30593059
linkType: hard
30603060

3061-
"@hyperlane-xyz/utils@npm:3.5.1, @hyperlane-xyz/utils@npm:^3.5.1":
3062-
version: 3.5.1
3063-
resolution: "@hyperlane-xyz/utils@npm:3.5.1"
3061+
"@hyperlane-xyz/utils@npm:3.6.1, @hyperlane-xyz/utils@npm:^3.6.1":
3062+
version: 3.6.1
3063+
resolution: "@hyperlane-xyz/utils@npm:3.6.1"
30643064
dependencies:
30653065
"@cosmjs/encoding": "npm:^0.31.3"
30663066
"@solana/web3.js": "npm:^1.78.0"
30673067
bignumber.js: "npm:^9.1.1"
30683068
ethers: "npm:^5.7.2"
3069-
checksum: a9f6f716dc4d4638d328fcae156169e7b0f341fea41a45d4f7deaa9eebe56fbf8f4aac1a1cb03ccdde7bfd83fed1eb33a50473240f69cb55333c7819ac343075
3069+
checksum: dca6656ba047fac0ab8e8e9cc4687cdc1784d2245efa57bf4826f35eac6fa0f2c6fb9834f1dc3b699ce3cb0b5ccfd02940d7eb3b574204d8c2b4f4778aa6d301
30703070
languageName: node
30713071
linkType: hard
30723072

@@ -3086,8 +3086,8 @@ __metadata:
30863086
"@emotion/react": "npm:^11.11.1"
30873087
"@emotion/styled": "npm:^11.11.0"
30883088
"@headlessui/react": "npm:^1.7.14"
3089-
"@hyperlane-xyz/sdk": "npm:^3.5.1"
3090-
"@hyperlane-xyz/utils": "npm:^3.5.1"
3089+
"@hyperlane-xyz/sdk": "npm:^3.6.1"
3090+
"@hyperlane-xyz/utils": "npm:^3.6.1"
30913091
"@hyperlane-xyz/widgets": "npm:^3.1.4"
30923092
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6"
30933093
"@next/bundle-analyzer": "npm:^14.0.4"

0 commit comments

Comments
 (0)