Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Picco committed Sep 8, 2023
1 parent ca58d77 commit c7be521
Show file tree
Hide file tree
Showing 32 changed files with 3,109 additions and 573 deletions.
183 changes: 113 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"prepare": "husky install"
},
"dependencies": {
"@certusone/wormhole-sdk": "file:.yalc/@certusone/wormhole-sdk",
"tss-react": "^4.7.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"dependencies": {
"@certusone/wormhole-sdk": "^0.10.2",
"@certusone/wormhole-sdk": "file:.yalc/@certusone/wormhole-sdk",
"@cosmjs/cosmwasm-stargate": "^0.31.0",
"@cosmjs/proto-signing": "^0.31.0",
"@cosmjs/stargate": "^0.31.0",
Expand Down
20 changes: 20 additions & 0 deletions sdk/src/config/MAINNET.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const MAINNET_CHAINS = {
sei: 32,
wormchain: 3104,
osmosis: 20,
cosmoshub: 4000,
evmos: 4001,
} as const;

/**
Expand Down Expand Up @@ -205,6 +207,22 @@ const MAINNET: { [chain in MainnetChainName]: ChainConfig } = {
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
cosmoshub: {
key: 'cosmoshub',
id: 4000,
context: Context.COSMOS,
contracts: {},
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
evmos: {
key: 'evmos',
id: 4001,
context: Context.COSMOS,
contracts: {},
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
};

const env: Environment = 'MAINNET';
Expand All @@ -228,6 +246,8 @@ const MAINNET_CONFIG: WormholeConfig = {
sei: '', // TODO: fill in
wormchain: '',
osmosis: 'https://osmosis-rpc.polkachu.com',
cosmoshub: 'https://cosmos-rpc.polkachu.com',
evmos: 'https://evmos-rpc.polkachu.com',
},
rest: {
sei: '',
Expand Down
26 changes: 26 additions & 0 deletions sdk/src/config/TESTNET.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export const TESTNET_CHAINS = {
sei: 32,
wormchain: 3104,
osmosis: 20,
cosmoshub: 4000,
evmos: 4001,
} as const;

/**
Expand Down Expand Up @@ -212,6 +214,28 @@ const TESTNET: { [chain in TestnetChainName]: ChainConfig } = {
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
cosmoshub: {
key: 'cosmoshub',
id: 4000,
context: Context.COSMOS,
contracts: {
core: '',
token_bridge: '',
},
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
evmos: {
key: 'evmos',
id: 4001,
context: Context.COSMOS,
contracts: {
core: '',
token_bridge: '',
},
finalityThreshold: 0,
nativeTokenDecimals: 6,
},
};

const env: Environment = 'TESTNET';
Expand All @@ -235,6 +259,8 @@ const TESTNET_CONFIG: WormholeConfig = {
sei: 'https://rpc.atlantic-2.seinetwork.io',
wormchain: '',
osmosis: 'https://rpc.osmotest5.osmosis.zone',
cosmoshub: 'https://rpc.sentry-02.theta-testnet.polypore.xyz',
evmos: 'https://evmos-testnet-rpc.polkachu.com',
},
rest: {
sei: 'https://rest.atlantic-2.seinetwork.io',
Expand Down
Loading

0 comments on commit c7be521

Please sign in to comment.