@sentio/sdk 2.60.3 → 2.61.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/builtin/0x1.d.ts +125 -0
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +150 -6
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +10 -0
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js +8 -0
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +40 -0
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +48 -2
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +7 -12
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/ext/coin-event.test.js.map +1 -1
- package/lib/aptos/network.d.ts +2 -2
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +22 -15
- package/lib/aptos/network.js.map +1 -1
- package/lib/core/core-plugin.d.ts.map +1 -1
- package/lib/core/core-plugin.js +4 -11
- package/lib/core/core-plugin.js.map +1 -1
- package/lib/core/database-schema.d.ts +1 -0
- package/lib/core/database-schema.d.ts.map +1 -1
- package/lib/core/database-schema.js +30 -0
- package/lib/core/database-schema.js.map +1 -1
- package/lib/core/database-schema.test.d.ts +2 -0
- package/lib/core/database-schema.test.d.ts.map +1 -0
- package/lib/core/database-schema.test.js.map +1 -0
- package/lib/fuel/transaction.d.ts.map +1 -1
- package/lib/fuel/transaction.js +23 -8
- package/lib/fuel/transaction.js.map +1 -1
- package/lib/iota/codegen/codegen.js +2 -5
- package/lib/iota/codegen/codegen.js.map +1 -1
- package/lib/iota/iota-plugin.d.ts +1 -0
- package/lib/iota/iota-plugin.d.ts.map +1 -1
- package/lib/iota/iota-plugin.js +1 -0
- package/lib/iota/iota-plugin.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +72 -107
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +53 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +610 -807
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +158 -2
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +290 -362
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +105 -1
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.js +2 -5
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/package.json +11 -11
- package/src/aptos/abis/0x1.json +47 -3
- package/src/aptos/builtin/0x1.ts +520 -1
- package/src/aptos/builtin/0x3.ts +46 -0
- package/src/aptos/builtin/0x4.ts +151 -0
- package/src/aptos/codegen/codegen.ts +7 -13
- package/src/aptos/network.ts +22 -14
- package/src/core/core-plugin.ts +4 -11
- package/src/core/database-schema.ts +29 -0
- package/src/fuel/transaction.ts +30 -9
- package/src/iota/codegen/codegen.ts +2 -5
- package/src/iota/iota-plugin.ts +2 -0
- package/src/sui/abis/0x1.json +52 -0
- package/src/sui/abis/0x2.json +134 -2
- package/src/sui/abis/0x3.json +180 -0
- package/src/sui/builtin/0x1.ts +143 -110
- package/src/sui/builtin/0x2.ts +796 -808
- package/src/sui/builtin/0x3.ts +422 -363
- package/src/sui/codegen/codegen.ts +2 -5
package/src/sui/abis/0x2.json
CHANGED
@@ -3,7 +3,12 @@
|
|
3
3
|
"fileFormatVersion": 6,
|
4
4
|
"address": "0x2",
|
5
5
|
"name": "accumulator",
|
6
|
-
"friends": [
|
6
|
+
"friends": [
|
7
|
+
{
|
8
|
+
"address": "0x2",
|
9
|
+
"name": "balance"
|
10
|
+
}
|
11
|
+
],
|
7
12
|
"structs": {
|
8
13
|
"AccumulatorRoot": {
|
9
14
|
"abilities": {
|
@@ -25,9 +30,92 @@
|
|
25
30
|
}
|
26
31
|
}
|
27
32
|
]
|
33
|
+
},
|
34
|
+
"Key": {
|
35
|
+
"abilities": {
|
36
|
+
"abilities": [
|
37
|
+
"Copy",
|
38
|
+
"Drop",
|
39
|
+
"Store"
|
40
|
+
]
|
41
|
+
},
|
42
|
+
"typeParameters": [
|
43
|
+
{
|
44
|
+
"constraints": {
|
45
|
+
"abilities": []
|
46
|
+
},
|
47
|
+
"isPhantom": true
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"fields": [
|
51
|
+
{
|
52
|
+
"name": "address",
|
53
|
+
"type": "Address"
|
54
|
+
}
|
55
|
+
]
|
56
|
+
},
|
57
|
+
"U128": {
|
58
|
+
"abilities": {
|
59
|
+
"abilities": [
|
60
|
+
"Store"
|
61
|
+
]
|
62
|
+
},
|
63
|
+
"typeParameters": [],
|
64
|
+
"fields": [
|
65
|
+
{
|
66
|
+
"name": "value",
|
67
|
+
"type": "U128"
|
68
|
+
}
|
69
|
+
]
|
28
70
|
}
|
29
71
|
},
|
30
|
-
"exposedFunctions": {
|
72
|
+
"exposedFunctions": {
|
73
|
+
"accumulator_address": {
|
74
|
+
"visibility": "Friend",
|
75
|
+
"isEntry": false,
|
76
|
+
"typeParameters": [
|
77
|
+
{
|
78
|
+
"abilities": []
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"parameters": [
|
82
|
+
"Address"
|
83
|
+
],
|
84
|
+
"return": [
|
85
|
+
"Address"
|
86
|
+
]
|
87
|
+
},
|
88
|
+
"emit_deposit_event": {
|
89
|
+
"visibility": "Friend",
|
90
|
+
"isEntry": false,
|
91
|
+
"typeParameters": [
|
92
|
+
{
|
93
|
+
"abilities": []
|
94
|
+
}
|
95
|
+
],
|
96
|
+
"parameters": [
|
97
|
+
"Address",
|
98
|
+
"Address",
|
99
|
+
"U64"
|
100
|
+
],
|
101
|
+
"return": []
|
102
|
+
},
|
103
|
+
"emit_withdraw_event": {
|
104
|
+
"visibility": "Friend",
|
105
|
+
"isEntry": false,
|
106
|
+
"typeParameters": [
|
107
|
+
{
|
108
|
+
"abilities": []
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"parameters": [
|
112
|
+
"Address",
|
113
|
+
"Address",
|
114
|
+
"U64"
|
115
|
+
],
|
116
|
+
"return": []
|
117
|
+
}
|
118
|
+
}
|
31
119
|
},
|
32
120
|
"address": {
|
33
121
|
"fileFormatVersion": 6,
|
@@ -8306,6 +8394,10 @@
|
|
8306
8394
|
"address": "0x2",
|
8307
8395
|
"name": "dynamic_field",
|
8308
8396
|
"friends": [
|
8397
|
+
{
|
8398
|
+
"address": "0x2",
|
8399
|
+
"name": "accumulator"
|
8400
|
+
},
|
8309
8401
|
{
|
8310
8402
|
"address": "0x2",
|
8311
8403
|
"name": "config"
|
@@ -22654,6 +22746,46 @@
|
|
22654
22746
|
"Address"
|
22655
22747
|
]
|
22656
22748
|
},
|
22749
|
+
"gas_price": {
|
22750
|
+
"visibility": "Public",
|
22751
|
+
"isEntry": false,
|
22752
|
+
"typeParameters": [],
|
22753
|
+
"parameters": [
|
22754
|
+
{
|
22755
|
+
"Reference": {
|
22756
|
+
"Struct": {
|
22757
|
+
"address": "0x2",
|
22758
|
+
"module": "tx_context",
|
22759
|
+
"name": "TxContext",
|
22760
|
+
"typeArguments": []
|
22761
|
+
}
|
22762
|
+
}
|
22763
|
+
}
|
22764
|
+
],
|
22765
|
+
"return": [
|
22766
|
+
"U64"
|
22767
|
+
]
|
22768
|
+
},
|
22769
|
+
"reference_gas_price": {
|
22770
|
+
"visibility": "Public",
|
22771
|
+
"isEntry": false,
|
22772
|
+
"typeParameters": [],
|
22773
|
+
"parameters": [
|
22774
|
+
{
|
22775
|
+
"Reference": {
|
22776
|
+
"Struct": {
|
22777
|
+
"address": "0x2",
|
22778
|
+
"module": "tx_context",
|
22779
|
+
"name": "TxContext",
|
22780
|
+
"typeArguments": []
|
22781
|
+
}
|
22782
|
+
}
|
22783
|
+
}
|
22784
|
+
],
|
22785
|
+
"return": [
|
22786
|
+
"U64"
|
22787
|
+
]
|
22788
|
+
},
|
22657
22789
|
"sender": {
|
22658
22790
|
"visibility": "Public",
|
22659
22791
|
"isEntry": false,
|
package/src/sui/abis/0x3.json
CHANGED
@@ -420,6 +420,10 @@
|
|
420
420
|
"address": "0x3",
|
421
421
|
"name": "staking_pool",
|
422
422
|
"friends": [
|
423
|
+
{
|
424
|
+
"address": "0x3",
|
425
|
+
"name": "sui_system"
|
426
|
+
},
|
423
427
|
{
|
424
428
|
"address": "0x3",
|
425
429
|
"name": "validator"
|
@@ -776,6 +780,37 @@
|
|
776
780
|
}
|
777
781
|
]
|
778
782
|
},
|
783
|
+
"calculate_rewards": {
|
784
|
+
"visibility": "Friend",
|
785
|
+
"isEntry": false,
|
786
|
+
"typeParameters": [],
|
787
|
+
"parameters": [
|
788
|
+
{
|
789
|
+
"Reference": {
|
790
|
+
"Struct": {
|
791
|
+
"address": "0x3",
|
792
|
+
"module": "staking_pool",
|
793
|
+
"name": "StakingPool",
|
794
|
+
"typeArguments": []
|
795
|
+
}
|
796
|
+
}
|
797
|
+
},
|
798
|
+
{
|
799
|
+
"Reference": {
|
800
|
+
"Struct": {
|
801
|
+
"address": "0x3",
|
802
|
+
"module": "staking_pool",
|
803
|
+
"name": "StakedSui",
|
804
|
+
"typeArguments": []
|
805
|
+
}
|
806
|
+
}
|
807
|
+
},
|
808
|
+
"U64"
|
809
|
+
],
|
810
|
+
"return": [
|
811
|
+
"U64"
|
812
|
+
]
|
813
|
+
},
|
779
814
|
"convert_to_fungible_staked_sui": {
|
780
815
|
"visibility": "Friend",
|
781
816
|
"isEntry": false,
|
@@ -1954,6 +1989,46 @@
|
|
1954
1989
|
}
|
1955
1990
|
]
|
1956
1991
|
},
|
1992
|
+
"calculate_rewards": {
|
1993
|
+
"visibility": "Friend",
|
1994
|
+
"isEntry": false,
|
1995
|
+
"typeParameters": [],
|
1996
|
+
"parameters": [
|
1997
|
+
{
|
1998
|
+
"MutableReference": {
|
1999
|
+
"Struct": {
|
2000
|
+
"address": "0x3",
|
2001
|
+
"module": "sui_system",
|
2002
|
+
"name": "SuiSystemState",
|
2003
|
+
"typeArguments": []
|
2004
|
+
}
|
2005
|
+
}
|
2006
|
+
},
|
2007
|
+
{
|
2008
|
+
"Reference": {
|
2009
|
+
"Struct": {
|
2010
|
+
"address": "0x3",
|
2011
|
+
"module": "staking_pool",
|
2012
|
+
"name": "StakedSui",
|
2013
|
+
"typeArguments": []
|
2014
|
+
}
|
2015
|
+
}
|
2016
|
+
},
|
2017
|
+
{
|
2018
|
+
"Reference": {
|
2019
|
+
"Struct": {
|
2020
|
+
"address": "0x2",
|
2021
|
+
"module": "tx_context",
|
2022
|
+
"name": "TxContext",
|
2023
|
+
"typeArguments": []
|
2024
|
+
}
|
2025
|
+
}
|
2026
|
+
}
|
2027
|
+
],
|
2028
|
+
"return": [
|
2029
|
+
"U64"
|
2030
|
+
]
|
2031
|
+
},
|
1957
2032
|
"convert_to_fungible_staked_sui": {
|
1958
2033
|
"visibility": "Public",
|
1959
2034
|
"isEntry": false,
|
@@ -5675,6 +5750,64 @@
|
|
5675
5750
|
}
|
5676
5751
|
}
|
5677
5752
|
]
|
5753
|
+
},
|
5754
|
+
"validators": {
|
5755
|
+
"visibility": "Friend",
|
5756
|
+
"isEntry": false,
|
5757
|
+
"typeParameters": [],
|
5758
|
+
"parameters": [
|
5759
|
+
{
|
5760
|
+
"Reference": {
|
5761
|
+
"Struct": {
|
5762
|
+
"address": "0x3",
|
5763
|
+
"module": "sui_system_state_inner",
|
5764
|
+
"name": "SuiSystemStateInnerV2",
|
5765
|
+
"typeArguments": []
|
5766
|
+
}
|
5767
|
+
}
|
5768
|
+
}
|
5769
|
+
],
|
5770
|
+
"return": [
|
5771
|
+
{
|
5772
|
+
"Reference": {
|
5773
|
+
"Struct": {
|
5774
|
+
"address": "0x3",
|
5775
|
+
"module": "validator_set",
|
5776
|
+
"name": "ValidatorSet",
|
5777
|
+
"typeArguments": []
|
5778
|
+
}
|
5779
|
+
}
|
5780
|
+
}
|
5781
|
+
]
|
5782
|
+
},
|
5783
|
+
"validators_mut": {
|
5784
|
+
"visibility": "Friend",
|
5785
|
+
"isEntry": false,
|
5786
|
+
"typeParameters": [],
|
5787
|
+
"parameters": [
|
5788
|
+
{
|
5789
|
+
"MutableReference": {
|
5790
|
+
"Struct": {
|
5791
|
+
"address": "0x3",
|
5792
|
+
"module": "sui_system_state_inner",
|
5793
|
+
"name": "SuiSystemStateInnerV2",
|
5794
|
+
"typeArguments": []
|
5795
|
+
}
|
5796
|
+
}
|
5797
|
+
}
|
5798
|
+
],
|
5799
|
+
"return": [
|
5800
|
+
{
|
5801
|
+
"MutableReference": {
|
5802
|
+
"Struct": {
|
5803
|
+
"address": "0x3",
|
5804
|
+
"module": "validator_set",
|
5805
|
+
"name": "ValidatorSet",
|
5806
|
+
"typeArguments": []
|
5807
|
+
}
|
5808
|
+
}
|
5809
|
+
}
|
5810
|
+
]
|
5678
5811
|
}
|
5679
5812
|
}
|
5680
5813
|
},
|
@@ -5687,6 +5820,10 @@
|
|
5687
5820
|
"address": "0x3",
|
5688
5821
|
"name": "genesis"
|
5689
5822
|
},
|
5823
|
+
{
|
5824
|
+
"address": "0x3",
|
5825
|
+
"name": "sui_system"
|
5826
|
+
},
|
5690
5827
|
{
|
5691
5828
|
"address": "0x3",
|
5692
5829
|
"name": "sui_system_state_inner"
|
@@ -8494,6 +8631,10 @@
|
|
8494
8631
|
"address": "0x3",
|
8495
8632
|
"name": "genesis"
|
8496
8633
|
},
|
8634
|
+
{
|
8635
|
+
"address": "0x3",
|
8636
|
+
"name": "sui_system"
|
8637
|
+
},
|
8497
8638
|
{
|
8498
8639
|
"address": "0x3",
|
8499
8640
|
"name": "sui_system_state_inner"
|
@@ -10031,6 +10172,45 @@
|
|
10031
10172
|
"Address"
|
10032
10173
|
]
|
10033
10174
|
},
|
10175
|
+
"validator_by_pool_id": {
|
10176
|
+
"visibility": "Friend",
|
10177
|
+
"isEntry": false,
|
10178
|
+
"typeParameters": [],
|
10179
|
+
"parameters": [
|
10180
|
+
{
|
10181
|
+
"MutableReference": {
|
10182
|
+
"Struct": {
|
10183
|
+
"address": "0x3",
|
10184
|
+
"module": "validator_set",
|
10185
|
+
"name": "ValidatorSet",
|
10186
|
+
"typeArguments": []
|
10187
|
+
}
|
10188
|
+
}
|
10189
|
+
},
|
10190
|
+
{
|
10191
|
+
"Reference": {
|
10192
|
+
"Struct": {
|
10193
|
+
"address": "0x2",
|
10194
|
+
"module": "object",
|
10195
|
+
"name": "ID",
|
10196
|
+
"typeArguments": []
|
10197
|
+
}
|
10198
|
+
}
|
10199
|
+
}
|
10200
|
+
],
|
10201
|
+
"return": [
|
10202
|
+
{
|
10203
|
+
"Reference": {
|
10204
|
+
"Struct": {
|
10205
|
+
"address": "0x3",
|
10206
|
+
"module": "validator",
|
10207
|
+
"name": "Validator",
|
10208
|
+
"typeArguments": []
|
10209
|
+
}
|
10210
|
+
}
|
10211
|
+
}
|
10212
|
+
]
|
10213
|
+
},
|
10034
10214
|
"validator_stake_amount": {
|
10035
10215
|
"visibility": "Public",
|
10036
10216
|
"isEntry": false,
|