-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeposit.did(t).ts
100 lines (99 loc) · 3.7 KB
/
deposit.did(t).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
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 type ICRCTransferError = {
'GenericError' : _InlineICRCTransferErrorGenericError
} |
{ 'TemporarilyUnavailable' : null } |
{ 'BadBurn' : _InlineICRCTransferErrorBadBurn } |
{ 'Duplicate' : _InlineICRCTransferErrorDuplicate } |
{ 'BadFee' : _InlineICRCTransferErrorBadFee } |
{ 'CreatedInFuture' : _InlineICRCTransferErrorCreatedInFuture } |
{ 'TooOld' : null } |
{ 'InsufficientFunds' : _InlineICRCTransferErrorInsufficientFunds };
export type ManualReply = { 'Ok' : bigint } |
{ 'Err' : ICRCTransferError };
export type ManualReply_1 = { 'Ok' : Array<UtxoStatus> } |
{ 'Err' : UpdateBalanceError };
export interface SupportedStandard { 'url' : string, 'name' : string }
export type UpdateBalanceError = {
'GenericError' : _InlineUpdateBalanceErrorGenericError
} |
{ 'TemporarilyUnavailable' : string } |
{ 'AlreadyProcessing' : null } |
{ 'NoNewUtxos' : _InlineUpdateBalanceErrorNoNewUtxos };
export interface Utxo {
'height' : number,
'value' : bigint,
'outpoint' : _InlineUtxoOutpoint,
}
export type UtxoStatus = { 'ValueTooSmall' : Utxo } |
{ 'Tainted' : Utxo } |
{ 'Minted' : _InlineUtxoStatusMinted } |
{ 'Checked' : Utxo };
export type Value = { 'Int' : bigint } |
{ 'Nat' : bigint } |
{ 'Blob' : Uint8Array | number[] } |
{ 'Text' : string };
export interface _InlineICRCTransferErrorBadBurn { 'min_burn_amount' : bigint }
export interface _InlineICRCTransferErrorBadFee { 'expected_fee' : bigint }
export interface _InlineICRCTransferErrorCreatedInFuture {
'ledger_time' : bigint,
}
export interface _InlineICRCTransferErrorDuplicate { 'duplicate_of' : bigint }
export interface _InlineICRCTransferErrorGenericError {
'message' : string,
'error_code' : bigint,
}
export interface _InlineICRCTransferErrorInsufficientFunds {
'balance' : bigint,
}
export interface _InlineUpdateBalanceErrorGenericError {
'error_message' : string,
'error_code' : bigint,
}
export interface _InlineUpdateBalanceErrorNoNewUtxos {
'required_confirmations' : number,
'current_confirmations' : [] | [number],
}
export interface _InlineUtxoOutpoint {
'txid' : Uint8Array | number[],
'vout' : number,
}
export interface _InlineUtxoStatusMinted {
'minted_amount' : bigint,
'block_index' : bigint,
'utxo' : Utxo,
}
export interface _SERVICE {
'getBalance' : ActorMethod<[Principal], bigint>,
'getBtcDepositAddress' : ActorMethod<[Principal], string>,
'getCaller' : ActorMethod<[], Principal>,
'getTime' : ActorMethod<[], bigint>,
'getUint8array' : ActorMethod<[Principal], Uint8Array | number[]>,
'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>,
'icrc2_allowance' : ActorMethod<[AllowanceArgs], Allowance>,
'testPadAccount' : ActorMethod<[[] | [Uint8Array | number[]]], Account>,
'transferToVault' : ActorMethod<
[Principal, bigint, Principal, bigint],
ManualReply
>,
'updateBalance' : ActorMethod<[Principal], ManualReply_1>,
'updateVaultManagerAddress' : ActorMethod<[Principal], string>,
}