zo-sdk 0.1.13 → 0.1.14
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/dist/api.cjs +43 -43
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +11 -11
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +11 -11
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +43 -43
- package/dist/api.mjs.map +1 -1
- package/dist/consts/deployments-usdz-mainnet.json +1 -1
- package/dist/data.cjs +20 -22
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.cts.map +1 -1
- package/dist/data.d.mts.map +1 -1
- package/dist/data.mjs +20 -22
- package/dist/data.mjs.map +1 -1
- package/dist/implementations/SLPDataAPI.cjs +2 -2
- package/dist/implementations/SLPDataAPI.cjs.map +1 -1
- package/dist/implementations/SLPDataAPI.mjs +2 -2
- package/dist/implementations/SLPDataAPI.mjs.map +1 -1
- package/dist/implementations/USDZAPI.cjs +20 -20
- package/dist/implementations/USDZAPI.cjs.map +1 -1
- package/dist/implementations/USDZAPI.mjs +20 -20
- package/dist/implementations/USDZAPI.mjs.map +1 -1
- package/dist/implementations/USDZDataAPI.cjs +4 -4
- package/dist/implementations/USDZDataAPI.cjs.map +1 -1
- package/dist/implementations/USDZDataAPI.mjs +4 -4
- package/dist/implementations/USDZDataAPI.mjs.map +1 -1
- package/dist/implementations/ZLPAPI.cjs +18 -18
- package/dist/implementations/ZLPAPI.cjs.map +1 -1
- package/dist/implementations/ZLPAPI.mjs +18 -18
- package/dist/implementations/ZLPAPI.mjs.map +1 -1
- package/dist/implementations/ZLPDataAPI.cjs +4 -4
- package/dist/implementations/ZLPDataAPI.cjs.map +1 -1
- package/dist/implementations/ZLPDataAPI.mjs +4 -4
- package/dist/implementations/ZLPDataAPI.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +121 -100
- package/src/consts/deployments-usdz-mainnet.json +1 -1
- package/src/data.ts +66 -63
- package/src/implementations/SLPDataAPI.ts +2 -2
- package/src/implementations/USDZAPI.ts +20 -20
- package/src/implementations/USDZDataAPI.ts +4 -4
- package/src/implementations/ZLPAPI.ts +18 -18
- package/src/implementations/ZLPDataAPI.ts +4 -4
|
@@ -55,7 +55,7 @@ export class ZLPDataAPI extends BaseDataAPI implements IZLPDataAPI {
|
|
|
55
55
|
*/
|
|
56
56
|
public valuateVaults(tx: Transaction) {
|
|
57
57
|
const vaultsValuation = tx.moveCall({
|
|
58
|
-
target: `${this.consts.zoCore.
|
|
58
|
+
target: `${this.consts.zoCore.upgradedPackage}::market::create_vaults_valuation`,
|
|
59
59
|
typeArguments: [`${this.consts.zoCore.package}::zlp::ZLP`],
|
|
60
60
|
arguments: [
|
|
61
61
|
tx.object(SUI_CLOCK_OBJECT_ID),
|
|
@@ -66,7 +66,7 @@ export class ZLPDataAPI extends BaseDataAPI implements IZLPDataAPI {
|
|
|
66
66
|
for (const key of Object.keys(this.consts.zoCore.vaults)) {
|
|
67
67
|
const vault = this.consts.zoCore.vaults[key]
|
|
68
68
|
tx.moveCall({
|
|
69
|
-
target: `${this.consts.zoCore.
|
|
69
|
+
target: `${this.consts.zoCore.upgradedPackage}::market::valuate_vault`,
|
|
70
70
|
typeArguments: [
|
|
71
71
|
`${this.consts.zoCore.package}::zlp::ZLP`,
|
|
72
72
|
this.consts.coins[key].module,
|
|
@@ -87,7 +87,7 @@ export class ZLPDataAPI extends BaseDataAPI implements IZLPDataAPI {
|
|
|
87
87
|
*/
|
|
88
88
|
public valuateSymbols(tx: Transaction) {
|
|
89
89
|
const symbolsValuation = tx.moveCall({
|
|
90
|
-
target: `${this.consts.zoCore.
|
|
90
|
+
target: `${this.consts.zoCore.upgradedPackage}::market::create_symbols_valuation`,
|
|
91
91
|
typeArguments: [`${this.consts.zoCore.package}::zlp::ZLP`],
|
|
92
92
|
arguments: [
|
|
93
93
|
tx.object(SUI_CLOCK_OBJECT_ID),
|
|
@@ -99,7 +99,7 @@ export class ZLPDataAPI extends BaseDataAPI implements IZLPDataAPI {
|
|
|
99
99
|
const [direction, token] = parseSymbolKey(key)
|
|
100
100
|
const symbol = this.consts.zoCore.symbols[key]
|
|
101
101
|
tx.moveCall({
|
|
102
|
-
target: `${this.consts.zoCore.
|
|
102
|
+
target: `${this.consts.zoCore.upgradedPackage}::market::valuate_symbol`,
|
|
103
103
|
typeArguments: [
|
|
104
104
|
`${this.consts.zoCore.package}::zlp::ZLP`,
|
|
105
105
|
this.consts.coins[token].module,
|