@inco/shield-js 0.0.0-bootstrap.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.
Files changed (74) hide show
  1. package/README.md +52 -308
  2. package/dist/contracts/abi.d.ts +2000 -4513
  3. package/dist/contracts/abi.js +2400 -5651
  4. package/dist/contracts/index.d.ts +2 -2
  5. package/dist/contracts/index.js +2 -2
  6. package/dist/contracts/utils.d.ts +5 -24
  7. package/dist/contracts/utils.js +13 -24
  8. package/dist/errors.d.ts +16 -47
  9. package/dist/errors.js +6 -53
  10. package/dist/generated/inco/shield/v2/conductor_pb.d.ts +77 -0
  11. package/dist/generated/inco/shield/v2/conductor_pb.js +6 -0
  12. package/dist/generated/inco/shield/v2/deposit_pb.d.ts +12 -103
  13. package/dist/generated/inco/shield/v2/deposit_pb.js +4 -141
  14. package/dist/generated/inco/shield/v2/drafting_pb.d.ts +45 -269
  15. package/dist/generated/inco/shield/v2/drafting_pb.js +8 -361
  16. package/dist/generated/inco/shield/v2/types_pb.d.ts +47 -166
  17. package/dist/generated/inco/shield/v2/types_pb.js +12 -261
  18. package/dist/index.d.ts +1 -7
  19. package/dist/index.js +1 -14
  20. package/dist/shield/abi.d.ts +5 -0
  21. package/dist/shield/abi.js +28 -0
  22. package/dist/shield/client.d.ts +27 -51
  23. package/dist/shield/client.js +73 -65
  24. package/dist/shield/convert.d.ts +2 -14
  25. package/dist/shield/convert.js +39 -115
  26. package/dist/shield/encryption.d.ts +0 -67
  27. package/dist/shield/encryption.js +0 -67
  28. package/dist/shield/envelope.d.ts +10 -11
  29. package/dist/shield/envelope.js +15 -14
  30. package/dist/shield/fee.d.ts +24 -0
  31. package/dist/shield/fee.js +151 -0
  32. package/dist/shield/index.d.ts +9 -3
  33. package/dist/shield/index.js +7 -2
  34. package/dist/shield/intent.d.ts +20 -933
  35. package/dist/shield/intent.js +92 -112
  36. package/dist/shield/permission-status.d.ts +9 -0
  37. package/dist/shield/permission-status.js +8 -0
  38. package/dist/shield/rpc.d.ts +50 -49
  39. package/dist/shield/rpc.js +207 -354
  40. package/dist/shield/shield.eip712.gen.d.ts +1096 -43
  41. package/dist/shield/shield.eip712.gen.js +572 -62
  42. package/dist/shield/types.d.ts +7 -102
  43. package/dist/shield/types.js +1 -4
  44. package/dist/shield/userop/gas-estimation.d.ts +8 -23
  45. package/dist/shield/userop/gas-estimation.js +100 -137
  46. package/dist/shield/userop/paymaster.d.ts +15 -0
  47. package/dist/shield/userop/paymaster.js +17 -0
  48. package/dist/shield/userop/token-exchange.d.ts +5 -52
  49. package/dist/shield/userop/token-exchange.js +41 -149
  50. package/dist/shield/userop/types.d.ts +3 -28
  51. package/dist/shield/userop/types.js +0 -3
  52. package/dist/shield/userop/userOp.d.ts +0 -19
  53. package/dist/shield/userop/userOp.js +4 -22
  54. package/dist/shield/utils/chain.d.ts +1 -0
  55. package/dist/shield/utils/chain.js +3 -0
  56. package/dist/shield/validate-withdrawal-split.d.ts +13 -0
  57. package/dist/shield/validate-withdrawal-split.js +93 -0
  58. package/package.json +18 -27
  59. package/dist/generated/inco/shield/v2/conductor_connect.d.ts +0 -137
  60. package/dist/generated/inco/shield/v2/conductor_connect.js +0 -141
  61. package/dist/generated/inco/shield/v2/permission_pb.d.ts +0 -443
  62. package/dist/generated/inco/shield/v2/permission_pb.js +0 -639
  63. package/dist/generated/inco/shield/v2/query_pb.d.ts +0 -103
  64. package/dist/generated/inco/shield/v2/query_pb.js +0 -141
  65. package/dist/shield/userop/index.d.ts +0 -1
  66. package/dist/shield/userop/index.js +0 -1
  67. package/dist/uniswap-adapter/config.d.ts +0 -34
  68. package/dist/uniswap-adapter/config.js +0 -45
  69. package/dist/uniswap-adapter/find-pools.d.ts +0 -91
  70. package/dist/uniswap-adapter/find-pools.js +0 -108
  71. package/dist/uniswap-adapter/index.d.ts +0 -10
  72. package/dist/uniswap-adapter/index.js +0 -13
  73. package/dist/uniswap-adapter/swap.d.ts +0 -344
  74. package/dist/uniswap-adapter/swap.js +0 -309
