-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsynbase(t).did.ts
164 lines (163 loc) · 6.12 KB
/
synbase(t).did.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import type { Principal } from '@dfinity/principal';
import type { ActorMethod } from '@dfinity/agent';
export interface Account {
'owner' : Principal,
'subaccount' : [] | [Uint8Array | number[]],
}
export interface Allowance {
'allowance' : bigint,
'expires_at' : [] | [bigint],
}
export interface AllowanceArgs { 'account' : Account, 'spender' : Account }
export interface ApproveArgs {
'fee' : [] | [bigint],
'memo' : [] | [Uint8Array | number[]],
'from_subaccount' : [] | [Uint8Array | number[]],
'created_at_time' : [] | [bigint],
'amount' : bigint,
'expected_allowance' : [] | [bigint],
'expires_at' : [] | [bigint],
'spender' : Account,
}
export type ApproveError = {
'GenericError' : _InlineApproveErrorGenericError
} |
{ 'TemporarilyUnavailable' : null } |
{ 'Duplicate' : _InlineApproveErrorDuplicate } |
{ 'BadFee' : _InlineApproveErrorBadFee } |
{ 'AllowanceChanged' : _InlineApproveErrorAllowanceChanged } |
{ 'CreatedInFuture' : _InlineApproveErrorExpired } |
{ 'TooOld' : null } |
{ 'Expired' : _InlineApproveErrorExpired } |
{ 'InsufficientFunds' : _InlineApproveErrorInsufficientFunds };
export interface InitArgs {
'fee' : bigint,
'minting_account' : [] | [Account],
'name' : string,
'primary_account' : [] | [Account],
'transaction_window_nanos' : bigint,
'permitted_drift_nanos' : bigint,
'decimal' : number,
'symbol' : string,
}
export interface State {
'fee' : bigint,
'decimals' : number,
'metadata' : Array<[string, Value]>,
'minting_account' : [] | [Account],
'name' : string,
'primary_account' : [] | [Account],
'transaction_window_nanos' : bigint,
'transactions' : Array<Transaction>,
'permitted_drift_nanos' : bigint,
'supported_standards' : Array<SupportedStandard>,
'total_supply' : bigint,
'symbol' : string,
}
export interface SupportedStandard { 'url' : string, 'name' : string }
export interface Transaction {
'fee' : bigint,
'args' : _InlineTransactionArgs,
'from' : [] | [Account],
'kind' : TransactionKind,
'timestamp' : bigint,
}
export type TransactionKind = { 'Approve' : null } |
{ 'Burn' : null } |
{ 'Mint' : null } |
{ 'Transfer' : null } |
{ 'TransferFrom' : null };
export interface TransferArgs {
'to' : Account,
'fee' : [] | [bigint],
'memo' : [] | [Uint8Array | number[]],
'from_subaccount' : [] | [Uint8Array | number[]],
'created_at_time' : [] | [bigint],
'amount' : bigint,
}
export type TransferError = {
'GenericError' : _InlineTransferErrorGenericError
} |
{ 'TemporarilyUnavailable' : null } |
{ 'BadBurn' : _InlineTransferErrorBadBurn } |
{ 'Duplicate' : _InlineTransferErrorDuplicate } |
{ 'BadFee' : _InlineTransferErrorBadFee } |
{ 'CreatedInFuture' : _InlineTransferErrorCreatedInFuture } |
{ 'TooOld' : null } |
{ 'InsufficientFunds' : _InlineTransferErrorInsufficientFunds };
export interface TransferFromArgs {
'to' : Account,
'fee' : [] | [bigint],
'spender_subaccount' : [] | [Uint8Array | number[]],
'from' : Account,
'memo' : [] | [Uint8Array | number[]],
'created_at_time' : [] | [bigint],
'amount' : bigint,
}
export type TransferFromError = {
'GenericError' : _InlineApproveErrorGenericError
} |
{ 'TemporarilyUnavailable' : null } |
{ 'InsufficientAllowance' : _InlineTransferFromErrorInsufficientAllowance } |
{ 'BadBurn' : _InlineTransferErrorBadBurn } |
{ 'Duplicate' : _InlineApproveErrorDuplicate } |
{ 'BadFee' : _InlineApproveErrorBadFee } |
{ 'CreatedInFuture' : _InlineApproveErrorExpired } |
{ 'TooOld' : null } |
{ 'InsufficientFunds' : _InlineApproveErrorInsufficientFunds };
export type Value = { 'Int' : bigint } |
{ 'Nat' : bigint } |
{ 'Blob' : Uint8Array | number[] } |
{ 'Text' : string };
export type _AzleResult = { 'Ok' : bigint } |
{ 'Err' : TransferError };
export type _AzleResult_1 = { 'Ok' : bigint } |
{ 'Err' : ApproveError };
export type _AzleResult_2 = { 'Ok' : bigint } |
{ 'Err' : TransferFromError };
export interface _InlineApproveErrorAllowanceChanged {
'current_allowance' : bigint,
}
export interface _InlineApproveErrorBadFee { 'expected_fee' : bigint }
export interface _InlineApproveErrorDuplicate { 'duplicate_of' : bigint }
export interface _InlineApproveErrorExpired { 'ledger_time' : bigint }
export interface _InlineApproveErrorGenericError {
'message' : string,
'error_code' : bigint,
}
export interface _InlineApproveErrorInsufficientFunds { 'balance' : bigint }
export type _InlineTransactionArgs = { 'ApproveArgs' : ApproveArgs } |
{ 'TransferFromArgs' : TransferFromArgs } |
{ 'TransferArgs' : TransferArgs };
export interface _InlineTransferErrorBadBurn { 'min_burn_amount' : bigint }
export interface _InlineTransferErrorBadFee { 'expected_fee' : bigint }
export interface _InlineTransferErrorCreatedInFuture { 'ledger_time' : bigint }
export interface _InlineTransferErrorDuplicate { 'duplicate_of' : bigint }
export interface _InlineTransferErrorGenericError {
'message' : string,
'error_code' : bigint,
}
export interface _InlineTransferErrorInsufficientFunds { 'balance' : bigint }
export interface _InlineTransferFromErrorInsufficientAllowance {
'allowance' : bigint,
}
export interface _SERVICE {
'getCurrentState' : ActorMethod<[], State>,
'icrc1_balance_of' : ActorMethod<[Account], bigint>,
'icrc1_decimals' : ActorMethod<[], number>,
'icrc1_fee' : ActorMethod<[], bigint>,
'icrc1_metadata' : ActorMethod<[], Array<[string, Value]>>,
'icrc1_minting_account' : ActorMethod<[], [] | [Account]>,
'icrc1_name' : ActorMethod<[], string>,
'icrc1_supported_standards' : ActorMethod<[], Array<SupportedStandard>>,
'icrc1_symbol' : ActorMethod<[], string>,
'icrc1_total_supply' : ActorMethod<[], bigint>,
'icrc1_transfer' : ActorMethod<[TransferArgs], _AzleResult>,
'icrc2_allowance' : ActorMethod<[AllowanceArgs], Allowance>,
'icrc2_approve' : ActorMethod<[ApproveArgs], _AzleResult_1>,
'icrc2_transfer_from' : ActorMethod<[TransferFromArgs], _AzleResult_2>,
'testPadAccount' : ActorMethod<[[] | [Uint8Array | number[]]], Account>,
'testingFee' : ActorMethod<[[] | [bigint]], boolean>,
'updateMinterAccount' : ActorMethod<[Principal], string>,
'updatePrimaryAccount' : ActorMethod<[Principal], string>,
}