@aztec/aztec.js 0.0.1-commit.96dac018d → 0.0.1-commit.993d52e
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/dest/contract/deploy_method.d.ts +4 -16
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +6 -14
- package/dest/contract/interaction_options.d.ts +1 -8
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -10
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.js +59 -498
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +0 -8
- package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/public-checks.js +0 -8
- package/dest/wallet/capabilities.d.ts +1 -9
- package/dest/wallet/capabilities.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.d.ts +4 -15
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +0 -26
- package/dest/wallet/wallet.d.ts +1 -139
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +3 -9
- package/package.json +10 -10
- package/src/contract/deploy_method.ts +9 -26
- package/src/contract/interaction_options.ts +0 -7
- package/src/contract/protocol_contracts/auth-registry.ts +37 -237
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +0 -2
- package/src/contract/protocol_contracts/public-checks.ts +0 -2
- package/src/wallet/capabilities.ts +0 -9
- package/src/wallet/deploy_account_method.ts +2 -39
- package/src/wallet/wallet.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["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AqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AAkFH,QAAA,MAAe,mBAAmB;;;;;;;;;;;;;;;;;;QAAU,mBAAmB;;;;;;;;;;;;;;;;;;MAA4C,CAAC;AAE5G,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;AAEpD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,MAAM,CAI7C,CAAC"}
|
package/dest/wallet/wallet.js
CHANGED
|
@@ -46,8 +46,7 @@ export const SendOptionsSchema = z.object({
|
|
|
46
46
|
wait: optional(z.union([
|
|
47
47
|
z.literal(NO_WAIT),
|
|
48
48
|
WaitOptsSchema
|
|
49
|
-
]))
|
|
50
|
-
additionalScopes: optional(z.array(schemas.AztecAddress))
|
|
49
|
+
]))
|
|
51
50
|
});
|
|
52
51
|
export const SimulateOptionsSchema = z.object({
|
|
53
52
|
from: schemas.AztecAddress,
|
|
@@ -56,8 +55,7 @@ export const SimulateOptionsSchema = z.object({
|
|
|
56
55
|
fee: optional(WalletSimulationFeeOptionSchema),
|
|
57
56
|
skipTxValidation: optional(z.boolean()),
|
|
58
57
|
skipFeeEnforcement: optional(z.boolean()),
|
|
59
|
-
includeMetadata: optional(z.boolean())
|
|
60
|
-
additionalScopes: optional(z.array(schemas.AztecAddress))
|
|
58
|
+
includeMetadata: optional(z.boolean())
|
|
61
59
|
});
|
|
62
60
|
export const ProfileOptionsSchema = SimulateOptionsSchema.extend({
|
|
63
61
|
profileMode: z.enum([
|
|
@@ -123,11 +121,7 @@ export const ContractFunctionPatternSchema = z.object({
|
|
|
123
121
|
function: z.union([
|
|
124
122
|
z.string(),
|
|
125
123
|
z.literal('*')
|
|
126
|
-
])
|
|
127
|
-
additionalScopes: optional(z.union([
|
|
128
|
-
z.array(schemas.AztecAddress),
|
|
129
|
-
z.literal('*')
|
|
130
|
-
]))
|
|
124
|
+
])
|
|
131
125
|
});
|
|
132
126
|
export const AccountsCapabilitySchema = z.object({
|
|
133
127
|
type: z.literal('accounts'),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec.js",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
|
|
4
|
-
"version": "0.0.1-commit.
|
|
4
|
+
"version": "0.0.1-commit.993d52e",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./abi": "./dest/api/abi.js",
|
|
@@ -94,20 +94,20 @@
|
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@aztec/constants": "0.0.1-commit.
|
|
98
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
99
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
100
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
101
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
102
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
103
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
104
|
-
"axios": "^1.
|
|
97
|
+
"@aztec/constants": "0.0.1-commit.993d52e",
|
|
98
|
+
"@aztec/entrypoints": "0.0.1-commit.993d52e",
|
|
99
|
+
"@aztec/ethereum": "0.0.1-commit.993d52e",
|
|
100
|
+
"@aztec/foundation": "0.0.1-commit.993d52e",
|
|
101
|
+
"@aztec/l1-artifacts": "0.0.1-commit.993d52e",
|
|
102
|
+
"@aztec/protocol-contracts": "0.0.1-commit.993d52e",
|
|
103
|
+
"@aztec/stdlib": "0.0.1-commit.993d52e",
|
|
104
|
+
"axios": "^1.13.5",
|
|
105
105
|
"tslib": "^2.4.0",
|
|
106
106
|
"viem": "npm:@aztec/viem@2.38.2",
|
|
107
107
|
"zod": "^3.23.8"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@aztec/builder": "0.0.1-commit.
|
|
110
|
+
"@aztec/builder": "0.0.1-commit.993d52e",
|
|
111
111
|
"@jest/globals": "^30.0.0",
|
|
112
112
|
"@types/jest": "^30.0.0",
|
|
113
113
|
"@types/node": "^22.15.17",
|
|
@@ -21,7 +21,7 @@ import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
|
|
|
21
21
|
|
|
22
22
|
import { publishContractClass } from '../deployment/publish_class.js';
|
|
23
23
|
import { publishInstance } from '../deployment/publish_instance.js';
|
|
24
|
-
import type {
|
|
24
|
+
import type { SendOptions, Wallet } from '../wallet/wallet.js';
|
|
25
25
|
import { BaseContractInteraction } from './base_contract_interaction.js';
|
|
26
26
|
import type { ContractBase } from './contract_base.js';
|
|
27
27
|
import { ContractFunctionInteraction } from './contract_function_interaction.js';
|
|
@@ -89,7 +89,7 @@ export type DeployOptionsWithoutWait = Omit<RequestDeployOptions, 'deployer'> &
|
|
|
89
89
|
* is mutually exclusive with "deployer"
|
|
90
90
|
*/
|
|
91
91
|
universalDeploy?: boolean;
|
|
92
|
-
} & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee'
|
|
92
|
+
} & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee'>;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Extends the deployment options with the required parameters to send the transaction.
|
|
@@ -224,7 +224,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
224
224
|
* @param options - Deploy options with wait parameter
|
|
225
225
|
* @returns Send options with wait parameter
|
|
226
226
|
*/
|
|
227
|
-
|
|
227
|
+
private convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
|
|
228
228
|
options: DeployOptions<W>,
|
|
229
229
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
230
230
|
): SendOptions<W extends { returnReceipt: true } ? WaitOpts : W> {
|
|
@@ -236,24 +236,6 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
236
236
|
} as any;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
/**
|
|
240
|
-
* Converts deploy simulation options into wallet-level simulate options.
|
|
241
|
-
* @param options - The deploy simulation options to convert.
|
|
242
|
-
*/
|
|
243
|
-
protected convertDeployOptionsToSimulateOptions(options: SimulateDeployOptions): SimulateOptions {
|
|
244
|
-
return toSimulateOptions(options);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Converts deploy profile options into wallet-level profile options.
|
|
249
|
-
* @param options - The deploy profile options to convert.
|
|
250
|
-
*/
|
|
251
|
-
protected convertDeployOptionsToProfileOptions(
|
|
252
|
-
options: DeployOptionsWithoutWait & ProfileInteractionOptions,
|
|
253
|
-
): ProfileOptions {
|
|
254
|
-
return toProfileOptions(options);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
239
|
/**
|
|
258
240
|
* Adds this contract to the wallet and returns the Contract object.
|
|
259
241
|
* @param options - Deployment options.
|
|
@@ -403,10 +385,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
403
385
|
*/
|
|
404
386
|
public async simulate(options: SimulateDeployOptions): Promise<SimulationReturn<true>> {
|
|
405
387
|
const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
|
|
406
|
-
const simulatedTx = await this.wallet.simulateTx(
|
|
407
|
-
executionPayload,
|
|
408
|
-
this.convertDeployOptionsToSimulateOptions(options),
|
|
409
|
-
);
|
|
388
|
+
const simulatedTx = await this.wallet.simulateTx(executionPayload, toSimulateOptions(options));
|
|
410
389
|
|
|
411
390
|
const { gasLimits, teardownGasLimits } = getGasLimits(simulatedTx, options.fee?.estimatedGasPadding);
|
|
412
391
|
this.log.verbose(
|
|
@@ -428,7 +407,11 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
428
407
|
*/
|
|
429
408
|
public async profile(options: DeployOptionsWithoutWait & ProfileInteractionOptions): Promise<TxProfileResult> {
|
|
430
409
|
const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
|
|
431
|
-
return await this.wallet.profileTx(executionPayload,
|
|
410
|
+
return await this.wallet.profileTx(executionPayload, {
|
|
411
|
+
...toProfileOptions(options),
|
|
412
|
+
profileMode: options.profileMode,
|
|
413
|
+
skipProofGeneration: options.skipProofGeneration,
|
|
414
|
+
});
|
|
432
415
|
}
|
|
433
416
|
|
|
434
417
|
/** Return this deployment address. */
|
|
@@ -82,13 +82,6 @@ export type SendInteractionOptionsWithoutWait = RequestInteractionOptions & {
|
|
|
82
82
|
from: AztecAddress;
|
|
83
83
|
/** The fee options for the transaction. */
|
|
84
84
|
fee?: InteractionFeeOptions;
|
|
85
|
-
/**
|
|
86
|
-
* Additional addresses whose private state and keys should be accessible during execution,
|
|
87
|
-
* beyond the sender's. Required when the transaction needs to access private state or keys
|
|
88
|
-
* belonging to an address other than `from`, e.g. withdrawing from an escrow that holds
|
|
89
|
-
* its own private notes.
|
|
90
|
-
*/
|
|
91
|
-
additionalScopes?: AztecAddress[];
|
|
92
85
|
};
|
|
93
86
|
|
|
94
87
|
/**
|
|
@@ -21,33 +21,38 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
21
21
|
functions: [
|
|
22
22
|
{
|
|
23
23
|
...{
|
|
24
|
-
functionType: FunctionType.
|
|
25
|
-
name: '
|
|
24
|
+
functionType: FunctionType.PUBLIC,
|
|
25
|
+
name: 'public_dispatch',
|
|
26
26
|
isOnlySelf: false,
|
|
27
27
|
isStatic: false,
|
|
28
28
|
isInitializer: false,
|
|
29
|
-
parameters: [
|
|
30
|
-
{
|
|
31
|
-
name: 'approver',
|
|
32
|
-
type: {
|
|
33
|
-
kind: 'struct',
|
|
34
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
35
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
36
|
-
},
|
|
37
|
-
visibility: 'private',
|
|
38
|
-
},
|
|
39
|
-
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
40
|
-
{ name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
|
|
41
|
-
],
|
|
29
|
+
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
42
30
|
returnTypes: [],
|
|
43
31
|
errorTypes: {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
32
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
33
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
34
|
+
'5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
|
|
35
|
+
'11691217184967371519': {
|
|
36
|
+
error_kind: 'string',
|
|
37
|
+
string: 'Function is_reject_all can only be called statically',
|
|
38
|
+
},
|
|
39
|
+
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
40
|
+
'13455385521185560676': {
|
|
41
|
+
error_kind: 'string',
|
|
42
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
43
|
+
},
|
|
44
|
+
'13929691561421487185': {
|
|
45
|
+
error_kind: 'string',
|
|
46
|
+
string: 'Function _set_authorized can only be called by the same contract',
|
|
47
|
+
},
|
|
48
48
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
49
49
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
50
50
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
51
|
+
'17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
|
|
52
|
+
'17312933876399746100': {
|
|
53
|
+
error_kind: 'string',
|
|
54
|
+
string: 'Function is_consumable can only be called statically',
|
|
55
|
+
},
|
|
51
56
|
},
|
|
52
57
|
},
|
|
53
58
|
bytecode: Buffer.from([]),
|
|
@@ -55,14 +60,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
55
60
|
},
|
|
56
61
|
{
|
|
57
62
|
...{
|
|
58
|
-
functionType: FunctionType.
|
|
59
|
-
name: '
|
|
63
|
+
functionType: FunctionType.PRIVATE,
|
|
64
|
+
name: 'set_authorized_private',
|
|
60
65
|
isOnlySelf: false,
|
|
61
66
|
isStatic: false,
|
|
62
67
|
isInitializer: false,
|
|
63
68
|
parameters: [
|
|
64
69
|
{
|
|
65
|
-
name: '
|
|
70
|
+
name: 'approver',
|
|
66
71
|
type: {
|
|
67
72
|
kind: 'struct',
|
|
68
73
|
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
@@ -71,18 +76,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
71
76
|
visibility: 'private',
|
|
72
77
|
},
|
|
73
78
|
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
79
|
+
{ name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
|
|
74
80
|
],
|
|
75
|
-
returnTypes: [
|
|
81
|
+
returnTypes: [],
|
|
76
82
|
errorTypes: {
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'13455385521185560676': {
|
|
80
|
-
error_kind: 'string',
|
|
81
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
82
|
-
},
|
|
83
|
+
'7555607922535724711': { error_kind: 'string', string: 'Preimage mismatch' },
|
|
84
|
+
'9894212961085021188': { error_kind: 'string', string: 'Message not authorized by account' },
|
|
83
85
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
84
86
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
85
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
86
87
|
},
|
|
87
88
|
},
|
|
88
89
|
bytecode: Buffer.from([]),
|
|
@@ -91,219 +92,33 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
91
92
|
{
|
|
92
93
|
...{
|
|
93
94
|
functionType: FunctionType.UTILITY,
|
|
94
|
-
name: '
|
|
95
|
+
name: 'utility_is_consumable',
|
|
95
96
|
isOnlySelf: false,
|
|
96
97
|
isStatic: false,
|
|
97
98
|
isInitializer: false,
|
|
98
99
|
parameters: [
|
|
99
100
|
{
|
|
100
|
-
name: '
|
|
101
|
-
type: {
|
|
102
|
-
kind: 'struct',
|
|
103
|
-
fields: [
|
|
104
|
-
{ name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
|
|
105
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
106
|
-
],
|
|
107
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
108
|
-
},
|
|
109
|
-
visibility: 'private',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'message_context',
|
|
101
|
+
name: 'on_behalf_of',
|
|
113
102
|
type: {
|
|
114
103
|
kind: 'struct',
|
|
115
|
-
fields: [
|
|
116
|
-
|
|
117
|
-
{
|
|
118
|
-
name: 'unique_note_hashes_in_tx',
|
|
119
|
-
type: {
|
|
120
|
-
kind: 'struct',
|
|
121
|
-
fields: [
|
|
122
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
123
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
124
|
-
],
|
|
125
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
129
|
-
{
|
|
130
|
-
name: 'recipient',
|
|
131
|
-
type: {
|
|
132
|
-
kind: 'struct',
|
|
133
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
134
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
104
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
105
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
139
106
|
},
|
|
140
107
|
visibility: 'private',
|
|
141
108
|
},
|
|
109
|
+
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
142
110
|
],
|
|
143
|
-
returnTypes: [],
|
|
144
|
-
errorTypes: {
|
|
145
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
146
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
147
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
148
|
-
'2967937905572420042': {
|
|
149
|
-
error_kind: 'fmtstring',
|
|
150
|
-
length: 61,
|
|
151
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
152
|
-
},
|
|
153
|
-
'3330370348214585450': {
|
|
154
|
-
error_kind: 'fmtstring',
|
|
155
|
-
length: 48,
|
|
156
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
157
|
-
},
|
|
158
|
-
'3670003311596808700': {
|
|
159
|
-
error_kind: 'fmtstring',
|
|
160
|
-
length: 77,
|
|
161
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
162
|
-
},
|
|
163
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
164
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
165
|
-
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
166
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
167
|
-
'9791669845391776238': {
|
|
168
|
-
error_kind: 'string',
|
|
169
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
170
|
-
},
|
|
171
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
172
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
173
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
174
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
175
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
176
|
-
'13557316507370296400': {
|
|
177
|
-
error_kind: 'fmtstring',
|
|
178
|
-
length: 130,
|
|
179
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
180
|
-
},
|
|
181
|
-
'14938672389828944159': {
|
|
182
|
-
error_kind: 'fmtstring',
|
|
183
|
-
length: 146,
|
|
184
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
185
|
-
},
|
|
186
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
187
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
188
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
189
|
-
'17531474008201752295': {
|
|
190
|
-
error_kind: 'fmtstring',
|
|
191
|
-
length: 133,
|
|
192
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
bytecode: Buffer.from([]),
|
|
197
|
-
debugSymbols: '',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
...{
|
|
201
|
-
functionType: FunctionType.PUBLIC,
|
|
202
|
-
name: 'public_dispatch',
|
|
203
|
-
isOnlySelf: false,
|
|
204
|
-
isStatic: false,
|
|
205
|
-
isInitializer: false,
|
|
206
|
-
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
207
|
-
returnTypes: [],
|
|
111
|
+
returnTypes: [{ kind: 'boolean' }],
|
|
208
112
|
errorTypes: {
|
|
209
113
|
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
210
114
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
211
|
-
'5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
|
|
212
|
-
'11691217184967371519': {
|
|
213
|
-
error_kind: 'string',
|
|
214
|
-
string: 'Function is_reject_all can only be called statically',
|
|
215
|
-
},
|
|
216
|
-
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
217
115
|
'13455385521185560676': {
|
|
218
116
|
error_kind: 'string',
|
|
219
117
|
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
220
118
|
},
|
|
221
|
-
'13929691561421487185': {
|
|
222
|
-
error_kind: 'string',
|
|
223
|
-
string: 'Function _set_authorized can only be called by the same contract',
|
|
224
|
-
},
|
|
225
119
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
226
120
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
227
121
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
228
|
-
'17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
|
|
229
|
-
'17312933876399746100': {
|
|
230
|
-
error_kind: 'string',
|
|
231
|
-
string: 'Function is_consumable can only be called statically',
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
bytecode: Buffer.from([]),
|
|
236
|
-
debugSymbols: '',
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
...{
|
|
240
|
-
functionType: FunctionType.UTILITY,
|
|
241
|
-
name: 'sync_state',
|
|
242
|
-
isOnlySelf: false,
|
|
243
|
-
isStatic: false,
|
|
244
|
-
isInitializer: false,
|
|
245
|
-
parameters: [],
|
|
246
|
-
returnTypes: [],
|
|
247
|
-
errorTypes: {
|
|
248
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
249
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
250
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
251
|
-
'2967937905572420042': {
|
|
252
|
-
error_kind: 'fmtstring',
|
|
253
|
-
length: 61,
|
|
254
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
255
|
-
},
|
|
256
|
-
'3330370348214585450': {
|
|
257
|
-
error_kind: 'fmtstring',
|
|
258
|
-
length: 48,
|
|
259
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
260
|
-
},
|
|
261
|
-
'3670003311596808700': {
|
|
262
|
-
error_kind: 'fmtstring',
|
|
263
|
-
length: 77,
|
|
264
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
265
|
-
},
|
|
266
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
267
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
268
|
-
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
269
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
270
|
-
'9791669845391776238': {
|
|
271
|
-
error_kind: 'string',
|
|
272
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
273
|
-
},
|
|
274
|
-
'9885968605480832328': {
|
|
275
|
-
error_kind: 'string',
|
|
276
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
277
|
-
},
|
|
278
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
279
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
280
|
-
'11021520179822076911': {
|
|
281
|
-
error_kind: 'string',
|
|
282
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
283
|
-
},
|
|
284
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
285
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
286
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
287
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
288
|
-
'13557316507370296400': {
|
|
289
|
-
error_kind: 'fmtstring',
|
|
290
|
-
length: 130,
|
|
291
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
292
|
-
},
|
|
293
|
-
'14938672389828944159': {
|
|
294
|
-
error_kind: 'fmtstring',
|
|
295
|
-
length: 146,
|
|
296
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
297
|
-
},
|
|
298
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
299
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
300
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
301
|
-
'17531474008201752295': {
|
|
302
|
-
error_kind: 'fmtstring',
|
|
303
|
-
length: 133,
|
|
304
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
305
|
-
},
|
|
306
|
-
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
307
122
|
},
|
|
308
123
|
},
|
|
309
124
|
bytecode: Buffer.from([]),
|
|
@@ -511,18 +326,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
511
326
|
/** is_reject_all(on_behalf_of: struct) */
|
|
512
327
|
is_reject_all: ((on_behalf_of: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
513
328
|
|
|
514
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
515
|
-
process_message: ((
|
|
516
|
-
message_ciphertext: FieldLike[],
|
|
517
|
-
message_context: {
|
|
518
|
-
tx_hash: FieldLike;
|
|
519
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
520
|
-
first_nullifier_in_tx: FieldLike;
|
|
521
|
-
recipient: AztecAddressLike;
|
|
522
|
-
},
|
|
523
|
-
) => ContractFunctionInteraction) &
|
|
524
|
-
Pick<ContractMethod, 'selector'>;
|
|
525
|
-
|
|
526
329
|
/** public_dispatch(selector: field) */
|
|
527
330
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
528
331
|
|
|
@@ -541,9 +344,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
541
344
|
/** set_reject_all(reject: boolean) */
|
|
542
345
|
set_reject_all: ((reject: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
543
346
|
|
|
544
|
-
/** sync_state() */
|
|
545
|
-
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
546
|
-
|
|
547
347
|
/** utility_is_consumable(on_behalf_of: struct, message_hash: field) */
|
|
548
348
|
utility_is_consumable: ((on_behalf_of: AztecAddressLike, message_hash: FieldLike) => ContractFunctionInteraction) &
|
|
549
349
|
Pick<ContractMethod, 'selector'>;
|
|
@@ -161,7 +161,6 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
161
161
|
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
162
162
|
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
163
163
|
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
164
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
165
164
|
'9791669845391776238': {
|
|
166
165
|
error_kind: 'string',
|
|
167
166
|
string: '0 has a square root; you cannot claim it is not square',
|
|
@@ -225,7 +224,6 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
225
224
|
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
226
225
|
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
227
226
|
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
228
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
229
227
|
'9791669845391776238': {
|
|
230
228
|
error_kind: 'string',
|
|
231
229
|
string: '0 has a square root; you cannot claim it is not square',
|
|
@@ -94,7 +94,6 @@ const PublicChecksContractArtifact: ContractArtifact = {
|
|
|
94
94
|
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
95
95
|
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
96
96
|
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
97
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
98
97
|
'9791669845391776238': {
|
|
99
98
|
error_kind: 'string',
|
|
100
99
|
string: '0 has a square root; you cannot claim it is not square',
|
|
@@ -186,7 +185,6 @@ const PublicChecksContractArtifact: ContractArtifact = {
|
|
|
186
185
|
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
187
186
|
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
188
187
|
'5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
|
|
189
|
-
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
190
188
|
'9791669845391776238': {
|
|
191
189
|
error_kind: 'string',
|
|
192
190
|
string: '0 has a square root; you cannot claim it is not square',
|
|
@@ -32,15 +32,6 @@ export interface ContractFunctionPattern {
|
|
|
32
32
|
|
|
33
33
|
/** Function name or '*' for any function */
|
|
34
34
|
function: string;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Additional addresses whose private state and keys are accessible
|
|
38
|
-
* when calling this function, beyond the sender's.
|
|
39
|
-
* - undefined: No additional scopes allowed
|
|
40
|
-
* - AztecAddress[]: Only these specific addresses allowed as additional scopes
|
|
41
|
-
* - '*': All known address allowed as an additional scope
|
|
42
|
-
*/
|
|
43
|
-
additionalScopes?: AztecAddress[] | '*';
|
|
44
35
|
}
|
|
45
36
|
|
|
46
37
|
/**
|