@@ -37,7 +37,7 @@ export type Result = { 'Ok' : null } |
3737 { 'Err' : string } ;
3838export type Result_1 = { 'Ok' : bigint } |
3939 { 'Err' : string } ;
40- export type Result_2 = { 'Ok' : State } |
40+ export type Result_2 = { 'Ok' : StateInfo } |
4141 { 'Err' : string } ;
4242export type Result_3 = { 'Ok' : PayerStateInfo } |
4343 { 'Err' : string } ;
@@ -49,7 +49,7 @@ export type Result_6 = { 'Ok' : string } |
4949 { 'Err' : string } ;
5050export type Scheme = { 'Exact' : null } |
5151 { 'Upto' : null } ;
52- export interface State {
52+ export interface StateInfo {
5353 'total_withdrawn_fees' : Array < [ Principal , bigint ] > ,
5454 'supported_payments' : Array < SupportedPaymentKind > ,
5555 'total_collected_fees' : Array < [ Principal , bigint ] > ,
@@ -69,25 +69,25 @@ export interface UpgradeArgs {
6969}
7070export type X402Version = { 'V1' : null } ;
7171export interface _SERVICE {
72- 'admin_add_supported_payment' : ActorMethod < [ X402Version , Scheme ] , Result > ,
72+ 'admin_add_supported_payment' : ActorMethod < [ number , string ] , Result > ,
7373 'admin_collect_fees' : ActorMethod < [ Principal , Principal , bigint ] , Result_1 > ,
7474 'admin_remove_supported_asset' : ActorMethod < [ Principal ] , Result > ,
75- 'admin_remove_supported_payment' : ActorMethod < [ X402Version , Scheme ] , Result > ,
75+ 'admin_remove_supported_payment' : ActorMethod < [ number , string ] , Result > ,
7676 'admin_update_supported_asset' : ActorMethod < [ Principal , bigint ] , Result > ,
7777 'info' : ActorMethod < [ ] , Result_2 > ,
7878 'my_info' : ActorMethod < [ ] , Result_3 > ,
7979 'my_payment_logs' : ActorMethod < [ number , [ ] | [ bigint ] ] , Result_4 > ,
8080 'next_nonce' : ActorMethod < [ ] , Result_5 > ,
8181 'validate_admin_add_supported_payment' : ActorMethod <
82- [ X402Version , Scheme ] ,
82+ [ number , string ] ,
8383 Result_6
8484 > ,
8585 'validate_admin_collect_fees' : ActorMethod <
8686 [ Principal , Principal , bigint ] ,
8787 Result_6
8888 > ,
8989 'validate_admin_remove_supported_payment' : ActorMethod <
90- [ X402Version , Scheme ] ,
90+ [ number , string ] ,
9191 Result_6
9292 > ,
9393 'validate_admin_update_supported_asset' : ActorMethod <
0 commit comments