@inco/shield-js 0.1.0 → 0.2.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/README.md +52 -308
- package/dist/contracts/abi.d.ts +2000 -4513
- package/dist/contracts/abi.js +2400 -5651
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/utils.d.ts +5 -24
- package/dist/contracts/utils.js +13 -24
- package/dist/errors.d.ts +16 -47
- package/dist/errors.js +6 -53
- package/dist/generated/inco/shield/v2/conductor_pb.d.ts +77 -0
- package/dist/generated/inco/shield/v2/conductor_pb.js +6 -0
- package/dist/generated/inco/shield/v2/deposit_pb.d.ts +12 -103
- package/dist/generated/inco/shield/v2/deposit_pb.js +4 -141
- package/dist/generated/inco/shield/v2/drafting_pb.d.ts +45 -269
- package/dist/generated/inco/shield/v2/drafting_pb.js +8 -361
- package/dist/generated/inco/shield/v2/types_pb.d.ts +47 -166
- package/dist/generated/inco/shield/v2/types_pb.js +12 -261
- package/dist/index.d.ts +1 -7
- package/dist/index.js +1 -14
- package/dist/shield/abi.d.ts +5 -0
- package/dist/shield/abi.js +28 -0
- package/dist/shield/client.d.ts +27 -51
- package/dist/shield/client.js +73 -65
- package/dist/shield/convert.d.ts +2 -14
- package/dist/shield/convert.js +39 -115
- package/dist/shield/encryption.d.ts +0 -67
- package/dist/shield/encryption.js +0 -67
- package/dist/shield/envelope.d.ts +10 -11
- package/dist/shield/envelope.js +15 -14
- package/dist/shield/fee.d.ts +24 -0
- package/dist/shield/fee.js +151 -0
- package/dist/shield/index.d.ts +9 -3
- package/dist/shield/index.js +7 -2
- package/dist/shield/intent.d.ts +20 -933
- package/dist/shield/intent.js +92 -112
- package/dist/shield/permission-status.d.ts +9 -0
- package/dist/shield/permission-status.js +8 -0
- package/dist/shield/rpc.d.ts +50 -49
- package/dist/shield/rpc.js +207 -354
- package/dist/shield/shield.eip712.gen.d.ts +1096 -43
- package/dist/shield/shield.eip712.gen.js +572 -62
- package/dist/shield/types.d.ts +7 -102
- package/dist/shield/types.js +1 -4
- package/dist/shield/userop/gas-estimation.d.ts +7 -22
- package/dist/shield/userop/gas-estimation.js +100 -137
- package/dist/shield/userop/paymaster.d.ts +15 -0
- package/dist/shield/userop/paymaster.js +17 -0
- package/dist/shield/userop/token-exchange.d.ts +5 -52
- package/dist/shield/userop/token-exchange.js +41 -149
- package/dist/shield/userop/types.d.ts +2 -27
- package/dist/shield/userop/types.js +0 -3
- package/dist/shield/userop/userOp.d.ts +0 -19
- package/dist/shield/userop/userOp.js +4 -22
- package/dist/shield/utils/chain.d.ts +1 -0
- package/dist/shield/utils/chain.js +3 -0
- package/dist/shield/validate-withdrawal-split.d.ts +13 -0
- package/dist/shield/validate-withdrawal-split.js +93 -0
- package/package.json +18 -27
- package/dist/generated/inco/shield/v2/conductor_connect.d.ts +0 -137
- package/dist/generated/inco/shield/v2/conductor_connect.js +0 -141
- package/dist/generated/inco/shield/v2/permission_pb.d.ts +0 -443
- package/dist/generated/inco/shield/v2/permission_pb.js +0 -639
- package/dist/generated/inco/shield/v2/query_pb.d.ts +0 -103
- package/dist/generated/inco/shield/v2/query_pb.js +0 -141
- package/dist/shield/userop/index.d.ts +0 -1
- package/dist/shield/userop/index.js +0 -1
- package/dist/uniswap-adapter/config.d.ts +0 -34
- package/dist/uniswap-adapter/config.js +0 -45
- package/dist/uniswap-adapter/find-pools.d.ts +0 -91
- package/dist/uniswap-adapter/find-pools.js +0 -108
- package/dist/uniswap-adapter/index.d.ts +0 -10
- package/dist/uniswap-adapter/index.js +0 -13
- package/dist/uniswap-adapter/swap.d.ts +0 -344
- package/dist/uniswap-adapter/swap.js +0 -309
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { Address, AssetId, Bytes32, Uint256 } from "./types_pb.js";
|
|
4
|
-
/**
|
|
5
|
-
* PermissionStatus represents the lifecycle state of a permission.
|
|
6
|
-
*
|
|
7
|
-
* @generated from enum inco.shield.v2.PermissionStatus
|
|
8
|
-
*/
|
|
9
|
-
export declare enum PermissionStatus {
|
|
10
|
-
/**
|
|
11
|
-
* @generated from enum value: PERMISSION_STATUS_UNSPECIFIED = 0;
|
|
12
|
-
*/
|
|
13
|
-
UNSPECIFIED = 0,
|
|
14
|
-
/**
|
|
15
|
-
* @generated from enum value: PERMISSION_STATUS_ACTIVE = 1;
|
|
16
|
-
*/
|
|
17
|
-
ACTIVE = 1,
|
|
18
|
-
/**
|
|
19
|
-
* @generated from enum value: PERMISSION_STATUS_NOT_YET_ACTIVE = 2;
|
|
20
|
-
*/
|
|
21
|
-
NOT_YET_ACTIVE = 2,
|
|
22
|
-
/**
|
|
23
|
-
* @generated from enum value: PERMISSION_STATUS_EXPIRED = 3;
|
|
24
|
-
*/
|
|
25
|
-
EXPIRED = 3,
|
|
26
|
-
/**
|
|
27
|
-
* @generated from enum value: PERMISSION_STATUS_REVOKED = 4;
|
|
28
|
-
*/
|
|
29
|
-
REVOKED = 4,
|
|
30
|
-
/**
|
|
31
|
-
* @generated from enum value: PERMISSION_STATUS_GENERATION_REVOKED = 5;
|
|
32
|
-
*/
|
|
33
|
-
GENERATION_REVOKED = 5
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* PermissionInfo contains detailed information about a permission.
|
|
37
|
-
*
|
|
38
|
-
* @generated from message inco.shield.v2.PermissionInfo
|
|
39
|
-
*/
|
|
40
|
-
export declare class PermissionInfo extends Message<PermissionInfo> {
|
|
41
|
-
/**
|
|
42
|
-
* @generated from field: inco.shield.v2.Bytes32 permission_id = 1;
|
|
43
|
-
*/
|
|
44
|
-
permissionId?: Bytes32;
|
|
45
|
-
/**
|
|
46
|
-
* @generated from field: inco.shield.v2.Address owner = 2;
|
|
47
|
-
*/
|
|
48
|
-
owner?: Address;
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: inco.shield.v2.Address spender = 3;
|
|
51
|
-
*/
|
|
52
|
-
spender?: Address;
|
|
53
|
-
/**
|
|
54
|
-
* @generated from field: inco.shield.v2.AssetId asset_id = 4;
|
|
55
|
-
*/
|
|
56
|
-
assetId?: AssetId;
|
|
57
|
-
/**
|
|
58
|
-
* @generated from field: inco.shield.v2.Uint256 allowance = 5;
|
|
59
|
-
*/
|
|
60
|
-
allowance?: Uint256;
|
|
61
|
-
/**
|
|
62
|
-
* Unix timestamp (seconds) at which the permission becomes active.
|
|
63
|
-
*
|
|
64
|
-
* @generated from field: uint64 start = 6;
|
|
65
|
-
*/
|
|
66
|
-
start: bigint;
|
|
67
|
-
/**
|
|
68
|
-
* Unix timestamp (seconds) at which the permission expires (exclusive).
|
|
69
|
-
*
|
|
70
|
-
* @generated from field: uint64 end = 7;
|
|
71
|
-
*/
|
|
72
|
-
end: bigint;
|
|
73
|
-
/**
|
|
74
|
-
* Replenishment window in seconds (0 = one-time).
|
|
75
|
-
*
|
|
76
|
-
* @generated from field: uint64 period = 8;
|
|
77
|
-
*/
|
|
78
|
-
period: bigint;
|
|
79
|
-
/**
|
|
80
|
-
* @generated from field: inco.shield.v2.Bytes32 agreement_hash = 9;
|
|
81
|
-
*/
|
|
82
|
-
agreementHash?: Bytes32;
|
|
83
|
-
/**
|
|
84
|
-
* Amount spent in current period.
|
|
85
|
-
*
|
|
86
|
-
* @generated from field: inco.shield.v2.Uint256 spent_in_current_period = 10;
|
|
87
|
-
*/
|
|
88
|
-
spentInCurrentPeriod?: Uint256;
|
|
89
|
-
/**
|
|
90
|
-
* Calculated available allowance.
|
|
91
|
-
*
|
|
92
|
-
* @generated from field: inco.shield.v2.Uint256 available_allowance = 11;
|
|
93
|
-
*/
|
|
94
|
-
availableAllowance?: Uint256;
|
|
95
|
-
/**
|
|
96
|
-
* The current lifecycle status of the permission.
|
|
97
|
-
*
|
|
98
|
-
* @generated from field: inco.shield.v2.PermissionStatus status = 12;
|
|
99
|
-
*/
|
|
100
|
-
status: PermissionStatus;
|
|
101
|
-
/**
|
|
102
|
-
* Per-issuance salt used in the permission id preimage.
|
|
103
|
-
*
|
|
104
|
-
* @generated from field: inco.shield.v2.Bytes32 salt = 13;
|
|
105
|
-
*/
|
|
106
|
-
salt?: Bytes32;
|
|
107
|
-
/**
|
|
108
|
-
* Unix timestamp (seconds) at which the current replenishment period starts.
|
|
109
|
-
*
|
|
110
|
-
* @generated from field: uint64 current_period_start = 14;
|
|
111
|
-
*/
|
|
112
|
-
currentPeriodStart: bigint;
|
|
113
|
-
constructor(data?: PartialMessage<PermissionInfo>);
|
|
114
|
-
static readonly runtime: typeof proto3;
|
|
115
|
-
static readonly typeName = "inco.shield.v2.PermissionInfo";
|
|
116
|
-
static readonly fields: FieldList;
|
|
117
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermissionInfo;
|
|
118
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermissionInfo;
|
|
119
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermissionInfo;
|
|
120
|
-
static equals(a: PermissionInfo | PlainMessage<PermissionInfo> | undefined, b: PermissionInfo | PlainMessage<PermissionInfo> | undefined): boolean;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* RequestPermissionAttestationRequest is the envelope payload for
|
|
124
|
-
* RequestPermissionAttestation. The TEE redeems the owner-signed intent
|
|
125
|
-
* once and returns a long-lived attestation in exchange.
|
|
126
|
-
*
|
|
127
|
-
* @generated from message inco.shield.v2.RequestPermissionAttestationRequest
|
|
128
|
-
*/
|
|
129
|
-
export declare class RequestPermissionAttestationRequest extends Message<RequestPermissionAttestationRequest> {
|
|
130
|
-
/**
|
|
131
|
-
* The ABI-encoded PermissionAttestationRequest struct from Solidity.
|
|
132
|
-
*
|
|
133
|
-
* @generated from field: bytes permission_attestation_request_bytes = 1;
|
|
134
|
-
*/
|
|
135
|
-
permissionAttestationRequestBytes: Uint8Array<ArrayBuffer>;
|
|
136
|
-
/**
|
|
137
|
-
* EIP-712 signature from the owner over the permission.
|
|
138
|
-
*
|
|
139
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
140
|
-
*/
|
|
141
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
142
|
-
/**
|
|
143
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
144
|
-
*
|
|
145
|
-
* @generated from field: bytes response_key = 3;
|
|
146
|
-
*/
|
|
147
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
148
|
-
constructor(data?: PartialMessage<RequestPermissionAttestationRequest>);
|
|
149
|
-
static readonly runtime: typeof proto3;
|
|
150
|
-
static readonly typeName = "inco.shield.v2.RequestPermissionAttestationRequest";
|
|
151
|
-
static readonly fields: FieldList;
|
|
152
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestPermissionAttestationRequest;
|
|
153
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestPermissionAttestationRequest;
|
|
154
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestPermissionAttestationRequest;
|
|
155
|
-
static equals(a: RequestPermissionAttestationRequest | PlainMessage<RequestPermissionAttestationRequest> | undefined, b: RequestPermissionAttestationRequest | PlainMessage<RequestPermissionAttestationRequest> | undefined): boolean;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* GetPermissionsByOwnerRequest is the envelope payload for GetPermissionsByOwner.
|
|
159
|
-
* ABI-encoded Solidity GetPermissionsByOwner(requester, includeExpired, timestamp), signed by the requester.
|
|
160
|
-
*
|
|
161
|
-
* @generated from message inco.shield.v2.GetPermissionsByOwnerRequest
|
|
162
|
-
*/
|
|
163
|
-
export declare class GetPermissionsByOwnerRequest extends Message<GetPermissionsByOwnerRequest> {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from field: bytes get_permissions_by_owner_bytes = 1;
|
|
166
|
-
*/
|
|
167
|
-
getPermissionsByOwnerBytes: Uint8Array<ArrayBuffer>;
|
|
168
|
-
/**
|
|
169
|
-
* EIP-712 signature from the owner over the GetPermissionsByOwner.
|
|
170
|
-
*
|
|
171
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
172
|
-
*/
|
|
173
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
174
|
-
/**
|
|
175
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
176
|
-
*
|
|
177
|
-
* @generated from field: bytes response_key = 3;
|
|
178
|
-
*/
|
|
179
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
180
|
-
constructor(data?: PartialMessage<GetPermissionsByOwnerRequest>);
|
|
181
|
-
static readonly runtime: typeof proto3;
|
|
182
|
-
static readonly typeName = "inco.shield.v2.GetPermissionsByOwnerRequest";
|
|
183
|
-
static readonly fields: FieldList;
|
|
184
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionsByOwnerRequest;
|
|
185
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionsByOwnerRequest;
|
|
186
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionsByOwnerRequest;
|
|
187
|
-
static equals(a: GetPermissionsByOwnerRequest | PlainMessage<GetPermissionsByOwnerRequest> | undefined, b: GetPermissionsByOwnerRequest | PlainMessage<GetPermissionsByOwnerRequest> | undefined): boolean;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* GetPermissionsBySpenderRequest is the envelope payload for GetPermissionsBySpender.
|
|
191
|
-
* ABI-encoded Solidity GetPermissionsBySpender(requester, includeExpired, timestamp), signed by the requester.
|
|
192
|
-
*
|
|
193
|
-
* @generated from message inco.shield.v2.GetPermissionsBySpenderRequest
|
|
194
|
-
*/
|
|
195
|
-
export declare class GetPermissionsBySpenderRequest extends Message<GetPermissionsBySpenderRequest> {
|
|
196
|
-
/**
|
|
197
|
-
* @generated from field: bytes get_permissions_by_spender_bytes = 1;
|
|
198
|
-
*/
|
|
199
|
-
getPermissionsBySpenderBytes: Uint8Array<ArrayBuffer>;
|
|
200
|
-
/**
|
|
201
|
-
* EIP-712 signature from the spender over the GetPermissionsBySpender.
|
|
202
|
-
*
|
|
203
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
204
|
-
*/
|
|
205
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
206
|
-
/**
|
|
207
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
208
|
-
*
|
|
209
|
-
* @generated from field: bytes response_key = 3;
|
|
210
|
-
*/
|
|
211
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
212
|
-
constructor(data?: PartialMessage<GetPermissionsBySpenderRequest>);
|
|
213
|
-
static readonly runtime: typeof proto3;
|
|
214
|
-
static readonly typeName = "inco.shield.v2.GetPermissionsBySpenderRequest";
|
|
215
|
-
static readonly fields: FieldList;
|
|
216
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionsBySpenderRequest;
|
|
217
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionsBySpenderRequest;
|
|
218
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionsBySpenderRequest;
|
|
219
|
-
static equals(a: GetPermissionsBySpenderRequest | PlainMessage<GetPermissionsBySpenderRequest> | undefined, b: GetPermissionsBySpenderRequest | PlainMessage<GetPermissionsBySpenderRequest> | undefined): boolean;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* GetPermissionDetailsRequest is the envelope payload for GetPermissionDetails.
|
|
223
|
-
* ABI-encoded Solidity GetPermissionDetails(requester, permissionId, timestamp), signed by the caller.
|
|
224
|
-
*
|
|
225
|
-
* @generated from message inco.shield.v2.GetPermissionDetailsRequest
|
|
226
|
-
*/
|
|
227
|
-
export declare class GetPermissionDetailsRequest extends Message<GetPermissionDetailsRequest> {
|
|
228
|
-
/**
|
|
229
|
-
* @generated from field: bytes get_permission_details_bytes = 1;
|
|
230
|
-
*/
|
|
231
|
-
getPermissionDetailsBytes: Uint8Array<ArrayBuffer>;
|
|
232
|
-
/**
|
|
233
|
-
* EIP-712 signature from the owner or spender over the GetPermissionDetails.
|
|
234
|
-
*
|
|
235
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
236
|
-
*/
|
|
237
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
238
|
-
/**
|
|
239
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
240
|
-
*
|
|
241
|
-
* @generated from field: bytes response_key = 3;
|
|
242
|
-
*/
|
|
243
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
244
|
-
constructor(data?: PartialMessage<GetPermissionDetailsRequest>);
|
|
245
|
-
static readonly runtime: typeof proto3;
|
|
246
|
-
static readonly typeName = "inco.shield.v2.GetPermissionDetailsRequest";
|
|
247
|
-
static readonly fields: FieldList;
|
|
248
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionDetailsRequest;
|
|
249
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionDetailsRequest;
|
|
250
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionDetailsRequest;
|
|
251
|
-
static equals(a: GetPermissionDetailsRequest | PlainMessage<GetPermissionDetailsRequest> | undefined, b: GetPermissionDetailsRequest | PlainMessage<GetPermissionDetailsRequest> | undefined): boolean;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* GetSpendableRequest is the envelope payload for GetSpendable.
|
|
255
|
-
* ABI-encoded Solidity GetSpendable(requester, permissionId, timestamp), signed by the spender.
|
|
256
|
-
*
|
|
257
|
-
* @generated from message inco.shield.v2.GetSpendableRequest
|
|
258
|
-
*/
|
|
259
|
-
export declare class GetSpendableRequest extends Message<GetSpendableRequest> {
|
|
260
|
-
/**
|
|
261
|
-
* @generated from field: bytes get_spendable_bytes = 1;
|
|
262
|
-
*/
|
|
263
|
-
getSpendableBytes: Uint8Array<ArrayBuffer>;
|
|
264
|
-
/**
|
|
265
|
-
* EIP-712 signature from the spender over the GetSpendable.
|
|
266
|
-
*
|
|
267
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
268
|
-
*/
|
|
269
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
270
|
-
/**
|
|
271
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
272
|
-
*
|
|
273
|
-
* @generated from field: bytes response_key = 3;
|
|
274
|
-
*/
|
|
275
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
276
|
-
constructor(data?: PartialMessage<GetSpendableRequest>);
|
|
277
|
-
static readonly runtime: typeof proto3;
|
|
278
|
-
static readonly typeName = "inco.shield.v2.GetSpendableRequest";
|
|
279
|
-
static readonly fields: FieldList;
|
|
280
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSpendableRequest;
|
|
281
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSpendableRequest;
|
|
282
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSpendableRequest;
|
|
283
|
-
static equals(a: GetSpendableRequest | PlainMessage<GetSpendableRequest> | undefined, b: GetSpendableRequest | PlainMessage<GetSpendableRequest> | undefined): boolean;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* GetOwnerGenerationRequest is the envelope payload for GetOwnerGeneration.
|
|
287
|
-
* ABI-encoded Solidity GetOwnerGeneration(requester, timestamp), signed by the owner.
|
|
288
|
-
*
|
|
289
|
-
* @generated from message inco.shield.v2.GetOwnerGenerationRequest
|
|
290
|
-
*/
|
|
291
|
-
export declare class GetOwnerGenerationRequest extends Message<GetOwnerGenerationRequest> {
|
|
292
|
-
/**
|
|
293
|
-
* @generated from field: bytes get_owner_generation_bytes = 1;
|
|
294
|
-
*/
|
|
295
|
-
getOwnerGenerationBytes: Uint8Array<ArrayBuffer>;
|
|
296
|
-
/**
|
|
297
|
-
* EIP-712 signature from the owner over the GetOwnerGeneration.
|
|
298
|
-
*
|
|
299
|
-
* @generated from field: bytes eip712_signature = 2;
|
|
300
|
-
*/
|
|
301
|
-
eip712Signature: Uint8Array<ArrayBuffer>;
|
|
302
|
-
/**
|
|
303
|
-
* Symmetric key for AEAD-encrypting the response.
|
|
304
|
-
*
|
|
305
|
-
* @generated from field: bytes response_key = 3;
|
|
306
|
-
*/
|
|
307
|
-
responseKey: Uint8Array<ArrayBuffer>;
|
|
308
|
-
constructor(data?: PartialMessage<GetOwnerGenerationRequest>);
|
|
309
|
-
static readonly runtime: typeof proto3;
|
|
310
|
-
static readonly typeName = "inco.shield.v2.GetOwnerGenerationRequest";
|
|
311
|
-
static readonly fields: FieldList;
|
|
312
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOwnerGenerationRequest;
|
|
313
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOwnerGenerationRequest;
|
|
314
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOwnerGenerationRequest;
|
|
315
|
-
static equals(a: GetOwnerGenerationRequest | PlainMessage<GetOwnerGenerationRequest> | undefined, b: GetOwnerGenerationRequest | PlainMessage<GetOwnerGenerationRequest> | undefined): boolean;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* RequestPermissionAttestationResponse returns the TEE-issued attestation.
|
|
319
|
-
* Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
|
|
320
|
-
*
|
|
321
|
-
* @generated from message inco.shield.v2.RequestPermissionAttestationResponse
|
|
322
|
-
*/
|
|
323
|
-
export declare class RequestPermissionAttestationResponse extends Message<RequestPermissionAttestationResponse> {
|
|
324
|
-
/**
|
|
325
|
-
* ABI-encoded Solidity PermissionAttestation(PermissionAttestationPayload payload, bytes signature).
|
|
326
|
-
* The TEE committee signature lives inside the bytes as the struct's `signature` field.
|
|
327
|
-
*
|
|
328
|
-
* @generated from field: bytes permission_attestation_bytes = 1;
|
|
329
|
-
*/
|
|
330
|
-
permissionAttestationBytes: Uint8Array<ArrayBuffer>;
|
|
331
|
-
constructor(data?: PartialMessage<RequestPermissionAttestationResponse>);
|
|
332
|
-
static readonly runtime: typeof proto3;
|
|
333
|
-
static readonly typeName = "inco.shield.v2.RequestPermissionAttestationResponse";
|
|
334
|
-
static readonly fields: FieldList;
|
|
335
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestPermissionAttestationResponse;
|
|
336
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestPermissionAttestationResponse;
|
|
337
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestPermissionAttestationResponse;
|
|
338
|
-
static equals(a: RequestPermissionAttestationResponse | PlainMessage<RequestPermissionAttestationResponse> | undefined, b: RequestPermissionAttestationResponse | PlainMessage<RequestPermissionAttestationResponse> | undefined): boolean;
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* GetPermissionsResponse returns a list of permissions.
|
|
342
|
-
* Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
|
|
343
|
-
*
|
|
344
|
-
* @generated from message inco.shield.v2.GetPermissionsResponse
|
|
345
|
-
*/
|
|
346
|
-
export declare class GetPermissionsResponse extends Message<GetPermissionsResponse> {
|
|
347
|
-
/**
|
|
348
|
-
* @generated from field: repeated inco.shield.v2.PermissionInfo permissions = 1;
|
|
349
|
-
*/
|
|
350
|
-
permissions: PermissionInfo[];
|
|
351
|
-
constructor(data?: PartialMessage<GetPermissionsResponse>);
|
|
352
|
-
static readonly runtime: typeof proto3;
|
|
353
|
-
static readonly typeName = "inco.shield.v2.GetPermissionsResponse";
|
|
354
|
-
static readonly fields: FieldList;
|
|
355
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionsResponse;
|
|
356
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionsResponse;
|
|
357
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionsResponse;
|
|
358
|
-
static equals(a: GetPermissionsResponse | PlainMessage<GetPermissionsResponse> | undefined, b: GetPermissionsResponse | PlainMessage<GetPermissionsResponse> | undefined): boolean;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* GetPermissionDetailsResponse returns permission details.
|
|
362
|
-
* Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
|
|
363
|
-
*
|
|
364
|
-
* @generated from message inco.shield.v2.GetPermissionDetailsResponse
|
|
365
|
-
*/
|
|
366
|
-
export declare class GetPermissionDetailsResponse extends Message<GetPermissionDetailsResponse> {
|
|
367
|
-
/**
|
|
368
|
-
* The permission details.
|
|
369
|
-
*
|
|
370
|
-
* @generated from field: inco.shield.v2.PermissionInfo permission = 1;
|
|
371
|
-
*/
|
|
372
|
-
permission?: PermissionInfo;
|
|
373
|
-
/**
|
|
374
|
-
* Whether the permission was found.
|
|
375
|
-
*
|
|
376
|
-
* @generated from field: bool found = 2;
|
|
377
|
-
*/
|
|
378
|
-
found: boolean;
|
|
379
|
-
constructor(data?: PartialMessage<GetPermissionDetailsResponse>);
|
|
380
|
-
static readonly runtime: typeof proto3;
|
|
381
|
-
static readonly typeName = "inco.shield.v2.GetPermissionDetailsResponse";
|
|
382
|
-
static readonly fields: FieldList;
|
|
383
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPermissionDetailsResponse;
|
|
384
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPermissionDetailsResponse;
|
|
385
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPermissionDetailsResponse;
|
|
386
|
-
static equals(a: GetPermissionDetailsResponse | PlainMessage<GetPermissionDetailsResponse> | undefined, b: GetPermissionDetailsResponse | PlainMessage<GetPermissionDetailsResponse> | undefined): boolean;
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* GetSpendableResponse returns a single clamped spend ceiling.
|
|
390
|
-
*
|
|
391
|
-
* `spendable = min(allowance - usage_in_current_period, ownerBalance)`. The
|
|
392
|
-
* scalar deliberately hides which side of the `min()` is the binding
|
|
393
|
-
* constraint, so the spender cannot infer whether the owner's balance is
|
|
394
|
-
* below or above the remaining allowance.
|
|
395
|
-
*
|
|
396
|
-
* Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
|
|
397
|
-
*
|
|
398
|
-
* @generated from message inco.shield.v2.GetSpendableResponse
|
|
399
|
-
*/
|
|
400
|
-
export declare class GetSpendableResponse extends Message<GetSpendableResponse> {
|
|
401
|
-
/**
|
|
402
|
-
* Spend ceiling.
|
|
403
|
-
*
|
|
404
|
-
* @generated from field: inco.shield.v2.Uint256 spendable = 1;
|
|
405
|
-
*/
|
|
406
|
-
spendable?: Uint256;
|
|
407
|
-
/**
|
|
408
|
-
* Whether the permission was found.
|
|
409
|
-
*
|
|
410
|
-
* @generated from field: bool found = 2;
|
|
411
|
-
*/
|
|
412
|
-
found: boolean;
|
|
413
|
-
constructor(data?: PartialMessage<GetSpendableResponse>);
|
|
414
|
-
static readonly runtime: typeof proto3;
|
|
415
|
-
static readonly typeName = "inco.shield.v2.GetSpendableResponse";
|
|
416
|
-
static readonly fields: FieldList;
|
|
417
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSpendableResponse;
|
|
418
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSpendableResponse;
|
|
419
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSpendableResponse;
|
|
420
|
-
static equals(a: GetSpendableResponse | PlainMessage<GetSpendableResponse> | undefined, b: GetSpendableResponse | PlainMessage<GetSpendableResponse> | undefined): boolean;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* GetOwnerGenerationResponse returns the owner's current generation.
|
|
424
|
-
* Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
|
|
425
|
-
*
|
|
426
|
-
* @generated from message inco.shield.v2.GetOwnerGenerationResponse
|
|
427
|
-
*/
|
|
428
|
-
export declare class GetOwnerGenerationResponse extends Message<GetOwnerGenerationResponse> {
|
|
429
|
-
/**
|
|
430
|
-
* Current generation (observed from chain events).
|
|
431
|
-
*
|
|
432
|
-
* @generated from field: uint64 generation = 1;
|
|
433
|
-
*/
|
|
434
|
-
generation: bigint;
|
|
435
|
-
constructor(data?: PartialMessage<GetOwnerGenerationResponse>);
|
|
436
|
-
static readonly runtime: typeof proto3;
|
|
437
|
-
static readonly typeName = "inco.shield.v2.GetOwnerGenerationResponse";
|
|
438
|
-
static readonly fields: FieldList;
|
|
439
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOwnerGenerationResponse;
|
|
440
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOwnerGenerationResponse;
|
|
441
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOwnerGenerationResponse;
|
|
442
|
-
static equals(a: GetOwnerGenerationResponse | PlainMessage<GetOwnerGenerationResponse> | undefined, b: GetOwnerGenerationResponse | PlainMessage<GetOwnerGenerationResponse> | undefined): boolean;
|
|
443
|
-
}
|