@typus/typus-sdk 1.0.100 → 1.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config.json
CHANGED
|
@@ -1,41 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"VERSION": "2.
|
|
2
|
+
"VERSION": "2.21.0",
|
|
3
3
|
"DB_NAME": "testnet_2_8_0",
|
|
4
4
|
"RPC_ENDPOINT": "https://api.shinami.com:443/node/v1/sui_testnet_c702de54dad05016124f2cfabc1de7e8",
|
|
5
|
-
"SINGLE_COLLATERAL_PACKAGE": "
|
|
5
|
+
"SINGLE_COLLATERAL_PACKAGE": "0xdba94b126660285d13b3c62b9796e05caaf14df4a9721dd107c746153f0191e8",
|
|
6
6
|
"SINGLE_COLLATERAL_PACKAGE_ORIGIN": "0x867a84b70d1f44ea10c02cb099dad5a46c074675afa3b728bd0c11f653e2cb18",
|
|
7
7
|
"SINGLE_COLLATERAL_MANAGER_CAP": "0x7040e5c1a4691d7df2208a577802b05784b8926ad157ebf99b46a185636f2e07",
|
|
8
8
|
"SINGLE_COLLATERAL_REGISTRY": "0x7808d2e668101969e67b6713df9dd96a57deba23baf4cd6754258756f332ef88",
|
|
9
|
-
"
|
|
9
|
+
"SINGLE_COLLATERAL_AC_REGISTRY": "0x3247cb9bde56b63cf4ce79670caed0f9ebc28f839586b07c5b1d79fb7450dde8",
|
|
10
10
|
"SINGLE_COLLATERAL_DEPOSIT_VAULT_REGISTRY": "0x6d63f91afacfdef3fb8e798b9bcda6b99e3e52730dab00c35ea195505c9efc2b",
|
|
11
11
|
"SINGLE_COLLATERAL_BID_VAULT_REGISTRY": "0x90e723d05a6f7da2b94bdc88772a205e3a3b90babf69b369adef024756c79da5",
|
|
12
12
|
"SINGLE_COLLATERAL_DEPOSIT_VAULT_USER_SHARE_REGISTRY": "0x3d8ddc0f8eadb2cb4ab0ecd62b8437bfb40b75fe5368c04fa6f3382c0975c4c6",
|
|
13
13
|
"SINGLE_COLLATERAL_BID_VAULT_USER_SHARE_REGISTRY": "0x0a0c530ffbad0ff9d9d1707dc1ea4c2e123ffdd5bd6c6c842f71cd449263202e",
|
|
14
14
|
"TOKEN_PACKAGE": "0x949572061c09bbedef3ac4ffc42e58632291616f0605117cec86d840e09bf519",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"BTC_TOKEN_REGISTRY": "0xcf5184b85f47cb1ffe421249e48b2cd34807534e1a4b4ad384009295bbbd3bf4",
|
|
16
|
+
"ETH_TOKEN_REGISTRY": "0x5cd3726a1d1ef32bffaaeb2ec4964f0ffac56cfb919f7d13d4672aed5059bfa1",
|
|
17
17
|
"USDC_TOKEN_REGISTRY": "0xf7df3c68a7d3ffc54065565c94a9fa3f5342957340bce78be74373846241a833",
|
|
18
18
|
"CETUS_TOKEN_REGISTRY": "0x24a7a5297a3656ebea71ed72a4974a7710943d9a598fda60fe60b44262da9f27",
|
|
19
19
|
"BUCK_TOKEN_REGISTRY": "0x441cf46a499c6e4d0560c4c9000351f34a928e53018d65857a1591ca1aa2bd58",
|
|
20
|
-
"
|
|
20
|
+
"SOL_TOKEN_REGISTRY": "0x1186a198ebd006e4f444ff88334307d6b376c02a040cfdad380ca06090f52472",
|
|
21
|
+
"TURBOS_TOKEN_REGISTRY": "0x45179ff4beedfc94c29044081f3722d34ba36813b99d416bb868d1769a85bb57",
|
|
21
22
|
"ORACLE_PACKAGE": "0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73",
|
|
22
23
|
"ORACLE_MANAGER_CAP": "0x4e118b46fc39fd8961b8bac6a7f668e12c63ef28fbd2cb6f9b6a40cb0a41dfaf",
|
|
23
24
|
"SUI_USDC_ORACLE": "0x770f17817e809f22d3cf3ba5f452056622a31dd6a1db7c60c94c5a598aff9a29",
|
|
24
25
|
"CETUS_USDC_ORACLE": "0xe8142c490363475a4ad0b9af02ac5a543962584f3a99cdb8754d909be6ec550d",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
26
|
+
"BTC_USDC_ORACLE": "0xaa72a2b370cf45a7b1363a2b9e3f0c57c05863375b984e2ca0928973574404f2",
|
|
27
|
+
"ETH_USDC_ORACLE": "0x0ac9f9275eb0ac33b7f59741b1df67a6783af2db6d2a4e5aba8ce350d5b6b260",
|
|
27
28
|
"SUI_BUCK_ORACLE": "0x6444a8c8bca73411426121a35702599d3bec24ded14025c1cc2d7cfe6199b514",
|
|
28
|
-
"
|
|
29
|
+
"SOL_USDC_ORACLE": "0x0edabd97c679967e00d508c766fb4be0195890f96343bd3a58e10fa5e8063c96",
|
|
29
30
|
"CETUS_ORACLE": "0xfa4720fa516760b2de899dc74e078d8cc1cc6af6c74805b069b31dc3935aa119",
|
|
31
|
+
"TURBOS_USDC_ORACLE": "0x9fb8a445ba7ed37251f0ccd778b6cd7010174734562a18921d0684d4e01afe34",
|
|
30
32
|
"PYTH_STATE": "0xd8afde3a48b4ff7212bd6829a150f43f59043221200d63504d981f62bff2e27a",
|
|
31
33
|
"PYTH_SUIUSDC": "0xe38dbe2ff3322f1500fff45d0046101f371eebce47c067c5e9233248c4878c28",
|
|
32
34
|
"SWITCHBOARD_SUIUSDC": "0x84d2b7e435d6e6a5b137bf6f78f34b2c5515ae61cd8591d5ff6cd121a21aa6b7",
|
|
33
35
|
"PYTH_EVM_SUI": "0x23d7315113f5b1d3ba7a83604c44b94d79f4fd69af77f804fc7f920a6dc65744",
|
|
34
36
|
"PYTH_EVM_CETUS": "0xe5b274b2611143df055d6e7cd8d93fe1961716bcd4dca1cad87a83bc1e78c1ef",
|
|
35
37
|
"PYTH_EVM_USDC": "0xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"PYTH_EVM_BTC": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
|
|
39
|
+
"PYTH_EVM_ETH": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace",
|
|
40
|
+
"PYTH_EVM_SOL": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d",
|
|
41
|
+
"PYTH_EVM_TURBOS": "0xf9c2e890443dd995d0baafc08eea3358be1ffb874f93f99c30b3816c460bbac3",
|
|
42
|
+
"GAS_ACCESS_KEY": "sui_testnet_7d89c82580fafe7e85794f541367104c",
|
|
39
43
|
"mainnet": false,
|
|
40
|
-
"excludes": []
|
|
44
|
+
"excludes": [],
|
|
45
|
+
"keystore": "0.keystore",
|
|
46
|
+
"GAS_BUDGET": 1000000000,
|
|
47
|
+
"FOLDER": "/Users/waynekuo/Documents/GitHub/tails-by-typus-renderer-private/tails_by_typus_renderer/data",
|
|
48
|
+
"NFT_PACKAGE": "0x651e88b80fcc925c8faefcfb8a5eb9b54d1de442770340e207630feeb673ef24",
|
|
49
|
+
"NFT_PACKAGE_UPGRADE": "0x890ef13d7bbde0ba994b5410a4052b50b3adc8bdcaf43c431f435e31c878f911",
|
|
50
|
+
"NFT_MANAGER_CAP": "0x4f212f62b10477514eadb9624822aad319822b928a1804592acb7d2f67e804dc",
|
|
51
|
+
"NFT_TRANSFER_POLICY": "0x77534c44a422bb5b5dba9f4007ba30326d5ebe8a928df8fe118513f5e93aefcd",
|
|
52
|
+
"NFT_ROYALTY": "0x5284398443575c7e05d9376c4027957a00b00c258ac68b2fb356e5ff20e9d5fb",
|
|
53
|
+
"NFT_TABLE": "0x54960609f6ac39a1675be150fc62ff7c4434adb718b0488136f35716acf5fd99",
|
|
54
|
+
"bucket_protocol": "0xa5c76ab17e7ca1ee3368f6b29aede19657acbb57180c35a7b157652240f16909",
|
|
55
|
+
"kriya_dex": "0xf92e045a480558b0f413a3befd4ad05929dd7e3c9ba44e0107f1beea151bdbd6",
|
|
56
|
+
"cetus_protocol": "0x29e2eba927a910544b6271d30209f6941862d0030cdb2db6c04d41a8cd577a99",
|
|
57
|
+
"ethos_wallet": "0x7d53057f447ca046fde64c780636e115c9564bb88b142bd6c0578f59891da6f9",
|
|
58
|
+
"typus": "0x8ab55f7d87a2703778e059581c76ce53a3339967305c93f494980303f3b0f544",
|
|
59
|
+
"mysten_labs": "0xd6cdb9a49a9d826e7aac2ae306f918d37744106e0293288a89b9ea01749fb2d0",
|
|
60
|
+
"navi_protocol": "0xfe5027923b88bd458a936b90baf715628adabe38079b5a1362d9f85ca29b1141",
|
|
61
|
+
"scallop_sui": "0xad0ccf909dfe81ebf5da4940201fcdd99900d7dce2cc4fe6f8b60cd29029b4ea",
|
|
62
|
+
"shinami_corp": "0x091520e18adaee4d8cd737bf40c1dadee9f64e629b46c8683a123faf72c8e874",
|
|
63
|
+
"studio_mirai": "0x8aaa0c722ae4148a77c8bc79c0cc31d363a1c098554f11d4fb591c751cfb62ae",
|
|
64
|
+
"sui_network": "0x4f76c1e52c6d41a5d576726a9c9325030d207f5101d0f47e7ab713d282866f36",
|
|
65
|
+
"blockvision": "0x6e18beaebad0fc4f5ab4f1a31961c6aed2d8b564b8815ab46fdb8eaef6595ca5",
|
|
66
|
+
"team": "0x4941fb2a399e999e5075253221a60075f8b1363ff56295bcc3d63ab814089368",
|
|
67
|
+
"nft_vault": "0xf1ddc83ddedc6be2f2da27d5ed054fd5f15a5122c23334770f6740532464bb27",
|
|
68
|
+
"none": "0x02f9bb7169b7e44a2abceaa57ab43a3f2d341c561d1ac86bb4ba7d8671adec01"
|
|
41
69
|
}
|
|
@@ -56,7 +56,11 @@ function getUserStake(provider, nft_table, user) {
|
|
|
56
56
|
return [2 /*return*/, null];
|
|
57
57
|
}
|
|
58
58
|
fields = (_a = res.data) === null || _a === void 0 ? void 0 : _a.content.fields;
|
|
59
|
-
staked_tails = {
|
|
59
|
+
staked_tails = {
|
|
60
|
+
nft: fields.value.fields.nft.fields,
|
|
61
|
+
snapshot_ms: fields.value.fields.snapshot_ms,
|
|
62
|
+
updating_url: fields.value.fields.updating_url,
|
|
63
|
+
};
|
|
60
64
|
return [2 /*return*/, staked_tails];
|
|
61
65
|
}
|
|
62
66
|
});
|
|
@@ -55,7 +55,7 @@ function getStakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft_
|
|
|
55
55
|
return __generator(this, function (_a) {
|
|
56
56
|
tx = new sui_js_1.TransactionBlock();
|
|
57
57
|
tx.moveCall({
|
|
58
|
-
target: "".concat(nftPackageId, "::
|
|
58
|
+
target: "".concat(nftPackageId, "::typus_dov_single::stake_nft"),
|
|
59
59
|
typeArguments: [],
|
|
60
60
|
arguments: [tx.object(registry), tx.object(kiosk), tx.object(kiosk_cap), tx.object(nft_id), tx.object(constants_1.CLOCK)],
|
|
61
61
|
});
|
|
@@ -79,7 +79,7 @@ function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap) {
|
|
|
79
79
|
return __generator(this, function (_a) {
|
|
80
80
|
tx = new sui_js_1.TransactionBlock();
|
|
81
81
|
tx.moveCall({
|
|
82
|
-
target: "".concat(nftPackageId, "::
|
|
82
|
+
target: "".concat(nftPackageId, "::typus_dov_single::unstake_nft"),
|
|
83
83
|
typeArguments: [],
|
|
84
84
|
arguments: [tx.object(registry), tx.object(kiosk), tx.object(kiosk_cap)],
|
|
85
85
|
});
|
|
@@ -102,7 +102,7 @@ function getSnapshotTx(gasBudget, nftPackageId, registry) {
|
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
tx = new sui_js_1.TransactionBlock();
|
|
104
104
|
tx.moveCall({
|
|
105
|
-
target: "".concat(nftPackageId, "::
|
|
105
|
+
target: "".concat(nftPackageId, "::typus_dov_single::snapshot"),
|
|
106
106
|
typeArguments: [],
|
|
107
107
|
arguments: [tx.object(registry), tx.object(constants_1.CLOCK)],
|
|
108
108
|
});
|
|
@@ -118,7 +118,7 @@ function getFirstBidTx(gasBudget, nftPackageId, registry) {
|
|
|
118
118
|
return __generator(this, function (_a) {
|
|
119
119
|
tx = new sui_js_1.TransactionBlock();
|
|
120
120
|
tx.moveCall({
|
|
121
|
-
target: "".concat(nftPackageId, "::
|
|
121
|
+
target: "".concat(nftPackageId, "::typus_dov_single::first_bid"),
|
|
122
122
|
typeArguments: [],
|
|
123
123
|
arguments: [tx.object(registry)],
|
|
124
124
|
});
|
|
@@ -134,7 +134,7 @@ function getFirstDepositTx(gasBudget, nftPackageId, registry) {
|
|
|
134
134
|
return __generator(this, function (_a) {
|
|
135
135
|
tx = new sui_js_1.TransactionBlock();
|
|
136
136
|
tx.moveCall({
|
|
137
|
-
target: "".concat(nftPackageId, "::
|
|
137
|
+
target: "".concat(nftPackageId, "::typus_dov_single::first_deposit"),
|
|
138
138
|
typeArguments: [],
|
|
139
139
|
arguments: [tx.object(registry)],
|
|
140
140
|
});
|
|
@@ -156,7 +156,7 @@ function getLevelUpTx(gasBudget, nftPackageId, registry) {
|
|
|
156
156
|
return __generator(this, function (_a) {
|
|
157
157
|
tx = new sui_js_1.TransactionBlock();
|
|
158
158
|
tx.moveCall({
|
|
159
|
-
target: "".concat(nftPackageId, "::
|
|
159
|
+
target: "".concat(nftPackageId, "::typus_dov_single::level_up"),
|
|
160
160
|
typeArguments: [],
|
|
161
161
|
arguments: [tx.object(registry)],
|
|
162
162
|
});
|