@privy-io/api-types 0.9.0 → 0.11.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 +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- 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/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 +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- 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 +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.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 +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- 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 +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.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 +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- 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 +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- 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,14 +1,10 @@
|
|
|
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
|
*/
|
|
@@ -34,9 +30,9 @@ export interface SwapQuoteRequestBody {
|
|
|
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,
|
|
@@ -110,9 +106,9 @@ export interface SwapRequestBody {
|
|
|
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,7 +124,6 @@ export interface SwapRequestBody {
|
|
|
128
124
|
|
|
129
125
|
export declare namespace Swaps {
|
|
130
126
|
export {
|
|
131
|
-
type SwapAmountType as SwapAmountType,
|
|
132
127
|
type SwapQuoteRequestBody as SwapQuoteRequestBody,
|
|
133
128
|
type SwapQuoteResponse as SwapQuoteResponse,
|
|
134
129
|
type SwapRequestBody as SwapRequestBody,
|
|
@@ -1,101 +1,60 @@
|
|
|
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 { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
import { path } from '../internal/utils/path';
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
* Operations related to transactions
|
|
10
|
-
*/
|
|
11
|
-
export class Transactions extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Get a transaction by transaction ID.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const transaction = await client.transactions.get(
|
|
18
|
-
* 'transaction_id',
|
|
19
|
-
* );
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
get(transactionID: string, options?: RequestOptions): APIPromise<Transaction> {
|
|
23
|
-
return this._client.get(path`/v1/transactions/${transactionID}`, options);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
5
|
+
export class Transactions extends APIResource {}
|
|
26
6
|
|
|
27
7
|
/**
|
|
28
|
-
*
|
|
8
|
+
* A transaction from a Privy wallet.
|
|
29
9
|
*/
|
|
30
|
-
export interface
|
|
31
|
-
|
|
10
|
+
export interface Transaction {
|
|
11
|
+
id: string;
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
* Additional information for Blockaid to validate against.
|
|
35
|
-
*/
|
|
36
|
-
metadata: TransactionScanningMetadata;
|
|
13
|
+
caip2: string;
|
|
37
14
|
|
|
38
|
-
|
|
39
|
-
* Raw RPC request to execute with the wallet.
|
|
40
|
-
*/
|
|
41
|
-
request: TransactionScanningRpcRequest;
|
|
42
|
-
}
|
|
15
|
+
created_at: number;
|
|
43
16
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
17
|
+
status:
|
|
18
|
+
| 'broadcasted'
|
|
19
|
+
| 'confirmed'
|
|
20
|
+
| 'execution_reverted'
|
|
21
|
+
| 'failed'
|
|
22
|
+
| 'replaced'
|
|
23
|
+
| 'finalized'
|
|
24
|
+
| 'provider_error'
|
|
25
|
+
| 'pending';
|
|
52
26
|
|
|
53
|
-
|
|
54
|
-
* The validation result from a transaction scan.
|
|
55
|
-
*/
|
|
56
|
-
validation: TransactionScanningValidationResult;
|
|
57
|
-
}
|
|
27
|
+
transaction_hash: string | null;
|
|
58
28
|
|
|
59
|
-
|
|
60
|
-
* Additional information for Blockaid to validate against.
|
|
61
|
-
*/
|
|
62
|
-
export interface TransactionScanningMetadata {
|
|
63
|
-
domain: string;
|
|
64
|
-
}
|
|
29
|
+
wallet_id: string;
|
|
65
30
|
|
|
66
|
-
|
|
67
|
-
* Raw RPC request to execute with the wallet.
|
|
68
|
-
*/
|
|
69
|
-
export interface TransactionScanningRpcRequest {
|
|
70
|
-
method: string;
|
|
31
|
+
reference_id?: string | null;
|
|
71
32
|
|
|
72
|
-
|
|
33
|
+
sponsored?: boolean;
|
|
34
|
+
|
|
35
|
+
user_operation_hash?: string;
|
|
73
36
|
}
|
|
74
37
|
|
|
75
38
|
/**
|
|
76
|
-
* A
|
|
39
|
+
* A list of transactions.
|
|
77
40
|
*/
|
|
78
|
-
export interface
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
status: 'Error';
|
|
41
|
+
export interface TransactionList {
|
|
42
|
+
transactions: Array<Transaction>;
|
|
82
43
|
}
|
|
83
44
|
|
|
84
45
|
/**
|
|
85
|
-
*
|
|
46
|
+
* An asset diff representing assets entering/leaving a wallet.
|
|
86
47
|
*/
|
|
87
|
-
export interface
|
|
88
|
-
|
|
48
|
+
export interface TransactionScanningAssetDiff {
|
|
49
|
+
/**
|
|
50
|
+
* Information about the moving asset in a transaction scan.
|
|
51
|
+
*/
|
|
52
|
+
asset: TransactionScanningAssetInfo;
|
|
89
53
|
|
|
90
|
-
|
|
91
|
-
}
|
|
54
|
+
in: Array<TransactionScanningAssetValue>;
|
|
92
55
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*/
|
|
96
|
-
export type TransactionScanningValidationResult =
|
|
97
|
-
| TransactionScanningValidationErrorResult
|
|
98
|
-
| TransactionScanningValidationSuccessResult;
|
|
56
|
+
out: Array<TransactionScanningAssetValue>;
|
|
57
|
+
}
|
|
99
58
|
|
|
100
59
|
/**
|
|
101
60
|
* Information about the moving asset in a transaction scan.
|
|
@@ -122,17 +81,14 @@ export interface TransactionScanningAssetValue {
|
|
|
122
81
|
}
|
|
123
82
|
|
|
124
83
|
/**
|
|
125
|
-
*
|
|
84
|
+
* Decoded calldata from a scanned transaction.
|
|
126
85
|
*/
|
|
127
|
-
export interface
|
|
128
|
-
|
|
129
|
-
* Information about the moving asset in a transaction scan.
|
|
130
|
-
*/
|
|
131
|
-
asset: TransactionScanningAssetInfo;
|
|
86
|
+
export interface TransactionScanningCalldata {
|
|
87
|
+
function_selector: string;
|
|
132
88
|
|
|
133
|
-
|
|
89
|
+
function_declaration?: string;
|
|
134
90
|
|
|
135
|
-
|
|
91
|
+
function_signature?: string;
|
|
136
92
|
}
|
|
137
93
|
|
|
138
94
|
/**
|
|
@@ -148,14 +104,10 @@ export interface TransactionScanningExposure {
|
|
|
148
104
|
}
|
|
149
105
|
|
|
150
106
|
/**
|
|
151
|
-
*
|
|
107
|
+
* Additional information for Blockaid to validate against.
|
|
152
108
|
*/
|
|
153
|
-
export interface
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
function_declaration?: string;
|
|
157
|
-
|
|
158
|
-
function_signature?: string;
|
|
109
|
+
export interface TransactionScanningMetadata {
|
|
110
|
+
domain: string;
|
|
159
111
|
}
|
|
160
112
|
|
|
161
113
|
/**
|
|
@@ -184,6 +136,47 @@ export interface TransactionScanningParams {
|
|
|
184
136
|
value?: string;
|
|
185
137
|
}
|
|
186
138
|
|
|
139
|
+
/**
|
|
140
|
+
* The request body for scanning a transaction.
|
|
141
|
+
*/
|
|
142
|
+
export interface TransactionScanningRequestBody {
|
|
143
|
+
chain_id: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Additional information for Blockaid to validate against.
|
|
147
|
+
*/
|
|
148
|
+
metadata: TransactionScanningMetadata;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Raw RPC request to execute with the wallet.
|
|
152
|
+
*/
|
|
153
|
+
request: TransactionScanningRpcRequest;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The response from scanning a transaction.
|
|
158
|
+
*/
|
|
159
|
+
export interface TransactionScanningResponseBody {
|
|
160
|
+
/**
|
|
161
|
+
* The simulation result from a transaction scan.
|
|
162
|
+
*/
|
|
163
|
+
simulation: TransactionScanningSimulationResult;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The validation result from a transaction scan.
|
|
167
|
+
*/
|
|
168
|
+
validation: TransactionScanningValidationResult;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Raw RPC request to execute with the wallet.
|
|
173
|
+
*/
|
|
174
|
+
export interface TransactionScanningRpcRequest {
|
|
175
|
+
method: string;
|
|
176
|
+
|
|
177
|
+
params: Array<unknown>;
|
|
178
|
+
}
|
|
179
|
+
|
|
187
180
|
/**
|
|
188
181
|
* A failed simulation result from a transaction scan.
|
|
189
182
|
*/
|
|
@@ -193,6 +186,13 @@ export interface TransactionScanningSimulationErrorResult {
|
|
|
193
186
|
status: 'Error';
|
|
194
187
|
}
|
|
195
188
|
|
|
189
|
+
/**
|
|
190
|
+
* The simulation result from a transaction scan.
|
|
191
|
+
*/
|
|
192
|
+
export type TransactionScanningSimulationResult =
|
|
193
|
+
| TransactionScanningSimulationErrorResult
|
|
194
|
+
| TransactionScanningSimulationSuccessResult;
|
|
195
|
+
|
|
196
196
|
/**
|
|
197
197
|
* A successful simulation result from a transaction scan.
|
|
198
198
|
*/
|
|
@@ -210,69 +210,49 @@ export interface TransactionScanningSimulationSuccessResult {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* A failed validation result from a transaction scan.
|
|
214
214
|
*/
|
|
215
|
-
export
|
|
216
|
-
|
|
217
|
-
|
|
215
|
+
export interface TransactionScanningValidationErrorResult {
|
|
216
|
+
error: string;
|
|
217
|
+
|
|
218
|
+
status: 'Error';
|
|
219
|
+
}
|
|
218
220
|
|
|
219
221
|
/**
|
|
220
|
-
*
|
|
222
|
+
* The validation result from a transaction scan.
|
|
221
223
|
*/
|
|
222
|
-
export
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
caip2: string;
|
|
226
|
-
|
|
227
|
-
created_at: number;
|
|
228
|
-
|
|
229
|
-
status:
|
|
230
|
-
| 'broadcasted'
|
|
231
|
-
| 'confirmed'
|
|
232
|
-
| 'execution_reverted'
|
|
233
|
-
| 'failed'
|
|
234
|
-
| 'replaced'
|
|
235
|
-
| 'finalized'
|
|
236
|
-
| 'provider_error'
|
|
237
|
-
| 'pending';
|
|
238
|
-
|
|
239
|
-
transaction_hash: string | null;
|
|
240
|
-
|
|
241
|
-
wallet_id: string;
|
|
242
|
-
|
|
243
|
-
reference_id?: string | null;
|
|
244
|
-
|
|
245
|
-
sponsored?: boolean;
|
|
246
|
-
|
|
247
|
-
user_operation_hash?: string;
|
|
248
|
-
}
|
|
224
|
+
export type TransactionScanningValidationResult =
|
|
225
|
+
| TransactionScanningValidationErrorResult
|
|
226
|
+
| TransactionScanningValidationSuccessResult;
|
|
249
227
|
|
|
250
228
|
/**
|
|
251
|
-
* A
|
|
229
|
+
* A successful validation result from a transaction scan.
|
|
252
230
|
*/
|
|
253
|
-
export interface
|
|
254
|
-
|
|
231
|
+
export interface TransactionScanningValidationSuccessResult {
|
|
232
|
+
result_type: string;
|
|
233
|
+
|
|
234
|
+
status: 'Success';
|
|
255
235
|
}
|
|
256
236
|
|
|
257
237
|
export declare namespace Transactions {
|
|
258
238
|
export {
|
|
259
|
-
type
|
|
260
|
-
type
|
|
261
|
-
type
|
|
262
|
-
type TransactionScanningRpcRequest as TransactionScanningRpcRequest,
|
|
263
|
-
type TransactionScanningValidationErrorResult as TransactionScanningValidationErrorResult,
|
|
264
|
-
type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult,
|
|
265
|
-
type TransactionScanningValidationResult as TransactionScanningValidationResult,
|
|
239
|
+
type Transaction as Transaction,
|
|
240
|
+
type TransactionList as TransactionList,
|
|
241
|
+
type TransactionScanningAssetDiff as TransactionScanningAssetDiff,
|
|
266
242
|
type TransactionScanningAssetInfo as TransactionScanningAssetInfo,
|
|
267
243
|
type TransactionScanningAssetValue as TransactionScanningAssetValue,
|
|
268
|
-
type TransactionScanningAssetDiff as TransactionScanningAssetDiff,
|
|
269
|
-
type TransactionScanningExposure as TransactionScanningExposure,
|
|
270
244
|
type TransactionScanningCalldata as TransactionScanningCalldata,
|
|
245
|
+
type TransactionScanningExposure as TransactionScanningExposure,
|
|
246
|
+
type TransactionScanningMetadata as TransactionScanningMetadata,
|
|
271
247
|
type TransactionScanningParams as TransactionScanningParams,
|
|
248
|
+
type TransactionScanningRequestBody as TransactionScanningRequestBody,
|
|
249
|
+
type TransactionScanningResponseBody as TransactionScanningResponseBody,
|
|
250
|
+
type TransactionScanningRpcRequest as TransactionScanningRpcRequest,
|
|
272
251
|
type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult,
|
|
273
|
-
type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
|
|
274
252
|
type TransactionScanningSimulationResult as TransactionScanningSimulationResult,
|
|
275
|
-
type
|
|
276
|
-
type
|
|
253
|
+
type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
|
|
254
|
+
type TransactionScanningValidationErrorResult as TransactionScanningValidationErrorResult,
|
|
255
|
+
type TransactionScanningValidationResult as TransactionScanningValidationResult,
|
|
256
|
+
type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult,
|
|
277
257
|
};
|
|
278
258
|
}
|