Skip to content

Commit

Permalink
Deepbook SDK package constants (MystenLabs#19524)
Browse files Browse the repository at this point in the history
## Description 

Deepbook SDK package constants update, coin IDs update

## Test plan 

How did you test the new or updated feature?

Tested on testnet

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
leecchh authored Sep 24, 2024
1 parent ff17714 commit 7923ed5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-carpets-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/deepbook-v3': minor
---

Newest deepbook package constants
38 changes: 29 additions & 9 deletions sdk/deepbook-v3/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export interface DeepbookPackageIds {
}

export const testnetPackageIds = {
DEEPBOOK_PACKAGE_ID: '0x48cc688a15bdda6017c730a3c65b30414e642d041f2931ef14e08f6b0b2a1b7f',
REGISTRY_ID: '0x60517d0cae6f1168c1ba94cb45c06191f9837ec695d0d465d594b2f6287534f0',
DEEPBOOK_PACKAGE_ID: '0xc819e689055c241fa1f35a4c87217809edc11b2e73a10fe93300f623e434ecf4',
REGISTRY_ID: '0xc0bc8c0e0ebd8f891fca1ec0d553c4a06c546a3fa1e902e8fced0606b41a72db',
DEEP_TREASURY_ID: '0x69fffdae0075f8f71f4fa793549c11079266910e8905169845af1f5d00e09dcb',
} satisfies DeepbookPackageIds;

Expand Down Expand Up @@ -58,9 +58,9 @@ export const mainnetCoins: CoinMap = {
scalar: 1000000000,
},
USDC: {
address: ``,
type: ``,
scalar: 0,
address: `0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7`,
type: `0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC`,
scalar: 6,
},
WUSDC: {
address: `0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf`,
Expand All @@ -86,22 +86,22 @@ export const mainnetCoins: CoinMap = {

export const testnetPools: PoolMap = {
DEEP_SUI: {
address: `0x877c81b2d760a91a405dc12974742ba2401dc1da727681d2de32c861f807ec28`,
address: `0xa603106be87802b9bf737d21c11e2c6e62686d8cac483caa7768c38221158b62`,
baseCoin: 'DEEP',
quoteCoin: 'SUI',
},
SUI_DBUSDC: {
address: `0x966c99a5ce0ce3e09dacac0a42cc2b888d9e1a0c5f39b69f556c38f38ef0b81d`,
address: `0x0b1fb673437c48596806a4a2e925be1e934a0b2f0af93711a47f56b7ac22396a`,
baseCoin: 'SUI',
quoteCoin: 'DBUSDC',
},
DEEP_DBUSDC: {
address: `0x6546ae819e61770c6070962157a2868c012c121ef4e6dd93e81e98900c61b799`,
address: `0x27b3a6620b5a417fb1d1e7cbd0085e7954f786d88838d5c72eaa0469c86643f0`,
baseCoin: 'DEEP',
quoteCoin: 'DBUSDC',
},
DBUSDT_DBUSDC: {
address: `0x9c0a6ef057b5f81d9f2d95a38ad753b8b5b8f535f9c10bb3e7d7256296eb4e18`,
address: `0x997d59f07ea33df3d550687fe3aa5043c7e3b61e00c53a865dda7612fd8ab3f2`,
baseCoin: 'DBUSDT',
quoteCoin: 'DBUSDC',
},
Expand All @@ -113,4 +113,24 @@ export const mainnetPools: PoolMap = {
baseCoin: 'DEEP',
quoteCoin: 'SUI',
},
SUI_USDC: {
address: ``,
baseCoin: 'SUI',
quoteCoin: 'USDC',
},
DEEP_USDC: {
address: ``,
baseCoin: 'DEEP',
quoteCoin: 'USDC',
},
USDT_USDC: {
address: ``,
baseCoin: 'USDT',
quoteCoin: 'USDC',
},
WUSDC_USDC: {
address: ``,
baseCoin: 'WUSDC',
quoteCoin: 'USDC',
},
};

0 comments on commit 7923ed5

Please sign in to comment.