@sign-global/tokentable-core 1.4.0 → 1.5.0

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.
@@ -0,0 +1,252 @@
1
+ export const MD_CREATE2_ABI = {
2
+ "address": "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0",
3
+ "name": "md_create2",
4
+ "friends": [
5
+ "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0::merkle_distributor"
6
+ ],
7
+ "exposed_functions": [
8
+ {
9
+ "name": "version",
10
+ "visibility": "public",
11
+ "is_entry": false,
12
+ "is_view": true,
13
+ "generic_type_params": [],
14
+ "params": [],
15
+ "return": [
16
+ "0x1::string::String"
17
+ ]
18
+ },
19
+ {
20
+ "name": "deploy",
21
+ "visibility": "public",
22
+ "is_entry": true,
23
+ "is_view": false,
24
+ "generic_type_params": [],
25
+ "params": [
26
+ "&signer",
27
+ "u8",
28
+ "0x1::string::String"
29
+ ],
30
+ "return": []
31
+ },
32
+ {
33
+ "name": "get_distribution_address",
34
+ "visibility": "public",
35
+ "is_entry": false,
36
+ "is_view": true,
37
+ "generic_type_params": [],
38
+ "params": [
39
+ "0x1::string::String"
40
+ ],
41
+ "return": [
42
+ "address"
43
+ ]
44
+ },
45
+ {
46
+ "name": "get_distribution_signer",
47
+ "visibility": "friend",
48
+ "is_entry": false,
49
+ "is_view": false,
50
+ "generic_type_params": [],
51
+ "params": [
52
+ "address"
53
+ ],
54
+ "return": [
55
+ "signer"
56
+ ]
57
+ },
58
+ {
59
+ "name": "get_fee_collector",
60
+ "visibility": "public",
61
+ "is_entry": false,
62
+ "is_view": true,
63
+ "generic_type_params": [],
64
+ "params": [
65
+ "address"
66
+ ],
67
+ "return": [
68
+ "address"
69
+ ]
70
+ },
71
+ {
72
+ "name": "get_implementation",
73
+ "visibility": "public",
74
+ "is_entry": false,
75
+ "is_view": true,
76
+ "generic_type_params": [],
77
+ "params": [
78
+ "u8"
79
+ ],
80
+ "return": [
81
+ "0x1::string::String"
82
+ ]
83
+ },
84
+ {
85
+ "name": "get_md_type",
86
+ "visibility": "public",
87
+ "is_entry": false,
88
+ "is_view": true,
89
+ "generic_type_params": [],
90
+ "params": [
91
+ "address"
92
+ ],
93
+ "return": [
94
+ "u8"
95
+ ]
96
+ },
97
+ {
98
+ "name": "is_distribution_owner",
99
+ "visibility": "public",
100
+ "is_entry": false,
101
+ "is_view": false,
102
+ "generic_type_params": [],
103
+ "params": [
104
+ "&signer",
105
+ "address"
106
+ ],
107
+ "return": [
108
+ "bool"
109
+ ]
110
+ },
111
+ {
112
+ "name": "predict_address",
113
+ "visibility": "public",
114
+ "is_entry": false,
115
+ "is_view": false,
116
+ "generic_type_params": [],
117
+ "params": [
118
+ "address",
119
+ "0x1::string::String"
120
+ ],
121
+ "return": [
122
+ "address"
123
+ ]
124
+ },
125
+ {
126
+ "name": "set_default_fee_collector",
127
+ "visibility": "public",
128
+ "is_entry": true,
129
+ "is_view": false,
130
+ "generic_type_params": [],
131
+ "params": [
132
+ "&signer",
133
+ "address"
134
+ ],
135
+ "return": []
136
+ },
137
+ {
138
+ "name": "set_distribution_fee_collector",
139
+ "visibility": "public",
140
+ "is_entry": true,
141
+ "is_view": false,
142
+ "generic_type_params": [],
143
+ "params": [
144
+ "&signer",
145
+ "0x1::string::String",
146
+ "address"
147
+ ],
148
+ "return": []
149
+ },
150
+ {
151
+ "name": "set_implementation",
152
+ "visibility": "public",
153
+ "is_entry": true,
154
+ "is_view": false,
155
+ "generic_type_params": [],
156
+ "params": [
157
+ "&signer",
158
+ "u8",
159
+ "0x1::string::String"
160
+ ],
161
+ "return": []
162
+ }
163
+ ],
164
+ "structs": [
165
+ {
166
+ "name": "DeployEvent",
167
+ "is_native": false,
168
+ "is_event": true,
169
+ "abilities": [
170
+ "drop",
171
+ "store"
172
+ ],
173
+ "generic_type_params": [],
174
+ "fields": [
175
+ {
176
+ "name": "project_id",
177
+ "type": "0x1::string::String"
178
+ },
179
+ {
180
+ "name": "distribution_address",
181
+ "type": "address"
182
+ },
183
+ {
184
+ "name": "deployer",
185
+ "type": "address"
186
+ },
187
+ {
188
+ "name": "md_type",
189
+ "type": "u8"
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "name": "DistributorData",
195
+ "is_native": false,
196
+ "is_event": false,
197
+ "abilities": [
198
+ "key"
199
+ ],
200
+ "generic_type_params": [],
201
+ "fields": [
202
+ {
203
+ "name": "owner",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "name": "project_id",
208
+ "type": "0x1::string::String"
209
+ },
210
+ {
211
+ "name": "md_type",
212
+ "type": "u8"
213
+ },
214
+ {
215
+ "name": "fee_collector",
216
+ "type": "address"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "name": "DistributorFactory",
222
+ "is_native": false,
223
+ "is_event": false,
224
+ "abilities": [
225
+ "key"
226
+ ],
227
+ "generic_type_params": [],
228
+ "fields": [
229
+ {
230
+ "name": "deployments",
231
+ "type": "0x1::table::Table<0x1::string::String, address>"
232
+ },
233
+ {
234
+ "name": "signer_caps",
235
+ "type": "0x1::table::Table<address, 0x1::account::SignerCapability>"
236
+ },
237
+ {
238
+ "name": "implementations",
239
+ "type": "0x1::table::Table<u8, 0x1::string::String>"
240
+ },
241
+ {
242
+ "name": "fee_collector",
243
+ "type": "address"
244
+ },
245
+ {
246
+ "name": "deploy_events",
247
+ "type": "0x1::event::EventHandle<0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0::md_create2::DeployEvent>"
248
+ }
249
+ ]
250
+ }
251
+ ]
252
+ } as const
@@ -0,0 +1,330 @@
1
+ export const MERKLE_DISTRIBUTOR_ABI = {
2
+ "address": "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0",
3
+ "name": "merkle_distributor",
4
+ "friends": [],
5
+ "exposed_functions": [
6
+ {
7
+ "name": "withdraw",
8
+ "visibility": "public",
9
+ "is_entry": true,
10
+ "is_view": false,
11
+ "generic_type_params": [],
12
+ "params": [
13
+ "&signer",
14
+ "address",
15
+ "0x1::object::Object<0x1::fungible_asset::Metadata>",
16
+ "u64",
17
+ "address"
18
+ ],
19
+ "return": []
20
+ },
21
+ {
22
+ "name": "version",
23
+ "visibility": "public",
24
+ "is_entry": false,
25
+ "is_view": true,
26
+ "generic_type_params": [],
27
+ "params": [],
28
+ "return": [
29
+ "0x1::string::String"
30
+ ]
31
+ },
32
+ {
33
+ "name": "claim",
34
+ "visibility": "public",
35
+ "is_entry": true,
36
+ "is_view": false,
37
+ "generic_type_params": [],
38
+ "params": [
39
+ "&signer",
40
+ "address",
41
+ "vector<vector<u8>>",
42
+ "vector<u8>",
43
+ "vector<u8>"
44
+ ],
45
+ "return": []
46
+ },
47
+ {
48
+ "name": "decode_leaf_data",
49
+ "visibility": "public",
50
+ "is_entry": false,
51
+ "is_view": false,
52
+ "generic_type_params": [],
53
+ "params": [
54
+ "vector<u8>"
55
+ ],
56
+ "return": [
57
+ "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0::merkle_distributor::Tokentable_merkle_distributor_data"
58
+ ]
59
+ },
60
+ {
61
+ "name": "encode_leaf",
62
+ "visibility": "public",
63
+ "is_entry": false,
64
+ "is_view": false,
65
+ "generic_type_params": [],
66
+ "params": [
67
+ "address",
68
+ "address",
69
+ "vector<u8>",
70
+ "vector<u8>"
71
+ ],
72
+ "return": [
73
+ "vector<u8>"
74
+ ]
75
+ },
76
+ {
77
+ "name": "encode_leaf_data",
78
+ "visibility": "public",
79
+ "is_entry": false,
80
+ "is_view": false,
81
+ "generic_type_params": [],
82
+ "params": [
83
+ "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0::merkle_distributor::Tokentable_merkle_distributor_data"
84
+ ],
85
+ "return": [
86
+ "vector<u8>"
87
+ ]
88
+ },
89
+ {
90
+ "name": "get_distribution_info",
91
+ "visibility": "public",
92
+ "is_entry": false,
93
+ "is_view": true,
94
+ "generic_type_params": [],
95
+ "params": [
96
+ "address"
97
+ ],
98
+ "return": [
99
+ "vector<u8>",
100
+ "address",
101
+ "u64",
102
+ "u64"
103
+ ]
104
+ },
105
+ {
106
+ "name": "initialize_distribution",
107
+ "visibility": "public",
108
+ "is_entry": true,
109
+ "is_view": false,
110
+ "generic_type_params": [],
111
+ "params": [
112
+ "&signer",
113
+ "address",
114
+ "address",
115
+ "vector<u8>",
116
+ "u64",
117
+ "u64"
118
+ ],
119
+ "return": []
120
+ },
121
+ {
122
+ "name": "is_leaf_used",
123
+ "visibility": "public",
124
+ "is_entry": false,
125
+ "is_view": false,
126
+ "generic_type_params": [],
127
+ "params": [
128
+ "address",
129
+ "vector<u8>"
130
+ ],
131
+ "return": [
132
+ "bool"
133
+ ]
134
+ },
135
+ {
136
+ "name": "update_merkle_root",
137
+ "visibility": "public",
138
+ "is_entry": true,
139
+ "is_view": false,
140
+ "generic_type_params": [],
141
+ "params": [
142
+ "&signer",
143
+ "address",
144
+ "vector<u8>"
145
+ ],
146
+ "return": []
147
+ },
148
+ {
149
+ "name": "update_time_range",
150
+ "visibility": "public",
151
+ "is_entry": true,
152
+ "is_view": false,
153
+ "generic_type_params": [],
154
+ "params": [
155
+ "&signer",
156
+ "address",
157
+ "u64",
158
+ "u64"
159
+ ],
160
+ "return": []
161
+ },
162
+ {
163
+ "name": "update_token",
164
+ "visibility": "public",
165
+ "is_entry": true,
166
+ "is_view": false,
167
+ "generic_type_params": [],
168
+ "params": [
169
+ "&signer",
170
+ "address",
171
+ "address"
172
+ ],
173
+ "return": []
174
+ }
175
+ ],
176
+ "structs": [
177
+ {
178
+ "name": "DistributionCreated",
179
+ "is_native": false,
180
+ "is_event": true,
181
+ "abilities": [
182
+ "drop",
183
+ "store"
184
+ ],
185
+ "generic_type_params": [],
186
+ "fields": [
187
+ {
188
+ "name": "distributor_address",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "name": "token_address",
193
+ "type": "address"
194
+ },
195
+ {
196
+ "name": "merkle_root",
197
+ "type": "vector<u8>"
198
+ },
199
+ {
200
+ "name": "start_time",
201
+ "type": "u64"
202
+ },
203
+ {
204
+ "name": "end_time",
205
+ "type": "u64"
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "name": "DistributionData",
211
+ "is_native": false,
212
+ "is_event": false,
213
+ "abilities": [
214
+ "key"
215
+ ],
216
+ "generic_type_params": [],
217
+ "fields": [
218
+ {
219
+ "name": "root",
220
+ "type": "vector<u8>"
221
+ },
222
+ {
223
+ "name": "token",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "name": "start_time",
228
+ "type": "u64"
229
+ },
230
+ {
231
+ "name": "end_time",
232
+ "type": "u64"
233
+ },
234
+ {
235
+ "name": "used_leaves",
236
+ "type": "0x1::table::Table<vector<u8>, bool>"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "name": "MerkleRootUpdated",
242
+ "is_native": false,
243
+ "is_event": true,
244
+ "abilities": [
245
+ "drop",
246
+ "store"
247
+ ],
248
+ "generic_type_params": [],
249
+ "fields": [
250
+ {
251
+ "name": "distributor_address",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "name": "new_root",
256
+ "type": "vector<u8>"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "name": "TimeRangeUpdated",
262
+ "is_native": false,
263
+ "is_event": true,
264
+ "abilities": [
265
+ "drop",
266
+ "store"
267
+ ],
268
+ "generic_type_params": [],
269
+ "fields": [
270
+ {
271
+ "name": "distributor_address",
272
+ "type": "address"
273
+ },
274
+ {
275
+ "name": "start_time",
276
+ "type": "u64"
277
+ },
278
+ {
279
+ "name": "end_time",
280
+ "type": "u64"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "name": "TokenUpdated",
286
+ "is_native": false,
287
+ "is_event": true,
288
+ "abilities": [
289
+ "drop",
290
+ "store"
291
+ ],
292
+ "generic_type_params": [],
293
+ "fields": [
294
+ {
295
+ "name": "distributor_address",
296
+ "type": "address"
297
+ },
298
+ {
299
+ "name": "new_token",
300
+ "type": "address"
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "name": "Tokentable_merkle_distributor_data",
306
+ "is_native": false,
307
+ "is_event": false,
308
+ "abilities": [
309
+ "copy",
310
+ "drop",
311
+ "store"
312
+ ],
313
+ "generic_type_params": [],
314
+ "fields": [
315
+ {
316
+ "name": "index",
317
+ "type": "u128"
318
+ },
319
+ {
320
+ "name": "claimableTimestamp",
321
+ "type": "u64"
322
+ },
323
+ {
324
+ "name": "claimableAmount",
325
+ "type": "u64"
326
+ }
327
+ ]
328
+ }
329
+ ]
330
+ } as const
@@ -0,0 +1,34 @@
1
+ export const MERKLE_VERIFIER_ABI = {
2
+ "address": "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0",
3
+ "name": "merkle_verifier",
4
+ "friends": [],
5
+ "exposed_functions": [
6
+ {
7
+ "name": "verify",
8
+ "visibility": "public",
9
+ "is_entry": false,
10
+ "is_view": false,
11
+ "generic_type_params": [],
12
+ "params": [
13
+ "vector<vector<u8>>",
14
+ "vector<u8>",
15
+ "vector<u8>"
16
+ ],
17
+ "return": [
18
+ "bool"
19
+ ]
20
+ },
21
+ {
22
+ "name": "version",
23
+ "visibility": "public",
24
+ "is_entry": false,
25
+ "is_view": true,
26
+ "generic_type_params": [],
27
+ "params": [],
28
+ "return": [
29
+ "0x1::string::String"
30
+ ]
31
+ }
32
+ ],
33
+ "structs": []
34
+ } as const
@@ -0,0 +1,106 @@
1
+ export const OWNABLE_ABI = {
2
+ "address": "0x90f5a927d597d49b4fb64a48f3dc34695687e389136b04c42f9b9e7fe7fe59a0",
3
+ "name": "ownable",
4
+ "friends": [],
5
+ "exposed_functions": [
6
+ {
7
+ "name": "version",
8
+ "visibility": "public",
9
+ "is_entry": false,
10
+ "is_view": true,
11
+ "generic_type_params": [],
12
+ "params": [],
13
+ "return": [
14
+ "0x1::string::String"
15
+ ]
16
+ },
17
+ {
18
+ "name": "get_owner",
19
+ "visibility": "public",
20
+ "is_entry": false,
21
+ "is_view": true,
22
+ "generic_type_params": [],
23
+ "params": [],
24
+ "return": [
25
+ "address"
26
+ ]
27
+ },
28
+ {
29
+ "name": "only_owner",
30
+ "visibility": "public",
31
+ "is_entry": false,
32
+ "is_view": false,
33
+ "generic_type_params": [],
34
+ "params": [
35
+ "&signer"
36
+ ],
37
+ "return": []
38
+ },
39
+ {
40
+ "name": "transfer_ownership",
41
+ "visibility": "public",
42
+ "is_entry": true,
43
+ "is_view": false,
44
+ "generic_type_params": [],
45
+ "params": [
46
+ "&signer",
47
+ "address"
48
+ ],
49
+ "return": []
50
+ }
51
+ ],
52
+ "structs": [
53
+ {
54
+ "name": "Owner",
55
+ "is_native": false,
56
+ "is_event": false,
57
+ "abilities": [
58
+ "store",
59
+ "key"
60
+ ],
61
+ "generic_type_params": [],
62
+ "fields": [
63
+ {
64
+ "name": "owner",
65
+ "type": "address"
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "name": "OwnershipInitialized",
71
+ "is_native": false,
72
+ "is_event": true,
73
+ "abilities": [
74
+ "drop",
75
+ "store"
76
+ ],
77
+ "generic_type_params": [],
78
+ "fields": [
79
+ {
80
+ "name": "owner",
81
+ "type": "address"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "OwnershipTransferred",
87
+ "is_native": false,
88
+ "is_event": true,
89
+ "abilities": [
90
+ "drop",
91
+ "store"
92
+ ],
93
+ "generic_type_params": [],
94
+ "fields": [
95
+ {
96
+ "name": "previous_owner",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "name": "new_owner",
101
+ "type": "address"
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ } as const