@@ -15,6 +15,11 @@ export interface AddPrizeInputV2 {
1515 'quantity' : number ,
1616 'expire' : number ,
1717}
18+ export interface Airdrop {
19+ 'weight' : bigint ,
20+ 'subaccount' : [ ] | [ string ] ,
21+ 'neuron_id' : [ ] | [ string ] ,
22+ }
1823export interface AirdropClaimInput {
1924 'recaptcha' : [ ] | [ string ] ,
2025 'challenge' : string ,
@@ -47,6 +52,21 @@ export interface AirdropStateOutput {
4752 'claimed' : bigint ,
4853 'claimable' : bigint ,
4954}
55+ export interface Airdrops108Output {
56+ 'status' : number ,
57+ 'ledger_updated_at' : bigint ,
58+ 'airdrops' : Array < Airdrop > ,
59+ 'ledger_weight_total' : bigint ,
60+ 'tokens_per_weight' : number ,
61+ 'error' : [ ] | [ string ] ,
62+ 'neurons_hash' : string ,
63+ 'neurons_airdropped' : boolean ,
64+ 'ledger_hash' : string ,
65+ 'tokens_distributed' : bigint ,
66+ 'neurons_weight_total' : bigint ,
67+ 'neurons_updated_at' : bigint ,
68+ 'ledger_airdropped' : boolean ,
69+ }
5070export interface CaptchaOutput { 'challenge' : string , 'img_base64' : string }
5171export interface ClaimPrizeInput {
5272 'challenge' : Uint8Array | number [ ] ,
@@ -114,29 +134,35 @@ export type Result = { 'Ok' : PrizeOutput } |
114134 { 'Err' : string } ;
115135export type Result_1 = { 'Ok' : null } |
116136 { 'Err' : string } ;
117- export type Result_10 = { 'Ok' : NameOutput } |
137+ export type Result_10 = { 'Ok' : bigint } |
138+ { 'Err' : string } ;
139+ export type Result_11 = { 'Ok' : [ ] | [ NameOutput ] } |
140+ { 'Err' : null } ;
141+ export type Result_12 = { 'Ok' : Principal } |
142+ { 'Err' : string } ;
143+ export type Result_13 = { 'Ok' : NameOutput } |
118144 { 'Err' : string } ;
119- export type Result_11 = { 'Ok' : State } |
145+ export type Result_14 = { 'Ok' : State } |
120146 { 'Err' : null } ;
121- export type Result_12 = { 'Ok' : bigint } |
147+ export type Result_15 = { 'Ok' : bigint } |
122148 { 'Err' : string } ;
123- export type Result_13 = { 'Ok' : Principal } |
149+ export type Result_16 = { 'Ok' : Principal } |
124150 { 'Err' : null } ;
125151export type Result_2 = { 'Ok' : AirdropStateOutput } |
126152 { 'Err' : string } ;
127153export type Result_3 = { 'Ok' : AirdropStateOutput } |
128154 { 'Err' : null } ;
129- export type Result_4 = { 'Ok' : CaptchaOutput } |
155+ export type Result_4 = { 'Ok' : Airdrops108Output } |
156+ { 'Err' : null } ;
157+ export type Result_5 = { 'Ok' : CaptchaOutput } |
130158 { 'Err' : string } ;
131- export type Result_5 = { 'Ok' : ClaimPrizeOutput } |
159+ export type Result_6 = { 'Ok' : ClaimPrizeOutput } |
132160 { 'Err' : string } ;
133- export type Result_6 = { 'Ok' : LuckyDrawOutput } |
161+ export type Result_7 = { 'Ok' : LuckyDrawOutput } |
134162 { 'Err' : string } ;
135- export type Result_7 = { 'Ok' : string } |
163+ export type Result_8 = { 'Ok' : string } |
136164 { 'Err' : string } ;
137- export type Result_8 = { 'Ok' : [ ] | [ NameOutput ] } |
138- { 'Err' : null } ;
139- export type Result_9 = { 'Ok' : Principal } |
165+ export type Result_9 = { 'Ok' : boolean } |
140166 { 'Err' : string } ;
141167export interface State {
142168 'latest_luckydraw_logs' : Array < LuckyDrawLog > ,
@@ -159,6 +185,7 @@ export interface State {
159185export interface _SERVICE {
160186 'add_prize' : ActorMethod < [ AddPrizeInputV2 ] , Result > ,
161187 'admin_collect_icp' : ActorMethod < [ bigint ] , Result_1 > ,
188+ 'admin_collect_tokens' : ActorMethod < [ bigint ] , Result_1 > ,
162189 'admin_set_managers' : ActorMethod < [ Array < Principal > ] , Result_1 > ,
163190 'airdrop' : ActorMethod < [ AirdropClaimInput ] , Result_2 > ,
164191 'airdrop_codes_of' : ActorMethod < [ Principal ] , Array < AirdropCodeOutput > > ,
@@ -167,27 +194,37 @@ export interface _SERVICE {
167194 Array < AirdropLog >
168195 > ,
169196 'airdrop_state_of' : ActorMethod < [ [ ] | [ Principal ] ] , Result_3 > ,
197+ 'airdrops108_of' : ActorMethod < [ [ ] | [ Principal ] ] , Result_4 > ,
170198 'api_version' : ActorMethod < [ ] , number > ,
171- 'captcha' : ActorMethod < [ ] , Result_4 > ,
172- 'claim_prize' : ActorMethod < [ ClaimPrizeInput ] , Result_5 > ,
199+ 'captcha' : ActorMethod < [ ] , Result_5 > ,
200+ 'claim_prize' : ActorMethod < [ ClaimPrizeInput ] , Result_6 > ,
173201 'harvest' : ActorMethod < [ AirdropHarvestInput ] , Result_2 > ,
174- 'luckydraw' : ActorMethod < [ LuckyDrawInput ] , Result_6 > ,
202+ 'luckydraw' : ActorMethod < [ LuckyDrawInput ] , Result_7 > ,
175203 'luckydraw_logs' : ActorMethod <
176204 [ [ ] | [ bigint ] , [ ] | [ bigint ] ] ,
177205 Array < LuckyDrawLog >
178206 > ,
179207 'manager_add_notification' : ActorMethod < [ Notification ] , Result_1 > ,
180- 'manager_add_prize' : ActorMethod < [ AddPrizeInput ] , Result_7 > ,
181- 'manager_add_prize_v2' : ActorMethod < [ AddPrizeInputV2 ] , Result_7 > ,
208+ 'manager_add_prize' : ActorMethod < [ AddPrizeInput ] , Result_8 > ,
209+ 'manager_add_prize_v2' : ActorMethod < [ AddPrizeInputV2 ] , Result_8 > ,
182210 'manager_ban_users' : ActorMethod < [ Array < Principal > ] , Result_1 > ,
183- 'manager_get_airdrop_key' : ActorMethod < [ ] , Result_7 > ,
211+ 'manager_get_airdrop_key' : ActorMethod < [ ] , Result_8 > ,
184212 'manager_remove_notifications' : ActorMethod <
185213 [ Uint8Array | number [ ] ] ,
186214 Result_1
187215 > ,
188216 'manager_set_challenge_pub_key' : ActorMethod < [ string ] , Result_1 > ,
217+ 'manager_start_airdrops108' : ActorMethod < [ ] , Result_9 > ,
189218 'manager_update_airdrop_amount' : ActorMethod < [ bigint ] , Result_1 > ,
190219 'manager_update_airdrop_balance' : ActorMethod < [ bigint ] , Result_1 > ,
220+ 'manager_update_airdrops108_ledger_list' : ActorMethod <
221+ [ Uint8Array | number [ ] ] ,
222+ Result_10
223+ > ,
224+ 'manager_update_airdrops108_neurons_list' : ActorMethod <
225+ [ Uint8Array | number [ ] ] ,
226+ Result_10
227+ > ,
191228 'manager_update_prize_subsidy' : ActorMethod <
192229 [ [ ] | [ [ bigint , number , number , number , number , number ] ] ] ,
193230 Result_1
@@ -196,10 +233,10 @@ export interface _SERVICE {
196233 [ [ ] | [ bigint ] , [ ] | [ bigint ] ] ,
197234 Array < LuckyDrawLog >
198235 > ,
199- 'name_lookup' : ActorMethod < [ string ] , Result_8 > ,
200- 'name_of' : ActorMethod < [ [ ] | [ Principal ] ] , Result_8 > ,
236+ 'name_lookup' : ActorMethod < [ string ] , Result_11 > ,
237+ 'name_of' : ActorMethod < [ [ ] | [ Principal ] ] , Result_11 > ,
201238 'notifications' : ActorMethod < [ ] , Array < Notification > > ,
202- 'principal_by_luckycode' : ActorMethod < [ string ] , Result_9 > ,
239+ 'principal_by_luckycode' : ActorMethod < [ string ] , Result_12 > ,
203240 'prize' : ActorMethod < [ string ] , Result_2 > ,
204241 'prize_claim_logs' : ActorMethod <
205242 [ Principal , [ ] | [ bigint ] , [ ] | [ bigint ] ] ,
@@ -215,15 +252,16 @@ export interface _SERVICE {
215252 [ [ ] | [ Principal ] ] ,
216253 Array < [ number , number , number , number , number , number ] >
217254 > ,
218- 'register_name' : ActorMethod < [ NameInput ] , Result_10 > ,
219- 'state' : ActorMethod < [ ] , Result_11 > ,
220- 'unregister_name' : ActorMethod < [ NameInput ] , Result_12 > ,
221- 'update_name' : ActorMethod < [ NameInput ] , Result_10 > ,
222- 'validate2_admin_collect_icp' : ActorMethod < [ bigint ] , Result_7 > ,
223- 'validate2_admin_set_managers' : ActorMethod < [ Array < Principal > ] , Result_7 > ,
255+ 'register_name' : ActorMethod < [ NameInput ] , Result_13 > ,
256+ 'state' : ActorMethod < [ ] , Result_14 > ,
257+ 'unregister_name' : ActorMethod < [ NameInput ] , Result_15 > ,
258+ 'update_name' : ActorMethod < [ NameInput ] , Result_13 > ,
259+ 'validate2_admin_collect_icp' : ActorMethod < [ bigint ] , Result_8 > ,
260+ 'validate2_admin_set_managers' : ActorMethod < [ Array < Principal > ] , Result_8 > ,
224261 'validate_admin_collect_icp' : ActorMethod < [ bigint ] , Result_1 > ,
262+ 'validate_admin_collect_tokens' : ActorMethod < [ bigint ] , Result_8 > ,
225263 'validate_admin_set_managers' : ActorMethod < [ Array < Principal > ] , Result_1 > ,
226- 'whoami' : ActorMethod < [ ] , Result_13 > ,
264+ 'whoami' : ActorMethod < [ ] , Result_16 > ,
227265}
228266export declare const idlFactory : IDL . InterfaceFactory ;
229267export declare const init : ( args : { IDL : typeof IDL } ) => IDL . Type [ ] ;
0 commit comments