@coinbase/cdp-sdk 1.31.0 → 1.32.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 +12 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js +61 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +21 -0
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/actions/evm/listSpendPermissions.js +18 -0
- package/_cjs/actions/evm/listSpendPermissions.js.map +1 -0
- package/_cjs/actions/evm/listTokenBalances.js +2 -0
- package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
- package/_cjs/client/evm/evm.js +157 -60
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/policies/policies.js +72 -5
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/solana/solana.js +47 -27
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js +3 -3
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +53 -2
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +215 -5
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
- package/_cjs/policies/{schema.js → evmSchema.js} +11 -112
- package/_cjs/policies/evmSchema.js.map +1 -0
- package/_cjs/policies/solanaSchema.js +183 -0
- package/_cjs/policies/solanaSchema.js.map +1 -0
- package/_cjs/policies/types.js +60 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +61 -0
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +21 -0
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/actions/evm/listSpendPermissions.js +15 -0
- package/_esm/actions/evm/listSpendPermissions.js.map +1 -0
- package/_esm/actions/evm/listTokenBalances.js +2 -0
- package/_esm/actions/evm/listTokenBalances.js.map +1 -1
- package/_esm/client/evm/evm.js +157 -60
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/policies/policies.js +70 -3
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/solana/solana.js +47 -27
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +51 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +197 -3
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -1
- package/_esm/policies/{schema.js → evmSchema.js} +10 -111
- package/_esm/policies/evmSchema.js.map +1 -0
- package/_esm/policies/solanaSchema.js +180 -0
- package/_esm/policies/solanaSchema.js.map +1 -0
- package/_esm/policies/types.js +59 -1
- package/_esm/policies/types.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/actions/evm/listSpendPermissions.d.ts +12 -0
- package/_types/actions/evm/listSpendPermissions.d.ts.map +1 -0
- package/_types/actions/evm/listTokenBalances.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +66 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +2 -1
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts +69 -2
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/policies/policies.types.d.ts +1 -2
- package/_types/client/policies/policies.types.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts +16 -0
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/index.d.ts +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +140 -2
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +17 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +4367 -0
- package/_types/policies/evmSchema.d.ts.map +1 -0
- package/_types/policies/solanaSchema.d.ts +758 -0
- package/_types/policies/solanaSchema.d.ts.map +1 -0
- package/_types/policies/types.d.ts +6591 -1
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/toNetworkScopedEvmServerAccount.ts +69 -0
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +22 -0
- package/actions/evm/listSpendPermissions.ts +20 -0
- package/actions/evm/listTokenBalances.ts +2 -0
- package/client/evm/evm.ts +200 -81
- package/client/evm/evm.types.ts +4 -0
- package/client/policies/policies.ts +70 -4
- package/client/policies/policies.types.ts +1 -2
- package/client/solana/solana.ts +60 -38
- package/index.ts +1 -1
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +198 -1
- package/openapi-client/generated/policy-engine/policy-engine.msw.ts +285 -3
- package/package.json +1 -1
- package/policies/{schema.ts → evmSchema.ts} +9 -158
- package/policies/solanaSchema.ts +251 -0
- package/policies/types.ts +94 -1
- package/version.ts +1 -1
- package/_cjs/policies/schema.js.map +0 -1
- package/_esm/policies/schema.js.map +0 -1
- package/_types/policies/schema.d.ts +0 -11599
- package/_types/policies/schema.d.ts.map +0 -1
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Enum for Action types
|
|
4
|
+
*/
|
|
5
|
+
export declare const ActionEnum: z.ZodEnum<["reject", "accept"]>;
|
|
6
|
+
/**
|
|
7
|
+
* Type representing the possible policy actions.
|
|
8
|
+
* Determines whether matching the rule will cause a request to be accepted or rejected.
|
|
9
|
+
*/
|
|
10
|
+
export type Action = z.infer<typeof ActionEnum>;
|
|
11
|
+
/**
|
|
12
|
+
* Enum for SolAddressOperator values
|
|
13
|
+
*/
|
|
14
|
+
export declare const SolAddressOperatorEnum: z.ZodEnum<["in", "not in"]>;
|
|
15
|
+
/**
|
|
16
|
+
* Type representing the operators that can be used for Solana address comparisons.
|
|
17
|
+
* These operators determine how transaction addresses are evaluated against a list.
|
|
18
|
+
*/
|
|
19
|
+
export type SolAddressOperator = z.infer<typeof SolAddressOperatorEnum>;
|
|
20
|
+
/**
|
|
21
|
+
* Enum for SolValueOperator values
|
|
22
|
+
*/
|
|
23
|
+
export declare const SolValueOperatorEnum: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
24
|
+
/**
|
|
25
|
+
* Type representing the operators that can be used for SOL value comparisons.
|
|
26
|
+
* These operators determine how transaction SOL values are compared against thresholds.
|
|
27
|
+
*/
|
|
28
|
+
export type SolValueOperator = z.infer<typeof SolValueOperatorEnum>;
|
|
29
|
+
/**
|
|
30
|
+
* Enum for SplAddressOperator values
|
|
31
|
+
*/
|
|
32
|
+
export declare const SplAddressOperatorEnum: z.ZodEnum<["in", "not in"]>;
|
|
33
|
+
/**
|
|
34
|
+
* Type representing the operators that can be used for SPL address comparisons.
|
|
35
|
+
* These operators determine how SPL token transfer recipient addresses are evaluated against a list.
|
|
36
|
+
*/
|
|
37
|
+
export type SplAddressOperator = z.infer<typeof SplAddressOperatorEnum>;
|
|
38
|
+
/**
|
|
39
|
+
* Enum for SplValueOperator values
|
|
40
|
+
*/
|
|
41
|
+
export declare const SplValueOperatorEnum: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
42
|
+
/**
|
|
43
|
+
* Type representing the operators that can be used for SPL token value comparisons.
|
|
44
|
+
* These operators determine how SPL token values are compared against thresholds.
|
|
45
|
+
*/
|
|
46
|
+
export type SplValueOperator = z.infer<typeof SplValueOperatorEnum>;
|
|
47
|
+
/**
|
|
48
|
+
* Enum for MintAddressOperator values
|
|
49
|
+
*/
|
|
50
|
+
export declare const MintAddressOperatorEnum: z.ZodEnum<["in", "not in"]>;
|
|
51
|
+
/**
|
|
52
|
+
* Type representing the operators that can be used for mint address comparisons.
|
|
53
|
+
* These operators determine how token mint addresses are evaluated against a list.
|
|
54
|
+
*/
|
|
55
|
+
export type MintAddressOperator = z.infer<typeof MintAddressOperatorEnum>;
|
|
56
|
+
/**
|
|
57
|
+
* Schema for Solana address criterions
|
|
58
|
+
*/
|
|
59
|
+
export declare const SolAddressCriterionSchema: z.ZodObject<{
|
|
60
|
+
/** The type of criterion, must be "solAddress" for Solana address-based rules. */
|
|
61
|
+
type: z.ZodLiteral<"solAddress">;
|
|
62
|
+
/**
|
|
63
|
+
* Array of Solana addresses to compare against.
|
|
64
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
65
|
+
*/
|
|
66
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
67
|
+
/**
|
|
68
|
+
* The operator to use for evaluating transaction addresses.
|
|
69
|
+
* "in" checks if an address is in the provided list.
|
|
70
|
+
* "not in" checks if an address is not in the provided list.
|
|
71
|
+
*/
|
|
72
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "solAddress";
|
|
75
|
+
operator: "in" | "not in";
|
|
76
|
+
addresses: string[];
|
|
77
|
+
}, {
|
|
78
|
+
type: "solAddress";
|
|
79
|
+
operator: "in" | "not in";
|
|
80
|
+
addresses: string[];
|
|
81
|
+
}>;
|
|
82
|
+
export type SolAddressCriterion = z.infer<typeof SolAddressCriterionSchema>;
|
|
83
|
+
/**
|
|
84
|
+
* Schema for SOL value criterions
|
|
85
|
+
*/
|
|
86
|
+
export declare const SolValueCriterionSchema: z.ZodObject<{
|
|
87
|
+
/** The type of criterion, must be "solValue" for SOL value-based rules. */
|
|
88
|
+
type: z.ZodLiteral<"solValue">;
|
|
89
|
+
/**
|
|
90
|
+
* The SOL value amount in lamports to compare against, as a string.
|
|
91
|
+
* Must contain only digits.
|
|
92
|
+
*/
|
|
93
|
+
solValue: z.ZodString;
|
|
94
|
+
/** The comparison operator to use for evaluating transaction SOL values against the threshold. */
|
|
95
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
solValue: string;
|
|
98
|
+
type: "solValue";
|
|
99
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
100
|
+
}, {
|
|
101
|
+
solValue: string;
|
|
102
|
+
type: "solValue";
|
|
103
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
104
|
+
}>;
|
|
105
|
+
export type SolValueCriterion = z.infer<typeof SolValueCriterionSchema>;
|
|
106
|
+
/**
|
|
107
|
+
* Schema for SPL address criterions
|
|
108
|
+
*/
|
|
109
|
+
export declare const SplAddressCriterionSchema: z.ZodObject<{
|
|
110
|
+
/** The type of criterion, must be "splAddress" for SPL address-based rules. */
|
|
111
|
+
type: z.ZodLiteral<"splAddress">;
|
|
112
|
+
/**
|
|
113
|
+
* Array of Solana addresses to compare against for SPL token transfer recipients.
|
|
114
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
115
|
+
*/
|
|
116
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
117
|
+
/**
|
|
118
|
+
* The operator to use for evaluating SPL token transfer recipient addresses.
|
|
119
|
+
* "in" checks if an address is in the provided list.
|
|
120
|
+
* "not in" checks if an address is not in the provided list.
|
|
121
|
+
*/
|
|
122
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
type: "splAddress";
|
|
125
|
+
operator: "in" | "not in";
|
|
126
|
+
addresses: string[];
|
|
127
|
+
}, {
|
|
128
|
+
type: "splAddress";
|
|
129
|
+
operator: "in" | "not in";
|
|
130
|
+
addresses: string[];
|
|
131
|
+
}>;
|
|
132
|
+
export type SplAddressCriterion = z.infer<typeof SplAddressCriterionSchema>;
|
|
133
|
+
/**
|
|
134
|
+
* Schema for SPL value criterions
|
|
135
|
+
*/
|
|
136
|
+
export declare const SplValueCriterionSchema: z.ZodObject<{
|
|
137
|
+
/** The type of criterion, must be "splValue" for SPL token value-based rules. */
|
|
138
|
+
type: z.ZodLiteral<"splValue">;
|
|
139
|
+
/**
|
|
140
|
+
* The SPL token value amount to compare against, as a string.
|
|
141
|
+
* Must contain only digits.
|
|
142
|
+
*/
|
|
143
|
+
splValue: z.ZodString;
|
|
144
|
+
/** The comparison operator to use for evaluating SPL token values against the threshold. */
|
|
145
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
splValue: string;
|
|
148
|
+
type: "splValue";
|
|
149
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
150
|
+
}, {
|
|
151
|
+
splValue: string;
|
|
152
|
+
type: "splValue";
|
|
153
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
154
|
+
}>;
|
|
155
|
+
export type SplValueCriterion = z.infer<typeof SplValueCriterionSchema>;
|
|
156
|
+
/**
|
|
157
|
+
* Schema for mint address criterions
|
|
158
|
+
*/
|
|
159
|
+
export declare const MintAddressCriterionSchema: z.ZodObject<{
|
|
160
|
+
/** The type of criterion, must be "mintAddress" for token mint address-based rules. */
|
|
161
|
+
type: z.ZodLiteral<"mintAddress">;
|
|
162
|
+
/**
|
|
163
|
+
* Array of Solana addresses to compare against for token mint addresses.
|
|
164
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
165
|
+
*/
|
|
166
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
167
|
+
/**
|
|
168
|
+
* The operator to use for evaluating token mint addresses.
|
|
169
|
+
* "in" checks if an address is in the provided list.
|
|
170
|
+
* "not in" checks if an address is not in the provided list.
|
|
171
|
+
*/
|
|
172
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
type: "mintAddress";
|
|
175
|
+
operator: "in" | "not in";
|
|
176
|
+
addresses: string[];
|
|
177
|
+
}, {
|
|
178
|
+
type: "mintAddress";
|
|
179
|
+
operator: "in" | "not in";
|
|
180
|
+
addresses: string[];
|
|
181
|
+
}>;
|
|
182
|
+
export type MintAddressCriterion = z.infer<typeof MintAddressCriterionSchema>;
|
|
183
|
+
/**
|
|
184
|
+
* Schema for criteria used in SignSolTransaction operations
|
|
185
|
+
*/
|
|
186
|
+
export declare const SignSolTransactionCriteriaSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
187
|
+
/** The type of criterion, must be "solAddress" for Solana address-based rules. */
|
|
188
|
+
type: z.ZodLiteral<"solAddress">;
|
|
189
|
+
/**
|
|
190
|
+
* Array of Solana addresses to compare against.
|
|
191
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
192
|
+
*/
|
|
193
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
194
|
+
/**
|
|
195
|
+
* The operator to use for evaluating transaction addresses.
|
|
196
|
+
* "in" checks if an address is in the provided list.
|
|
197
|
+
* "not in" checks if an address is not in the provided list.
|
|
198
|
+
*/
|
|
199
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
type: "solAddress";
|
|
202
|
+
operator: "in" | "not in";
|
|
203
|
+
addresses: string[];
|
|
204
|
+
}, {
|
|
205
|
+
type: "solAddress";
|
|
206
|
+
operator: "in" | "not in";
|
|
207
|
+
addresses: string[];
|
|
208
|
+
}>, z.ZodObject<{
|
|
209
|
+
/** The type of criterion, must be "solValue" for SOL value-based rules. */
|
|
210
|
+
type: z.ZodLiteral<"solValue">;
|
|
211
|
+
/**
|
|
212
|
+
* The SOL value amount in lamports to compare against, as a string.
|
|
213
|
+
* Must contain only digits.
|
|
214
|
+
*/
|
|
215
|
+
solValue: z.ZodString;
|
|
216
|
+
/** The comparison operator to use for evaluating transaction SOL values against the threshold. */
|
|
217
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
solValue: string;
|
|
220
|
+
type: "solValue";
|
|
221
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
222
|
+
}, {
|
|
223
|
+
solValue: string;
|
|
224
|
+
type: "solValue";
|
|
225
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
226
|
+
}>, z.ZodObject<{
|
|
227
|
+
/** The type of criterion, must be "splAddress" for SPL address-based rules. */
|
|
228
|
+
type: z.ZodLiteral<"splAddress">;
|
|
229
|
+
/**
|
|
230
|
+
* Array of Solana addresses to compare against for SPL token transfer recipients.
|
|
231
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
232
|
+
*/
|
|
233
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
234
|
+
/**
|
|
235
|
+
* The operator to use for evaluating SPL token transfer recipient addresses.
|
|
236
|
+
* "in" checks if an address is in the provided list.
|
|
237
|
+
* "not in" checks if an address is not in the provided list.
|
|
238
|
+
*/
|
|
239
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
type: "splAddress";
|
|
242
|
+
operator: "in" | "not in";
|
|
243
|
+
addresses: string[];
|
|
244
|
+
}, {
|
|
245
|
+
type: "splAddress";
|
|
246
|
+
operator: "in" | "not in";
|
|
247
|
+
addresses: string[];
|
|
248
|
+
}>, z.ZodObject<{
|
|
249
|
+
/** The type of criterion, must be "splValue" for SPL token value-based rules. */
|
|
250
|
+
type: z.ZodLiteral<"splValue">;
|
|
251
|
+
/**
|
|
252
|
+
* The SPL token value amount to compare against, as a string.
|
|
253
|
+
* Must contain only digits.
|
|
254
|
+
*/
|
|
255
|
+
splValue: z.ZodString;
|
|
256
|
+
/** The comparison operator to use for evaluating SPL token values against the threshold. */
|
|
257
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
splValue: string;
|
|
260
|
+
type: "splValue";
|
|
261
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
262
|
+
}, {
|
|
263
|
+
splValue: string;
|
|
264
|
+
type: "splValue";
|
|
265
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
266
|
+
}>, z.ZodObject<{
|
|
267
|
+
/** The type of criterion, must be "mintAddress" for token mint address-based rules. */
|
|
268
|
+
type: z.ZodLiteral<"mintAddress">;
|
|
269
|
+
/**
|
|
270
|
+
* Array of Solana addresses to compare against for token mint addresses.
|
|
271
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
272
|
+
*/
|
|
273
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
274
|
+
/**
|
|
275
|
+
* The operator to use for evaluating token mint addresses.
|
|
276
|
+
* "in" checks if an address is in the provided list.
|
|
277
|
+
* "not in" checks if an address is not in the provided list.
|
|
278
|
+
*/
|
|
279
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
type: "mintAddress";
|
|
282
|
+
operator: "in" | "not in";
|
|
283
|
+
addresses: string[];
|
|
284
|
+
}, {
|
|
285
|
+
type: "mintAddress";
|
|
286
|
+
operator: "in" | "not in";
|
|
287
|
+
addresses: string[];
|
|
288
|
+
}>]>, "many">;
|
|
289
|
+
/**
|
|
290
|
+
* Type representing a set of criteria for the signSolTransaction operation.
|
|
291
|
+
* Can contain up to 10 individual criterion objects for Solana addresses, SOL values, SPL addresses, SPL values, and mint addresses.
|
|
292
|
+
*/
|
|
293
|
+
export type SignSolTransactionCriteria = z.infer<typeof SignSolTransactionCriteriaSchema>;
|
|
294
|
+
/**
|
|
295
|
+
* Schema for criteria used in SendSolTransaction operations
|
|
296
|
+
*/
|
|
297
|
+
export declare const SendSolTransactionCriteriaSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
298
|
+
/** The type of criterion, must be "solAddress" for Solana address-based rules. */
|
|
299
|
+
type: z.ZodLiteral<"solAddress">;
|
|
300
|
+
/**
|
|
301
|
+
* Array of Solana addresses to compare against.
|
|
302
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
303
|
+
*/
|
|
304
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
305
|
+
/**
|
|
306
|
+
* The operator to use for evaluating transaction addresses.
|
|
307
|
+
* "in" checks if an address is in the provided list.
|
|
308
|
+
* "not in" checks if an address is not in the provided list.
|
|
309
|
+
*/
|
|
310
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
type: "solAddress";
|
|
313
|
+
operator: "in" | "not in";
|
|
314
|
+
addresses: string[];
|
|
315
|
+
}, {
|
|
316
|
+
type: "solAddress";
|
|
317
|
+
operator: "in" | "not in";
|
|
318
|
+
addresses: string[];
|
|
319
|
+
}>, z.ZodObject<{
|
|
320
|
+
/** The type of criterion, must be "solValue" for SOL value-based rules. */
|
|
321
|
+
type: z.ZodLiteral<"solValue">;
|
|
322
|
+
/**
|
|
323
|
+
* The SOL value amount in lamports to compare against, as a string.
|
|
324
|
+
* Must contain only digits.
|
|
325
|
+
*/
|
|
326
|
+
solValue: z.ZodString;
|
|
327
|
+
/** The comparison operator to use for evaluating transaction SOL values against the threshold. */
|
|
328
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
solValue: string;
|
|
331
|
+
type: "solValue";
|
|
332
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
333
|
+
}, {
|
|
334
|
+
solValue: string;
|
|
335
|
+
type: "solValue";
|
|
336
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
337
|
+
}>, z.ZodObject<{
|
|
338
|
+
/** The type of criterion, must be "splAddress" for SPL address-based rules. */
|
|
339
|
+
type: z.ZodLiteral<"splAddress">;
|
|
340
|
+
/**
|
|
341
|
+
* Array of Solana addresses to compare against for SPL token transfer recipients.
|
|
342
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
343
|
+
*/
|
|
344
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
345
|
+
/**
|
|
346
|
+
* The operator to use for evaluating SPL token transfer recipient addresses.
|
|
347
|
+
* "in" checks if an address is in the provided list.
|
|
348
|
+
* "not in" checks if an address is not in the provided list.
|
|
349
|
+
*/
|
|
350
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
type: "splAddress";
|
|
353
|
+
operator: "in" | "not in";
|
|
354
|
+
addresses: string[];
|
|
355
|
+
}, {
|
|
356
|
+
type: "splAddress";
|
|
357
|
+
operator: "in" | "not in";
|
|
358
|
+
addresses: string[];
|
|
359
|
+
}>, z.ZodObject<{
|
|
360
|
+
/** The type of criterion, must be "splValue" for SPL token value-based rules. */
|
|
361
|
+
type: z.ZodLiteral<"splValue">;
|
|
362
|
+
/**
|
|
363
|
+
* The SPL token value amount to compare against, as a string.
|
|
364
|
+
* Must contain only digits.
|
|
365
|
+
*/
|
|
366
|
+
splValue: z.ZodString;
|
|
367
|
+
/** The comparison operator to use for evaluating SPL token values against the threshold. */
|
|
368
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
splValue: string;
|
|
371
|
+
type: "splValue";
|
|
372
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
373
|
+
}, {
|
|
374
|
+
splValue: string;
|
|
375
|
+
type: "splValue";
|
|
376
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
377
|
+
}>, z.ZodObject<{
|
|
378
|
+
/** The type of criterion, must be "mintAddress" for token mint address-based rules. */
|
|
379
|
+
type: z.ZodLiteral<"mintAddress">;
|
|
380
|
+
/**
|
|
381
|
+
* Array of Solana addresses to compare against for token mint addresses.
|
|
382
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
383
|
+
*/
|
|
384
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
385
|
+
/**
|
|
386
|
+
* The operator to use for evaluating token mint addresses.
|
|
387
|
+
* "in" checks if an address is in the provided list.
|
|
388
|
+
* "not in" checks if an address is not in the provided list.
|
|
389
|
+
*/
|
|
390
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
type: "mintAddress";
|
|
393
|
+
operator: "in" | "not in";
|
|
394
|
+
addresses: string[];
|
|
395
|
+
}, {
|
|
396
|
+
type: "mintAddress";
|
|
397
|
+
operator: "in" | "not in";
|
|
398
|
+
addresses: string[];
|
|
399
|
+
}>]>, "many">;
|
|
400
|
+
/**
|
|
401
|
+
* Type representing a set of criteria for the sendSolTransaction operation.
|
|
402
|
+
* Can contain up to 10 individual criterion objects for Solana addresses, SOL values, SPL addresses, SPL values, and mint addresses.
|
|
403
|
+
*/
|
|
404
|
+
export type SendSolTransactionCriteria = z.infer<typeof SendSolTransactionCriteriaSchema>;
|
|
405
|
+
/**
|
|
406
|
+
* Enum for Solana Operation types
|
|
407
|
+
*/
|
|
408
|
+
export declare const SolOperationEnum: z.ZodEnum<["signSolTransaction", "sendSolTransaction"]>;
|
|
409
|
+
/**
|
|
410
|
+
* Type representing the operations that can be governed by a policy.
|
|
411
|
+
* Defines what Solana operations the policy applies to.
|
|
412
|
+
*/
|
|
413
|
+
export type SolOperation = z.infer<typeof SolOperationEnum>;
|
|
414
|
+
/**
|
|
415
|
+
* Type representing a 'signSolTransaction' policy rule that can accept or reject specific operations
|
|
416
|
+
* based on a set of criteria.
|
|
417
|
+
*/
|
|
418
|
+
export declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
419
|
+
/**
|
|
420
|
+
* Determines whether matching the rule will cause a request to be rejected or accepted.
|
|
421
|
+
* "accept" will allow the transaction, "reject" will block it.
|
|
422
|
+
*/
|
|
423
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
424
|
+
/**
|
|
425
|
+
* The operation to which this rule applies.
|
|
426
|
+
* Must be "signSolTransaction".
|
|
427
|
+
*/
|
|
428
|
+
operation: z.ZodLiteral<"signSolTransaction">;
|
|
429
|
+
/**
|
|
430
|
+
* The set of criteria that must be matched for this rule to apply.
|
|
431
|
+
* Must be compatible with the specified operation type.
|
|
432
|
+
*/
|
|
433
|
+
criteria: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
434
|
+
/** The type of criterion, must be "solAddress" for Solana address-based rules. */
|
|
435
|
+
type: z.ZodLiteral<"solAddress">;
|
|
436
|
+
/**
|
|
437
|
+
* Array of Solana addresses to compare against.
|
|
438
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
439
|
+
*/
|
|
440
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
441
|
+
/**
|
|
442
|
+
* The operator to use for evaluating transaction addresses.
|
|
443
|
+
* "in" checks if an address is in the provided list.
|
|
444
|
+
* "not in" checks if an address is not in the provided list.
|
|
445
|
+
*/
|
|
446
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
type: "solAddress";
|
|
449
|
+
operator: "in" | "not in";
|
|
450
|
+
addresses: string[];
|
|
451
|
+
}, {
|
|
452
|
+
type: "solAddress";
|
|
453
|
+
operator: "in" | "not in";
|
|
454
|
+
addresses: string[];
|
|
455
|
+
}>, z.ZodObject<{
|
|
456
|
+
/** The type of criterion, must be "solValue" for SOL value-based rules. */
|
|
457
|
+
type: z.ZodLiteral<"solValue">;
|
|
458
|
+
/**
|
|
459
|
+
* The SOL value amount in lamports to compare against, as a string.
|
|
460
|
+
* Must contain only digits.
|
|
461
|
+
*/
|
|
462
|
+
solValue: z.ZodString;
|
|
463
|
+
/** The comparison operator to use for evaluating transaction SOL values against the threshold. */
|
|
464
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
solValue: string;
|
|
467
|
+
type: "solValue";
|
|
468
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
469
|
+
}, {
|
|
470
|
+
solValue: string;
|
|
471
|
+
type: "solValue";
|
|
472
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
473
|
+
}>, z.ZodObject<{
|
|
474
|
+
/** The type of criterion, must be "splAddress" for SPL address-based rules. */
|
|
475
|
+
type: z.ZodLiteral<"splAddress">;
|
|
476
|
+
/**
|
|
477
|
+
* Array of Solana addresses to compare against for SPL token transfer recipients.
|
|
478
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
479
|
+
*/
|
|
480
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
481
|
+
/**
|
|
482
|
+
* The operator to use for evaluating SPL token transfer recipient addresses.
|
|
483
|
+
* "in" checks if an address is in the provided list.
|
|
484
|
+
* "not in" checks if an address is not in the provided list.
|
|
485
|
+
*/
|
|
486
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
type: "splAddress";
|
|
489
|
+
operator: "in" | "not in";
|
|
490
|
+
addresses: string[];
|
|
491
|
+
}, {
|
|
492
|
+
type: "splAddress";
|
|
493
|
+
operator: "in" | "not in";
|
|
494
|
+
addresses: string[];
|
|
495
|
+
}>, z.ZodObject<{
|
|
496
|
+
/** The type of criterion, must be "splValue" for SPL token value-based rules. */
|
|
497
|
+
type: z.ZodLiteral<"splValue">;
|
|
498
|
+
/**
|
|
499
|
+
* The SPL token value amount to compare against, as a string.
|
|
500
|
+
* Must contain only digits.
|
|
501
|
+
*/
|
|
502
|
+
splValue: z.ZodString;
|
|
503
|
+
/** The comparison operator to use for evaluating SPL token values against the threshold. */
|
|
504
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
splValue: string;
|
|
507
|
+
type: "splValue";
|
|
508
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
509
|
+
}, {
|
|
510
|
+
splValue: string;
|
|
511
|
+
type: "splValue";
|
|
512
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
513
|
+
}>, z.ZodObject<{
|
|
514
|
+
/** The type of criterion, must be "mintAddress" for token mint address-based rules. */
|
|
515
|
+
type: z.ZodLiteral<"mintAddress">;
|
|
516
|
+
/**
|
|
517
|
+
* Array of Solana addresses to compare against for token mint addresses.
|
|
518
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
519
|
+
*/
|
|
520
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
521
|
+
/**
|
|
522
|
+
* The operator to use for evaluating token mint addresses.
|
|
523
|
+
* "in" checks if an address is in the provided list.
|
|
524
|
+
* "not in" checks if an address is not in the provided list.
|
|
525
|
+
*/
|
|
526
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
type: "mintAddress";
|
|
529
|
+
operator: "in" | "not in";
|
|
530
|
+
addresses: string[];
|
|
531
|
+
}, {
|
|
532
|
+
type: "mintAddress";
|
|
533
|
+
operator: "in" | "not in";
|
|
534
|
+
addresses: string[];
|
|
535
|
+
}>]>, "many">;
|
|
536
|
+
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
action: "reject" | "accept";
|
|
538
|
+
operation: "signSolTransaction";
|
|
539
|
+
criteria: ({
|
|
540
|
+
type: "solAddress";
|
|
541
|
+
operator: "in" | "not in";
|
|
542
|
+
addresses: string[];
|
|
543
|
+
} | {
|
|
544
|
+
solValue: string;
|
|
545
|
+
type: "solValue";
|
|
546
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
547
|
+
} | {
|
|
548
|
+
type: "splAddress";
|
|
549
|
+
operator: "in" | "not in";
|
|
550
|
+
addresses: string[];
|
|
551
|
+
} | {
|
|
552
|
+
splValue: string;
|
|
553
|
+
type: "splValue";
|
|
554
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
555
|
+
} | {
|
|
556
|
+
type: "mintAddress";
|
|
557
|
+
operator: "in" | "not in";
|
|
558
|
+
addresses: string[];
|
|
559
|
+
})[];
|
|
560
|
+
}, {
|
|
561
|
+
action: "reject" | "accept";
|
|
562
|
+
operation: "signSolTransaction";
|
|
563
|
+
criteria: ({
|
|
564
|
+
type: "solAddress";
|
|
565
|
+
operator: "in" | "not in";
|
|
566
|
+
addresses: string[];
|
|
567
|
+
} | {
|
|
568
|
+
solValue: string;
|
|
569
|
+
type: "solValue";
|
|
570
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
571
|
+
} | {
|
|
572
|
+
type: "splAddress";
|
|
573
|
+
operator: "in" | "not in";
|
|
574
|
+
addresses: string[];
|
|
575
|
+
} | {
|
|
576
|
+
splValue: string;
|
|
577
|
+
type: "splValue";
|
|
578
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
579
|
+
} | {
|
|
580
|
+
type: "mintAddress";
|
|
581
|
+
operator: "in" | "not in";
|
|
582
|
+
addresses: string[];
|
|
583
|
+
})[];
|
|
584
|
+
}>;
|
|
585
|
+
export type SignSolTransactionRule = z.infer<typeof SignSolTransactionRuleSchema>;
|
|
586
|
+
/**
|
|
587
|
+
* Type representing a 'sendSolTransaction' policy rule that can accept or reject specific operations
|
|
588
|
+
* based on a set of criteria.
|
|
589
|
+
*/
|
|
590
|
+
export declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
591
|
+
/**
|
|
592
|
+
* Determines whether matching the rule will cause a request to be rejected or accepted.
|
|
593
|
+
* "accept" will allow the transaction, "reject" will block it.
|
|
594
|
+
*/
|
|
595
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
596
|
+
/**
|
|
597
|
+
* The operation to which this rule applies.
|
|
598
|
+
* Must be "sendSolTransaction".
|
|
599
|
+
*/
|
|
600
|
+
operation: z.ZodLiteral<"sendSolTransaction">;
|
|
601
|
+
/**
|
|
602
|
+
* The set of criteria that must be matched for this rule to apply.
|
|
603
|
+
* Must be compatible with the specified operation type.
|
|
604
|
+
*/
|
|
605
|
+
criteria: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
606
|
+
/** The type of criterion, must be "solAddress" for Solana address-based rules. */
|
|
607
|
+
type: z.ZodLiteral<"solAddress">;
|
|
608
|
+
/**
|
|
609
|
+
* Array of Solana addresses to compare against.
|
|
610
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
611
|
+
*/
|
|
612
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
613
|
+
/**
|
|
614
|
+
* The operator to use for evaluating transaction addresses.
|
|
615
|
+
* "in" checks if an address is in the provided list.
|
|
616
|
+
* "not in" checks if an address is not in the provided list.
|
|
617
|
+
*/
|
|
618
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
619
|
+
}, "strip", z.ZodTypeAny, {
|
|
620
|
+
type: "solAddress";
|
|
621
|
+
operator: "in" | "not in";
|
|
622
|
+
addresses: string[];
|
|
623
|
+
}, {
|
|
624
|
+
type: "solAddress";
|
|
625
|
+
operator: "in" | "not in";
|
|
626
|
+
addresses: string[];
|
|
627
|
+
}>, z.ZodObject<{
|
|
628
|
+
/** The type of criterion, must be "solValue" for SOL value-based rules. */
|
|
629
|
+
type: z.ZodLiteral<"solValue">;
|
|
630
|
+
/**
|
|
631
|
+
* The SOL value amount in lamports to compare against, as a string.
|
|
632
|
+
* Must contain only digits.
|
|
633
|
+
*/
|
|
634
|
+
solValue: z.ZodString;
|
|
635
|
+
/** The comparison operator to use for evaluating transaction SOL values against the threshold. */
|
|
636
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
solValue: string;
|
|
639
|
+
type: "solValue";
|
|
640
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
641
|
+
}, {
|
|
642
|
+
solValue: string;
|
|
643
|
+
type: "solValue";
|
|
644
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
645
|
+
}>, z.ZodObject<{
|
|
646
|
+
/** The type of criterion, must be "splAddress" for SPL address-based rules. */
|
|
647
|
+
type: z.ZodLiteral<"splAddress">;
|
|
648
|
+
/**
|
|
649
|
+
* Array of Solana addresses to compare against for SPL token transfer recipients.
|
|
650
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
651
|
+
*/
|
|
652
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
653
|
+
/**
|
|
654
|
+
* The operator to use for evaluating SPL token transfer recipient addresses.
|
|
655
|
+
* "in" checks if an address is in the provided list.
|
|
656
|
+
* "not in" checks if an address is not in the provided list.
|
|
657
|
+
*/
|
|
658
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
659
|
+
}, "strip", z.ZodTypeAny, {
|
|
660
|
+
type: "splAddress";
|
|
661
|
+
operator: "in" | "not in";
|
|
662
|
+
addresses: string[];
|
|
663
|
+
}, {
|
|
664
|
+
type: "splAddress";
|
|
665
|
+
operator: "in" | "not in";
|
|
666
|
+
addresses: string[];
|
|
667
|
+
}>, z.ZodObject<{
|
|
668
|
+
/** The type of criterion, must be "splValue" for SPL token value-based rules. */
|
|
669
|
+
type: z.ZodLiteral<"splValue">;
|
|
670
|
+
/**
|
|
671
|
+
* The SPL token value amount to compare against, as a string.
|
|
672
|
+
* Must contain only digits.
|
|
673
|
+
*/
|
|
674
|
+
splValue: z.ZodString;
|
|
675
|
+
/** The comparison operator to use for evaluating SPL token values against the threshold. */
|
|
676
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
splValue: string;
|
|
679
|
+
type: "splValue";
|
|
680
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
681
|
+
}, {
|
|
682
|
+
splValue: string;
|
|
683
|
+
type: "splValue";
|
|
684
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
685
|
+
}>, z.ZodObject<{
|
|
686
|
+
/** The type of criterion, must be "mintAddress" for token mint address-based rules. */
|
|
687
|
+
type: z.ZodLiteral<"mintAddress">;
|
|
688
|
+
/**
|
|
689
|
+
* Array of Solana addresses to compare against for token mint addresses.
|
|
690
|
+
* Each address must be a valid Base58-encoded Solana address (32-44 characters).
|
|
691
|
+
*/
|
|
692
|
+
addresses: z.ZodArray<z.ZodString, "many">;
|
|
693
|
+
/**
|
|
694
|
+
* The operator to use for evaluating token mint addresses.
|
|
695
|
+
* "in" checks if an address is in the provided list.
|
|
696
|
+
* "not in" checks if an address is not in the provided list.
|
|
697
|
+
*/
|
|
698
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
699
|
+
}, "strip", z.ZodTypeAny, {
|
|
700
|
+
type: "mintAddress";
|
|
701
|
+
operator: "in" | "not in";
|
|
702
|
+
addresses: string[];
|
|
703
|
+
}, {
|
|
704
|
+
type: "mintAddress";
|
|
705
|
+
operator: "in" | "not in";
|
|
706
|
+
addresses: string[];
|
|
707
|
+
}>]>, "many">;
|
|
708
|
+
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
action: "reject" | "accept";
|
|
710
|
+
operation: "sendSolTransaction";
|
|
711
|
+
criteria: ({
|
|
712
|
+
type: "solAddress";
|
|
713
|
+
operator: "in" | "not in";
|
|
714
|
+
addresses: string[];
|
|
715
|
+
} | {
|
|
716
|
+
solValue: string;
|
|
717
|
+
type: "solValue";
|
|
718
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
719
|
+
} | {
|
|
720
|
+
type: "splAddress";
|
|
721
|
+
operator: "in" | "not in";
|
|
722
|
+
addresses: string[];
|
|
723
|
+
} | {
|
|
724
|
+
splValue: string;
|
|
725
|
+
type: "splValue";
|
|
726
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
727
|
+
} | {
|
|
728
|
+
type: "mintAddress";
|
|
729
|
+
operator: "in" | "not in";
|
|
730
|
+
addresses: string[];
|
|
731
|
+
})[];
|
|
732
|
+
}, {
|
|
733
|
+
action: "reject" | "accept";
|
|
734
|
+
operation: "sendSolTransaction";
|
|
735
|
+
criteria: ({
|
|
736
|
+
type: "solAddress";
|
|
737
|
+
operator: "in" | "not in";
|
|
738
|
+
addresses: string[];
|
|
739
|
+
} | {
|
|
740
|
+
solValue: string;
|
|
741
|
+
type: "solValue";
|
|
742
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
743
|
+
} | {
|
|
744
|
+
type: "splAddress";
|
|
745
|
+
operator: "in" | "not in";
|
|
746
|
+
addresses: string[];
|
|
747
|
+
} | {
|
|
748
|
+
splValue: string;
|
|
749
|
+
type: "splValue";
|
|
750
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
751
|
+
} | {
|
|
752
|
+
type: "mintAddress";
|
|
753
|
+
operator: "in" | "not in";
|
|
754
|
+
addresses: string[];
|
|
755
|
+
})[];
|
|
756
|
+
}>;
|
|
757
|
+
export type SendSolTransactionRule = z.infer<typeof SendSolTransactionRuleSchema>;
|
|
758
|
+
//# sourceMappingURL=solanaSchema.d.ts.map
|