@alephium/powfi-sdk 0.0.1-rc.2 → 0.0.1-rc.21
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/README.md +97 -1
- package/clmm/artifacts/BitmapWord.ral.json +1 -1
- package/clmm/artifacts/BitmapWordDeployer.ral.json +1 -1
- package/clmm/artifacts/CreateConfig.ral.json +1 -1
- package/clmm/artifacts/CreateLiquidPool.ral.json +1 -1
- package/clmm/artifacts/DexAccount.ral.json +1 -1
- package/clmm/artifacts/LiquidityAmountsTest.ral.json +1 -1
- package/clmm/artifacts/LiquidityManagmentTest.ral.json +1 -1
- package/clmm/artifacts/Pool.ral.json +14 -5
- package/clmm/artifacts/PoolConfig.ral.json +1 -1
- package/clmm/artifacts/PoolFactory.ral.json +1 -1
- package/clmm/artifacts/PoolRouterDemo.ral.json +2 -2
- package/clmm/artifacts/PoolUser.ral.json +1 -1
- package/clmm/artifacts/Position.ral.json +18 -4
- package/clmm/artifacts/PositionManager.ral.json +1 -1
- package/clmm/artifacts/SwapWithoutAccount.ral.json +2 -2
- package/clmm/artifacts/TestToken.ral.json +1 -1
- package/clmm/artifacts/Tick.ral.json +1 -1
- package/clmm/artifacts/TickBitmapTest.ral.json +1 -1
- package/clmm/artifacts/ts/Pool.ts +14 -2
- package/clmm/artifacts/ts/Position.ts +37 -3
- package/cpmm/artifacts/scripts/CreatePairAndAddLiquidity.ral.json +6 -3
- package/cpmm/artifacts/ts/scripts.ts +1 -0
- package/lib/index.d.mts +242 -119
- package/lib/index.d.ts +242 -119
- package/lib/index.js +627 -329
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +628 -329
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -8
- package/src/clmm/clmm.ts +70 -47
- package/src/clmm/liquidity.ts +1 -1
- package/src/clmm/pool.ts +15 -17
- package/src/clmm/tick.ts +21 -33
- package/src/clmm/types.ts +12 -12
- package/src/common/error.ts +7 -7
- package/src/common/types.ts +1 -1
- package/src/cpmm/cpmm.ts +135 -103
- package/src/cpmm/types.ts +48 -42
- package/src/index.ts +1 -1
- package/src/moduleBase.ts +3 -3
- package/src/{zeta.ts → powfi.ts} +5 -5
- package/src/staking/staking.ts +31 -24
- package/src/token/token.ts +2 -2
- package/staking/artifacts/AlphUnstakeVault.ral.json +13 -3
- package/staking/artifacts/XAlphStakeVault.ral.json +1 -1
- package/staking/artifacts/XAlphToken.ral.json +139 -6
- package/staking/artifacts/XAlphUnlockAndStartUnstake.ral.json +2 -2
- package/staking/artifacts/examples/GovernanceDemo.ral.json +1 -1
- package/staking/artifacts/examples/RewardSharingVault.ral.json +1 -1
- package/staking/artifacts/ts/AlphUnstakeVault.ts +40 -1
- package/staking/artifacts/ts/XAlphToken.ts +209 -8
- package/staking/artifacts/ts/scripts.ts +0 -10
- package/staking/artifacts/utils/FullMathTest.ral.json +1 -1
- package/staking/artifacts/utils/TestDynamicArrayByteVec32.ral.json +1 -1
- package/staking/artifacts/utils/TestDynamicSortedArrayForU256.ral.json +1 -1
- package/staking/artifacts/utils/TestMerkleProof.ral.json +1 -1
- package/staking/deployments/.deployments.devnet.json +45 -44
- package/staking/deployments/.deployments.testnet.json +23 -23
- package/staking/artifacts/AlphStakeAndLock.ral.json +0 -31
|
@@ -47,15 +47,31 @@ export namespace XAlphTokenTypes {
|
|
|
47
47
|
unstakeVaultTemplateId: HexString;
|
|
48
48
|
maxActiveUnstakeRequestsPerUser: bigint;
|
|
49
49
|
unstakeDuration: bigint;
|
|
50
|
-
|
|
50
|
+
totalDepositedAlph: bigint;
|
|
51
|
+
totalXAlphSupply: bigint;
|
|
51
52
|
lastUnstakeVaultIndex: bigint;
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
export type State = ContractState<Fields>;
|
|
55
56
|
|
|
56
|
-
export type StakedEvent = ContractEvent<{
|
|
57
|
+
export type StakedEvent = ContractEvent<{
|
|
58
|
+
to: Address;
|
|
59
|
+
alphAmount: bigint;
|
|
60
|
+
xAlphAmount: bigint;
|
|
61
|
+
}>;
|
|
57
62
|
export type UnstakeScheduledEvent = ContractEvent<{
|
|
58
63
|
to: Address;
|
|
64
|
+
xAlphAmount: bigint;
|
|
65
|
+
alphAmount: bigint;
|
|
66
|
+
}>;
|
|
67
|
+
export type UnstakeCancelledEvent = ContractEvent<{
|
|
68
|
+
to: Address;
|
|
69
|
+
xAlphAmount: bigint;
|
|
70
|
+
claimedAlphAmount: bigint;
|
|
71
|
+
restakedAlphAmount: bigint;
|
|
72
|
+
}>;
|
|
73
|
+
export type RewardDepositedEvent = ContractEvent<{
|
|
74
|
+
from: Address;
|
|
59
75
|
amount: bigint;
|
|
60
76
|
}>;
|
|
61
77
|
|
|
@@ -113,14 +129,26 @@ export namespace XAlphTokenTypes {
|
|
|
113
129
|
params: Omit<CallContractParams<{}>, "args">;
|
|
114
130
|
result: CallContractResult<HexString>;
|
|
115
131
|
};
|
|
132
|
+
mulDiv: {
|
|
133
|
+
params: CallContractParams<{ a: bigint; b: bigint; denominator: bigint }>;
|
|
134
|
+
result: CallContractResult<bigint>;
|
|
135
|
+
};
|
|
136
|
+
getTotalDepositedAlph: {
|
|
137
|
+
params: Omit<CallContractParams<{}>, "args">;
|
|
138
|
+
result: CallContractResult<bigint>;
|
|
139
|
+
};
|
|
116
140
|
stake: {
|
|
117
141
|
params: CallContractParams<{ amount: bigint }>;
|
|
118
|
-
result: CallContractResult<
|
|
142
|
+
result: CallContractResult<bigint>;
|
|
119
143
|
};
|
|
120
144
|
startUnstake: {
|
|
121
145
|
params: CallContractParams<{ amount: bigint }>;
|
|
122
146
|
result: CallContractResult<HexString>;
|
|
123
147
|
};
|
|
148
|
+
depositReward: {
|
|
149
|
+
params: CallContractParams<{ amount: bigint }>;
|
|
150
|
+
result: CallContractResult<null>;
|
|
151
|
+
};
|
|
124
152
|
getActiveUnstakeVaultIndexes: {
|
|
125
153
|
params: CallContractParams<{ caller: Address }>;
|
|
126
154
|
result: CallContractResult<HexString>;
|
|
@@ -133,6 +161,10 @@ export namespace XAlphTokenTypes {
|
|
|
133
161
|
params: CallContractParams<{ vaultIndex: bigint; amount: bigint }>;
|
|
134
162
|
result: CallContractResult<null>;
|
|
135
163
|
};
|
|
164
|
+
cancelUnstake: {
|
|
165
|
+
params: CallContractParams<{ vaultIndex: bigint }>;
|
|
166
|
+
result: CallContractResult<bigint>;
|
|
167
|
+
};
|
|
136
168
|
}
|
|
137
169
|
export type CallMethodParams<T extends keyof CallMethodTable> =
|
|
138
170
|
CallMethodTable[T]["params"];
|
|
@@ -219,6 +251,18 @@ export namespace XAlphTokenTypes {
|
|
|
219
251
|
params: Omit<SignExecuteContractMethodParams<{}>, "args">;
|
|
220
252
|
result: SignExecuteScriptTxResult;
|
|
221
253
|
};
|
|
254
|
+
mulDiv: {
|
|
255
|
+
params: SignExecuteContractMethodParams<{
|
|
256
|
+
a: bigint;
|
|
257
|
+
b: bigint;
|
|
258
|
+
denominator: bigint;
|
|
259
|
+
}>;
|
|
260
|
+
result: SignExecuteScriptTxResult;
|
|
261
|
+
};
|
|
262
|
+
getTotalDepositedAlph: {
|
|
263
|
+
params: Omit<SignExecuteContractMethodParams<{}>, "args">;
|
|
264
|
+
result: SignExecuteScriptTxResult;
|
|
265
|
+
};
|
|
222
266
|
stake: {
|
|
223
267
|
params: SignExecuteContractMethodParams<{ amount: bigint }>;
|
|
224
268
|
result: SignExecuteScriptTxResult;
|
|
@@ -227,6 +271,10 @@ export namespace XAlphTokenTypes {
|
|
|
227
271
|
params: SignExecuteContractMethodParams<{ amount: bigint }>;
|
|
228
272
|
result: SignExecuteScriptTxResult;
|
|
229
273
|
};
|
|
274
|
+
depositReward: {
|
|
275
|
+
params: SignExecuteContractMethodParams<{ amount: bigint }>;
|
|
276
|
+
result: SignExecuteScriptTxResult;
|
|
277
|
+
};
|
|
230
278
|
getActiveUnstakeVaultIndexes: {
|
|
231
279
|
params: SignExecuteContractMethodParams<{ caller: Address }>;
|
|
232
280
|
result: SignExecuteScriptTxResult;
|
|
@@ -245,6 +293,10 @@ export namespace XAlphTokenTypes {
|
|
|
245
293
|
}>;
|
|
246
294
|
result: SignExecuteScriptTxResult;
|
|
247
295
|
};
|
|
296
|
+
cancelUnstake: {
|
|
297
|
+
params: SignExecuteContractMethodParams<{ vaultIndex: bigint }>;
|
|
298
|
+
result: SignExecuteScriptTxResult;
|
|
299
|
+
};
|
|
248
300
|
}
|
|
249
301
|
export type SignExecuteMethodParams<T extends keyof SignExecuteMethodTable> =
|
|
250
302
|
SignExecuteMethodTable[T]["params"];
|
|
@@ -266,7 +318,12 @@ class Factory extends ContractFactory<
|
|
|
266
318
|
);
|
|
267
319
|
}
|
|
268
320
|
|
|
269
|
-
eventIndex = {
|
|
321
|
+
eventIndex = {
|
|
322
|
+
Staked: 0,
|
|
323
|
+
UnstakeScheduled: 1,
|
|
324
|
+
UnstakeCancelled: 2,
|
|
325
|
+
RewardDeposited: 3,
|
|
326
|
+
};
|
|
270
327
|
consts = {
|
|
271
328
|
IntByteLength: BigInt("32"),
|
|
272
329
|
ErrorCode: {
|
|
@@ -274,12 +331,16 @@ class Factory extends ContractFactory<
|
|
|
274
331
|
IndexOutOfBound: BigInt("551"),
|
|
275
332
|
InvalidByteVecLength: BigInt("552"),
|
|
276
333
|
},
|
|
334
|
+
FullMathError: { DivByZero: BigInt("350"), MulDivOverflow: BigInt("351") },
|
|
277
335
|
ErrorCodes: {
|
|
278
336
|
AssetAddressCallerOnly: BigInt("10"),
|
|
279
337
|
TooManyActiveUnstakeVaults: BigInt("11"),
|
|
280
338
|
InvalidUnstakeDuration: BigInt("12"),
|
|
281
339
|
NonExistantUnstakeVault: BigInt("13"),
|
|
282
340
|
AmountMustBeGreaterThanZero: BigInt("14"),
|
|
341
|
+
ZeroXAlphOutput: BigInt("15"),
|
|
342
|
+
ZeroAlphOutput: BigInt("16"),
|
|
343
|
+
NoStakers: BigInt("17"),
|
|
283
344
|
},
|
|
284
345
|
};
|
|
285
346
|
|
|
@@ -391,13 +452,35 @@ class Factory extends ContractFactory<
|
|
|
391
452
|
): Promise<TestContractResult<HexString, XAlphTokenTypes.Maps>> => {
|
|
392
453
|
return testMethod(this, "empty", params, getContractByCodeHash);
|
|
393
454
|
},
|
|
455
|
+
mulDiv: async (
|
|
456
|
+
params: TestContractParams<
|
|
457
|
+
XAlphTokenTypes.Fields,
|
|
458
|
+
{ a: bigint; b: bigint; denominator: bigint },
|
|
459
|
+
XAlphTokenTypes.Maps
|
|
460
|
+
>
|
|
461
|
+
): Promise<TestContractResult<bigint, XAlphTokenTypes.Maps>> => {
|
|
462
|
+
return testMethod(this, "mulDiv", params, getContractByCodeHash);
|
|
463
|
+
},
|
|
464
|
+
getTotalDepositedAlph: async (
|
|
465
|
+
params: Omit<
|
|
466
|
+
TestContractParams<XAlphTokenTypes.Fields, never, XAlphTokenTypes.Maps>,
|
|
467
|
+
"args"
|
|
468
|
+
>
|
|
469
|
+
): Promise<TestContractResult<bigint, XAlphTokenTypes.Maps>> => {
|
|
470
|
+
return testMethod(
|
|
471
|
+
this,
|
|
472
|
+
"getTotalDepositedAlph",
|
|
473
|
+
params,
|
|
474
|
+
getContractByCodeHash
|
|
475
|
+
);
|
|
476
|
+
},
|
|
394
477
|
stake: async (
|
|
395
478
|
params: TestContractParams<
|
|
396
479
|
XAlphTokenTypes.Fields,
|
|
397
480
|
{ amount: bigint },
|
|
398
481
|
XAlphTokenTypes.Maps
|
|
399
482
|
>
|
|
400
|
-
): Promise<TestContractResult<
|
|
483
|
+
): Promise<TestContractResult<bigint, XAlphTokenTypes.Maps>> => {
|
|
401
484
|
return testMethod(this, "stake", params, getContractByCodeHash);
|
|
402
485
|
},
|
|
403
486
|
startUnstake: async (
|
|
@@ -409,6 +492,15 @@ class Factory extends ContractFactory<
|
|
|
409
492
|
): Promise<TestContractResult<HexString, XAlphTokenTypes.Maps>> => {
|
|
410
493
|
return testMethod(this, "startUnstake", params, getContractByCodeHash);
|
|
411
494
|
},
|
|
495
|
+
depositReward: async (
|
|
496
|
+
params: TestContractParams<
|
|
497
|
+
XAlphTokenTypes.Fields,
|
|
498
|
+
{ amount: bigint },
|
|
499
|
+
XAlphTokenTypes.Maps
|
|
500
|
+
>
|
|
501
|
+
): Promise<TestContractResult<null, XAlphTokenTypes.Maps>> => {
|
|
502
|
+
return testMethod(this, "depositReward", params, getContractByCodeHash);
|
|
503
|
+
},
|
|
412
504
|
getActiveUnstakeVaultIndexes: async (
|
|
413
505
|
params: TestContractParams<
|
|
414
506
|
XAlphTokenTypes.Fields,
|
|
@@ -446,6 +538,15 @@ class Factory extends ContractFactory<
|
|
|
446
538
|
): Promise<TestContractResult<null, XAlphTokenTypes.Maps>> => {
|
|
447
539
|
return testMethod(this, "claimUnstaked", params, getContractByCodeHash);
|
|
448
540
|
},
|
|
541
|
+
cancelUnstake: async (
|
|
542
|
+
params: TestContractParams<
|
|
543
|
+
XAlphTokenTypes.Fields,
|
|
544
|
+
{ vaultIndex: bigint },
|
|
545
|
+
XAlphTokenTypes.Maps
|
|
546
|
+
>
|
|
547
|
+
): Promise<TestContractResult<bigint, XAlphTokenTypes.Maps>> => {
|
|
548
|
+
return testMethod(this, "cancelUnstake", params, getContractByCodeHash);
|
|
549
|
+
},
|
|
449
550
|
};
|
|
450
551
|
|
|
451
552
|
stateForTest(
|
|
@@ -462,8 +563,8 @@ class Factory extends ContractFactory<
|
|
|
462
563
|
export const XAlphToken = new Factory(
|
|
463
564
|
Contract.fromJson(
|
|
464
565
|
XAlphTokenContractJson,
|
|
465
|
-
"=
|
|
466
|
-
"
|
|
566
|
+
"=60+c=1-1=2-6+f9=3-1+3=2-1+5=2+4f74=1-2+de=1433-1+a=269-1+b=34+7a7e0214696e73657274206174206d617020706174683a2000=443-1+2=79-1+b=69-1+c=40+7a7e021472656d6f7665206174206d617020706174683a2000=83-1+d=273-1+c=40+7a7e021472656d6f7665206174206d617020706174683a2000=84",
|
|
567
|
+
"1a0bd323d964c45cd5451b7d7d049316f533d194800f0fe76892bddee137f8ce",
|
|
467
568
|
types.AllStructs
|
|
468
569
|
)
|
|
469
570
|
);
|
|
@@ -517,9 +618,38 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
517
618
|
);
|
|
518
619
|
}
|
|
519
620
|
|
|
621
|
+
subscribeUnstakeCancelledEvent(
|
|
622
|
+
options: EventSubscribeOptions<XAlphTokenTypes.UnstakeCancelledEvent>,
|
|
623
|
+
fromCount?: number
|
|
624
|
+
): EventSubscription {
|
|
625
|
+
return subscribeContractEvent(
|
|
626
|
+
XAlphToken.contract,
|
|
627
|
+
this,
|
|
628
|
+
options,
|
|
629
|
+
"UnstakeCancelled",
|
|
630
|
+
fromCount
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
subscribeRewardDepositedEvent(
|
|
635
|
+
options: EventSubscribeOptions<XAlphTokenTypes.RewardDepositedEvent>,
|
|
636
|
+
fromCount?: number
|
|
637
|
+
): EventSubscription {
|
|
638
|
+
return subscribeContractEvent(
|
|
639
|
+
XAlphToken.contract,
|
|
640
|
+
this,
|
|
641
|
+
options,
|
|
642
|
+
"RewardDeposited",
|
|
643
|
+
fromCount
|
|
644
|
+
);
|
|
645
|
+
}
|
|
646
|
+
|
|
520
647
|
subscribeAllEvents(
|
|
521
648
|
options: EventSubscribeOptions<
|
|
522
|
-
|
|
649
|
+
| XAlphTokenTypes.StakedEvent
|
|
650
|
+
| XAlphTokenTypes.UnstakeScheduledEvent
|
|
651
|
+
| XAlphTokenTypes.UnstakeCancelledEvent
|
|
652
|
+
| XAlphTokenTypes.RewardDepositedEvent
|
|
523
653
|
>,
|
|
524
654
|
fromCount?: number
|
|
525
655
|
): EventSubscription {
|
|
@@ -658,6 +788,28 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
658
788
|
getContractByCodeHash
|
|
659
789
|
);
|
|
660
790
|
},
|
|
791
|
+
mulDiv: async (
|
|
792
|
+
params: XAlphTokenTypes.CallMethodParams<"mulDiv">
|
|
793
|
+
): Promise<XAlphTokenTypes.CallMethodResult<"mulDiv">> => {
|
|
794
|
+
return callMethod(
|
|
795
|
+
XAlphToken,
|
|
796
|
+
this,
|
|
797
|
+
"mulDiv",
|
|
798
|
+
params,
|
|
799
|
+
getContractByCodeHash
|
|
800
|
+
);
|
|
801
|
+
},
|
|
802
|
+
getTotalDepositedAlph: async (
|
|
803
|
+
params?: XAlphTokenTypes.CallMethodParams<"getTotalDepositedAlph">
|
|
804
|
+
): Promise<XAlphTokenTypes.CallMethodResult<"getTotalDepositedAlph">> => {
|
|
805
|
+
return callMethod(
|
|
806
|
+
XAlphToken,
|
|
807
|
+
this,
|
|
808
|
+
"getTotalDepositedAlph",
|
|
809
|
+
params === undefined ? {} : params,
|
|
810
|
+
getContractByCodeHash
|
|
811
|
+
);
|
|
812
|
+
},
|
|
661
813
|
stake: async (
|
|
662
814
|
params: XAlphTokenTypes.CallMethodParams<"stake">
|
|
663
815
|
): Promise<XAlphTokenTypes.CallMethodResult<"stake">> => {
|
|
@@ -680,6 +832,17 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
680
832
|
getContractByCodeHash
|
|
681
833
|
);
|
|
682
834
|
},
|
|
835
|
+
depositReward: async (
|
|
836
|
+
params: XAlphTokenTypes.CallMethodParams<"depositReward">
|
|
837
|
+
): Promise<XAlphTokenTypes.CallMethodResult<"depositReward">> => {
|
|
838
|
+
return callMethod(
|
|
839
|
+
XAlphToken,
|
|
840
|
+
this,
|
|
841
|
+
"depositReward",
|
|
842
|
+
params,
|
|
843
|
+
getContractByCodeHash
|
|
844
|
+
);
|
|
845
|
+
},
|
|
683
846
|
getActiveUnstakeVaultIndexes: async (
|
|
684
847
|
params: XAlphTokenTypes.CallMethodParams<"getActiveUnstakeVaultIndexes">
|
|
685
848
|
): Promise<
|
|
@@ -715,6 +878,17 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
715
878
|
getContractByCodeHash
|
|
716
879
|
);
|
|
717
880
|
},
|
|
881
|
+
cancelUnstake: async (
|
|
882
|
+
params: XAlphTokenTypes.CallMethodParams<"cancelUnstake">
|
|
883
|
+
): Promise<XAlphTokenTypes.CallMethodResult<"cancelUnstake">> => {
|
|
884
|
+
return callMethod(
|
|
885
|
+
XAlphToken,
|
|
886
|
+
this,
|
|
887
|
+
"cancelUnstake",
|
|
888
|
+
params,
|
|
889
|
+
getContractByCodeHash
|
|
890
|
+
);
|
|
891
|
+
},
|
|
718
892
|
};
|
|
719
893
|
|
|
720
894
|
transact = {
|
|
@@ -778,6 +952,23 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
778
952
|
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"empty">> => {
|
|
779
953
|
return signExecuteMethod(XAlphToken, this, "empty", params);
|
|
780
954
|
},
|
|
955
|
+
mulDiv: async (
|
|
956
|
+
params: XAlphTokenTypes.SignExecuteMethodParams<"mulDiv">
|
|
957
|
+
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"mulDiv">> => {
|
|
958
|
+
return signExecuteMethod(XAlphToken, this, "mulDiv", params);
|
|
959
|
+
},
|
|
960
|
+
getTotalDepositedAlph: async (
|
|
961
|
+
params: XAlphTokenTypes.SignExecuteMethodParams<"getTotalDepositedAlph">
|
|
962
|
+
): Promise<
|
|
963
|
+
XAlphTokenTypes.SignExecuteMethodResult<"getTotalDepositedAlph">
|
|
964
|
+
> => {
|
|
965
|
+
return signExecuteMethod(
|
|
966
|
+
XAlphToken,
|
|
967
|
+
this,
|
|
968
|
+
"getTotalDepositedAlph",
|
|
969
|
+
params
|
|
970
|
+
);
|
|
971
|
+
},
|
|
781
972
|
stake: async (
|
|
782
973
|
params: XAlphTokenTypes.SignExecuteMethodParams<"stake">
|
|
783
974
|
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"stake">> => {
|
|
@@ -788,6 +979,11 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
788
979
|
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"startUnstake">> => {
|
|
789
980
|
return signExecuteMethod(XAlphToken, this, "startUnstake", params);
|
|
790
981
|
},
|
|
982
|
+
depositReward: async (
|
|
983
|
+
params: XAlphTokenTypes.SignExecuteMethodParams<"depositReward">
|
|
984
|
+
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"depositReward">> => {
|
|
985
|
+
return signExecuteMethod(XAlphToken, this, "depositReward", params);
|
|
986
|
+
},
|
|
791
987
|
getActiveUnstakeVaultIndexes: async (
|
|
792
988
|
params: XAlphTokenTypes.SignExecuteMethodParams<"getActiveUnstakeVaultIndexes">
|
|
793
989
|
): Promise<
|
|
@@ -812,6 +1008,11 @@ export class XAlphTokenInstance extends ContractInstance {
|
|
|
812
1008
|
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"claimUnstaked">> => {
|
|
813
1009
|
return signExecuteMethod(XAlphToken, this, "claimUnstaked", params);
|
|
814
1010
|
},
|
|
1011
|
+
cancelUnstake: async (
|
|
1012
|
+
params: XAlphTokenTypes.SignExecuteMethodParams<"cancelUnstake">
|
|
1013
|
+
): Promise<XAlphTokenTypes.SignExecuteMethodResult<"cancelUnstake">> => {
|
|
1014
|
+
return signExecuteMethod(XAlphToken, this, "cancelUnstake", params);
|
|
1015
|
+
},
|
|
815
1016
|
};
|
|
816
1017
|
|
|
817
1018
|
async multicall<Calls extends XAlphTokenTypes.MultiCallParams>(
|
|
@@ -12,19 +12,9 @@ import {
|
|
|
12
12
|
HexString,
|
|
13
13
|
} from "@alephium/web3";
|
|
14
14
|
import { getContractByCodeHash } from "./contracts";
|
|
15
|
-
import { default as AlphStakeAndLockScriptJson } from "../AlphStakeAndLock.ral.json";
|
|
16
15
|
import { default as XAlphUnlockAndStartUnstakeScriptJson } from "../XAlphUnlockAndStartUnstake.ral.json";
|
|
17
16
|
import * as types from "./types";
|
|
18
17
|
|
|
19
|
-
export const AlphStakeAndLock = new ExecutableScript<{
|
|
20
|
-
xAlphToken: HexString;
|
|
21
|
-
xAlphStakeVault: HexString;
|
|
22
|
-
amount: bigint;
|
|
23
|
-
}>(
|
|
24
|
-
Script.fromJson(AlphStakeAndLockScriptJson, "", types.AllStructs),
|
|
25
|
-
getContractByCodeHash
|
|
26
|
-
);
|
|
27
|
-
|
|
28
18
|
export const XAlphUnlockAndStartUnstake = new ExecutableScript<{
|
|
29
19
|
xAlphToken: HexString;
|
|
30
20
|
xAlphStakeVault: HexString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "v4.
|
|
2
|
+
"version": "v4.3.1",
|
|
3
3
|
"name": "FullMathTest",
|
|
4
4
|
"bytecode": "000140ea0000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e160216083736371708160416083702",
|
|
5
5
|
"codeHash": "fd74df789eb5974e11dfa74960ba1323e0530fe5e1fe0aa43a6c3c9bf9ee1d98",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "v4.
|
|
2
|
+
"version": "v4.3.1",
|
|
3
3
|
"name": "TestDynamicArrayByteVec32",
|
|
4
4
|
"bytecode": "00074028407340af40cc40fc411a4128010002030112d3545eacd4160116000005311342277b160113202c170216001602160213202a620201000204014028d3083a358916004313202e0c2f1342267b16014313202f1342287b1600000517020c170316031602314c0e1600160300001601414c0316033f0216030d2a17034a2e0b0201000203011fd3694941c216004313202e0c2f1342267b16014313202f1342287b160016010001170216020b244c031600024a05160016023d00040201000202010dd354ad273416004313202e0c2f1342267b160016014402010002030118d34b2e25b7160116000005311342277b160113202c170216000c1602621600160213202a16004362440201000101010ed30041471116004313202e0c2f1342267b16004313202d02010000000103d3676c3c33140002",
|
|
5
5
|
"codeHash": "594861ab1850f3d1872ee687c87ddfeca8746bfe5b9ade07fabc4ca27c56661c",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "v4.
|
|
2
|
+
"version": "v4.3.1",
|
|
3
3
|
"name": "TestDynamicSortedArrayForU256",
|
|
4
4
|
"bytecode": "0008402d4056408840a640f341234141414f010002040115d3cee93194160116000006311342277b160113202c170216001602160213202a62170316037102010002030114d33cd5e72916004313202e0c2f1342267b16004313202d1702160016010c1602000402010002030119d32cabd28216004313202e0c2f1342267b160016010001170216020b244c031600024a05160016023d00050201000202010ed31bc25d3416004313202e0c2f1342267b160016016b44020000040601402a16021603344c020b02160216032a0e2d17041600160400001705160516012f4c0316043f0216051601314c091600160116040d2a16030004024a061600160116021604000402010002030118d34b2e25b7160116000006311342277b160113202c170216000c1602621600160213202a16004362440201000101010ed30041471116004313202e0c2f1342267b16004313202d02010000000103d3676c3c33140002",
|
|
5
5
|
"codeHash": "86f2584a16af632c63b6c1ead625d4d53f11b9a3f2d465010085bd740be281d3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "v4.
|
|
2
|
+
"version": "v4.3.1",
|
|
3
3
|
"name": "TestMerkleProof",
|
|
4
4
|
"bytecode": "01050e4027407b409b40a5010000000103d393f264e8a0000200000101000c16004313202f136afb7b1600a10005a000b45f0000020601402e16014313202f136afa7b160117021600431703160313202e0c2f136af97b0c170416041603314c1016001604160413202a6217051605160200031702160413202a17044a2c160271a000712f02000002020110160071160171314c05160016014400044a04160116004400040200000101010316004f02",
|
|
5
5
|
"codeHash": "a6d0eadb4c4fbe25c0155c0a2e31ba6cc7a993cd27b3f708c6af418af44a7c57",
|
|
@@ -2,72 +2,73 @@
|
|
|
2
2
|
"deployerAddress": "1DrDyTr9RpRsQnDnXo2YRiPzPW4ooHX5LLoqXrqfMrpQH",
|
|
3
3
|
"contracts": {
|
|
4
4
|
"AlphUnstakeVault": {
|
|
5
|
-
"txId": "
|
|
6
|
-
"unsignedTx": "
|
|
7
|
-
"signature": "
|
|
5
|
+
"txId": "16a8a22c51be10366482156b0636d60e4c25f65aa9a106ed1ba60e66a6314cd4",
|
|
6
|
+
"unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a21441c1060640ea40f841384172419941b30000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e160216083736371708160416083702010000000103d3f10c9d97ce020201000003014020d3223281b2ce040c3313167b5617001600ce033413177b1600ce032b1701ce0217021601ce04314c0516021601ce04000017021602a0002b0201020102011fd30e00e856b417011601ce0077457a4b04181601ce014513147b160000023213157bce011600a8a00016002aa100a000ce022f02010200020113d32bc3cebdb417001600ce00774513147bce02a0002b1701ce00771601a816010201020001000bd38e18691cb417001600ce00774513147bce01b014402b050300040300000000000000000000000000000000000000000000000000000000000000000200020002001403010200ad188000e2fcc1174876e8000137a44447b2131bc1d38995e2b3de8e50d1b8604ecfaaba267d3c183741c7febafbae43f6000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c751b028106515834bac980000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000",
|
|
7
|
+
"signature": "4c69d8455a2fac528ee94beff73f2490dd2d9f1fc04a505d3e4f00c1777c093c518daebf52fbe6cc0012b36daafda466d8c46735457e038a80cac4f23aa01c12",
|
|
8
8
|
"gasPrice": "100000000000",
|
|
9
|
-
"gasAmount":
|
|
10
|
-
"blockHash": "
|
|
11
|
-
"codeHash": "
|
|
9
|
+
"gasAmount": 58108,
|
|
10
|
+
"blockHash": "013189d6fc7f7fc93a7005a6226aff299792d750b318fb03bd5acf8a6ce83990",
|
|
11
|
+
"codeHash": "1a32644728103165e4acccf7237073aaf50bd355dd1475663e518795352177cd",
|
|
12
12
|
"contractInstance": {
|
|
13
|
-
"address": "
|
|
14
|
-
"contractId": "
|
|
13
|
+
"address": "2Bu1aZPaD7wbEjuABPH9SmoUU76rFGZgRwpBBVeoN8FtK",
|
|
14
|
+
"contractId": "ffad913961ec8994fbdf4b6eeba50f9413cfb99db652dd50ed40ebd8fc149700",
|
|
15
15
|
"groupIndex": 0
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"XAlphToken": {
|
|
19
|
-
"txId": "
|
|
20
|
-
"unsignedTx": "
|
|
21
|
-
"signature": "
|
|
19
|
+
"txId": "f1d8fcbb9d468ee06533d083554d49f5c99f0b41a68134ff2e36cc881d66436f",
|
|
20
|
+
"unsignedTx": "000401010103000000091500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a21445fa0a1509121b40244051407a40ac40ca4117414741654173425d426b42c643cb43f94433445544f745d1010000000102ce0002010000000102ce0102010000000102ce0202010000000102a00102010002040115d3cee9319416011600000a311342277b160113202c170216001602160213202a62170316037102010002030114d33cd5e72916004313202e0c2f1342267b16004313202d1702160016010c1602000802010002030119d32cabd28216004313202e0c2f1342267b160016010005170216020b244c031600024a05160016023d00090201000202010ed31bc25d3416004313202e0c2f1342267b160016016b44020000040601402a16021603344c020b02160216032a0e2d17041600160400041705160516012f4c0316043f0216051601314c091600160116040d2a16030008024a061600160116021604000802010002030118d34b2e25b716011600000a311342277b160113202c170216000c1602621600160213202a16004362440201000101010ed30041471116004313202e0c2f1342267b16004313202d02010000000103d3676c3c331400020000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e160216083736371708160416083702010000000103d38719c92ea0000201010103014032d38bbc9beeb41701160148130a7b16000c33130e7ba0010c2f4c0216004a041600a001a000000c170216020c33130f7b1601b11602ab16011600a9a00016002aa100a00116022aa10105160116001602601602020101010701407ad33538a49fb41701160148130a7bce050c33130c7b16000c33130e7b1600a000a001000c170216020c3313107ba0020d2aa102140a5f5f6d61705f5f305f5f16014744cbc54c1d0c0d0d140a5f5f6d61705f5f305f5f16014744cb010117031603000ace0431130b7b1603a00200070c0e0c140a5f5f6d61705f5f305f5f16014744cb01024a0bca140a5f5f6d61705f5f305f5f160147447a7e0214696e73657274206174206d617020706174683a2000b1a0026bd201011601b11600acb11601160256ce051305640c13016417051704b21602a2160147a0024044ce0316041605c11706a00016022ba100a00116002ba1010616011600160260160602010701020018d3fe1110a1b4170116000c33130e7ba0010c3313117b16011600a9a00016002aa10008160116005f010001010115d38072397d140a5f5f6d61705f5f305f5f16004744cbc5194c021400020c0d0d140a5f5f6d61705f5f305f5f16004744cb010102010002030111d3fd3d3af616004716014044cb17021602c5130d7b0c0d160201020201000206004042d38bb32147b4170216024716004044cb170316010c33130e7b16010d0d16030103170416044c402b0c0d0d140a5f5f6d61705f5f305f5f16024744cb01011600000617051605430c2f4c0c16020d0c140a5f5f6d61705f5f305f5f160247447a7e021472656d6f7665206174206d617020706174683a2000cb01034a0a16050c0e0c140a5f5f6d61705f5f305f5f16024744cb01020c0c1603010501020106014065d30bdc6a97b41701160148130a7b16014716004044cb17021602c5130d7b0c0d1602010417030c0c16020105a0010c2f4c0216034a041603a001a000000c170416040c33130f7b1601b11604aba00016032aa100a00116042aa1010c0d0d140a5f5f6d61705f5f305f5f16014744cb01011600000617051605430c2f4c0c16010d0c140a5f5f6d61705f5f305f5f160147447a7e021472656d6f7665206174206d617020706174683a2000cb01034a0a16050c0e0c140a5f5f6d61705f5f305f5f16014744cb0102071601160416036016040214404907030558414c5048030b5374616b656420414c50480212034020ffad913961ec8994fbdf4b6eeba50f9413cfb99db652dd50ed40ebd8fc1497000210028000ea600306414c5048000114070302000200020013c8033b2e3c9fd0803ce8000000ae188000ebf6c1174876e8000137a44447137e9bd694f4f19c1398b57ff0f1a8838452fffa4b1629ea24f3c6e83b38b5dc000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c751b0280eec5a2624e7a80000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000",
|
|
21
|
+
"signature": "c462d4ca9f4ab6c1c0d37bb4f34b6f02deae0f7f81f93ac1f76a0f083dd8dabc309f1a077d34323a00a60f1ce679ec6af1ac01fcec313c71715477da7ca7f4a5",
|
|
22
22
|
"gasPrice": "100000000000",
|
|
23
|
-
"gasAmount":
|
|
24
|
-
"blockHash": "
|
|
25
|
-
"codeHash": "
|
|
23
|
+
"gasAmount": 60406,
|
|
24
|
+
"blockHash": "00fb06e284202d908de8943e86d3c98bb2673ee501d54974ddf4581266ccf0f0",
|
|
25
|
+
"codeHash": "c97645db943c8c70c4e5fd49e6060446d9f66183f077204d107c52bc471342c4",
|
|
26
26
|
"contractInstance": {
|
|
27
|
-
"address": "
|
|
28
|
-
"contractId": "
|
|
27
|
+
"address": "uVBXGxD2rSb8dms1rf4dcGV2YxvK3B55nGw2DKH9uw6f",
|
|
28
|
+
"contractId": "0bd7e14c31b8979dcdc10da8eb346d9578b2decb983d2cd0d74c888215d84900",
|
|
29
29
|
"groupIndex": 0
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"issueTokenAmount": "1000000000000000000000000000"
|
|
31
32
|
},
|
|
32
|
-
"
|
|
33
|
-
"txId": "
|
|
34
|
-
"unsignedTx": "
|
|
35
|
-
"signature": "
|
|
33
|
+
"GovernanceDemo": {
|
|
34
|
+
"txId": "9b023577c8c29ea26325571e701a805d622a8122a57ddb37b5e5f30acc6e650b",
|
|
35
|
+
"unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a214440d090c40e241c942404262427642b742f142ff43cd43d843e343f30100020600405ad3926b380bb417021602ce00774513087b140a5f5f6d61705f5f305f5f16004744cbc54c403f0c0d0d140a5f5f6d61705f5f305f5f16004744cb1705160501010d0d0d1605010117041703000b7a4c041816030c304c180c0d0d140a5f5f6d61705f5f315f5f16034044cb010116012a0c0e0c140a5f5f6d61705f5f315f5f16034044cb0102a00016012aa100160416012a0d0e0c140a5f5f6d61705f5f305f5f16004744cb01024a0bca140a5f5f6d61705f5f305f5f160047447a7e0214696e73657274206174206d617020706174683a2000b10c1601d2010201000207004060d365b06caeb417021602ce00774513087b140a5f5f6d61705f5f305f5f16004744cbc50d7b0c0d0d140a5f5f6d61705f5f305f5f16004744cb1706160601010d0d0d1606010117041703160416012b170516050d0e0c140a5f5f6d61705f5f305f5f16004744cb0102000b7a4c041816030c304c180c0d0d140a5f5f6d61705f5f315f5f16034044cb010116012b0c0e0c140a5f5f6d61705f5f315f5f16034044cb0102a00016012ba10016050c2f4c0bca0d0c140a5f5f6d61705f5f305f5f160047447a7e021472656d6f7665206174206d617020706174683a2000cb010301000002004035d3ecf99ab7b4ce054513077b000919107b000a19117b56a101ce01ce02ce03ce041017000c170116011600314c16ca140a5f5f6d61705f5f315f5f16017a10314d0d2acf40447a7e0214696e73657274206174206d617020706174683a2000b10cd2010116010d2a17014a2605a0015e010000000012d33919f580b4ce054513077b00090f7b000a19117b56a10207a0025e010000000406d3068539face01ce02ce03ce040201000102021ad344a25325140a5f5f6d61705f5f305f5f16004744cbc50d7b0c0d0d140a5f5f6d61705f5f305f5f16004744cb1701160101010d0d0d1601010102010001010116d32e30a67700090f7b140a5f5f6d61705f5f315f5f16004044cbc50e7b0c0d0d140a5f5f6d61705f5f315f5f16004044cb010102010000000103d33cfd4f9ea000020100010300405cd376a80ea2b417011601480c7b00090f7b000a19117b140a5f5f6d61705f5f315f5f16004044cbc50e7b140a5f5f6d61705f5f305f5f16014744cbc50d7b0c0d0d140a5f5f6d61705f5f305f5f16014744cb01010c2f13067b0d0d0d140a5f5f6d61705f5f305f5f16014744cb01011702a00016022aa1000c0d0d140a5f5f6d61705f5f315f5f16004044cb010116022a0c0e0c140a5f5f6d61705f5f315f5f16004044cb010216000c0e0c140a5f5f6d61705f5f305f5f16014744cb01020616011600160260000000000104a0010c3002000000000104a0020c300200000000010700097a4c0318000a190214402d060300020002000200020004030000000000000000000000000000000000000000000000000000000000000000140703020002000200ad188000e7fac1174876e8000237a44447ce2506bf3088c799c1e62e582d40a760f9af1b9fb1b1317c894fa6bd7b2c340c000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b037a444473b29379622b00533436c8e3be1c87a39ef7133ce88ea9d733cb0d46cc77fa8ef0301c751b025c6835a98652ca00000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000",
|
|
36
|
+
"signature": "debc116709ef0c7d93de77f7490059b9636055b376783951247edd8d7b608f63764fa6fefdf4e40a4ae82501009db71837ad27f5eb54a6012cc068b8d44893f1",
|
|
36
37
|
"gasPrice": "100000000000",
|
|
37
|
-
"gasAmount":
|
|
38
|
-
"blockHash": "
|
|
39
|
-
"codeHash": "
|
|
38
|
+
"gasAmount": 59386,
|
|
39
|
+
"blockHash": "015391cf9ee9ebf0222f0b2646163a218ae97ab44589f7d26107b56509580470",
|
|
40
|
+
"codeHash": "214804d168d252924a8a1a8e14570e4e26f8a09a93f8ce3848daee36038f2804",
|
|
40
41
|
"contractInstance": {
|
|
41
|
-
"address": "
|
|
42
|
-
"contractId": "
|
|
42
|
+
"address": "24HcY5Ln4Q9reT3xyhW4octmXyJzs3XTRMFAaw2dJmYE3",
|
|
43
|
+
"contractId": "8e9a6039a40a48b8885da361128f6c935b934b53b4ae2b112c47c42c9d8b2200",
|
|
43
44
|
"groupIndex": 0
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
|
-
"
|
|
47
|
-
"txId": "
|
|
48
|
-
"unsignedTx": "
|
|
49
|
-
"signature": "
|
|
47
|
+
"RewardSharingVault": {
|
|
48
|
+
"txId": "43742c26442904519df1eb4dd2edb516eb858d71e38ba0958519405cf586ed82",
|
|
49
|
+
"unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a2144360040740d04184426e42a942bb42f2435001000208004056d3926b380bb417021602ce00774513287b140a5f5f6d61705f5f305f5f16004744cbc54c40270c0d0d140a5f5f6d61705f5f305f5f16004744cb01011703160116032a16000d0ece00010d1707170616062f132b7b16000005160316012a0c0e0c140a5f5f6d61705f5f305f5f16004744cb01024a17160116000d0ece00010d1705170416042f132b7bca140a5f5f6d61705f5f305f5f160047447a7e0214696e73657274206174206d617020706174683a2000b11601a001d20102a00016012aa10005160016015f01000205004048d365b06caeb417021602ce00774513287b140a5f5f6d61705f5f305f5f16004744cbc513297b0c0d0d140a5f5f6d61705f5f305f5f16004744cb010117031601160332132c7b160316012b17041600000516040c2f4c0cca0d0c140a5f5f6d61705f5f305f5f160047447a7e021472656d6f7665206174206d617020706174683a2000cb01034a0a16040c0e0c140a5f5f6d61705f5f305f5f16004744cb0102a00016012ba10006160016015f0000030901409216020c3013415e7b160016010c0d3687170316001601371704160316043616031604314c020d4a010c36170516050c2f4c04160416022d02160216053313415f7b160016011602871706160516061604334c020d4a010c361705160416063617040c1602361602381707160216072d1702160416072d17040c16073616072d0d351707160416051607373917040f1602370e3a170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e16021608373637170816080e160216083736371708160416083702010101030019d3fe1110a1a0000c33132a7bb417011601ce011600ac160013c40de0b6b3a7640000a00000021702a00116022aa10107160116005f010300010005d3a28b71d5b417001600000500020102001916000006170116010c334c081600ce011601ab08160016015fa0010d0e0c140a5f5f6d61705f5f305f5f16004744cb010201000105014024d31191a066140a5f5f6d61705f5f305f5f16004744cbc513297b0c0d0d140a5f5f6d61705f5f305f5f16004744cb1704160401010d0d0d1604010117021701a00116022b17031601160313c40de0b6b3a76400000002021405020300030014050202000200ad188000e5b5c1174876e8000137a444473d0d23bf7e46f60442da706b836a9b3147b4cdc35a45169745afe8df7215c078000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c751b025c50b30d76e08980000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000",
|
|
50
|
+
"signature": "ac4dbeb528b9874e70b7d5984e446ee7e710949403588eaeb4041028facebc8a774e7e56f2a50ac58f3cb5dc9420f9ee4a8586cc9e9b54aa4818bec60b304498",
|
|
50
51
|
"gasPrice": "100000000000",
|
|
51
|
-
"gasAmount":
|
|
52
|
-
"blockHash": "
|
|
53
|
-
"codeHash": "
|
|
52
|
+
"gasAmount": 58805,
|
|
53
|
+
"blockHash": "009261b9e75ad4b046b4b238051b8598456d6d280bf3c4993abf3360d82c3b80",
|
|
54
|
+
"codeHash": "947e9fadaac74c9e777046a286e060c51e228762d1a484593aebcbd4409c8509",
|
|
54
55
|
"contractInstance": {
|
|
55
|
-
"address": "
|
|
56
|
-
"contractId": "
|
|
56
|
+
"address": "2ACrBx7ShFoqtT9xgw9E1s1P4hAvBzGzyBPKcLaSCkLj9",
|
|
57
|
+
"contractId": "e68807ea08e12fb5e0e60252ea1c8b0f8273462a47f07694420f07d0fbe4e900",
|
|
57
58
|
"groupIndex": 0
|
|
58
59
|
}
|
|
59
60
|
},
|
|
60
|
-
"
|
|
61
|
-
"txId": "
|
|
62
|
-
"unsignedTx": "
|
|
63
|
-
"signature": "
|
|
61
|
+
"XAlphStakeVault": {
|
|
62
|
+
"txId": "f30de7021a11ec3004e8ebbc34a526b18d99d514257ec5a496d65f077183ce71",
|
|
63
|
+
"unsignedTx": "000401010103000000081500bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a13c4016345785d8a0000a214460905174028407340af40cc40fc411a41284136414f41a341c341cd41db422342414329442244bd4543459245a945c045d9010002030112d3545eacd4160116000005311342277b160113202c170216001602160213202a620201000204014028d3083a358916004313202e0c2f1342267b16014313202f1342287b1600000517020c170316031602314c0e1600160300001601414c0316033f0216030d2a17034a2e0b0201000203011fd3694941c216004313202e0c2f1342267b16014313202f1342287b160016010001170216020b244c031600024a05160016023d00040201000202010dd354ad273416004313202e0c2f1342267b160016014402010002030118d34b2e25b7160116000005311342277b160113202c170216000c1602621600160213202a16004362440201000101010ed30041471116004313202e0c2f1342267b16004313202d02010000000103d3676c3c33140002010000000103d393f264e8a0000200000101000c16004313202f136afb7b1600a10005a000b45f0000020601402e16014313202f136afa7b160117021600431703160313202e0c2f136af97b0c170416041603314c1016001604160413202a62170516051602000a1702160413202a17044a2c160271a000712f02000002020110160071160171314c051600160144000b4a041601160044000b0200000101010316004f02010000000103d3b299f80ace000201000102021ed3f87904e4140a5f5f6d61705f5f305f5f16004744cbc5194c040c0006024a110c0d0d140a5f5f6d61705f5f305f5f16004744cb1701160101010d0d0d1601010102010001010108d32b875d11140a5f5f6d61705f5f305f5f16004744cbc50201010108004061d3d63c543cb4170116014813412d7b16000c331341307b1601ce001600ac140a5f5f6d61705f5f305f5f16014744cbc54c40370c0d0d140a5f5f6d61705f5f305f5f16014744cb1707160701010d0d0d1607010117031702160216002a0c0e0c140a5f5f6d61705f5f305f5f16014744cb01021603000517040c170516051604314c0f1603160500001706160116000e0c1606d4926b380b16050d2a17054a2d4a0bca140a5f5f6d61705f5f305f5f160147447a7e0214696e73657274206174206d617020706174683a2000b116000006d20102a00116002aa10106160116005f0102010900406dd310bd129fb4170116014813412d7b140a5f5f6d61705f5f305f5f16014744cbc513412e7b16000c331341317b0c0d0d140a5f5f6d61705f5f305f5f16014744cb1708160801010d0d0d1608010117031702160216003413412f7b160216002b17041603000517050c170616061605314c0f1603160600001707160116000e0c1607d465b06cae16060d2a17064a2d16040c2f4c0cca0d0c140a5f5f6d61705f5f305f5f160147447a7e021472656d6f7665206174206d617020706174683a2000cb01034a0a16040c0e0c140a5f5f6d61705f5f305f5f16014744cb01021601ce001600aba00116002ba10107160116005f01000206004045d3c5f91cb4b4170216024813412d7b1601160000161341357b140a5f5f6d61705f5f305f5f16024744cbc513412e7b0c0d0d140a5f5f6d61705f5f305f5f16024744cb1705160501010d0d0d160501011704170316040005ce01311341327b1604160000010b241341337b160216030e0c1600d4926b380b1604160000030d0e0c140a5f5f6d61705f5f305f5f16024744cb01020100010500403ad3b6398887b4170116014813412d7b140a5f5f6d61705f5f305f5f16014744cbc513412e7b0c0d0d140a5f5f6d61705f5f305f5f16014744cb1704160401010d0d0d16040101170317021603160000010b251341347b160116020e0c1600d465b06cae1603160000020d0e0c140a5f5f6d61705f5f305f5f16014744cb010201000101011fd3e5725392140a5f5f6d61705f5f305f5f16004744cbc5197a4b0418a0010c2f4c020c020c0d0d140a5f5f6d61705f5f305f5f16004744cb010113c40de0b6b3a76400002ca0012d02010001010008d3e5bf78dcb4a0024513412c7b16000008010001010008d34f58efe6b4a0024513412c7b1600a102010002030109d3af1ed9dd1601b9170216001602000b000902144026020340200bd7e14c31b8979dcdc10da8eb346d9578b2decb983d2cd0d74c888215d84900020214404803034020fea099302300b2e1cd13efcf93a4a421f15ba3978dd53a0e391cd2134035eadb02000400bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80aad188000ebcdc1174876e8000137a44447c558a45262d7b18950c98626782f2b9021e6113a13813319cf519ad495a692e5000381818e63bd9e35a5489b52a430accefc608fd60aa2c7c0d1b393b5239aedf6b001c751b025c3927934e24ed00000bee85f379545a2ed9f6cceb331288842f378cf0f04012ad4ac8824aae7d6f80a00000000000000000000",
|
|
64
|
+
"signature": "d9687adafb4ef6c97ac50ec2f0d169b3c231da678ab12ed4457fb31df3c2df301a4ea882934e8ee0c5231ba25929503044e73572656e2c2d226f540991188685",
|
|
64
65
|
"gasPrice": "100000000000",
|
|
65
|
-
"gasAmount":
|
|
66
|
-
"blockHash": "
|
|
67
|
-
"codeHash": "
|
|
66
|
+
"gasAmount": 60365,
|
|
67
|
+
"blockHash": "001a8c38a6b473430f4adff7cd713affe7f27f3d051f7273362d476a8824dea0",
|
|
68
|
+
"codeHash": "9553f5647cda93c5af12f53b8bb621424e975279a4821c9583f3fb570e691ecc",
|
|
68
69
|
"contractInstance": {
|
|
69
|
-
"address": "
|
|
70
|
-
"contractId": "
|
|
70
|
+
"address": "z3ZrfZPh2h8fBaz3EFP6QzGwkSYdLZQ9swDsHXT25Zh1",
|
|
71
|
+
"contractId": "4f927796d773b746f41509e74235350b30c0f4bb81f3e29e3258d13116afcb00",
|
|
71
72
|
"groupIndex": 0
|
|
72
73
|
}
|
|
73
74
|
}
|