@dfns/sdk 0.2.0 → 0.2.1
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.
- package/codegen/datamodel/PolicyExecution/types.d.ts +15 -0
- package/codegen/datamodel/PolicyExecution/types.js +3 -1
- package/codegen/datamodel/PolicyManagement/types.d.ts +139 -3
- package/codegen/datamodel/PolicyManagement/types.js +22 -10
- package/dfnsApiClient.d.ts +8 -0
- package/dfnsApiClient.js +10 -0
- package/dfnsDelegatedApiClient.d.ts +8 -0
- package/dfnsDelegatedApiClient.js +10 -0
- package/generated/policies/client.d.ts +13 -0
- package/generated/policies/client.js +92 -0
- package/generated/policies/delegatedClient.d.ts +18 -0
- package/generated/policies/delegatedClient.js +153 -0
- package/generated/policies/index.d.ts +3 -0
- package/generated/policies/index.js +19 -0
- package/generated/policies/types.d.ts +544 -0
- package/generated/policies/types.js +2 -0
- package/generated/wallets/types.d.ts +78 -70
- package/package.json +1 -1
- package/types/policies.d.ts +1 -0
- package/types/policies.js +17 -0
|
@@ -4,26 +4,27 @@ export type BroadcastTransactionBody = {
|
|
|
4
4
|
} | {
|
|
5
5
|
kind: "Evm";
|
|
6
6
|
to?: string | undefined;
|
|
7
|
-
value?: string | undefined;
|
|
7
|
+
value?: (string | string) | undefined;
|
|
8
8
|
data?: string | undefined;
|
|
9
|
-
nonce?: number | undefined;
|
|
9
|
+
nonce?: (number | string | string) | undefined;
|
|
10
|
+
gasLimit?: (string | string) | undefined;
|
|
10
11
|
} | {
|
|
11
12
|
kind: "Eip1559";
|
|
12
13
|
to?: string | undefined;
|
|
13
|
-
value?: string | undefined;
|
|
14
|
+
value?: (string | string) | undefined;
|
|
14
15
|
data?: string | undefined;
|
|
15
|
-
nonce?: number | undefined;
|
|
16
|
-
gasLimit?: string | undefined;
|
|
17
|
-
maxFeePerGas?: string | undefined;
|
|
18
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
16
|
+
nonce?: (number | string | string) | undefined;
|
|
17
|
+
gasLimit?: (string | string) | undefined;
|
|
18
|
+
maxFeePerGas?: (string | string) | undefined;
|
|
19
|
+
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
19
20
|
} | {
|
|
20
21
|
kind: "EvmLegacy";
|
|
21
22
|
to?: string | undefined;
|
|
22
|
-
value?: string | undefined;
|
|
23
|
+
value?: (string | string) | undefined;
|
|
23
24
|
data?: string | undefined;
|
|
24
|
-
nonce?: number | undefined;
|
|
25
|
-
gasLimit?: string | undefined;
|
|
26
|
-
gasPrice?: string | undefined;
|
|
25
|
+
nonce?: (number | string | string) | undefined;
|
|
26
|
+
gasLimit?: (string | string) | undefined;
|
|
27
|
+
gasPrice?: (string | string) | undefined;
|
|
27
28
|
} | {
|
|
28
29
|
kind: "Psbt";
|
|
29
30
|
psbt: string;
|
|
@@ -34,7 +35,7 @@ export type BroadcastTransactionParams = {
|
|
|
34
35
|
export type BroadcastTransactionResponse = {
|
|
35
36
|
id: string;
|
|
36
37
|
walletId: string;
|
|
37
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
38
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
38
39
|
requester: {
|
|
39
40
|
userId: string;
|
|
40
41
|
tokenId?: string | undefined;
|
|
@@ -46,26 +47,27 @@ export type BroadcastTransactionResponse = {
|
|
|
46
47
|
} | {
|
|
47
48
|
kind: "Evm";
|
|
48
49
|
to?: string | undefined;
|
|
49
|
-
value?: string | undefined;
|
|
50
|
+
value?: (string | string) | undefined;
|
|
50
51
|
data?: string | undefined;
|
|
51
|
-
nonce?: number | undefined;
|
|
52
|
+
nonce?: (number | string | string) | undefined;
|
|
53
|
+
gasLimit?: (string | string) | undefined;
|
|
52
54
|
} | {
|
|
53
55
|
kind: "Eip1559";
|
|
54
56
|
to?: string | undefined;
|
|
55
|
-
value?: string | undefined;
|
|
57
|
+
value?: (string | string) | undefined;
|
|
56
58
|
data?: string | undefined;
|
|
57
|
-
nonce?: number | undefined;
|
|
58
|
-
gasLimit?: string | undefined;
|
|
59
|
-
maxFeePerGas?: string | undefined;
|
|
60
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
59
|
+
nonce?: (number | string | string) | undefined;
|
|
60
|
+
gasLimit?: (string | string) | undefined;
|
|
61
|
+
maxFeePerGas?: (string | string) | undefined;
|
|
62
|
+
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
61
63
|
} | {
|
|
62
64
|
kind: "EvmLegacy";
|
|
63
65
|
to?: string | undefined;
|
|
64
|
-
value?: string | undefined;
|
|
66
|
+
value?: (string | string) | undefined;
|
|
65
67
|
data?: string | undefined;
|
|
66
|
-
nonce?: number | undefined;
|
|
67
|
-
gasLimit?: string | undefined;
|
|
68
|
-
gasPrice?: string | undefined;
|
|
68
|
+
nonce?: (number | string | string) | undefined;
|
|
69
|
+
gasLimit?: (string | string) | undefined;
|
|
70
|
+
gasPrice?: (string | string) | undefined;
|
|
69
71
|
} | {
|
|
70
72
|
kind: "Psbt";
|
|
71
73
|
psbt: string;
|
|
@@ -83,7 +85,7 @@ export type BroadcastTransactionRequest = BroadcastTransactionParams & {
|
|
|
83
85
|
body: BroadcastTransactionBody;
|
|
84
86
|
};
|
|
85
87
|
export type CreateWalletBody = {
|
|
86
|
-
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "
|
|
88
|
+
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "ArbitrumGoerli" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "OptimismGoerli" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
87
89
|
name?: string | undefined;
|
|
88
90
|
externalId?: string | undefined;
|
|
89
91
|
tags?: string[] | undefined;
|
|
@@ -91,7 +93,7 @@ export type CreateWalletBody = {
|
|
|
91
93
|
};
|
|
92
94
|
export type CreateWalletResponse = {
|
|
93
95
|
id: string;
|
|
94
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
96
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
95
97
|
address?: string | undefined;
|
|
96
98
|
signingKey: {
|
|
97
99
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -187,7 +189,7 @@ export type GenerateSignatureParams = {
|
|
|
187
189
|
export type GenerateSignatureResponse = {
|
|
188
190
|
id: string;
|
|
189
191
|
walletId: string;
|
|
190
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
192
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
191
193
|
requester: {
|
|
192
194
|
userId: string;
|
|
193
195
|
tokenId?: string | undefined;
|
|
@@ -256,7 +258,7 @@ export type GetSignatureParams = {
|
|
|
256
258
|
export type GetSignatureResponse = {
|
|
257
259
|
id: string;
|
|
258
260
|
walletId: string;
|
|
259
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
261
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
260
262
|
requester: {
|
|
261
263
|
userId: string;
|
|
262
264
|
tokenId?: string | undefined;
|
|
@@ -323,7 +325,7 @@ export type GetTransactionParams = {
|
|
|
323
325
|
export type GetTransactionResponse = {
|
|
324
326
|
id: string;
|
|
325
327
|
walletId: string;
|
|
326
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
328
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
327
329
|
requester: {
|
|
328
330
|
userId: string;
|
|
329
331
|
tokenId?: string | undefined;
|
|
@@ -335,26 +337,27 @@ export type GetTransactionResponse = {
|
|
|
335
337
|
} | {
|
|
336
338
|
kind: "Evm";
|
|
337
339
|
to?: string | undefined;
|
|
338
|
-
value?: string | undefined;
|
|
340
|
+
value?: (string | string) | undefined;
|
|
339
341
|
data?: string | undefined;
|
|
340
|
-
nonce?: number | undefined;
|
|
342
|
+
nonce?: (number | string | string) | undefined;
|
|
343
|
+
gasLimit?: (string | string) | undefined;
|
|
341
344
|
} | {
|
|
342
345
|
kind: "Eip1559";
|
|
343
346
|
to?: string | undefined;
|
|
344
|
-
value?: string | undefined;
|
|
347
|
+
value?: (string | string) | undefined;
|
|
345
348
|
data?: string | undefined;
|
|
346
|
-
nonce?: number | undefined;
|
|
347
|
-
gasLimit?: string | undefined;
|
|
348
|
-
maxFeePerGas?: string | undefined;
|
|
349
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
349
|
+
nonce?: (number | string | string) | undefined;
|
|
350
|
+
gasLimit?: (string | string) | undefined;
|
|
351
|
+
maxFeePerGas?: (string | string) | undefined;
|
|
352
|
+
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
350
353
|
} | {
|
|
351
354
|
kind: "EvmLegacy";
|
|
352
355
|
to?: string | undefined;
|
|
353
|
-
value?: string | undefined;
|
|
356
|
+
value?: (string | string) | undefined;
|
|
354
357
|
data?: string | undefined;
|
|
355
|
-
nonce?: number | undefined;
|
|
356
|
-
gasLimit?: string | undefined;
|
|
357
|
-
gasPrice?: string | undefined;
|
|
358
|
+
nonce?: (number | string | string) | undefined;
|
|
359
|
+
gasLimit?: (string | string) | undefined;
|
|
360
|
+
gasPrice?: (string | string) | undefined;
|
|
358
361
|
} | {
|
|
359
362
|
kind: "Psbt";
|
|
360
363
|
psbt: string;
|
|
@@ -376,7 +379,7 @@ export type GetTransferParams = {
|
|
|
376
379
|
export type GetTransferResponse = {
|
|
377
380
|
id: string;
|
|
378
381
|
walletId: string;
|
|
379
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
382
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
380
383
|
requester: {
|
|
381
384
|
userId: string;
|
|
382
385
|
tokenId?: string | undefined;
|
|
@@ -384,8 +387,9 @@ export type GetTransferResponse = {
|
|
|
384
387
|
};
|
|
385
388
|
requestBody: {
|
|
386
389
|
kind: "Native";
|
|
387
|
-
to: string | string | string | string | string;
|
|
390
|
+
to: string | string | string | string | string | string;
|
|
388
391
|
amount: string;
|
|
392
|
+
memo?: string | undefined;
|
|
389
393
|
} | {
|
|
390
394
|
kind: "Erc20";
|
|
391
395
|
contract: string;
|
|
@@ -437,7 +441,7 @@ export type GetWalletParams = {
|
|
|
437
441
|
};
|
|
438
442
|
export type GetWalletResponse = {
|
|
439
443
|
id: string;
|
|
440
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
444
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
441
445
|
address?: string | undefined;
|
|
442
446
|
signingKey: {
|
|
443
447
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -459,7 +463,7 @@ export type GetWalletAssetsParams = {
|
|
|
459
463
|
};
|
|
460
464
|
export type GetWalletAssetsResponse = {
|
|
461
465
|
walletId: string;
|
|
462
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
466
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
463
467
|
assets: {
|
|
464
468
|
kind: "Native" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
465
469
|
contract?: string | undefined;
|
|
@@ -482,11 +486,11 @@ export type GetWalletHistoryQuery = {
|
|
|
482
486
|
};
|
|
483
487
|
export type GetWalletHistoryResponse = {
|
|
484
488
|
walletId: string;
|
|
485
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
489
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
486
490
|
items: ({
|
|
487
491
|
walletId: string;
|
|
488
492
|
direction: "In" | "Out";
|
|
489
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
493
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
490
494
|
blockNumber: number;
|
|
491
495
|
txHash: string;
|
|
492
496
|
index?: string | undefined;
|
|
@@ -523,7 +527,7 @@ export type GetWalletHistoryResponse = {
|
|
|
523
527
|
} | {
|
|
524
528
|
walletId: string;
|
|
525
529
|
direction: "In" | "Out";
|
|
526
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
530
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
527
531
|
blockNumber: number;
|
|
528
532
|
txHash: string;
|
|
529
533
|
index?: string | undefined;
|
|
@@ -561,7 +565,7 @@ export type GetWalletHistoryResponse = {
|
|
|
561
565
|
} | {
|
|
562
566
|
walletId: string;
|
|
563
567
|
direction: "In" | "Out";
|
|
564
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
568
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
565
569
|
blockNumber: number;
|
|
566
570
|
txHash: string;
|
|
567
571
|
index?: string | undefined;
|
|
@@ -605,7 +609,7 @@ export type GetWalletNftsParams = {
|
|
|
605
609
|
};
|
|
606
610
|
export type GetWalletNftsResponse = {
|
|
607
611
|
walletId: string;
|
|
608
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
612
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
609
613
|
nfts: {
|
|
610
614
|
kind: "Native" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
611
615
|
contract?: string | undefined;
|
|
@@ -617,7 +621,7 @@ export type GetWalletNftsResponse = {
|
|
|
617
621
|
};
|
|
618
622
|
export type GetWalletNftsRequest = GetWalletNftsParams;
|
|
619
623
|
export type ImportWalletBody = {
|
|
620
|
-
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "
|
|
624
|
+
network: "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "ArbitrumGoerli" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "OptimismGoerli" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
621
625
|
name?: string | undefined;
|
|
622
626
|
externalId?: string | undefined;
|
|
623
627
|
tags?: string[] | undefined;
|
|
@@ -631,7 +635,7 @@ export type ImportWalletBody = {
|
|
|
631
635
|
};
|
|
632
636
|
export type ImportWalletResponse = {
|
|
633
637
|
id: string;
|
|
634
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
638
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
635
639
|
address?: string | undefined;
|
|
636
640
|
signingKey: {
|
|
637
641
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -662,7 +666,7 @@ export type ListSignaturesResponse = {
|
|
|
662
666
|
items: {
|
|
663
667
|
id: string;
|
|
664
668
|
walletId: string;
|
|
665
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
669
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
666
670
|
requester: {
|
|
667
671
|
userId: string;
|
|
668
672
|
tokenId?: string | undefined;
|
|
@@ -738,7 +742,7 @@ export type ListTransactionsResponse = {
|
|
|
738
742
|
items: {
|
|
739
743
|
id: string;
|
|
740
744
|
walletId: string;
|
|
741
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
745
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
742
746
|
requester: {
|
|
743
747
|
userId: string;
|
|
744
748
|
tokenId?: string | undefined;
|
|
@@ -750,26 +754,27 @@ export type ListTransactionsResponse = {
|
|
|
750
754
|
} | {
|
|
751
755
|
kind: "Evm";
|
|
752
756
|
to?: string | undefined;
|
|
753
|
-
value?: string | undefined;
|
|
757
|
+
value?: (string | string) | undefined;
|
|
754
758
|
data?: string | undefined;
|
|
755
|
-
nonce?: number | undefined;
|
|
759
|
+
nonce?: (number | string | string) | undefined;
|
|
760
|
+
gasLimit?: (string | string) | undefined;
|
|
756
761
|
} | {
|
|
757
762
|
kind: "Eip1559";
|
|
758
763
|
to?: string | undefined;
|
|
759
|
-
value?: string | undefined;
|
|
764
|
+
value?: (string | string) | undefined;
|
|
760
765
|
data?: string | undefined;
|
|
761
|
-
nonce?: number | undefined;
|
|
762
|
-
gasLimit?: string | undefined;
|
|
763
|
-
maxFeePerGas?: string | undefined;
|
|
764
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
766
|
+
nonce?: (number | string | string) | undefined;
|
|
767
|
+
gasLimit?: (string | string) | undefined;
|
|
768
|
+
maxFeePerGas?: (string | string) | undefined;
|
|
769
|
+
maxPriorityFeePerGas?: (string | string) | undefined;
|
|
765
770
|
} | {
|
|
766
771
|
kind: "EvmLegacy";
|
|
767
772
|
to?: string | undefined;
|
|
768
|
-
value?: string | undefined;
|
|
773
|
+
value?: (string | string) | undefined;
|
|
769
774
|
data?: string | undefined;
|
|
770
|
-
nonce?: number | undefined;
|
|
771
|
-
gasLimit?: string | undefined;
|
|
772
|
-
gasPrice?: string | undefined;
|
|
775
|
+
nonce?: (number | string | string) | undefined;
|
|
776
|
+
gasLimit?: (string | string) | undefined;
|
|
777
|
+
gasPrice?: (string | string) | undefined;
|
|
773
778
|
} | {
|
|
774
779
|
kind: "Psbt";
|
|
775
780
|
psbt: string;
|
|
@@ -800,7 +805,7 @@ export type ListTransfersResponse = {
|
|
|
800
805
|
items: {
|
|
801
806
|
id: string;
|
|
802
807
|
walletId: string;
|
|
803
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
808
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
804
809
|
requester: {
|
|
805
810
|
userId: string;
|
|
806
811
|
tokenId?: string | undefined;
|
|
@@ -808,8 +813,9 @@ export type ListTransfersResponse = {
|
|
|
808
813
|
};
|
|
809
814
|
requestBody: {
|
|
810
815
|
kind: "Native";
|
|
811
|
-
to: string | string | string | string | string;
|
|
816
|
+
to: string | string | string | string | string | string;
|
|
812
817
|
amount: string;
|
|
818
|
+
memo?: string | undefined;
|
|
813
819
|
} | {
|
|
814
820
|
kind: "Erc20";
|
|
815
821
|
contract: string;
|
|
@@ -867,7 +873,7 @@ export type ListWalletsQuery = {
|
|
|
867
873
|
export type ListWalletsResponse = {
|
|
868
874
|
items: {
|
|
869
875
|
id: string;
|
|
870
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
876
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
871
877
|
address?: string | undefined;
|
|
872
878
|
signingKey: {
|
|
873
879
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -890,8 +896,9 @@ export type ListWalletsRequest = {
|
|
|
890
896
|
};
|
|
891
897
|
export type TransferAssetBody = {
|
|
892
898
|
kind: "Native";
|
|
893
|
-
to: string | string | string | string | string;
|
|
899
|
+
to: string | string | string | string | string | string;
|
|
894
900
|
amount: string;
|
|
901
|
+
memo?: string | undefined;
|
|
895
902
|
} | {
|
|
896
903
|
kind: "Erc20";
|
|
897
904
|
contract: string;
|
|
@@ -924,7 +931,7 @@ export type TransferAssetParams = {
|
|
|
924
931
|
export type TransferAssetResponse = {
|
|
925
932
|
id: string;
|
|
926
933
|
walletId: string;
|
|
927
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
934
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
928
935
|
requester: {
|
|
929
936
|
userId: string;
|
|
930
937
|
tokenId?: string | undefined;
|
|
@@ -932,8 +939,9 @@ export type TransferAssetResponse = {
|
|
|
932
939
|
};
|
|
933
940
|
requestBody: {
|
|
934
941
|
kind: "Native";
|
|
935
|
-
to: string | string | string | string | string;
|
|
942
|
+
to: string | string | string | string | string | string;
|
|
936
943
|
amount: string;
|
|
944
|
+
memo?: string | undefined;
|
|
937
945
|
} | {
|
|
938
946
|
kind: "Erc20";
|
|
939
947
|
contract: string;
|
|
@@ -990,7 +998,7 @@ export type UpdateWalletParams = {
|
|
|
990
998
|
};
|
|
991
999
|
export type UpdateWalletResponse = {
|
|
992
1000
|
id: string;
|
|
993
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1001
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonMumbai" | "Ripple" | "RippleTestnet" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
994
1002
|
address?: string | undefined;
|
|
995
1003
|
signingKey: {
|
|
996
1004
|
scheme: "ECDSA" | "EdDSA";
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../generated/policies/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../generated/policies/types"), exports);
|