@qubic.org/contracts 0.2.1 → 0.2.2
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/__generated__/computorcontrolledfund.d.ts +15 -15
- package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -1
- package/dist/__generated__/computorcontrolledfund.js +34 -34
- package/dist/__generated__/computorcontrolledfund.js.map +1 -1
- package/dist/__generated__/escrow.d.ts +2 -2
- package/dist/__generated__/escrow.js +2 -2
- package/dist/__generated__/generalquorumproposal.d.ts +7 -7
- package/dist/__generated__/generalquorumproposal.js +7 -7
- package/dist/__generated__/msvault.d.ts +68 -68
- package/dist/__generated__/msvault.d.ts.map +1 -1
- package/dist/__generated__/msvault.js +157 -157
- package/dist/__generated__/msvault.js.map +1 -1
- package/dist/__generated__/nostromo.d.ts +10 -10
- package/dist/__generated__/nostromo.d.ts.map +1 -1
- package/dist/__generated__/nostromo.js +10 -10
- package/dist/__generated__/nostromo.js.map +1 -1
- package/dist/__generated__/pulse.d.ts +146 -146
- package/dist/__generated__/pulse.d.ts.map +1 -1
- package/dist/__generated__/pulse.js +415 -415
- package/dist/__generated__/pulse.js.map +1 -1
- package/dist/__generated__/qbay.d.ts +9 -9
- package/dist/__generated__/qbay.d.ts.map +1 -1
- package/dist/__generated__/qbay.js +9 -9
- package/dist/__generated__/qbay.js.map +1 -1
- package/dist/__generated__/qbond.d.ts +16 -16
- package/dist/__generated__/qbond.d.ts.map +1 -1
- package/dist/__generated__/qbond.js +16 -16
- package/dist/__generated__/qbond.js.map +1 -1
- package/dist/__generated__/qduel.d.ts +31 -31
- package/dist/__generated__/qduel.d.ts.map +1 -1
- package/dist/__generated__/qduel.js +75 -75
- package/dist/__generated__/qduel.js.map +1 -1
- package/dist/__generated__/qearn.d.ts +5 -5
- package/dist/__generated__/qearn.d.ts.map +1 -1
- package/dist/__generated__/qearn.js +5 -5
- package/dist/__generated__/qearn.js.map +1 -1
- package/dist/__generated__/qip.d.ts +1 -1
- package/dist/__generated__/qip.js +1 -1
- package/dist/__generated__/qraffle.d.ts +22 -22
- package/dist/__generated__/qraffle.d.ts.map +1 -1
- package/dist/__generated__/qraffle.js +58 -58
- package/dist/__generated__/qraffle.js.map +1 -1
- package/dist/__generated__/qreservepool.d.ts +3 -3
- package/dist/__generated__/qreservepool.js +3 -3
- package/dist/__generated__/qrwa.d.ts +40 -40
- package/dist/__generated__/qrwa.d.ts.map +1 -1
- package/dist/__generated__/qrwa.js +114 -114
- package/dist/__generated__/qrwa.js.map +1 -1
- package/dist/__generated__/qswap.d.ts +47 -47
- package/dist/__generated__/qswap.d.ts.map +1 -1
- package/dist/__generated__/qswap.js +104 -104
- package/dist/__generated__/qswap.js.map +1 -1
- package/dist/__generated__/qthirtyfour.d.ts +58 -58
- package/dist/__generated__/qthirtyfour.d.ts.map +1 -1
- package/dist/__generated__/qthirtyfour.js +133 -133
- package/dist/__generated__/qthirtyfour.js.map +1 -1
- package/dist/__generated__/quottery.d.ts +105 -105
- package/dist/__generated__/quottery.d.ts.map +1 -1
- package/dist/__generated__/quottery.js +240 -240
- package/dist/__generated__/quottery.js.map +1 -1
- package/dist/__generated__/qusino.d.ts +21 -21
- package/dist/__generated__/qusino.d.ts.map +1 -1
- package/dist/__generated__/qusino.js +46 -46
- package/dist/__generated__/qusino.js.map +1 -1
- package/dist/__generated__/qutil.d.ts +76 -76
- package/dist/__generated__/qutil.d.ts.map +1 -1
- package/dist/__generated__/qutil.js +172 -172
- package/dist/__generated__/qutil.js.map +1 -1
- package/dist/__generated__/qvault.d.ts +28 -28
- package/dist/__generated__/qvault.d.ts.map +1 -1
- package/dist/__generated__/qvault.js +28 -28
- package/dist/__generated__/qvault.js.map +1 -1
- package/dist/__generated__/qx.d.ts +12 -12
- package/dist/__generated__/qx.d.ts.map +1 -1
- package/dist/__generated__/qx.js +12 -12
- package/dist/__generated__/qx.js.map +1 -1
- package/dist/__generated__/randomlottery.d.ts +12 -12
- package/dist/__generated__/randomlottery.d.ts.map +1 -1
- package/dist/__generated__/randomlottery.js +12 -12
- package/dist/__generated__/randomlottery.js.map +1 -1
- package/dist/__generated__/vottunbridge.d.ts +58 -58
- package/dist/__generated__/vottunbridge.d.ts.map +1 -1
- package/dist/__generated__/vottunbridge.js +146 -146
- package/dist/__generated__/vottunbridge.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,16 +6,7 @@ export interface QswapAssetStruct {
|
|
|
6
6
|
issuer: string;
|
|
7
7
|
assetName: bigint;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
10
|
-
export interface QswapSetInvestRewardsInfoInput {
|
|
11
|
-
newInvestRewardsId: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function buildQswapSetInvestRewardsInfoInput(input: QswapSetInvestRewardsInfoInput, identityToPublicKey: (identity: string) => Uint8Array): ContractCall;
|
|
14
|
-
export interface QswapSetInvestRewardsInfoOutput {
|
|
15
|
-
success: number;
|
|
16
|
-
}
|
|
17
|
-
export declare function decodeQswapSetInvestRewardsInfoOutput(data: Uint8Array): QswapSetInvestRewardsInfoOutput;
|
|
18
|
-
export declare const QSWAP_ISSUE_ASSET_INPUT_TYPE = 10;
|
|
9
|
+
export declare const QSWAP_ISSUE_ASSET_INPUT_TYPE = 1;
|
|
19
10
|
export interface QswapIssueAssetInput {
|
|
20
11
|
assetName: bigint;
|
|
21
12
|
numberOfShares: bigint;
|
|
@@ -27,17 +18,7 @@ export interface QswapIssueAssetOutput {
|
|
|
27
18
|
issuedNumberOfShares: bigint;
|
|
28
19
|
}
|
|
29
20
|
export declare function decodeQswapIssueAssetOutput(data: Uint8Array): QswapIssueAssetOutput;
|
|
30
|
-
export declare const
|
|
31
|
-
export interface QswapCreatePoolInput {
|
|
32
|
-
assetIssuer: string;
|
|
33
|
-
assetName: bigint;
|
|
34
|
-
}
|
|
35
|
-
export declare function buildQswapCreatePoolInput(input: QswapCreatePoolInput, identityToPublicKey: (identity: string) => Uint8Array): ContractCall;
|
|
36
|
-
export interface QswapCreatePoolOutput {
|
|
37
|
-
success: number;
|
|
38
|
-
}
|
|
39
|
-
export declare function decodeQswapCreatePoolOutput(data: Uint8Array): QswapCreatePoolOutput;
|
|
40
|
-
export declare const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_TYPE = 12;
|
|
21
|
+
export declare const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_TYPE = 2;
|
|
41
22
|
export interface QswapTransferShareOwnershipAndPossessionInput {
|
|
42
23
|
assetIssuer: string;
|
|
43
24
|
assetName: bigint;
|
|
@@ -49,7 +30,17 @@ export interface QswapTransferShareOwnershipAndPossessionOutput {
|
|
|
49
30
|
transferredAmount: bigint;
|
|
50
31
|
}
|
|
51
32
|
export declare function decodeQswapTransferShareOwnershipAndPossessionOutput(data: Uint8Array): QswapTransferShareOwnershipAndPossessionOutput;
|
|
52
|
-
export declare const
|
|
33
|
+
export declare const QSWAP_CREATE_POOL_INPUT_TYPE = 3;
|
|
34
|
+
export interface QswapCreatePoolInput {
|
|
35
|
+
assetIssuer: string;
|
|
36
|
+
assetName: bigint;
|
|
37
|
+
}
|
|
38
|
+
export declare function buildQswapCreatePoolInput(input: QswapCreatePoolInput, identityToPublicKey: (identity: string) => Uint8Array): ContractCall;
|
|
39
|
+
export interface QswapCreatePoolOutput {
|
|
40
|
+
success: number;
|
|
41
|
+
}
|
|
42
|
+
export declare function decodeQswapCreatePoolOutput(data: Uint8Array): QswapCreatePoolOutput;
|
|
43
|
+
export declare const QSWAP_ADD_LIQUIDITY_INPUT_TYPE = 4;
|
|
53
44
|
export interface QswapAddLiquidityInput {
|
|
54
45
|
assetIssuer: string;
|
|
55
46
|
assetName: bigint;
|
|
@@ -64,7 +55,7 @@ export interface QswapAddLiquidityOutput {
|
|
|
64
55
|
assetAmount: bigint;
|
|
65
56
|
}
|
|
66
57
|
export declare function decodeQswapAddLiquidityOutput(data: Uint8Array): QswapAddLiquidityOutput;
|
|
67
|
-
export declare const QSWAP_REMOVE_LIQUIDITY_INPUT_TYPE =
|
|
58
|
+
export declare const QSWAP_REMOVE_LIQUIDITY_INPUT_TYPE = 5;
|
|
68
59
|
export interface QswapRemoveLiquidityInput {
|
|
69
60
|
assetIssuer: string;
|
|
70
61
|
assetName: bigint;
|
|
@@ -78,7 +69,7 @@ export interface QswapRemoveLiquidityOutput {
|
|
|
78
69
|
assetAmount: bigint;
|
|
79
70
|
}
|
|
80
71
|
export declare function decodeQswapRemoveLiquidityOutput(data: Uint8Array): QswapRemoveLiquidityOutput;
|
|
81
|
-
export declare const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_TYPE =
|
|
72
|
+
export declare const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_TYPE = 6;
|
|
82
73
|
export interface QswapSwapExactQuForAssetInput {
|
|
83
74
|
assetIssuer: string;
|
|
84
75
|
assetName: bigint;
|
|
@@ -89,7 +80,7 @@ export interface QswapSwapExactQuForAssetOutput {
|
|
|
89
80
|
assetAmountOut: bigint;
|
|
90
81
|
}
|
|
91
82
|
export declare function decodeQswapSwapExactQuForAssetOutput(data: Uint8Array): QswapSwapExactQuForAssetOutput;
|
|
92
|
-
export declare const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_TYPE =
|
|
83
|
+
export declare const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_TYPE = 7;
|
|
93
84
|
export interface QswapSwapQuForExactAssetInput {
|
|
94
85
|
assetIssuer: string;
|
|
95
86
|
assetName: bigint;
|
|
@@ -100,7 +91,7 @@ export interface QswapSwapQuForExactAssetOutput {
|
|
|
100
91
|
quAmountIn: bigint;
|
|
101
92
|
}
|
|
102
93
|
export declare function decodeQswapSwapQuForExactAssetOutput(data: Uint8Array): QswapSwapQuForExactAssetOutput;
|
|
103
|
-
export declare const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_TYPE =
|
|
94
|
+
export declare const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_TYPE = 8;
|
|
104
95
|
export interface QswapSwapExactAssetForQuInput {
|
|
105
96
|
assetIssuer: string;
|
|
106
97
|
assetName: bigint;
|
|
@@ -112,7 +103,7 @@ export interface QswapSwapExactAssetForQuOutput {
|
|
|
112
103
|
quAmountOut: bigint;
|
|
113
104
|
}
|
|
114
105
|
export declare function decodeQswapSwapExactAssetForQuOutput(data: Uint8Array): QswapSwapExactAssetForQuOutput;
|
|
115
|
-
export declare const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_TYPE =
|
|
106
|
+
export declare const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_TYPE = 9;
|
|
116
107
|
export interface QswapSwapAssetForExactQuInput {
|
|
117
108
|
assetIssuer: string;
|
|
118
109
|
assetName: bigint;
|
|
@@ -124,7 +115,16 @@ export interface QswapSwapAssetForExactQuOutput {
|
|
|
124
115
|
assetAmountIn: bigint;
|
|
125
116
|
}
|
|
126
117
|
export declare function decodeQswapSwapAssetForExactQuOutput(data: Uint8Array): QswapSwapAssetForExactQuOutput;
|
|
127
|
-
export declare const
|
|
118
|
+
export declare const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_TYPE = 10;
|
|
119
|
+
export interface QswapSetInvestRewardsInfoInput {
|
|
120
|
+
newInvestRewardsId: string;
|
|
121
|
+
}
|
|
122
|
+
export declare function buildQswapSetInvestRewardsInfoInput(input: QswapSetInvestRewardsInfoInput, identityToPublicKey: (identity: string) => Uint8Array): ContractCall;
|
|
123
|
+
export interface QswapSetInvestRewardsInfoOutput {
|
|
124
|
+
success: number;
|
|
125
|
+
}
|
|
126
|
+
export declare function decodeQswapSetInvestRewardsInfoOutput(data: Uint8Array): QswapSetInvestRewardsInfoOutput;
|
|
127
|
+
export declare const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_TYPE = 11;
|
|
128
128
|
export interface QswapTransferShareManagementRightsInput {
|
|
129
129
|
asset: QswapAssetStruct;
|
|
130
130
|
numberOfShares: bigint;
|
|
@@ -149,15 +149,7 @@ export interface QswapFeesOutput {
|
|
|
149
149
|
}
|
|
150
150
|
export declare function decodeQswapFeesOutput(data: Uint8Array): QswapFeesOutput;
|
|
151
151
|
export declare function qswapFees(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<QswapFeesOutput, QubicRpcError>>;
|
|
152
|
-
export declare const
|
|
153
|
-
export declare const QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE = 0;
|
|
154
|
-
export interface QswapInvestRewardsInfoOutput {
|
|
155
|
-
investRewardsFee: number;
|
|
156
|
-
investRewardsId: string;
|
|
157
|
-
}
|
|
158
|
-
export declare function decodeQswapInvestRewardsInfoOutput(data: Uint8Array, publicKeyToIdentity: (pk: Uint8Array) => string): QswapInvestRewardsInfoOutput;
|
|
159
|
-
export declare function qswapInvestRewardsInfo(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<QswapInvestRewardsInfoOutput, QubicRpcError>>;
|
|
160
|
-
export declare const QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE = 4;
|
|
152
|
+
export declare const QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE = 2;
|
|
161
153
|
export declare const QSWAP_GET_POOL_BASIC_STATE_INPUT_SIZE = 40;
|
|
162
154
|
export interface QswapGetPoolBasicStateInput {
|
|
163
155
|
assetIssuer: string;
|
|
@@ -172,7 +164,7 @@ export interface QswapGetPoolBasicStateOutput {
|
|
|
172
164
|
}
|
|
173
165
|
export declare function decodeQswapGetPoolBasicStateOutput(data: Uint8Array): QswapGetPoolBasicStateOutput;
|
|
174
166
|
export declare function qswapGetPoolBasicState(live: SmartContractCaller, input: QswapGetPoolBasicStateInput, options?: ContractCallOptions): Promise<Result<QswapGetPoolBasicStateOutput, QubicRpcError>>;
|
|
175
|
-
export declare const QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE =
|
|
167
|
+
export declare const QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE = 3;
|
|
176
168
|
export declare const QSWAP_GET_LIQUIDITY_OF_INPUT_SIZE = 72;
|
|
177
169
|
export interface QswapGetLiquidityOfInput {
|
|
178
170
|
assetIssuer: string;
|
|
@@ -185,7 +177,7 @@ export interface QswapGetLiquidityOfOutput {
|
|
|
185
177
|
}
|
|
186
178
|
export declare function decodeQswapGetLiquidityOfOutput(data: Uint8Array): QswapGetLiquidityOfOutput;
|
|
187
179
|
export declare function qswapGetLiquidityOf(live: SmartContractCaller, input: QswapGetLiquidityOfInput, options?: ContractCallOptions): Promise<Result<QswapGetLiquidityOfOutput, QubicRpcError>>;
|
|
188
|
-
export declare const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE =
|
|
180
|
+
export declare const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE = 4;
|
|
189
181
|
export declare const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_SIZE = 48;
|
|
190
182
|
export interface QswapQuoteExactQuInputInput {
|
|
191
183
|
assetIssuer: string;
|
|
@@ -198,7 +190,7 @@ export interface QswapQuoteExactQuInputOutput {
|
|
|
198
190
|
}
|
|
199
191
|
export declare function decodeQswapQuoteExactQuInputOutput(data: Uint8Array): QswapQuoteExactQuInputOutput;
|
|
200
192
|
export declare function qswapQuoteExactQuInput(live: SmartContractCaller, input: QswapQuoteExactQuInputInput, options?: ContractCallOptions): Promise<Result<QswapQuoteExactQuInputOutput, QubicRpcError>>;
|
|
201
|
-
export declare const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE =
|
|
193
|
+
export declare const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE = 5;
|
|
202
194
|
export declare const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_SIZE = 48;
|
|
203
195
|
export interface QswapQuoteExactQuOutputInput {
|
|
204
196
|
assetIssuer: string;
|
|
@@ -211,7 +203,7 @@ export interface QswapQuoteExactQuOutputOutput {
|
|
|
211
203
|
}
|
|
212
204
|
export declare function decodeQswapQuoteExactQuOutputOutput(data: Uint8Array): QswapQuoteExactQuOutputOutput;
|
|
213
205
|
export declare function qswapQuoteExactQuOutput(live: SmartContractCaller, input: QswapQuoteExactQuOutputInput, options?: ContractCallOptions): Promise<Result<QswapQuoteExactQuOutputOutput, QubicRpcError>>;
|
|
214
|
-
export declare const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE =
|
|
206
|
+
export declare const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE = 6;
|
|
215
207
|
export declare const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_SIZE = 48;
|
|
216
208
|
export interface QswapQuoteExactAssetInputInput {
|
|
217
209
|
assetIssuer: string;
|
|
@@ -224,7 +216,7 @@ export interface QswapQuoteExactAssetInputOutput {
|
|
|
224
216
|
}
|
|
225
217
|
export declare function decodeQswapQuoteExactAssetInputOutput(data: Uint8Array): QswapQuoteExactAssetInputOutput;
|
|
226
218
|
export declare function qswapQuoteExactAssetInput(live: SmartContractCaller, input: QswapQuoteExactAssetInputInput, options?: ContractCallOptions): Promise<Result<QswapQuoteExactAssetInputOutput, QubicRpcError>>;
|
|
227
|
-
export declare const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE =
|
|
219
|
+
export declare const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE = 7;
|
|
228
220
|
export declare const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_SIZE = 48;
|
|
229
221
|
export interface QswapQuoteExactAssetOutputInput {
|
|
230
222
|
assetIssuer: string;
|
|
@@ -237,24 +229,30 @@ export interface QswapQuoteExactAssetOutputOutput {
|
|
|
237
229
|
}
|
|
238
230
|
export declare function decodeQswapQuoteExactAssetOutputOutput(data: Uint8Array): QswapQuoteExactAssetOutputOutput;
|
|
239
231
|
export declare function qswapQuoteExactAssetOutput(live: SmartContractCaller, input: QswapQuoteExactAssetOutputInput, options?: ContractCallOptions): Promise<Result<QswapQuoteExactAssetOutputOutput, QubicRpcError>>;
|
|
232
|
+
export declare const QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE = 8;
|
|
233
|
+
export declare const QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE = 0;
|
|
234
|
+
export interface QswapInvestRewardsInfoOutput {
|
|
235
|
+
investRewardsFee: number;
|
|
236
|
+
investRewardsId: string;
|
|
237
|
+
}
|
|
238
|
+
export declare function decodeQswapInvestRewardsInfoOutput(data: Uint8Array, publicKeyToIdentity: (pk: Uint8Array) => string): QswapInvestRewardsInfoOutput;
|
|
239
|
+
export declare function qswapInvestRewardsInfo(live: SmartContractCaller, options?: ContractCallOptions): Promise<Result<QswapInvestRewardsInfoOutput, QubicRpcError>>;
|
|
240
240
|
export declare const qswap: {
|
|
241
241
|
contractIndex: number;
|
|
242
242
|
Fees: typeof qswapFees;
|
|
243
|
-
InvestRewardsInfo: typeof qswapInvestRewardsInfo;
|
|
244
243
|
GetPoolBasicState: typeof qswapGetPoolBasicState;
|
|
245
244
|
GetLiquidityOf: typeof qswapGetLiquidityOf;
|
|
246
245
|
QuoteExactQuInput: typeof qswapQuoteExactQuInput;
|
|
247
246
|
QuoteExactQuOutput: typeof qswapQuoteExactQuOutput;
|
|
248
247
|
QuoteExactAssetInput: typeof qswapQuoteExactAssetInput;
|
|
249
248
|
QuoteExactAssetOutput: typeof qswapQuoteExactAssetOutput;
|
|
250
|
-
|
|
251
|
-
decodeSetInvestRewardsInfoOutput: typeof decodeQswapSetInvestRewardsInfoOutput;
|
|
249
|
+
InvestRewardsInfo: typeof qswapInvestRewardsInfo;
|
|
252
250
|
buildIssueAssetInput: typeof buildQswapIssueAssetInput;
|
|
253
251
|
decodeIssueAssetOutput: typeof decodeQswapIssueAssetOutput;
|
|
254
|
-
buildCreatePoolInput: typeof buildQswapCreatePoolInput;
|
|
255
|
-
decodeCreatePoolOutput: typeof decodeQswapCreatePoolOutput;
|
|
256
252
|
buildTransferShareOwnershipAndPossessionInput: typeof buildQswapTransferShareOwnershipAndPossessionInput;
|
|
257
253
|
decodeTransferShareOwnershipAndPossessionOutput: typeof decodeQswapTransferShareOwnershipAndPossessionOutput;
|
|
254
|
+
buildCreatePoolInput: typeof buildQswapCreatePoolInput;
|
|
255
|
+
decodeCreatePoolOutput: typeof decodeQswapCreatePoolOutput;
|
|
258
256
|
buildAddLiquidityInput: typeof buildQswapAddLiquidityInput;
|
|
259
257
|
decodeAddLiquidityOutput: typeof decodeQswapAddLiquidityOutput;
|
|
260
258
|
buildRemoveLiquidityInput: typeof buildQswapRemoveLiquidityInput;
|
|
@@ -267,6 +265,8 @@ export declare const qswap: {
|
|
|
267
265
|
decodeSwapExactAssetForQuOutput: typeof decodeQswapSwapExactAssetForQuOutput;
|
|
268
266
|
buildSwapAssetForExactQuInput: typeof buildQswapSwapAssetForExactQuInput;
|
|
269
267
|
decodeSwapAssetForExactQuOutput: typeof decodeQswapSwapAssetForExactQuOutput;
|
|
268
|
+
buildSetInvestRewardsInfoInput: typeof buildQswapSetInvestRewardsInfoInput;
|
|
269
|
+
decodeSetInvestRewardsInfoOutput: typeof decodeQswapSetInvestRewardsInfoOutput;
|
|
270
270
|
buildTransferShareManagementRightsInput: typeof buildQswapTransferShareManagementRightsInput;
|
|
271
271
|
decodeTransferShareManagementRightsOutput: typeof decodeQswapTransferShareManagementRightsOutput;
|
|
272
272
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qswap.d.ts","sourceRoot":"","sources":["../../src/__generated__/qswap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAwB,MAAM,qBAAqB,CAAA;AACjI,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,eAAO,MAAM,oBAAoB,KAAK,CAAA;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,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eAAe,EAAE,MAAM,CAAA;CACxB;AAiBD,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,UAAU,EAChB,mBAAmB,EAAE,CAAC,EAAE,EAAE,UAAU,KAAK,MAAM,GAC9C,4BAA4B,CAE9B;AAED,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE,aAAa,CAAC,CAAC,CAY9D;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCjB,CAAA"}
|
|
@@ -21,30 +21,7 @@ const STRUCTS = {
|
|
|
21
21
|
],
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
25
|
-
const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS = [
|
|
26
|
-
{
|
|
27
|
-
name: 'newInvestRewardsId',
|
|
28
|
-
type: 'id',
|
|
29
|
-
offset: 0,
|
|
30
|
-
byteLength: 32,
|
|
31
|
-
},
|
|
32
|
-
];
|
|
33
|
-
export function buildQswapSetInvestRewardsInfoInput(input, identityToPublicKey) {
|
|
34
|
-
return { contractIndex: QSWAP_CONTRACT_INDEX, inputType: QSWAP_SET_INVEST_REWARDS_INFO_INPUT_TYPE, payload: buildPayload(QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS, STRUCTS, input, identityToPublicKey) };
|
|
35
|
-
}
|
|
36
|
-
const QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
|
|
37
|
-
{
|
|
38
|
-
name: 'success',
|
|
39
|
-
type: 'uint8',
|
|
40
|
-
offset: 0,
|
|
41
|
-
byteLength: 1,
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
export function decodeQswapSetInvestRewardsInfoOutput(data) {
|
|
45
|
-
return decodePayload(data, QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
46
|
-
}
|
|
47
|
-
export const QSWAP_ISSUE_ASSET_INPUT_TYPE = 10;
|
|
24
|
+
export const QSWAP_ISSUE_ASSET_INPUT_TYPE = 1;
|
|
48
25
|
const QSWAP_ISSUE_ASSET_INPUT_FIELDS = [
|
|
49
26
|
{
|
|
50
27
|
name: 'assetName',
|
|
@@ -85,36 +62,7 @@ const QSWAP_ISSUE_ASSET_OUTPUT_FIELDS = [
|
|
|
85
62
|
export function decodeQswapIssueAssetOutput(data) {
|
|
86
63
|
return decodePayload(data, QSWAP_ISSUE_ASSET_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
87
64
|
}
|
|
88
|
-
export const
|
|
89
|
-
const QSWAP_CREATE_POOL_INPUT_FIELDS = [
|
|
90
|
-
{
|
|
91
|
-
name: 'assetIssuer',
|
|
92
|
-
type: 'id',
|
|
93
|
-
offset: 0,
|
|
94
|
-
byteLength: 32,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'assetName',
|
|
98
|
-
type: 'uint64',
|
|
99
|
-
offset: 32,
|
|
100
|
-
byteLength: 8,
|
|
101
|
-
},
|
|
102
|
-
];
|
|
103
|
-
export function buildQswapCreatePoolInput(input, identityToPublicKey) {
|
|
104
|
-
return { contractIndex: QSWAP_CONTRACT_INDEX, inputType: QSWAP_CREATE_POOL_INPUT_TYPE, payload: buildPayload(QSWAP_CREATE_POOL_INPUT_FIELDS, STRUCTS, input, identityToPublicKey) };
|
|
105
|
-
}
|
|
106
|
-
const QSWAP_CREATE_POOL_OUTPUT_FIELDS = [
|
|
107
|
-
{
|
|
108
|
-
name: 'success',
|
|
109
|
-
type: 'uint8',
|
|
110
|
-
offset: 0,
|
|
111
|
-
byteLength: 1,
|
|
112
|
-
},
|
|
113
|
-
];
|
|
114
|
-
export function decodeQswapCreatePoolOutput(data) {
|
|
115
|
-
return decodePayload(data, QSWAP_CREATE_POOL_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
116
|
-
}
|
|
117
|
-
export const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_TYPE = 12;
|
|
65
|
+
export const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_TYPE = 2;
|
|
118
66
|
const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_FIELDS = [
|
|
119
67
|
{
|
|
120
68
|
name: 'assetIssuer',
|
|
@@ -155,7 +103,36 @@ const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_OUTPUT_FIELDS = [
|
|
|
155
103
|
export function decodeQswapTransferShareOwnershipAndPossessionOutput(data) {
|
|
156
104
|
return decodePayload(data, QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
157
105
|
}
|
|
158
|
-
export const
|
|
106
|
+
export const QSWAP_CREATE_POOL_INPUT_TYPE = 3;
|
|
107
|
+
const QSWAP_CREATE_POOL_INPUT_FIELDS = [
|
|
108
|
+
{
|
|
109
|
+
name: 'assetIssuer',
|
|
110
|
+
type: 'id',
|
|
111
|
+
offset: 0,
|
|
112
|
+
byteLength: 32,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'assetName',
|
|
116
|
+
type: 'uint64',
|
|
117
|
+
offset: 32,
|
|
118
|
+
byteLength: 8,
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
export function buildQswapCreatePoolInput(input, identityToPublicKey) {
|
|
122
|
+
return { contractIndex: QSWAP_CONTRACT_INDEX, inputType: QSWAP_CREATE_POOL_INPUT_TYPE, payload: buildPayload(QSWAP_CREATE_POOL_INPUT_FIELDS, STRUCTS, input, identityToPublicKey) };
|
|
123
|
+
}
|
|
124
|
+
const QSWAP_CREATE_POOL_OUTPUT_FIELDS = [
|
|
125
|
+
{
|
|
126
|
+
name: 'success',
|
|
127
|
+
type: 'uint8',
|
|
128
|
+
offset: 0,
|
|
129
|
+
byteLength: 1,
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
export function decodeQswapCreatePoolOutput(data) {
|
|
133
|
+
return decodePayload(data, QSWAP_CREATE_POOL_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
134
|
+
}
|
|
135
|
+
export const QSWAP_ADD_LIQUIDITY_INPUT_TYPE = 4;
|
|
159
136
|
const QSWAP_ADD_LIQUIDITY_INPUT_FIELDS = [
|
|
160
137
|
{
|
|
161
138
|
name: 'assetIssuer',
|
|
@@ -214,7 +191,7 @@ const QSWAP_ADD_LIQUIDITY_OUTPUT_FIELDS = [
|
|
|
214
191
|
export function decodeQswapAddLiquidityOutput(data) {
|
|
215
192
|
return decodePayload(data, QSWAP_ADD_LIQUIDITY_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
216
193
|
}
|
|
217
|
-
export const QSWAP_REMOVE_LIQUIDITY_INPUT_TYPE =
|
|
194
|
+
export const QSWAP_REMOVE_LIQUIDITY_INPUT_TYPE = 5;
|
|
218
195
|
const QSWAP_REMOVE_LIQUIDITY_INPUT_FIELDS = [
|
|
219
196
|
{
|
|
220
197
|
name: 'assetIssuer',
|
|
@@ -267,7 +244,7 @@ const QSWAP_REMOVE_LIQUIDITY_OUTPUT_FIELDS = [
|
|
|
267
244
|
export function decodeQswapRemoveLiquidityOutput(data) {
|
|
268
245
|
return decodePayload(data, QSWAP_REMOVE_LIQUIDITY_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
269
246
|
}
|
|
270
|
-
export const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_TYPE =
|
|
247
|
+
export const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_TYPE = 6;
|
|
271
248
|
const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_FIELDS = [
|
|
272
249
|
{
|
|
273
250
|
name: 'assetIssuer',
|
|
@@ -302,7 +279,7 @@ const QSWAP_SWAP_EXACT_QU_FOR_ASSET_OUTPUT_FIELDS = [
|
|
|
302
279
|
export function decodeQswapSwapExactQuForAssetOutput(data) {
|
|
303
280
|
return decodePayload(data, QSWAP_SWAP_EXACT_QU_FOR_ASSET_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
304
281
|
}
|
|
305
|
-
export const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_TYPE =
|
|
282
|
+
export const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_TYPE = 7;
|
|
306
283
|
const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_FIELDS = [
|
|
307
284
|
{
|
|
308
285
|
name: 'assetIssuer',
|
|
@@ -337,7 +314,7 @@ const QSWAP_SWAP_QU_FOR_EXACT_ASSET_OUTPUT_FIELDS = [
|
|
|
337
314
|
export function decodeQswapSwapQuForExactAssetOutput(data) {
|
|
338
315
|
return decodePayload(data, QSWAP_SWAP_QU_FOR_EXACT_ASSET_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
339
316
|
}
|
|
340
|
-
export const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_TYPE =
|
|
317
|
+
export const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_TYPE = 8;
|
|
341
318
|
const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_FIELDS = [
|
|
342
319
|
{
|
|
343
320
|
name: 'assetIssuer',
|
|
@@ -378,7 +355,7 @@ const QSWAP_SWAP_EXACT_ASSET_FOR_QU_OUTPUT_FIELDS = [
|
|
|
378
355
|
export function decodeQswapSwapExactAssetForQuOutput(data) {
|
|
379
356
|
return decodePayload(data, QSWAP_SWAP_EXACT_ASSET_FOR_QU_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
380
357
|
}
|
|
381
|
-
export const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_TYPE =
|
|
358
|
+
export const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_TYPE = 9;
|
|
382
359
|
const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_FIELDS = [
|
|
383
360
|
{
|
|
384
361
|
name: 'assetIssuer',
|
|
@@ -419,7 +396,30 @@ const QSWAP_SWAP_ASSET_FOR_EXACT_QU_OUTPUT_FIELDS = [
|
|
|
419
396
|
export function decodeQswapSwapAssetForExactQuOutput(data) {
|
|
420
397
|
return decodePayload(data, QSWAP_SWAP_ASSET_FOR_EXACT_QU_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
421
398
|
}
|
|
422
|
-
export const
|
|
399
|
+
export const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_TYPE = 10;
|
|
400
|
+
const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS = [
|
|
401
|
+
{
|
|
402
|
+
name: 'newInvestRewardsId',
|
|
403
|
+
type: 'id',
|
|
404
|
+
offset: 0,
|
|
405
|
+
byteLength: 32,
|
|
406
|
+
},
|
|
407
|
+
];
|
|
408
|
+
export function buildQswapSetInvestRewardsInfoInput(input, identityToPublicKey) {
|
|
409
|
+
return { contractIndex: QSWAP_CONTRACT_INDEX, inputType: QSWAP_SET_INVEST_REWARDS_INFO_INPUT_TYPE, payload: buildPayload(QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS, STRUCTS, input, identityToPublicKey) };
|
|
410
|
+
}
|
|
411
|
+
const QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
|
|
412
|
+
{
|
|
413
|
+
name: 'success',
|
|
414
|
+
type: 'uint8',
|
|
415
|
+
offset: 0,
|
|
416
|
+
byteLength: 1,
|
|
417
|
+
},
|
|
418
|
+
];
|
|
419
|
+
export function decodeQswapSetInvestRewardsInfoOutput(data) {
|
|
420
|
+
return decodePayload(data, QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
|
|
421
|
+
}
|
|
422
|
+
export const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_TYPE = 11;
|
|
423
423
|
const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS = [
|
|
424
424
|
{
|
|
425
425
|
name: 'asset',
|
|
@@ -523,39 +523,7 @@ export async function qswapFees(live, options) {
|
|
|
523
523
|
...options,
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
export const
|
|
527
|
-
export const QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE = 0;
|
|
528
|
-
const QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
|
|
529
|
-
{
|
|
530
|
-
name: 'investRewardsFee',
|
|
531
|
-
type: 'uint32',
|
|
532
|
-
offset: 0,
|
|
533
|
-
byteLength: 4,
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
name: 'investRewardsId',
|
|
537
|
-
type: 'id',
|
|
538
|
-
offset: 4,
|
|
539
|
-
byteLength: 32,
|
|
540
|
-
},
|
|
541
|
-
];
|
|
542
|
-
export function decodeQswapInvestRewardsInfoOutput(data, publicKeyToIdentity) {
|
|
543
|
-
return decodePayload(data, QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
544
|
-
}
|
|
545
|
-
export async function qswapInvestRewardsInfo(live, options) {
|
|
546
|
-
return callContractFunction({
|
|
547
|
-
live,
|
|
548
|
-
contractIndex: QSWAP_CONTRACT_INDEX,
|
|
549
|
-
inputType: QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE,
|
|
550
|
-
inputSize: QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE,
|
|
551
|
-
inputFields: [],
|
|
552
|
-
outputFields: QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS,
|
|
553
|
-
structs: STRUCTS,
|
|
554
|
-
input: {},
|
|
555
|
-
...options,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
export const QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE = 4;
|
|
526
|
+
export const QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE = 2;
|
|
559
527
|
export const QSWAP_GET_POOL_BASIC_STATE_INPUT_SIZE = 40;
|
|
560
528
|
const QSWAP_GET_POOL_BASIC_STATE_INPUT_FIELDS = [
|
|
561
529
|
{
|
|
@@ -616,7 +584,7 @@ export async function qswapGetPoolBasicState(live, input, options) {
|
|
|
616
584
|
...options,
|
|
617
585
|
});
|
|
618
586
|
}
|
|
619
|
-
export const QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE =
|
|
587
|
+
export const QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE = 3;
|
|
620
588
|
export const QSWAP_GET_LIQUIDITY_OF_INPUT_SIZE = 72;
|
|
621
589
|
const QSWAP_GET_LIQUIDITY_OF_INPUT_FIELDS = [
|
|
622
590
|
{
|
|
@@ -665,7 +633,7 @@ export async function qswapGetLiquidityOf(live, input, options) {
|
|
|
665
633
|
...options,
|
|
666
634
|
});
|
|
667
635
|
}
|
|
668
|
-
export const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE =
|
|
636
|
+
export const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE = 4;
|
|
669
637
|
export const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_SIZE = 48;
|
|
670
638
|
const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_FIELDS = [
|
|
671
639
|
{
|
|
@@ -714,7 +682,7 @@ export async function qswapQuoteExactQuInput(live, input, options) {
|
|
|
714
682
|
...options,
|
|
715
683
|
});
|
|
716
684
|
}
|
|
717
|
-
export const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE =
|
|
685
|
+
export const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE = 5;
|
|
718
686
|
export const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_SIZE = 48;
|
|
719
687
|
const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_FIELDS = [
|
|
720
688
|
{
|
|
@@ -763,7 +731,7 @@ export async function qswapQuoteExactQuOutput(live, input, options) {
|
|
|
763
731
|
...options,
|
|
764
732
|
});
|
|
765
733
|
}
|
|
766
|
-
export const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE =
|
|
734
|
+
export const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE = 6;
|
|
767
735
|
export const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_SIZE = 48;
|
|
768
736
|
const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_FIELDS = [
|
|
769
737
|
{
|
|
@@ -812,7 +780,7 @@ export async function qswapQuoteExactAssetInput(live, input, options) {
|
|
|
812
780
|
...options,
|
|
813
781
|
});
|
|
814
782
|
}
|
|
815
|
-
export const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE =
|
|
783
|
+
export const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE = 7;
|
|
816
784
|
export const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_SIZE = 48;
|
|
817
785
|
const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_FIELDS = [
|
|
818
786
|
{
|
|
@@ -861,24 +829,54 @@ export async function qswapQuoteExactAssetOutput(live, input, options) {
|
|
|
861
829
|
...options,
|
|
862
830
|
});
|
|
863
831
|
}
|
|
832
|
+
export const QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE = 8;
|
|
833
|
+
export const QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE = 0;
|
|
834
|
+
const QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
|
|
835
|
+
{
|
|
836
|
+
name: 'investRewardsFee',
|
|
837
|
+
type: 'uint32',
|
|
838
|
+
offset: 0,
|
|
839
|
+
byteLength: 4,
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
name: 'investRewardsId',
|
|
843
|
+
type: 'id',
|
|
844
|
+
offset: 4,
|
|
845
|
+
byteLength: 32,
|
|
846
|
+
},
|
|
847
|
+
];
|
|
848
|
+
export function decodeQswapInvestRewardsInfoOutput(data, publicKeyToIdentity) {
|
|
849
|
+
return decodePayload(data, QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
|
|
850
|
+
}
|
|
851
|
+
export async function qswapInvestRewardsInfo(live, options) {
|
|
852
|
+
return callContractFunction({
|
|
853
|
+
live,
|
|
854
|
+
contractIndex: QSWAP_CONTRACT_INDEX,
|
|
855
|
+
inputType: QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE,
|
|
856
|
+
inputSize: QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE,
|
|
857
|
+
inputFields: [],
|
|
858
|
+
outputFields: QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS,
|
|
859
|
+
structs: STRUCTS,
|
|
860
|
+
input: {},
|
|
861
|
+
...options,
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
864
|
export const qswap = {
|
|
865
865
|
contractIndex: QSWAP_CONTRACT_INDEX,
|
|
866
866
|
Fees: qswapFees,
|
|
867
|
-
InvestRewardsInfo: qswapInvestRewardsInfo,
|
|
868
867
|
GetPoolBasicState: qswapGetPoolBasicState,
|
|
869
868
|
GetLiquidityOf: qswapGetLiquidityOf,
|
|
870
869
|
QuoteExactQuInput: qswapQuoteExactQuInput,
|
|
871
870
|
QuoteExactQuOutput: qswapQuoteExactQuOutput,
|
|
872
871
|
QuoteExactAssetInput: qswapQuoteExactAssetInput,
|
|
873
872
|
QuoteExactAssetOutput: qswapQuoteExactAssetOutput,
|
|
874
|
-
|
|
875
|
-
decodeSetInvestRewardsInfoOutput: decodeQswapSetInvestRewardsInfoOutput,
|
|
873
|
+
InvestRewardsInfo: qswapInvestRewardsInfo,
|
|
876
874
|
buildIssueAssetInput: buildQswapIssueAssetInput,
|
|
877
875
|
decodeIssueAssetOutput: decodeQswapIssueAssetOutput,
|
|
878
|
-
buildCreatePoolInput: buildQswapCreatePoolInput,
|
|
879
|
-
decodeCreatePoolOutput: decodeQswapCreatePoolOutput,
|
|
880
876
|
buildTransferShareOwnershipAndPossessionInput: buildQswapTransferShareOwnershipAndPossessionInput,
|
|
881
877
|
decodeTransferShareOwnershipAndPossessionOutput: decodeQswapTransferShareOwnershipAndPossessionOutput,
|
|
878
|
+
buildCreatePoolInput: buildQswapCreatePoolInput,
|
|
879
|
+
decodeCreatePoolOutput: decodeQswapCreatePoolOutput,
|
|
882
880
|
buildAddLiquidityInput: buildQswapAddLiquidityInput,
|
|
883
881
|
decodeAddLiquidityOutput: decodeQswapAddLiquidityOutput,
|
|
884
882
|
buildRemoveLiquidityInput: buildQswapRemoveLiquidityInput,
|
|
@@ -891,6 +889,8 @@ export const qswap = {
|
|
|
891
889
|
decodeSwapExactAssetForQuOutput: decodeQswapSwapExactAssetForQuOutput,
|
|
892
890
|
buildSwapAssetForExactQuInput: buildQswapSwapAssetForExactQuInput,
|
|
893
891
|
decodeSwapAssetForExactQuOutput: decodeQswapSwapAssetForExactQuOutput,
|
|
892
|
+
buildSetInvestRewardsInfoInput: buildQswapSetInvestRewardsInfoInput,
|
|
893
|
+
decodeSetInvestRewardsInfoOutput: decodeQswapSetInvestRewardsInfoOutput,
|
|
894
894
|
buildTransferShareManagementRightsInput: buildQswapTransferShareManagementRightsInput,
|
|
895
895
|
decodeTransferShareManagementRightsOutput: decodeQswapTransferShareManagementRightsOutput,
|
|
896
896
|
};
|