@@ -1,141 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
2
- // @generated from file inco/shield/v2/deposit.proto (package inco.shield.v2, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
- import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { Address } from "./types_pb.js";
7
- /**
8
- * RequestDepositAttestationRequest is the envelope payload for RequestDepositAttestation.
9
- *
10
- * @generated from message inco.shield.v2.RequestDepositAttestationRequest
11
- */
12
- export class RequestDepositAttestationRequest extends Message {
13
- /**
14
- * Plaintext recipient address — TEE encrypts this to produce on-chain to_ciphertext.
15
- *
16
- * @generated from field: inco.shield.v2.Address recipient = 1;
17
- */
18
- recipient;
19
- /**
20
- * The asset adapter address (20 bytes, encoded as an Address).
21
- *
22
- * @generated from field: inco.shield.v2.Address asset_adapter = 2;
23
- */
24
- assetAdapter;
25
- /**
26
- * Asset identification data (e.g. abi.encode(tokenAddress)).
27
- *
28
- * @generated from field: bytes asset_identification_args = 3;
29
- */
30
- assetIdentificationArgs = new Uint8Array(0);
31
- /**
32
- * Optional memo.
33
- *
34
- * @generated from field: bytes memo = 4;
35
- */
36
- memo = new Uint8Array(0);
37
- /**
38
- * Optional escape hatch data.
39
- *
40
- * @generated from field: bytes escape_hatch = 5;
41
- */
42
- escapeHatch = new Uint8Array(0);
43
- /**
44
- * Symmetric key for AEAD-encrypting the response.
45
- *
46
- * @generated from field: bytes response_key = 6;
47
- */
48
- responseKey = new Uint8Array(0);
49
- /**
50
- * Depositor's EIP-712 signature over the DepositAttestationRequest digest
51
- * (covers depositor, recipient, asset_adapter, asset_identification_args,
52
- * memo, escape_hatch).
53
- *
54
- * @generated from field: bytes eip712_signature = 7;
55
- */
56
- eip712Signature = new Uint8Array(0);
57
- /**
58
- * Depositor address (must match eip712_signature signer).
59
- *
60
- * @generated from field: inco.shield.v2.Address depositor = 9;
61
- */
62
- depositor;
63
- constructor(data) {
64
- super();
65
- proto3.util.initPartial(data, this);
66
- }
67
- static runtime = proto3;
68
- static typeName = "inco.shield.v2.RequestDepositAttestationRequest";
69
- static fields = proto3.util.newFieldList(() => [
70
- { no: 1, name: "recipient", kind: "message", T: Address },
71
- { no: 2, name: "asset_adapter", kind: "message", T: Address },
72
- { no: 3, name: "asset_identification_args", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
73
- { no: 4, name: "memo", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
74
- { no: 5, name: "escape_hatch", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
75
- { no: 6, name: "response_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
76
- { no: 7, name: "eip712_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
77
- { no: 9, name: "depositor", kind: "message", T: Address },
78
- ]);
79
- static fromBinary(bytes, options) {
80
- return new RequestDepositAttestationRequest().fromBinary(bytes, options);
81
- }
82
- static fromJson(jsonValue, options) {
83
- return new RequestDepositAttestationRequest().fromJson(jsonValue, options);
84
- }
85
- static fromJsonString(jsonString, options) {
86
- return new RequestDepositAttestationRequest().fromJsonString(jsonString, options);
87
- }
88
- static equals(a, b) {
89
- return proto3.util.equals(RequestDepositAttestationRequest, a, b);
90
- }
91
- }
92
- /**
93
- * RequestDepositAttestationResponse returns the TEE-generated ciphertext and attestation signature.
94
- * Serialized into an EncryptedResponse (AEAD-encrypted with the caller's response_key).
95
- *
96
- * @generated from message inco.shield.v2.RequestDepositAttestationResponse
97
- */
98
- export class RequestDepositAttestationResponse extends Message {
99
- /**
100
- * TEE signature over the DepositAttestation EIP-712 digest.
101
- *
102
- * @generated from field: bytes tee_signature = 1;
103
- */
104
- teeSignature = new Uint8Array(0);
105
- /**
106
- * Error message if the request failed.
107
- *
108
- * @generated from field: string error_message = 2;
109
- */
110
- errorMessage = "";
111
- /**
112
- * TEE-generated AEAD-encrypted recipient address (the on-chain `Deposit.toCiphertext`),
113
- * sealed under the quorum-shared enclave key with a fresh random nonce.
114
- *
115
- * @generated from field: bytes to_ciphertext = 3;
116
- */
117
- toCiphertext = new Uint8Array(0);
118
- constructor(data) {
119
- super();
120
- proto3.util.initPartial(data, this);
121
- }
122
- static runtime = proto3;
123
- static typeName = "inco.shield.v2.RequestDepositAttestationResponse";
124
- static fields = proto3.util.newFieldList(() => [
125
- { no: 1, name: "tee_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
126
- { no: 2, name: "error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
- { no: 3, name: "to_ciphertext", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
128
- ]);
129
- static fromBinary(bytes, options) {
130
- return new RequestDepositAttestationResponse().fromBinary(bytes, options);
131
- }
132
- static fromJson(jsonValue, options) {
133
- return new RequestDepositAttestationResponse().fromJson(jsonValue, options);
134
- }
135
- static fromJsonString(jsonString, options) {
136
- return new RequestDepositAttestationResponse().fromJsonString(jsonString, options);
137
- }
138
- static equals(a, b) {
139
- return proto3.util.equals(RequestDepositAttestationResponse, a, b);
140
- }
141
- }
1
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
2
+ import { file_inco_shield_v2_types } from "./types_pb.js";
3
+ export const file_inco_shield_v2_deposit = fileDesc("ChxpbmNvL3NoaWVsZC92Mi9kZXBvc2l0LnByb3RvEg5pbmNvLnNoaWVsZC52MiK+AQoZRGVwb3NpdEF0dGVzdGF0aW9uUmVxdWVzdBIqCglyZWNpcGllbnQYASABKAsyFy5pbmNvLnNoaWVsZC52Mi5BZGRyZXNzEi4KDWFzc2V0X2FkYXB0ZXIYAiABKAsyFy5pbmNvLnNoaWVsZC52Mi5BZGRyZXNzEiEKGWFzc2V0X2lkZW50aWZpY2F0aW9uX2FyZ3MYAyABKAwSDAoEbWVtbxgEIAEoDBIUCgxlc2NhcGVfaGF0Y2gYBSABKAxiBnByb3RvMw", [file_inco_shield_v2_types]);
4
+ export const DepositAttestationRequestSchema = messageDesc(file_inco_shield_v2_deposit, 0);
@@ -1,279 +1,55 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { Address, AssetId, Bytes32, Handle, Uint256 } from "./types_pb.js";
4
- /**
5
- * IntentKind is a union of all possible intent kinds.
6
- *
7
- * @generated from enum inco.shield.v2.IntentKind
8
- */
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Address, AssetId, Bytes32, Handle, Uint256 } from "./types_pb.js";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ export declare const file_inco_shield_v2_drafting: GenFile;
5
+ export type DraftRequest = Message<"inco.shield.v2.DraftRequest"> & {
6
+ intent: Uint8Array;
7
+ intentKind: IntentKind;
8
+ };
9
+ export declare const DraftRequestSchema: GenMessage<DraftRequest>;
10
+ export type DraftResponse = Message<"inco.shield.v2.DraftResponse"> & {
11
+ userOp?: UserOp07 | undefined;
12
+ cheque?: Cheque | undefined;
13
+ };
14
+ export declare const DraftResponseSchema: GenMessage<DraftResponse>;
15
+ export type UserOp07 = Message<"inco.shield.v2.UserOp07"> & {
16
+ sender?: Address | undefined;
17
+ nonce?: Uint256 | undefined;
18
+ callData: Uint8Array;
19
+ callGasLimit?: Uint256 | undefined;
20
+ verificationGasLimit?: Uint256 | undefined;
21
+ preVerificationGas?: Uint256 | undefined;
22
+ maxFeePerGas?: Uint256 | undefined;
23
+ maxPriorityFeePerGas?: Uint256 | undefined;
24
+ signature: Uint8Array;
25
+ factory?: Address | undefined;
26
+ factoryData?: Uint8Array | undefined;
27
+ paymaster?: Address | undefined;
28
+ paymasterData?: Uint8Array | undefined;
29
+ paymasterVerificationGasLimit?: Uint256 | undefined;
30
+ paymasterPostOpGasLimit?: Uint256 | undefined;
31
+ };
32
+ export declare const UserOp07Schema: GenMessage<UserOp07>;
33
+ export type Cheque = Message<"inco.shield.v2.Cheque"> & {
34
+ chequeNumber: bigint;
35
+ draftingHandle?: Handle | undefined;
36
+ draftingTimestamp: bigint;
37
+ nullifier?: Bytes32 | undefined;
38
+ sender?: Address | undefined;
39
+ receiver?: Address | undefined;
40
+ assetId?: AssetId | undefined;
41
+ amount?: Uint256 | undefined;
42
+ permissionId?: Bytes32 | undefined;
43
+ };
44
+ export declare const ChequeSchema: GenMessage<Cheque>;
9
45
  export declare enum IntentKind {
10
- /**
11
- * @generated from enum value: INTENT_KIND_TRANSFER = 0;
12
- */
13
46
  TRANSFER = 0,
14
- /**
15
- * @generated from enum value: INTENT_KIND_WITHDRAW = 1;
16
- */
17
47
  WITHDRAW = 1,
18
- /**
19
- * @generated from enum value: INTENT_KIND_DEFI_INTERACTION = 2;
20
- */
21
48
  DEFI_INTERACTION = 2,
22
- /**
23
- * @generated from enum value: INTENT_KIND_INDIVIDUAL_REVOCATION = 3;
24
- */
25
49
  INDIVIDUAL_REVOCATION = 3,
26
- /**
27
- * @generated from enum value: INTENT_KIND_USER_WIDE_REVOCATION = 4;
28
- */
29
50
  USER_WIDE_REVOCATION = 4,
30
- /**
31
- * @generated from enum value: INTENT_KIND_DELEGATED_TRANSFER = 5;
32
- */
33
51
  DELEGATED_TRANSFER = 5,
34
- /**
35
- * @generated from enum value: INTENT_KIND_DELEGATED_WITHDRAW = 6;
36
- */
37
52
  DELEGATED_WITHDRAW = 6,
38
- /**
39
- * @generated from enum value: INTENT_KIND_DELEGATED_DEFI_INTERACTION = 7;
40
- */
41
53
  DELEGATED_DEFI_INTERACTION = 7
42
54
  }
43
- /**
44
- * DraftRequest carries a user drafting intent.
45
- *
46
- * @generated from message inco.shield.v2.DraftRequest
47
- */
48
- export declare class DraftRequest extends Message<DraftRequest> {
49
- /**
50
- * ABI-encoded intent struct. Can be any of the {*}Intent structs mapped to
51
- * the `IntentKind` enum. See Shield.eip712.sol for the structs.
52
- *
53
- * @generated from field: bytes intent = 1;
54
- */
55
- intent: Uint8Array<ArrayBuffer>;
56
- /**
57
- * Kind of the intent, used to know into which struct to decode the `intent` field.
58
- *
59
- * @generated from field: inco.shield.v2.IntentKind intent_kind = 2;
60
- */
61
- intentKind: IntentKind;
62
- /**
63
- * Symmetric key for AEAD-encrypting the response.
64
- *
65
- * @generated from field: bytes response_key = 3;
66
- */
67
- responseKey: Uint8Array<ArrayBuffer>;
68
- /**
69
- * EIP-712 signature proving ownership of the queried address.
70
- *
71
- * @generated from field: bytes eip712_signature = 4;
72
- */
73
- eip712Signature: Uint8Array<ArrayBuffer>;
74
- constructor(data?: PartialMessage<DraftRequest>);
75
- static readonly runtime: typeof proto3;
76
- static readonly typeName = "inco.shield.v2.DraftRequest";
77
- static readonly fields: FieldList;
78
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DraftRequest;
79
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DraftRequest;
80
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DraftRequest;
81
- static equals(a: DraftRequest | PlainMessage<DraftRequest> | undefined, b: DraftRequest | PlainMessage<DraftRequest> | undefined): boolean;
82
- }
83
- /**
84
- * DraftResponse is the plaintext payload of the response to Draft.
85
- *
86
- * @generated from message inco.shield.v2.DraftResponse
87
- */
88
- export declare class DraftResponse extends Message<DraftResponse> {
89
- /**
90
- * The ABI-encoded UserOp, ready to be submitted on-chain.
91
- *
92
- * @generated from field: inco.shield.v2.UserOp07 user_op = 1;
93
- */
94
- userOp?: UserOp07;
95
- /**
96
- * The cheque, not submitted on-chain, for information purposes. Populated only
97
- * for spend drafts (Transfer / Withdrawal and their delegated variants);
98
- * absent for revocations.
99
- *
100
- * @generated from field: inco.shield.v2.Cheque cheque = 2;
101
- */
102
- cheque?: Cheque;
103
- constructor(data?: PartialMessage<DraftResponse>);
104
- static readonly runtime: typeof proto3;
105
- static readonly typeName = "inco.shield.v2.DraftResponse";
106
- static readonly fields: FieldList;
107
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DraftResponse;
108
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DraftResponse;
109
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DraftResponse;
110
- static equals(a: DraftResponse | PlainMessage<DraftResponse> | undefined, b: DraftResponse | PlainMessage<DraftResponse> | undefined): boolean;
111
- }
112
- /**
113
- * UserOp07 is an ERC-4337 EntryPoint v0.7 UserOperation. It mirrors viem's
114
- * `UserOperation<'0.7'>` exactly: the eight always-present fields plus the
115
- * optional factory, paymaster.
116
- *
117
- * TODO: add EIP-7702 authorization fields if needed
118
- *
119
- * @generated from message inco.shield.v2.UserOp07
120
- */
121
- export declare class UserOp07 extends Message<UserOp07> {
122
- /**
123
- * The account making the operation.
124
- *
125
- * @generated from field: inco.shield.v2.Address sender = 1;
126
- */
127
- sender?: Address;
128
- /**
129
- * Anti-replay parameter.
130
- *
131
- * @generated from field: inco.shield.v2.Uint256 nonce = 2;
132
- */
133
- nonce?: Uint256;
134
- /**
135
- * The data to pass to the `sender` during the main execution call.
136
- *
137
- * @generated from field: bytes call_data = 3;
138
- */
139
- callData: Uint8Array<ArrayBuffer>;
140
- /**
141
- * The amount of gas to allocate the main execution call.
142
- *
143
- * @generated from field: inco.shield.v2.Uint256 call_gas_limit = 4;
144
- */
145
- callGasLimit?: Uint256;
146
- /**
147
- * The amount of gas to allocate for the verification step.
148
- *
149
- * @generated from field: inco.shield.v2.Uint256 verification_gas_limit = 5;
150
- */
151
- verificationGasLimit?: Uint256;
152
- /**
153
- * Extra gas to pay the Bundler.
154
- *
155
- * @generated from field: inco.shield.v2.Uint256 pre_verification_gas = 6;
156
- */
157
- preVerificationGas?: Uint256;
158
- /**
159
- * Maximum fee per gas.
160
- *
161
- * @generated from field: inco.shield.v2.Uint256 max_fee_per_gas = 7;
162
- */
163
- maxFeePerGas?: Uint256;
164
- /**
165
- * Maximum priority fee per gas.
166
- *
167
- * @generated from field: inco.shield.v2.Uint256 max_priority_fee_per_gas = 8;
168
- */
169
- maxPriorityFeePerGas?: Uint256;
170
- /**
171
- * Data passed into the account to verify authorization.
172
- *
173
- * @generated from field: bytes signature = 9;
174
- */
175
- signature: Uint8Array<ArrayBuffer>;
176
- /**
177
- * Account factory. Only for new accounts. Optional.
178
- *
179
- * @generated from field: optional inco.shield.v2.Address factory = 10;
180
- */
181
- factory?: Address;
182
- /**
183
- * Data for account factory. Optional.
184
- *
185
- * @generated from field: optional bytes factory_data = 11;
186
- */
187
- factoryData?: Uint8Array;
188
- /**
189
- * Address of paymaster contract. Optional.
190
- *
191
- * @generated from field: optional inco.shield.v2.Address paymaster = 12;
192
- */
193
- paymaster?: Address;
194
- /**
195
- * Data for paymaster. Optional.
196
- *
197
- * @generated from field: optional bytes paymaster_data = 13;
198
- */
199
- paymasterData?: Uint8Array;
200
- /**
201
- * The amount of gas to allocate for the paymaster validation code. Optional.
202
- *
203
- * @generated from field: optional inco.shield.v2.Uint256 paymaster_verification_gas_limit = 14;
204
- */
205
- paymasterVerificationGasLimit?: Uint256;
206
- /**
207
- * The amount of gas to allocate for the paymaster post-operation code. Optional.
208
- *
209
- * EIP-7702 authorization data is skipped for now, as we don't use it in our
210
- * system.
211
- *
212
- * @generated from field: optional inco.shield.v2.Uint256 paymaster_post_op_gas_limit = 15;
213
- */
214
- paymasterPostOpGasLimit?: Uint256;
215
- constructor(data?: PartialMessage<UserOp07>);
216
- static readonly runtime: typeof proto3;
217
- static readonly typeName = "inco.shield.v2.UserOp07";
218
- static readonly fields: FieldList;
219
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserOp07;
220
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserOp07;
221
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOp07;
222
- static equals(a: UserOp07 | PlainMessage<UserOp07> | undefined, b: UserOp07 | PlainMessage<UserOp07> | undefined): boolean;
223
- }
224
- /**
225
- * Cheque is the output of the drafting process. It is not submitted on-chain,
226
- * and is only returned to the user after drafting for information purposes.
227
- *
228
- * @generated from message inco.shield.v2.Cheque
229
- */
230
- export declare class Cheque extends Message<Cheque> {
231
- /**
232
- * @generated from field: uint64 cheque_number = 1;
233
- */
234
- chequeNumber: bigint;
235
- /**
236
- * @generated from field: inco.shield.v2.Handle drafting_handle = 2;
237
- */
238
- draftingHandle?: Handle;
239
- /**
240
- * @generated from field: uint64 drafting_timestamp = 3;
241
- */
242
- draftingTimestamp: bigint;
243
- /**
244
- * @generated from field: inco.shield.v2.Bytes32 nullifier = 4;
245
- */
246
- nullifier?: Bytes32;
247
- /**
248
- * The (sender, receiver, amount, assetId) transfer tuple.
249
- *
250
- * @generated from field: inco.shield.v2.Address sender = 5;
251
- */
252
- sender?: Address;
253
- /**
254
- * @generated from field: inco.shield.v2.Address receiver = 6;
255
- */
256
- receiver?: Address;
257
- /**
258
- * @generated from field: inco.shield.v2.AssetId asset_id = 7;
259
- */
260
- assetId?: AssetId;
261
- /**
262
- * @generated from field: inco.shield.v2.Uint256 amount = 8;
263
- */
264
- amount?: Uint256;
265
- /**
266
- * Optional: set for delegated drafts, absent for plain drafts.
267
- *
268
- * @generated from field: inco.shield.v2.Bytes32 permission_id = 9;
269
- */
270
- permissionId?: Bytes32;
271
- constructor(data?: PartialMessage<Cheque>);
272
- static readonly runtime: typeof proto3;
273
- static readonly typeName = "inco.shield.v2.Cheque";
274
- static readonly fields: FieldList;
275
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Cheque;
276
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Cheque;
277
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Cheque;
278
- static equals(a: Cheque | PlainMessage<Cheque> | undefined, b: Cheque | PlainMessage<Cheque> | undefined): boolean;
279
- }
55
+ export declare const IntentKindSchema: GenEnum<IntentKind>;