@privy-io/api-types 0.8.0 → 0.10.0
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/CHANGELOG.md +57 -0
- package/client.d.mts +35 -32
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -32
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +22 -8
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +177 -129
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +177 -129
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +650 -648
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +650 -648
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +84 -84
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +84 -84
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +270 -266
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +270 -266
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +62 -19
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +62 -19
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +360 -231
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +360 -231
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +8 -11
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +8 -11
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +56 -66
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +56 -66
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +457 -448
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +457 -448
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +450 -41
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +450 -41
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +16 -31
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +16 -31
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +1475 -1172
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1475 -1172
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +10 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +10 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1345 -582
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1345 -582
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +661 -455
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +232 -166
- package/src/resources/client-auth.ts +890 -890
- package/src/resources/embedded-wallets.ts +123 -123
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +521 -431
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +116 -19
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +495 -339
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +9 -14
- package/src/resources/transactions.ts +88 -115
- package/src/resources/users.ts +664 -653
- package/src/resources/wallet-actions.ts +585 -56
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +158 -138
- package/src/resources/wallets/transactions.ts +20 -83
- package/src/resources/wallets/wallets.ts +1997 -1563
- package/src/resources/webhooks.ts +1652 -700
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/shared.ts
CHANGED
|
@@ -5,28 +5,36 @@ import { APIResource } from '../core/resource';
|
|
|
5
5
|
export class Shared extends APIResource {}
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* A
|
|
8
|
+
* A monetary value with its currency denomination.
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
11
|
-
|
|
10
|
+
export interface CurrencyAmount {
|
|
11
|
+
/**
|
|
12
|
+
* Currency code
|
|
13
|
+
*/
|
|
14
|
+
currency: 'usd';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The monetary value as a string.
|
|
18
|
+
*/
|
|
19
|
+
value: string;
|
|
12
20
|
}
|
|
13
21
|
|
|
14
22
|
/**
|
|
15
|
-
* A
|
|
23
|
+
* A unique identifier for a key quorum.
|
|
16
24
|
*/
|
|
17
|
-
export type
|
|
25
|
+
export type KeyQuorumID = string;
|
|
18
26
|
|
|
19
27
|
/**
|
|
20
|
-
*
|
|
28
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
29
|
+
* not specify an owner.
|
|
21
30
|
*/
|
|
22
|
-
export type
|
|
31
|
+
export type OwnerIDInput = string | null;
|
|
23
32
|
|
|
24
33
|
/**
|
|
25
|
-
*
|
|
34
|
+
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
35
|
+
* null to remove the current owner.
|
|
26
36
|
*/
|
|
27
|
-
export
|
|
28
|
-
user_id: string;
|
|
29
|
-
}
|
|
37
|
+
export type OwnerInput = OwnerInputUser | OwnerInputPublicKey;
|
|
30
38
|
|
|
31
39
|
/**
|
|
32
40
|
* Owner input specifying a P-256 public key.
|
|
@@ -39,41 +47,33 @@ export interface OwnerInputPublicKey {
|
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
/**
|
|
42
|
-
*
|
|
43
|
-
* null to remove the current owner.
|
|
50
|
+
* Owner input specifying a Privy user ID.
|
|
44
51
|
*/
|
|
45
|
-
export
|
|
52
|
+
export interface OwnerInputUser {
|
|
53
|
+
user_id: string;
|
|
54
|
+
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
49
|
-
* not specify an owner.
|
|
57
|
+
* A P-256 (secp256r1) public key.
|
|
50
58
|
*/
|
|
51
|
-
export type
|
|
59
|
+
export type P256PublicKey = string;
|
|
52
60
|
|
|
53
61
|
/**
|
|
54
|
-
* A
|
|
62
|
+
* A simple success response.
|
|
55
63
|
*/
|
|
56
|
-
export interface
|
|
57
|
-
|
|
58
|
-
* Currency code
|
|
59
|
-
*/
|
|
60
|
-
currency: 'usd';
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The monetary value as a string.
|
|
64
|
-
*/
|
|
65
|
-
value: string;
|
|
64
|
+
export interface SuccessResponse {
|
|
65
|
+
success: boolean;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export declare namespace Shared {
|
|
69
69
|
export {
|
|
70
|
-
type
|
|
71
|
-
type P256PublicKey as P256PublicKey,
|
|
70
|
+
type CurrencyAmount as CurrencyAmount,
|
|
72
71
|
type KeyQuorumID as KeyQuorumID,
|
|
73
|
-
type OwnerInputUser as OwnerInputUser,
|
|
74
|
-
type OwnerInputPublicKey as OwnerInputPublicKey,
|
|
75
|
-
type OwnerInput as OwnerInput,
|
|
76
72
|
type OwnerIDInput as OwnerIDInput,
|
|
77
|
-
type
|
|
73
|
+
type OwnerInput as OwnerInput,
|
|
74
|
+
type OwnerInputPublicKey as OwnerInputPublicKey,
|
|
75
|
+
type OwnerInputUser as OwnerInputUser,
|
|
76
|
+
type P256PublicKey as P256PublicKey,
|
|
77
|
+
type SuccessResponse as SuccessResponse,
|
|
78
78
|
};
|
|
79
79
|
}
|
package/src/resources/swaps.ts
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as WalletsAPI from './wallets/wallets';
|
|
4
5
|
|
|
5
6
|
export class Swaps extends APIResource {}
|
|
6
7
|
|
|
7
|
-
/**
|
|
8
|
-
* Whether the swap amount refers to the input token or output token.
|
|
9
|
-
*/
|
|
10
|
-
export type SwapAmountType = 'exact_input' | 'exact_output';
|
|
11
|
-
|
|
12
8
|
/**
|
|
13
9
|
* Input for requesting a token swap quote.
|
|
14
10
|
*/
|
|
15
|
-
export interface
|
|
11
|
+
export interface SwapQuoteRequestBody {
|
|
16
12
|
/**
|
|
17
13
|
* Amount in base units (e.g., wei for ETH).
|
|
18
14
|
*/
|
|
@@ -34,9 +30,9 @@ export interface SwapQuoteRequest {
|
|
|
34
30
|
output_token: string;
|
|
35
31
|
|
|
36
32
|
/**
|
|
37
|
-
* Whether the
|
|
33
|
+
* Whether the amount refers to the input token or output token.
|
|
38
34
|
*/
|
|
39
|
-
amount_type?:
|
|
35
|
+
amount_type?: WalletsAPI.AmountType;
|
|
40
36
|
|
|
41
37
|
/**
|
|
42
38
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
|
|
@@ -88,7 +84,7 @@ export interface SwapQuoteResponse {
|
|
|
88
84
|
/**
|
|
89
85
|
* Input for executing a token swap.
|
|
90
86
|
*/
|
|
91
|
-
export interface
|
|
87
|
+
export interface SwapRequestBody {
|
|
92
88
|
/**
|
|
93
89
|
* Amount in base units (e.g., wei for ETH).
|
|
94
90
|
*/
|
|
@@ -110,9 +106,9 @@ export interface SwapRequest {
|
|
|
110
106
|
output_token: string;
|
|
111
107
|
|
|
112
108
|
/**
|
|
113
|
-
* Whether the
|
|
109
|
+
* Whether the amount refers to the input token or output token.
|
|
114
110
|
*/
|
|
115
|
-
amount_type?:
|
|
111
|
+
amount_type?: WalletsAPI.AmountType;
|
|
116
112
|
|
|
117
113
|
/**
|
|
118
114
|
* Address to receive the output tokens. Defaults to the wallet address if not
|
|
@@ -128,9 +124,8 @@ export interface SwapRequest {
|
|
|
128
124
|
|
|
129
125
|
export declare namespace Swaps {
|
|
130
126
|
export {
|
|
131
|
-
type
|
|
132
|
-
type SwapQuoteRequest as SwapQuoteRequest,
|
|
127
|
+
type SwapQuoteRequestBody as SwapQuoteRequestBody,
|
|
133
128
|
type SwapQuoteResponse as SwapQuoteResponse,
|
|
134
|
-
type
|
|
129
|
+
type SwapRequestBody as SwapRequestBody,
|
|
135
130
|
};
|
|
136
131
|
}
|
|
@@ -19,7 +19,7 @@ export class Transactions extends APIResource {
|
|
|
19
19
|
* );
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
get(transactionID: string, options?: RequestOptions): APIPromise<
|
|
22
|
+
get(transactionID: string, options?: RequestOptions): APIPromise<Transaction> {
|
|
23
23
|
return this._client.get(path`/v1/transactions/${transactionID}`, options);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -57,45 +57,56 @@ export interface TransactionScanningResponseBody {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* A transaction from a Privy wallet.
|
|
61
61
|
*/
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
}
|
|
62
|
+
export interface Transaction {
|
|
63
|
+
id: string;
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
* Raw RPC request to execute with the wallet.
|
|
68
|
-
*/
|
|
69
|
-
export interface TransactionScanningRpcRequest {
|
|
70
|
-
method: string;
|
|
65
|
+
caip2: string;
|
|
71
66
|
|
|
72
|
-
|
|
73
|
-
}
|
|
67
|
+
created_at: number;
|
|
74
68
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
status:
|
|
70
|
+
| 'broadcasted'
|
|
71
|
+
| 'confirmed'
|
|
72
|
+
| 'execution_reverted'
|
|
73
|
+
| 'failed'
|
|
74
|
+
| 'replaced'
|
|
75
|
+
| 'finalized'
|
|
76
|
+
| 'provider_error'
|
|
77
|
+
| 'pending';
|
|
80
78
|
|
|
81
|
-
|
|
79
|
+
transaction_hash: string | null;
|
|
80
|
+
|
|
81
|
+
wallet_id: string;
|
|
82
|
+
|
|
83
|
+
reference_id?: string | null;
|
|
84
|
+
|
|
85
|
+
sponsored?: boolean;
|
|
86
|
+
|
|
87
|
+
user_operation_hash?: string;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
/**
|
|
85
|
-
* A
|
|
91
|
+
* A list of transactions.
|
|
86
92
|
*/
|
|
87
|
-
export interface
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
status: 'Success';
|
|
93
|
+
export interface TransactionList {
|
|
94
|
+
transactions: Array<Transaction>;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
/**
|
|
94
|
-
*
|
|
98
|
+
* An asset diff representing assets entering/leaving a wallet.
|
|
95
99
|
*/
|
|
96
|
-
export
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
export interface TransactionScanningAssetDiff {
|
|
101
|
+
/**
|
|
102
|
+
* Information about the moving asset in a transaction scan.
|
|
103
|
+
*/
|
|
104
|
+
asset: TransactionScanningAssetInfo;
|
|
105
|
+
|
|
106
|
+
in: Array<TransactionScanningAssetValue>;
|
|
107
|
+
|
|
108
|
+
out: Array<TransactionScanningAssetValue>;
|
|
109
|
+
}
|
|
99
110
|
|
|
100
111
|
/**
|
|
101
112
|
* Information about the moving asset in a transaction scan.
|
|
@@ -122,17 +133,14 @@ export interface TransactionScanningAssetValue {
|
|
|
122
133
|
}
|
|
123
134
|
|
|
124
135
|
/**
|
|
125
|
-
*
|
|
136
|
+
* Decoded calldata from a scanned transaction.
|
|
126
137
|
*/
|
|
127
|
-
export interface
|
|
128
|
-
|
|
129
|
-
* Information about the moving asset in a transaction scan.
|
|
130
|
-
*/
|
|
131
|
-
asset: TransactionScanningAssetInfo;
|
|
138
|
+
export interface TransactionScanningCalldata {
|
|
139
|
+
function_selector: string;
|
|
132
140
|
|
|
133
|
-
|
|
141
|
+
function_declaration?: string;
|
|
134
142
|
|
|
135
|
-
|
|
143
|
+
function_signature?: string;
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
/**
|
|
@@ -148,14 +156,10 @@ export interface TransactionScanningExposure {
|
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
/**
|
|
151
|
-
*
|
|
159
|
+
* Additional information for Blockaid to validate against.
|
|
152
160
|
*/
|
|
153
|
-
export interface
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
function_declaration?: string;
|
|
157
|
-
|
|
158
|
-
function_signature?: string;
|
|
161
|
+
export interface TransactionScanningMetadata {
|
|
162
|
+
domain: string;
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
/**
|
|
@@ -184,6 +188,15 @@ export interface TransactionScanningParams {
|
|
|
184
188
|
value?: string;
|
|
185
189
|
}
|
|
186
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Raw RPC request to execute with the wallet.
|
|
193
|
+
*/
|
|
194
|
+
export interface TransactionScanningRpcRequest {
|
|
195
|
+
method: string;
|
|
196
|
+
|
|
197
|
+
params: Array<unknown>;
|
|
198
|
+
}
|
|
199
|
+
|
|
187
200
|
/**
|
|
188
201
|
* A failed simulation result from a transaction scan.
|
|
189
202
|
*/
|
|
@@ -193,6 +206,13 @@ export interface TransactionScanningSimulationErrorResult {
|
|
|
193
206
|
status: 'Error';
|
|
194
207
|
}
|
|
195
208
|
|
|
209
|
+
/**
|
|
210
|
+
* The simulation result from a transaction scan.
|
|
211
|
+
*/
|
|
212
|
+
export type TransactionScanningSimulationResult =
|
|
213
|
+
| TransactionScanningSimulationErrorResult
|
|
214
|
+
| TransactionScanningSimulationSuccessResult;
|
|
215
|
+
|
|
196
216
|
/**
|
|
197
217
|
* A successful simulation result from a transaction scan.
|
|
198
218
|
*/
|
|
@@ -210,96 +230,49 @@ export interface TransactionScanningSimulationSuccessResult {
|
|
|
210
230
|
}
|
|
211
231
|
|
|
212
232
|
/**
|
|
213
|
-
*
|
|
214
|
-
*/
|
|
215
|
-
export type TransactionScanningSimulationResult =
|
|
216
|
-
| TransactionScanningSimulationErrorResult
|
|
217
|
-
| TransactionScanningSimulationSuccessResult;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* A list of transactions.
|
|
233
|
+
* A failed validation result from a transaction scan.
|
|
221
234
|
*/
|
|
222
|
-
export interface
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export namespace TransactionList {
|
|
227
|
-
export interface Transaction {
|
|
228
|
-
id: string;
|
|
229
|
-
|
|
230
|
-
caip2: string;
|
|
231
|
-
|
|
232
|
-
created_at: number;
|
|
233
|
-
|
|
234
|
-
status:
|
|
235
|
-
| 'broadcasted'
|
|
236
|
-
| 'confirmed'
|
|
237
|
-
| 'execution_reverted'
|
|
238
|
-
| 'failed'
|
|
239
|
-
| 'replaced'
|
|
240
|
-
| 'finalized'
|
|
241
|
-
| 'provider_error'
|
|
242
|
-
| 'pending';
|
|
243
|
-
|
|
244
|
-
transaction_hash: string | null;
|
|
245
|
-
|
|
246
|
-
wallet_id: string;
|
|
247
|
-
|
|
248
|
-
reference_id?: string | null;
|
|
249
|
-
|
|
250
|
-
sponsored?: boolean;
|
|
235
|
+
export interface TransactionScanningValidationErrorResult {
|
|
236
|
+
error: string;
|
|
251
237
|
|
|
252
|
-
|
|
253
|
-
}
|
|
238
|
+
status: 'Error';
|
|
254
239
|
}
|
|
255
240
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
status:
|
|
264
|
-
| 'broadcasted'
|
|
265
|
-
| 'confirmed'
|
|
266
|
-
| 'execution_reverted'
|
|
267
|
-
| 'failed'
|
|
268
|
-
| 'replaced'
|
|
269
|
-
| 'finalized'
|
|
270
|
-
| 'provider_error'
|
|
271
|
-
| 'pending';
|
|
272
|
-
|
|
273
|
-
transaction_hash: string | null;
|
|
274
|
-
|
|
275
|
-
wallet_id: string;
|
|
276
|
-
|
|
277
|
-
reference_id?: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* The validation result from a transaction scan.
|
|
243
|
+
*/
|
|
244
|
+
export type TransactionScanningValidationResult =
|
|
245
|
+
| TransactionScanningValidationErrorResult
|
|
246
|
+
| TransactionScanningValidationSuccessResult;
|
|
278
247
|
|
|
279
|
-
|
|
248
|
+
/**
|
|
249
|
+
* A successful validation result from a transaction scan.
|
|
250
|
+
*/
|
|
251
|
+
export interface TransactionScanningValidationSuccessResult {
|
|
252
|
+
result_type: string;
|
|
280
253
|
|
|
281
|
-
|
|
254
|
+
status: 'Success';
|
|
282
255
|
}
|
|
283
256
|
|
|
284
257
|
export declare namespace Transactions {
|
|
285
258
|
export {
|
|
286
259
|
type TransactionScanningRequestBody as TransactionScanningRequestBody,
|
|
287
260
|
type TransactionScanningResponseBody as TransactionScanningResponseBody,
|
|
288
|
-
type
|
|
289
|
-
type
|
|
290
|
-
type
|
|
291
|
-
type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult,
|
|
292
|
-
type TransactionScanningValidationResult as TransactionScanningValidationResult,
|
|
261
|
+
type Transaction as Transaction,
|
|
262
|
+
type TransactionList as TransactionList,
|
|
263
|
+
type TransactionScanningAssetDiff as TransactionScanningAssetDiff,
|
|
293
264
|
type TransactionScanningAssetInfo as TransactionScanningAssetInfo,
|
|
294
265
|
type TransactionScanningAssetValue as TransactionScanningAssetValue,
|
|
295
|
-
type TransactionScanningAssetDiff as TransactionScanningAssetDiff,
|
|
296
|
-
type TransactionScanningExposure as TransactionScanningExposure,
|
|
297
266
|
type TransactionScanningCalldata as TransactionScanningCalldata,
|
|
267
|
+
type TransactionScanningExposure as TransactionScanningExposure,
|
|
268
|
+
type TransactionScanningMetadata as TransactionScanningMetadata,
|
|
298
269
|
type TransactionScanningParams as TransactionScanningParams,
|
|
270
|
+
type TransactionScanningRpcRequest as TransactionScanningRpcRequest,
|
|
299
271
|
type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult,
|
|
300
|
-
type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
|
|
301
272
|
type TransactionScanningSimulationResult as TransactionScanningSimulationResult,
|
|
302
|
-
type
|
|
303
|
-
type
|
|
273
|
+
type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
|
|
274
|
+
type TransactionScanningValidationErrorResult as TransactionScanningValidationErrorResult,
|
|
275
|
+
type TransactionScanningValidationResult as TransactionScanningValidationResult,
|
|
276
|
+
type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult,
|
|
304
277
|
};
|
|
305
278
|
}
|