@typus/typus-perp-sdk 1.0.30 → 1.0.32
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/src/fetch.d.ts +3 -0
- package/dist/src/fetch.js +3 -1
- package/dist/src/typus_perp/admin/functions.d.ts +25 -25
- package/dist/src/typus_perp/admin/functions.js +66 -53
- package/dist/src/typus_perp/admin/structs.d.ts +222 -222
- package/dist/src/typus_perp/admin/structs.js +256 -256
- package/dist/src/typus_perp/error/functions.d.ts +67 -67
- package/dist/src/typus_perp/error/functions.js +201 -134
- package/dist/src/typus_perp/escrow/functions.d.ts +3 -3
- package/dist/src/typus_perp/escrow/functions.js +9 -6
- package/dist/src/typus_perp/lending/functions.d.ts +15 -0
- package/dist/src/typus_perp/lending/functions.js +22 -0
- package/dist/src/typus_perp/lp-pool/functions.d.ts +102 -63
- package/dist/src/typus_perp/lp-pool/functions.js +243 -123
- package/dist/src/typus_perp/lp-pool/structs.d.ts +616 -348
- package/dist/src/typus_perp/lp-pool/structs.js +1202 -768
- package/dist/src/typus_perp/math/functions.d.ts +16 -5
- package/dist/src/typus_perp/math/functions.js +33 -12
- package/dist/src/typus_perp/position/functions.d.ts +86 -86
- package/dist/src/typus_perp/position/functions.js +223 -157
- package/dist/src/typus_perp/symbol/functions.d.ts +4 -4
- package/dist/src/typus_perp/symbol/functions.js +14 -10
- package/dist/src/typus_perp/tlp/functions.d.ts +5 -5
- package/dist/src/typus_perp/tlp/functions.js +17 -12
- package/dist/src/typus_perp/token-interface/functions.d.ts +2 -2
- package/dist/src/typus_perp/token-interface/functions.js +6 -4
- package/dist/src/typus_perp/trading/functions.d.ts +75 -75
- package/dist/src/typus_perp/trading/functions.js +189 -138
- package/dist/src/typus_perp/trading/structs.d.ts +6 -0
- package/dist/src/typus_perp/trading/structs.js +6 -0
- package/dist/src/typus_perp/treasury-caps/functions.d.ts +4 -4
- package/dist/src/typus_perp/treasury-caps/functions.js +14 -10
- package/package.json +2 -2
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { Transaction } from "@mysten/sui/transactions";
|
|
2
|
-
export declare function activeTradingSymbol(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
3
|
-
export declare function addSizeNotAllowed(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
4
|
-
export declare function auctionNotYetEnded(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
5
|
-
export declare function authorityAlreadyExisted(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
6
|
-
export declare function authorityDoestNotExist(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
7
|
-
export declare function authorityEmpty(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
8
|
-
export declare function balanceNotEnoughForPayingFee(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
9
|
-
export declare function baseTokenMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
10
|
-
export declare function bidReceiptHasBeenExpired(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
11
|
-
export declare function bidReceiptNotExpired(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
12
|
-
export declare function bidReceiptNotItm(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
13
|
-
export declare function bidTokenMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
14
|
-
export declare function collateralTokenTypeMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
15
|
-
export declare function depositAmountInsufficient(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
-
export declare function depositTokenMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
-
export declare function exceedMaxLeverage(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
18
|
-
export declare function frictionTooLarge(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
19
|
-
export declare function insufficientAmountForMintFee(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
20
|
-
export declare function invalidBidReceiptsInput(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
21
|
-
export declare function invalidOrderSide(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
22
|
-
export declare function invalidOrderSize(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
23
|
-
export declare function invalidTradingFeeConfig(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
24
|
-
export declare function invalidVersion(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
25
|
-
export declare function linkedOrderIdNotExisted(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
26
|
-
export declare function liquidityNotEnough(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
27
|
-
export declare function liquidityTokenNotExisted(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
28
|
-
export declare function lpPoolReserveNotEnough(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
29
|
-
export declare function lpTokenTypeMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
30
|
-
export declare function marketsInactive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
31
|
-
export declare function notOptionCollateralOrder(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
32
|
-
export declare function notOptionCollateralPosition(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
33
|
-
export declare function notReduceOnlyExecution(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
34
|
-
export declare function notTokenCollateralPosition(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
35
|
-
export declare function optionCollateralNotEnough(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
36
|
-
export declare function optionCollateralOrderNotFilled(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
37
|
-
export declare function oracleMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
38
|
-
export declare function orderNotFilledImmediately(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
39
|
-
export declare function orderNotFound(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
40
|
-
export declare function orderOrPositionSizeNotZero(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
41
|
-
export declare function perpPositionLosses(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
42
|
-
export declare function poolAlreadyActive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
43
|
-
export declare function poolInactive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
44
|
-
export declare function portfolioIndexMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
45
|
-
export declare function positionIdNeededWithReduceOnlyOrder(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
46
|
-
export declare function processShouldRemoveOrder(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
47
|
-
export declare function processShouldRemovePosition(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
48
|
-
export declare function processShouldRepayLiquidity(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
49
|
-
export declare function processShouldSwap(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
50
|
-
export declare function reachMaxCapacity(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
51
|
-
export declare function reachMaxSingleOrderReserveUsage(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
52
|
-
export declare function reachSlippageThreshold(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
53
|
-
export declare function remainingCollateralNotEnough(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
54
|
-
export declare function tokenCollateralNotEnough(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
55
|
-
export declare function tokenPoolAlreadyActive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
56
|
-
export declare function tokenPoolInactive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
57
|
-
export declare function tooManyLinkedOrders(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
58
|
-
export declare function tradingSymbolExisted(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
59
|
-
export declare function tradingSymbolInactive(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
60
|
-
export declare function tradingSymbolNotExisted(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
61
|
-
export declare function tvlNotYetUpdated(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
62
|
-
export declare function unauthorized(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
63
|
-
export declare function unsupportedOrderTypeTag(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
64
|
-
export declare function unsupportedProcessStatusCode(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
65
|
-
export declare function userMismatched(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
66
|
-
export declare function wrongCollateralType(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
67
|
-
export declare function zeroPrice(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
68
|
-
export declare function zeroTotalSupply(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
2
|
+
export declare function activeTradingSymbol(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
3
|
+
export declare function addSizeNotAllowed(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
4
|
+
export declare function auctionNotYetEnded(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
5
|
+
export declare function authorityAlreadyExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
6
|
+
export declare function authorityDoestNotExist(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
7
|
+
export declare function authorityEmpty(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
8
|
+
export declare function balanceNotEnoughForPayingFee(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
9
|
+
export declare function baseTokenMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
10
|
+
export declare function bidReceiptHasBeenExpired(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
11
|
+
export declare function bidReceiptNotExpired(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
12
|
+
export declare function bidReceiptNotItm(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
13
|
+
export declare function bidTokenMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
14
|
+
export declare function collateralTokenTypeMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
15
|
+
export declare function depositAmountInsufficient(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
+
export declare function depositTokenMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
+
export declare function exceedMaxLeverage(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
18
|
+
export declare function frictionTooLarge(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
19
|
+
export declare function insufficientAmountForMintFee(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
20
|
+
export declare function invalidBidReceiptsInput(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
21
|
+
export declare function invalidOrderSide(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
22
|
+
export declare function invalidOrderSize(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
23
|
+
export declare function invalidTradingFeeConfig(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
24
|
+
export declare function invalidVersion(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
25
|
+
export declare function linkedOrderIdNotExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
26
|
+
export declare function liquidityNotEnough(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
27
|
+
export declare function liquidityTokenNotExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
28
|
+
export declare function lpPoolReserveNotEnough(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
29
|
+
export declare function lpTokenTypeMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
30
|
+
export declare function marketsInactive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
31
|
+
export declare function notOptionCollateralOrder(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
32
|
+
export declare function notOptionCollateralPosition(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
33
|
+
export declare function notReduceOnlyExecution(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
34
|
+
export declare function notTokenCollateralPosition(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
35
|
+
export declare function optionCollateralNotEnough(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
36
|
+
export declare function optionCollateralOrderNotFilled(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
37
|
+
export declare function oracleMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
38
|
+
export declare function orderNotFilledImmediately(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
39
|
+
export declare function orderNotFound(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
40
|
+
export declare function orderOrPositionSizeNotZero(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
41
|
+
export declare function perpPositionLosses(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
42
|
+
export declare function poolAlreadyActive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
43
|
+
export declare function poolInactive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
44
|
+
export declare function portfolioIndexMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
45
|
+
export declare function positionIdNeededWithReduceOnlyOrder(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
46
|
+
export declare function processShouldRemoveOrder(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
47
|
+
export declare function processShouldRemovePosition(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
48
|
+
export declare function processShouldRepayLiquidity(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
49
|
+
export declare function processShouldSwap(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
50
|
+
export declare function reachMaxCapacity(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
51
|
+
export declare function reachMaxSingleOrderReserveUsage(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
52
|
+
export declare function reachSlippageThreshold(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
53
|
+
export declare function remainingCollateralNotEnough(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
54
|
+
export declare function tokenCollateralNotEnough(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
55
|
+
export declare function tokenPoolAlreadyActive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
56
|
+
export declare function tokenPoolInactive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
57
|
+
export declare function tooManyLinkedOrders(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
58
|
+
export declare function tradingSymbolExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
59
|
+
export declare function tradingSymbolInactive(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
60
|
+
export declare function tradingSymbolNotExisted(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
61
|
+
export declare function tvlNotYetUpdated(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
62
|
+
export declare function unauthorized(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
63
|
+
export declare function unsupportedOrderTypeTag(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
64
|
+
export declare function unsupportedProcessStatusCode(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
65
|
+
export declare function userMismatched(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
66
|
+
export declare function wrongCollateralType(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
67
|
+
export declare function zeroPrice(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
68
|
+
export declare function zeroTotalSupply(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -68,204 +68,271 @@ exports.wrongCollateralType = wrongCollateralType;
|
|
|
68
68
|
exports.zeroPrice = zeroPrice;
|
|
69
69
|
exports.zeroTotalSupply = zeroTotalSupply;
|
|
70
70
|
var __1 = require("..");
|
|
71
|
-
function activeTradingSymbol(tx) {
|
|
72
|
-
|
|
71
|
+
function activeTradingSymbol(tx, published_at) {
|
|
72
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
73
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::active_trading_symbol"), arguments: [] });
|
|
73
74
|
}
|
|
74
|
-
function addSizeNotAllowed(tx) {
|
|
75
|
-
|
|
75
|
+
function addSizeNotAllowed(tx, published_at) {
|
|
76
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
77
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::add_size_not_allowed"), arguments: [] });
|
|
76
78
|
}
|
|
77
|
-
function auctionNotYetEnded(tx) {
|
|
78
|
-
|
|
79
|
+
function auctionNotYetEnded(tx, published_at) {
|
|
80
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
81
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::auction_not_yet_ended"), arguments: [] });
|
|
79
82
|
}
|
|
80
|
-
function authorityAlreadyExisted(tx) {
|
|
81
|
-
|
|
83
|
+
function authorityAlreadyExisted(tx, published_at) {
|
|
84
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
85
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_already_existed"), arguments: [] });
|
|
82
86
|
}
|
|
83
|
-
function authorityDoestNotExist(tx) {
|
|
84
|
-
|
|
87
|
+
function authorityDoestNotExist(tx, published_at) {
|
|
88
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
89
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_doest_not_exist"), arguments: [] });
|
|
85
90
|
}
|
|
86
|
-
function authorityEmpty(tx) {
|
|
87
|
-
|
|
91
|
+
function authorityEmpty(tx, published_at) {
|
|
92
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
93
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::authority_empty"), arguments: [] });
|
|
88
94
|
}
|
|
89
|
-
function balanceNotEnoughForPayingFee(tx) {
|
|
90
|
-
|
|
95
|
+
function balanceNotEnoughForPayingFee(tx, published_at) {
|
|
96
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
97
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::balance_not_enough_for_paying_fee"), arguments: [] });
|
|
91
98
|
}
|
|
92
|
-
function baseTokenMismatched(tx) {
|
|
93
|
-
|
|
99
|
+
function baseTokenMismatched(tx, published_at) {
|
|
100
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
101
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::base_token_mismatched"), arguments: [] });
|
|
94
102
|
}
|
|
95
|
-
function bidReceiptHasBeenExpired(tx) {
|
|
96
|
-
|
|
103
|
+
function bidReceiptHasBeenExpired(tx, published_at) {
|
|
104
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
105
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_has_been_expired"), arguments: [] });
|
|
97
106
|
}
|
|
98
|
-
function bidReceiptNotExpired(tx) {
|
|
99
|
-
|
|
107
|
+
function bidReceiptNotExpired(tx, published_at) {
|
|
108
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
109
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_expired"), arguments: [] });
|
|
100
110
|
}
|
|
101
|
-
function bidReceiptNotItm(tx) {
|
|
102
|
-
|
|
111
|
+
function bidReceiptNotItm(tx, published_at) {
|
|
112
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
113
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_receipt_not_itm"), arguments: [] });
|
|
103
114
|
}
|
|
104
|
-
function bidTokenMismatched(tx) {
|
|
105
|
-
|
|
115
|
+
function bidTokenMismatched(tx, published_at) {
|
|
116
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
117
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::bid_token_mismatched"), arguments: [] });
|
|
106
118
|
}
|
|
107
|
-
function collateralTokenTypeMismatched(tx) {
|
|
108
|
-
|
|
119
|
+
function collateralTokenTypeMismatched(tx, published_at) {
|
|
120
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
121
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::collateral_token_type_mismatched"), arguments: [] });
|
|
109
122
|
}
|
|
110
|
-
function depositAmountInsufficient(tx) {
|
|
111
|
-
|
|
123
|
+
function depositAmountInsufficient(tx, published_at) {
|
|
124
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
125
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::deposit_amount_insufficient"), arguments: [] });
|
|
112
126
|
}
|
|
113
|
-
function depositTokenMismatched(tx) {
|
|
114
|
-
|
|
127
|
+
function depositTokenMismatched(tx, published_at) {
|
|
128
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
129
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::deposit_token_mismatched"), arguments: [] });
|
|
115
130
|
}
|
|
116
|
-
function exceedMaxLeverage(tx) {
|
|
117
|
-
|
|
131
|
+
function exceedMaxLeverage(tx, published_at) {
|
|
132
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
133
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::exceed_max_leverage"), arguments: [] });
|
|
118
134
|
}
|
|
119
|
-
function frictionTooLarge(tx) {
|
|
120
|
-
|
|
135
|
+
function frictionTooLarge(tx, published_at) {
|
|
136
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
137
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::friction_too_large"), arguments: [] });
|
|
121
138
|
}
|
|
122
|
-
function insufficientAmountForMintFee(tx) {
|
|
123
|
-
|
|
139
|
+
function insufficientAmountForMintFee(tx, published_at) {
|
|
140
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
141
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::insufficient_amount_for_mint_fee"), arguments: [] });
|
|
124
142
|
}
|
|
125
|
-
function invalidBidReceiptsInput(tx) {
|
|
126
|
-
|
|
143
|
+
function invalidBidReceiptsInput(tx, published_at) {
|
|
144
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
145
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_bid_receipts_input"), arguments: [] });
|
|
127
146
|
}
|
|
128
|
-
function invalidOrderSide(tx) {
|
|
129
|
-
|
|
147
|
+
function invalidOrderSide(tx, published_at) {
|
|
148
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
149
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_side"), arguments: [] });
|
|
130
150
|
}
|
|
131
|
-
function invalidOrderSize(tx) {
|
|
132
|
-
|
|
151
|
+
function invalidOrderSize(tx, published_at) {
|
|
152
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
153
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_order_size"), arguments: [] });
|
|
133
154
|
}
|
|
134
|
-
function invalidTradingFeeConfig(tx) {
|
|
135
|
-
|
|
155
|
+
function invalidTradingFeeConfig(tx, published_at) {
|
|
156
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
157
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_trading_fee_config"), arguments: [] });
|
|
136
158
|
}
|
|
137
|
-
function invalidVersion(tx) {
|
|
138
|
-
|
|
159
|
+
function invalidVersion(tx, published_at) {
|
|
160
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
161
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::invalid_version"), arguments: [] });
|
|
139
162
|
}
|
|
140
|
-
function linkedOrderIdNotExisted(tx) {
|
|
141
|
-
|
|
163
|
+
function linkedOrderIdNotExisted(tx, published_at) {
|
|
164
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
165
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::linked_order_id_not_existed"), arguments: [] });
|
|
142
166
|
}
|
|
143
|
-
function liquidityNotEnough(tx) {
|
|
144
|
-
|
|
167
|
+
function liquidityNotEnough(tx, published_at) {
|
|
168
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
169
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_not_enough"), arguments: [] });
|
|
145
170
|
}
|
|
146
|
-
function liquidityTokenNotExisted(tx) {
|
|
147
|
-
|
|
171
|
+
function liquidityTokenNotExisted(tx, published_at) {
|
|
172
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
173
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::liquidity_token_not_existed"), arguments: [] });
|
|
148
174
|
}
|
|
149
|
-
function lpPoolReserveNotEnough(tx) {
|
|
150
|
-
|
|
175
|
+
function lpPoolReserveNotEnough(tx, published_at) {
|
|
176
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
177
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::lp_pool_reserve_not_enough"), arguments: [] });
|
|
151
178
|
}
|
|
152
|
-
function lpTokenTypeMismatched(tx) {
|
|
153
|
-
|
|
179
|
+
function lpTokenTypeMismatched(tx, published_at) {
|
|
180
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
181
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::lp_token_type_mismatched"), arguments: [] });
|
|
154
182
|
}
|
|
155
|
-
function marketsInactive(tx) {
|
|
156
|
-
|
|
183
|
+
function marketsInactive(tx, published_at) {
|
|
184
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
185
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::markets_inactive"), arguments: [] });
|
|
157
186
|
}
|
|
158
|
-
function notOptionCollateralOrder(tx) {
|
|
159
|
-
|
|
187
|
+
function notOptionCollateralOrder(tx, published_at) {
|
|
188
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
189
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_order"), arguments: [] });
|
|
160
190
|
}
|
|
161
|
-
function notOptionCollateralPosition(tx) {
|
|
162
|
-
|
|
191
|
+
function notOptionCollateralPosition(tx, published_at) {
|
|
192
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
193
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_option_collateral_position"), arguments: [] });
|
|
163
194
|
}
|
|
164
|
-
function notReduceOnlyExecution(tx) {
|
|
165
|
-
|
|
195
|
+
function notReduceOnlyExecution(tx, published_at) {
|
|
196
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
197
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_reduce_only_execution"), arguments: [] });
|
|
166
198
|
}
|
|
167
|
-
function notTokenCollateralPosition(tx) {
|
|
168
|
-
|
|
199
|
+
function notTokenCollateralPosition(tx, published_at) {
|
|
200
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
201
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::not_token_collateral_position"), arguments: [] });
|
|
169
202
|
}
|
|
170
|
-
function optionCollateralNotEnough(tx) {
|
|
171
|
-
|
|
203
|
+
function optionCollateralNotEnough(tx, published_at) {
|
|
204
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
205
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_not_enough"), arguments: [] });
|
|
172
206
|
}
|
|
173
|
-
function optionCollateralOrderNotFilled(tx) {
|
|
174
|
-
|
|
207
|
+
function optionCollateralOrderNotFilled(tx, published_at) {
|
|
208
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
209
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::option_collateral_order_not_filled"), arguments: [] });
|
|
175
210
|
}
|
|
176
|
-
function oracleMismatched(tx) {
|
|
177
|
-
|
|
211
|
+
function oracleMismatched(tx, published_at) {
|
|
212
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
213
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::oracle_mismatched"), arguments: [] });
|
|
178
214
|
}
|
|
179
|
-
function orderNotFilledImmediately(tx) {
|
|
180
|
-
|
|
215
|
+
function orderNotFilledImmediately(tx, published_at) {
|
|
216
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
217
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_not_filled_immediately"), arguments: [] });
|
|
181
218
|
}
|
|
182
|
-
function orderNotFound(tx) {
|
|
183
|
-
|
|
219
|
+
function orderNotFound(tx, published_at) {
|
|
220
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
221
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_not_found"), arguments: [] });
|
|
184
222
|
}
|
|
185
|
-
function orderOrPositionSizeNotZero(tx) {
|
|
186
|
-
|
|
223
|
+
function orderOrPositionSizeNotZero(tx, published_at) {
|
|
224
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
225
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::order_or_position_size_not_zero"), arguments: [] });
|
|
187
226
|
}
|
|
188
|
-
function perpPositionLosses(tx) {
|
|
189
|
-
|
|
227
|
+
function perpPositionLosses(tx, published_at) {
|
|
228
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
229
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::perp_position_losses"), arguments: [] });
|
|
190
230
|
}
|
|
191
|
-
function poolAlreadyActive(tx) {
|
|
192
|
-
|
|
231
|
+
function poolAlreadyActive(tx, published_at) {
|
|
232
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
233
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::pool_already_active"), arguments: [] });
|
|
193
234
|
}
|
|
194
|
-
function poolInactive(tx) {
|
|
195
|
-
|
|
235
|
+
function poolInactive(tx, published_at) {
|
|
236
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
237
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::pool_inactive"), arguments: [] });
|
|
196
238
|
}
|
|
197
|
-
function portfolioIndexMismatched(tx) {
|
|
198
|
-
|
|
239
|
+
function portfolioIndexMismatched(tx, published_at) {
|
|
240
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
241
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::portfolio_index_mismatched"), arguments: [] });
|
|
199
242
|
}
|
|
200
|
-
function positionIdNeededWithReduceOnlyOrder(tx) {
|
|
201
|
-
|
|
243
|
+
function positionIdNeededWithReduceOnlyOrder(tx, published_at) {
|
|
244
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
245
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::position_id_needed_with_reduce_only_order"), arguments: [] });
|
|
202
246
|
}
|
|
203
|
-
function processShouldRemoveOrder(tx) {
|
|
204
|
-
|
|
247
|
+
function processShouldRemoveOrder(tx, published_at) {
|
|
248
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
249
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_order"), arguments: [] });
|
|
205
250
|
}
|
|
206
|
-
function processShouldRemovePosition(tx) {
|
|
207
|
-
|
|
251
|
+
function processShouldRemovePosition(tx, published_at) {
|
|
252
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
253
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_remove_position"), arguments: [] });
|
|
208
254
|
}
|
|
209
|
-
function processShouldRepayLiquidity(tx) {
|
|
210
|
-
|
|
255
|
+
function processShouldRepayLiquidity(tx, published_at) {
|
|
256
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
257
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_repay_liquidity"), arguments: [] });
|
|
211
258
|
}
|
|
212
|
-
function processShouldSwap(tx) {
|
|
213
|
-
|
|
259
|
+
function processShouldSwap(tx, published_at) {
|
|
260
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
261
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::process_should_swap"), arguments: [] });
|
|
214
262
|
}
|
|
215
|
-
function reachMaxCapacity(tx) {
|
|
216
|
-
|
|
263
|
+
function reachMaxCapacity(tx, published_at) {
|
|
264
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
265
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_capacity"), arguments: [] });
|
|
217
266
|
}
|
|
218
|
-
function reachMaxSingleOrderReserveUsage(tx) {
|
|
219
|
-
|
|
267
|
+
function reachMaxSingleOrderReserveUsage(tx, published_at) {
|
|
268
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
269
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_max_single_order_reserve_usage"), arguments: [] });
|
|
220
270
|
}
|
|
221
|
-
function reachSlippageThreshold(tx) {
|
|
222
|
-
|
|
271
|
+
function reachSlippageThreshold(tx, published_at) {
|
|
272
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
273
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::reach_slippage_threshold"), arguments: [] });
|
|
223
274
|
}
|
|
224
|
-
function remainingCollateralNotEnough(tx) {
|
|
225
|
-
|
|
275
|
+
function remainingCollateralNotEnough(tx, published_at) {
|
|
276
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
277
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::remaining_collateral_not_enough"), arguments: [] });
|
|
226
278
|
}
|
|
227
|
-
function tokenCollateralNotEnough(tx) {
|
|
228
|
-
|
|
279
|
+
function tokenCollateralNotEnough(tx, published_at) {
|
|
280
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
281
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_collateral_not_enough"), arguments: [] });
|
|
229
282
|
}
|
|
230
|
-
function tokenPoolAlreadyActive(tx) {
|
|
231
|
-
|
|
283
|
+
function tokenPoolAlreadyActive(tx, published_at) {
|
|
284
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
285
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_already_active"), arguments: [] });
|
|
232
286
|
}
|
|
233
|
-
function tokenPoolInactive(tx) {
|
|
234
|
-
|
|
287
|
+
function tokenPoolInactive(tx, published_at) {
|
|
288
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
289
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::token_pool_inactive"), arguments: [] });
|
|
235
290
|
}
|
|
236
|
-
function tooManyLinkedOrders(tx) {
|
|
237
|
-
|
|
291
|
+
function tooManyLinkedOrders(tx, published_at) {
|
|
292
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
293
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::too_many_linked_orders"), arguments: [] });
|
|
238
294
|
}
|
|
239
|
-
function tradingSymbolExisted(tx) {
|
|
240
|
-
|
|
295
|
+
function tradingSymbolExisted(tx, published_at) {
|
|
296
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
297
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_existed"), arguments: [] });
|
|
241
298
|
}
|
|
242
|
-
function tradingSymbolInactive(tx) {
|
|
243
|
-
|
|
299
|
+
function tradingSymbolInactive(tx, published_at) {
|
|
300
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
301
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_inactive"), arguments: [] });
|
|
244
302
|
}
|
|
245
|
-
function tradingSymbolNotExisted(tx) {
|
|
246
|
-
|
|
303
|
+
function tradingSymbolNotExisted(tx, published_at) {
|
|
304
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
305
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::trading_symbol_not_existed"), arguments: [] });
|
|
247
306
|
}
|
|
248
|
-
function tvlNotYetUpdated(tx) {
|
|
249
|
-
|
|
307
|
+
function tvlNotYetUpdated(tx, published_at) {
|
|
308
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
309
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::tvl_not_yet_updated"), arguments: [] });
|
|
250
310
|
}
|
|
251
|
-
function unauthorized(tx) {
|
|
252
|
-
|
|
311
|
+
function unauthorized(tx, published_at) {
|
|
312
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
313
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unauthorized"), arguments: [] });
|
|
253
314
|
}
|
|
254
|
-
function unsupportedOrderTypeTag(tx) {
|
|
255
|
-
|
|
315
|
+
function unsupportedOrderTypeTag(tx, published_at) {
|
|
316
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
317
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_order_type_tag"), arguments: [] });
|
|
256
318
|
}
|
|
257
|
-
function unsupportedProcessStatusCode(tx) {
|
|
258
|
-
|
|
319
|
+
function unsupportedProcessStatusCode(tx, published_at) {
|
|
320
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
321
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::unsupported_process_status_code"), arguments: [] });
|
|
259
322
|
}
|
|
260
|
-
function userMismatched(tx) {
|
|
261
|
-
|
|
323
|
+
function userMismatched(tx, published_at) {
|
|
324
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
325
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::user_mismatched"), arguments: [] });
|
|
262
326
|
}
|
|
263
|
-
function wrongCollateralType(tx) {
|
|
264
|
-
|
|
327
|
+
function wrongCollateralType(tx, published_at) {
|
|
328
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
329
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::wrong_collateral_type"), arguments: [] });
|
|
265
330
|
}
|
|
266
|
-
function zeroPrice(tx) {
|
|
267
|
-
|
|
331
|
+
function zeroPrice(tx, published_at) {
|
|
332
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
333
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::zero_price"), arguments: [] });
|
|
268
334
|
}
|
|
269
|
-
function zeroTotalSupply(tx) {
|
|
270
|
-
|
|
335
|
+
function zeroTotalSupply(tx, published_at) {
|
|
336
|
+
if (published_at === void 0) { published_at = __1.PUBLISHED_AT; }
|
|
337
|
+
return tx.moveCall({ target: "".concat(published_at, "::error::zero_total_supply"), arguments: [] });
|
|
271
338
|
}
|
|
@@ -12,6 +12,6 @@ export interface CreateUnsettledBidReceiptArgs {
|
|
|
12
12
|
unrealizedFundingFee: bigint | TransactionArgument;
|
|
13
13
|
unrealizedLiquidatorFee: bigint | TransactionArgument;
|
|
14
14
|
}
|
|
15
|
-
export declare function createUnsettledBidReceipt(tx: Transaction, args: CreateUnsettledBidReceiptArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
-
export declare function destructUnsettledBidReceipt(tx: Transaction, unsettledBidReceipt: TransactionObjectInput): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
-
export declare function getBidReceipts(tx: Transaction, unsettledBidReceipt: TransactionObjectInput): import("@mysten/sui/transactions").TransactionResult;
|
|
15
|
+
export declare function createUnsettledBidReceipt(tx: Transaction, args: CreateUnsettledBidReceiptArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
+
export declare function destructUnsettledBidReceipt(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
17
|
+
export declare function getBidReceipts(tx: Transaction, unsettledBidReceipt: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|