@aztec/aztec.js 0.0.1-commit.e6bd8901 → 0.0.1-commit.ee80a48
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/api/keys.d.ts +1 -1
- package/dest/api/keys.js +1 -1
- package/dest/api/wallet.d.ts +3 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +2 -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 +61 -466
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -11
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.js +10 -409
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -473
- package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/fee-juice.js +0 -401
- 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 +12 -0
- 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 +12 -8
- package/dest/wallet/capabilities.d.ts +444 -0
- package/dest/wallet/capabilities.d.ts.map +1 -0
- package/dest/wallet/capabilities.js +3 -0
- package/dest/wallet/index.d.ts +2 -1
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/index.js +1 -0
- package/dest/wallet/wallet.d.ts +1307 -14
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +120 -1
- package/package.json +9 -9
- package/src/api/keys.ts +2 -2
- package/src/api/wallet.ts +38 -0
- package/src/contract/protocol_contracts/auth-registry.ts +37 -231
- package/src/contract/protocol_contracts/contract-class-registry.ts +3 -195
- package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -225
- package/src/contract/protocol_contracts/fee-juice.ts +0 -193
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +3 -0
- package/src/contract/protocol_contracts/public-checks.ts +3 -2
- package/src/wallet/capabilities.ts +491 -0
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +117 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAA6B,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAGL,KAAK,gBAAgB,EAErB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,KAAK,2BAA2B,EAAqC,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAoB,KAAK,YAAY,EAA6B,MAAM,uBAAuB,CAAC;AACvG,OAAO,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,eAAe,EAEf,kBAAkB,EAClB,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/wallet.ts"],"names":[],"m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;;;;;;;;;;;;;;;;IAOlC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AA4EH,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
|
@@ -112,6 +112,124 @@ export const ContractClassMetadataSchema = z.object({
|
|
|
112
112
|
isArtifactRegistered: z.boolean(),
|
|
113
113
|
isContractClassPubliclyRegistered: z.boolean()
|
|
114
114
|
});
|
|
115
|
+
export const ContractFunctionPatternSchema = z.object({
|
|
116
|
+
contract: z.union([
|
|
117
|
+
schemas.AztecAddress,
|
|
118
|
+
z.literal('*')
|
|
119
|
+
]),
|
|
120
|
+
function: z.union([
|
|
121
|
+
z.string(),
|
|
122
|
+
z.literal('*')
|
|
123
|
+
])
|
|
124
|
+
});
|
|
125
|
+
export const AccountsCapabilitySchema = z.object({
|
|
126
|
+
type: z.literal('accounts'),
|
|
127
|
+
canGet: optional(z.boolean()),
|
|
128
|
+
canCreateAuthWit: optional(z.boolean())
|
|
129
|
+
});
|
|
130
|
+
export const GrantedAccountsCapabilitySchema = AccountsCapabilitySchema.extend({
|
|
131
|
+
accounts: z.array(z.object({
|
|
132
|
+
alias: z.string(),
|
|
133
|
+
item: schemas.AztecAddress
|
|
134
|
+
}))
|
|
135
|
+
});
|
|
136
|
+
export const ContractsCapabilitySchema = z.object({
|
|
137
|
+
type: z.literal('contracts'),
|
|
138
|
+
contracts: z.union([
|
|
139
|
+
z.literal('*'),
|
|
140
|
+
z.array(schemas.AztecAddress)
|
|
141
|
+
]),
|
|
142
|
+
canRegister: optional(z.boolean()),
|
|
143
|
+
canGetMetadata: optional(z.boolean())
|
|
144
|
+
});
|
|
145
|
+
export const GrantedContractsCapabilitySchema = ContractsCapabilitySchema;
|
|
146
|
+
export const ContractClassesCapabilitySchema = z.object({
|
|
147
|
+
type: z.literal('contractClasses'),
|
|
148
|
+
classes: z.union([
|
|
149
|
+
z.literal('*'),
|
|
150
|
+
z.array(schemas.Fr)
|
|
151
|
+
]),
|
|
152
|
+
canGetMetadata: z.boolean()
|
|
153
|
+
});
|
|
154
|
+
export const GrantedContractClassesCapabilitySchema = ContractClassesCapabilitySchema;
|
|
155
|
+
export const SimulationCapabilitySchema = z.object({
|
|
156
|
+
type: z.literal('simulation'),
|
|
157
|
+
transactions: optional(z.object({
|
|
158
|
+
scope: z.union([
|
|
159
|
+
z.literal('*'),
|
|
160
|
+
z.array(ContractFunctionPatternSchema)
|
|
161
|
+
])
|
|
162
|
+
})),
|
|
163
|
+
utilities: optional(z.object({
|
|
164
|
+
scope: z.union([
|
|
165
|
+
z.literal('*'),
|
|
166
|
+
z.array(ContractFunctionPatternSchema)
|
|
167
|
+
])
|
|
168
|
+
}))
|
|
169
|
+
});
|
|
170
|
+
export const GrantedSimulationCapabilitySchema = SimulationCapabilitySchema;
|
|
171
|
+
export const TransactionCapabilitySchema = z.object({
|
|
172
|
+
type: z.literal('transaction'),
|
|
173
|
+
scope: z.union([
|
|
174
|
+
z.literal('*'),
|
|
175
|
+
z.array(ContractFunctionPatternSchema)
|
|
176
|
+
])
|
|
177
|
+
});
|
|
178
|
+
export const GrantedTransactionCapabilitySchema = TransactionCapabilitySchema;
|
|
179
|
+
export const DataCapabilitySchema = z.object({
|
|
180
|
+
type: z.literal('data'),
|
|
181
|
+
addressBook: optional(z.boolean()),
|
|
182
|
+
privateEvents: optional(z.object({
|
|
183
|
+
contracts: z.union([
|
|
184
|
+
z.literal('*'),
|
|
185
|
+
z.array(schemas.AztecAddress)
|
|
186
|
+
])
|
|
187
|
+
}))
|
|
188
|
+
});
|
|
189
|
+
export const GrantedDataCapabilitySchema = DataCapabilitySchema;
|
|
190
|
+
export const CapabilitySchema = z.discriminatedUnion('type', [
|
|
191
|
+
AccountsCapabilitySchema,
|
|
192
|
+
ContractsCapabilitySchema,
|
|
193
|
+
ContractClassesCapabilitySchema,
|
|
194
|
+
SimulationCapabilitySchema,
|
|
195
|
+
TransactionCapabilitySchema,
|
|
196
|
+
DataCapabilitySchema
|
|
197
|
+
]);
|
|
198
|
+
export const GrantedCapabilitySchema = z.discriminatedUnion('type', [
|
|
199
|
+
GrantedAccountsCapabilitySchema,
|
|
200
|
+
GrantedContractsCapabilitySchema,
|
|
201
|
+
GrantedContractClassesCapabilitySchema,
|
|
202
|
+
GrantedSimulationCapabilitySchema,
|
|
203
|
+
GrantedTransactionCapabilitySchema,
|
|
204
|
+
GrantedDataCapabilitySchema
|
|
205
|
+
]);
|
|
206
|
+
export const AppCapabilitiesSchema = z.object({
|
|
207
|
+
version: z.literal('1.0'),
|
|
208
|
+
metadata: z.object({
|
|
209
|
+
name: z.string(),
|
|
210
|
+
version: z.string(),
|
|
211
|
+
description: optional(z.string()),
|
|
212
|
+
url: optional(z.string()),
|
|
213
|
+
icon: optional(z.string())
|
|
214
|
+
}),
|
|
215
|
+
capabilities: z.array(CapabilitySchema),
|
|
216
|
+
behavior: optional(z.object({
|
|
217
|
+
mode: optional(z.enum([
|
|
218
|
+
'strict',
|
|
219
|
+
'permissive'
|
|
220
|
+
])),
|
|
221
|
+
expiration: optional(z.number())
|
|
222
|
+
}))
|
|
223
|
+
});
|
|
224
|
+
export const WalletCapabilitiesSchema = z.object({
|
|
225
|
+
version: z.literal('1.0'),
|
|
226
|
+
granted: z.array(GrantedCapabilitySchema),
|
|
227
|
+
wallet: z.object({
|
|
228
|
+
name: z.string(),
|
|
229
|
+
version: z.string()
|
|
230
|
+
}),
|
|
231
|
+
expiresAt: optional(z.number())
|
|
232
|
+
});
|
|
115
233
|
/**
|
|
116
234
|
* Record of all wallet method schemas (excluding batch).
|
|
117
235
|
* This is the single source of truth for method schemas - batch schemas are derived from this.
|
|
@@ -140,7 +258,8 @@ export const ContractClassMetadataSchema = z.object({
|
|
|
140
258
|
TxHash.schema,
|
|
141
259
|
TxReceipt.schema
|
|
142
260
|
])),
|
|
143
|
-
createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema)
|
|
261
|
+
createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema),
|
|
262
|
+
requestCapabilities: z.function().args(AppCapabilitiesSchema).returns(WalletCapabilitiesSchema)
|
|
144
263
|
};
|
|
145
264
|
/**
|
|
146
265
|
* Creates batch schemas from the individual wallet methods.
|
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.ee80a48",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./abi": "./dest/api/abi.js",
|
|
@@ -85,20 +85,20 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@aztec/constants": "0.0.1-commit.
|
|
89
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
90
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
91
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
92
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
93
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
94
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
88
|
+
"@aztec/constants": "0.0.1-commit.ee80a48",
|
|
89
|
+
"@aztec/entrypoints": "0.0.1-commit.ee80a48",
|
|
90
|
+
"@aztec/ethereum": "0.0.1-commit.ee80a48",
|
|
91
|
+
"@aztec/foundation": "0.0.1-commit.ee80a48",
|
|
92
|
+
"@aztec/l1-artifacts": "0.0.1-commit.ee80a48",
|
|
93
|
+
"@aztec/protocol-contracts": "0.0.1-commit.ee80a48",
|
|
94
|
+
"@aztec/stdlib": "0.0.1-commit.ee80a48",
|
|
95
95
|
"axios": "^1.12.0",
|
|
96
96
|
"tslib": "^2.4.0",
|
|
97
97
|
"viem": "npm:@aztec/viem@2.38.2",
|
|
98
98
|
"zod": "^3.23.8"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@aztec/builder": "0.0.1-commit.
|
|
101
|
+
"@aztec/builder": "0.0.1-commit.ee80a48",
|
|
102
102
|
"@jest/globals": "^30.0.0",
|
|
103
103
|
"@types/jest": "^30.0.0",
|
|
104
104
|
"@types/node": "^22.15.17",
|
package/src/api/keys.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
computeAppNullifierHidingKey,
|
|
4
4
|
deriveKeys,
|
|
5
5
|
deriveMasterIncomingViewingSecretKey,
|
|
6
|
-
|
|
6
|
+
deriveMasterNullifierHidingKey,
|
|
7
7
|
} from '@aztec/stdlib/keys';
|
|
8
8
|
export { generatePublicKey } from '../utils/pub_key.js';
|
package/src/api/wallet.ts
CHANGED
|
@@ -13,6 +13,8 @@ export {
|
|
|
13
13
|
type PrivateEventFilter,
|
|
14
14
|
type ContractMetadata,
|
|
15
15
|
type ContractClassMetadata,
|
|
16
|
+
AppCapabilitiesSchema,
|
|
17
|
+
WalletCapabilitiesSchema,
|
|
16
18
|
FunctionCallSchema,
|
|
17
19
|
ExecutionPayloadSchema,
|
|
18
20
|
GasSettingsOptionSchema,
|
|
@@ -29,8 +31,44 @@ export {
|
|
|
29
31
|
ContractClassMetadataSchema,
|
|
30
32
|
ContractMetadataSchema,
|
|
31
33
|
WalletSchema,
|
|
34
|
+
ContractFunctionPatternSchema,
|
|
35
|
+
AccountsCapabilitySchema,
|
|
36
|
+
GrantedAccountsCapabilitySchema,
|
|
37
|
+
ContractsCapabilitySchema,
|
|
38
|
+
GrantedContractsCapabilitySchema,
|
|
39
|
+
ContractClassesCapabilitySchema,
|
|
40
|
+
GrantedContractClassesCapabilitySchema,
|
|
41
|
+
SimulationCapabilitySchema,
|
|
42
|
+
GrantedSimulationCapabilitySchema,
|
|
43
|
+
TransactionCapabilitySchema,
|
|
44
|
+
GrantedTransactionCapabilitySchema,
|
|
45
|
+
DataCapabilitySchema,
|
|
46
|
+
GrantedDataCapabilitySchema,
|
|
47
|
+
CapabilitySchema,
|
|
48
|
+
GrantedCapabilitySchema,
|
|
32
49
|
} from '../wallet/wallet.js';
|
|
33
50
|
|
|
51
|
+
export {
|
|
52
|
+
type AppCapabilities,
|
|
53
|
+
type WalletCapabilities,
|
|
54
|
+
CAPABILITY_VERSION,
|
|
55
|
+
type Capability,
|
|
56
|
+
type GrantedCapability,
|
|
57
|
+
type ContractFunctionPattern,
|
|
58
|
+
type AccountsCapability,
|
|
59
|
+
type GrantedAccountsCapability,
|
|
60
|
+
type ContractsCapability,
|
|
61
|
+
type GrantedContractsCapability,
|
|
62
|
+
type ContractClassesCapability,
|
|
63
|
+
type GrantedContractClassesCapability,
|
|
64
|
+
type SimulationCapability,
|
|
65
|
+
type GrantedSimulationCapability,
|
|
66
|
+
type TransactionCapability,
|
|
67
|
+
type GrantedTransactionCapability,
|
|
68
|
+
type DataCapability,
|
|
69
|
+
type GrantedDataCapability,
|
|
70
|
+
} from '../wallet/capabilities.js';
|
|
71
|
+
|
|
34
72
|
export { AccountManager } from '../wallet/account_manager.js';
|
|
35
73
|
|
|
36
74
|
export { type DeployAccountOptions, DeployAccountMethod } from '../wallet/deploy_account_method.js';
|
|
@@ -21,32 +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
|
-
'
|
|
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
|
+
},
|
|
47
48
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
48
49
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
49
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
|
+
},
|
|
50
56
|
},
|
|
51
57
|
},
|
|
52
58
|
bytecode: Buffer.from([]),
|
|
@@ -54,14 +60,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
54
60
|
},
|
|
55
61
|
{
|
|
56
62
|
...{
|
|
57
|
-
functionType: FunctionType.
|
|
58
|
-
name: '
|
|
63
|
+
functionType: FunctionType.PRIVATE,
|
|
64
|
+
name: 'set_authorized_private',
|
|
59
65
|
isOnlySelf: false,
|
|
60
66
|
isStatic: false,
|
|
61
67
|
isInitializer: false,
|
|
62
68
|
parameters: [
|
|
63
69
|
{
|
|
64
|
-
name: '
|
|
70
|
+
name: 'approver',
|
|
65
71
|
type: {
|
|
66
72
|
kind: 'struct',
|
|
67
73
|
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
@@ -70,18 +76,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
70
76
|
visibility: 'private',
|
|
71
77
|
},
|
|
72
78
|
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
79
|
+
{ name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
|
|
73
80
|
],
|
|
74
|
-
returnTypes: [
|
|
81
|
+
returnTypes: [],
|
|
75
82
|
errorTypes: {
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'13455385521185560676': {
|
|
79
|
-
error_kind: 'string',
|
|
80
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
81
|
-
},
|
|
83
|
+
'7555607922535724711': { error_kind: 'string', string: 'Preimage mismatch' },
|
|
84
|
+
'9894212961085021188': { error_kind: 'string', string: 'Message not authorized by account' },
|
|
82
85
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
83
86
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
84
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
85
87
|
},
|
|
86
88
|
},
|
|
87
89
|
bytecode: Buffer.from([]),
|
|
@@ -90,214 +92,33 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
90
92
|
{
|
|
91
93
|
...{
|
|
92
94
|
functionType: FunctionType.UTILITY,
|
|
93
|
-
name: '
|
|
95
|
+
name: 'utility_is_consumable',
|
|
94
96
|
isOnlySelf: false,
|
|
95
97
|
isStatic: false,
|
|
96
98
|
isInitializer: false,
|
|
97
99
|
parameters: [
|
|
98
100
|
{
|
|
99
|
-
name: '
|
|
100
|
-
type: {
|
|
101
|
-
kind: 'struct',
|
|
102
|
-
fields: [
|
|
103
|
-
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
104
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
105
|
-
],
|
|
106
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
107
|
-
},
|
|
108
|
-
visibility: 'private',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'message_context',
|
|
101
|
+
name: 'on_behalf_of',
|
|
112
102
|
type: {
|
|
113
103
|
kind: 'struct',
|
|
114
|
-
fields: [
|
|
115
|
-
|
|
116
|
-
{
|
|
117
|
-
name: 'unique_note_hashes_in_tx',
|
|
118
|
-
type: {
|
|
119
|
-
kind: 'struct',
|
|
120
|
-
fields: [
|
|
121
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
122
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
123
|
-
],
|
|
124
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
128
|
-
{
|
|
129
|
-
name: 'recipient',
|
|
130
|
-
type: {
|
|
131
|
-
kind: 'struct',
|
|
132
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
133
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
104
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
105
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
138
106
|
},
|
|
139
107
|
visibility: 'private',
|
|
140
108
|
},
|
|
109
|
+
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
141
110
|
],
|
|
142
|
-
returnTypes: [],
|
|
143
|
-
errorTypes: {
|
|
144
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
145
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
146
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
147
|
-
'2967937905572420042': {
|
|
148
|
-
error_kind: 'fmtstring',
|
|
149
|
-
length: 61,
|
|
150
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
151
|
-
},
|
|
152
|
-
'3330370348214585450': {
|
|
153
|
-
error_kind: 'fmtstring',
|
|
154
|
-
length: 48,
|
|
155
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
156
|
-
},
|
|
157
|
-
'3670003311596808700': {
|
|
158
|
-
error_kind: 'fmtstring',
|
|
159
|
-
length: 77,
|
|
160
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
161
|
-
},
|
|
162
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
163
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
164
|
-
'9791669845391776238': {
|
|
165
|
-
error_kind: 'string',
|
|
166
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
167
|
-
},
|
|
168
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
169
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
170
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
171
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
172
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
173
|
-
'13557316507370296400': {
|
|
174
|
-
error_kind: 'fmtstring',
|
|
175
|
-
length: 130,
|
|
176
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
177
|
-
},
|
|
178
|
-
'14938672389828944159': {
|
|
179
|
-
error_kind: 'fmtstring',
|
|
180
|
-
length: 146,
|
|
181
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
182
|
-
},
|
|
183
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
184
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
185
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
186
|
-
'17531474008201752295': {
|
|
187
|
-
error_kind: 'fmtstring',
|
|
188
|
-
length: 133,
|
|
189
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
bytecode: Buffer.from([]),
|
|
194
|
-
debugSymbols: '',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
...{
|
|
198
|
-
functionType: FunctionType.PUBLIC,
|
|
199
|
-
name: 'public_dispatch',
|
|
200
|
-
isOnlySelf: false,
|
|
201
|
-
isStatic: false,
|
|
202
|
-
isInitializer: false,
|
|
203
|
-
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
204
|
-
returnTypes: [],
|
|
111
|
+
returnTypes: [{ kind: 'boolean' }],
|
|
205
112
|
errorTypes: {
|
|
206
113
|
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
207
114
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
208
|
-
'5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
|
|
209
|
-
'11691217184967371519': {
|
|
210
|
-
error_kind: 'string',
|
|
211
|
-
string: 'Function is_reject_all can only be called statically',
|
|
212
|
-
},
|
|
213
|
-
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
214
115
|
'13455385521185560676': {
|
|
215
116
|
error_kind: 'string',
|
|
216
117
|
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
217
118
|
},
|
|
218
|
-
'13929691561421487185': {
|
|
219
|
-
error_kind: 'string',
|
|
220
|
-
string: 'Function _set_authorized can only be called by the same contract',
|
|
221
|
-
},
|
|
222
119
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
223
120
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
224
121
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
225
|
-
'17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
|
|
226
|
-
'17312933876399746100': {
|
|
227
|
-
error_kind: 'string',
|
|
228
|
-
string: 'Function is_consumable can only be called statically',
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
bytecode: Buffer.from([]),
|
|
233
|
-
debugSymbols: '',
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
...{
|
|
237
|
-
functionType: FunctionType.UTILITY,
|
|
238
|
-
name: 'sync_state',
|
|
239
|
-
isOnlySelf: false,
|
|
240
|
-
isStatic: false,
|
|
241
|
-
isInitializer: false,
|
|
242
|
-
parameters: [],
|
|
243
|
-
returnTypes: [],
|
|
244
|
-
errorTypes: {
|
|
245
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
246
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
247
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
248
|
-
'2967937905572420042': {
|
|
249
|
-
error_kind: 'fmtstring',
|
|
250
|
-
length: 61,
|
|
251
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
252
|
-
},
|
|
253
|
-
'3330370348214585450': {
|
|
254
|
-
error_kind: 'fmtstring',
|
|
255
|
-
length: 48,
|
|
256
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
257
|
-
},
|
|
258
|
-
'3670003311596808700': {
|
|
259
|
-
error_kind: 'fmtstring',
|
|
260
|
-
length: 77,
|
|
261
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
262
|
-
},
|
|
263
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
264
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
265
|
-
'9791669845391776238': {
|
|
266
|
-
error_kind: 'string',
|
|
267
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
268
|
-
},
|
|
269
|
-
'9885968605480832328': {
|
|
270
|
-
error_kind: 'string',
|
|
271
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
272
|
-
},
|
|
273
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
274
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
275
|
-
'11021520179822076911': {
|
|
276
|
-
error_kind: 'string',
|
|
277
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
278
|
-
},
|
|
279
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
280
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
281
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
282
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
283
|
-
'13557316507370296400': {
|
|
284
|
-
error_kind: 'fmtstring',
|
|
285
|
-
length: 130,
|
|
286
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
287
|
-
},
|
|
288
|
-
'14938672389828944159': {
|
|
289
|
-
error_kind: 'fmtstring',
|
|
290
|
-
length: 146,
|
|
291
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
292
|
-
},
|
|
293
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
294
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
295
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
296
|
-
'17531474008201752295': {
|
|
297
|
-
error_kind: 'fmtstring',
|
|
298
|
-
length: 133,
|
|
299
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
300
|
-
},
|
|
301
122
|
},
|
|
302
123
|
},
|
|
303
124
|
bytecode: Buffer.from([]),
|
|
@@ -505,18 +326,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
505
326
|
/** is_reject_all(on_behalf_of: struct) */
|
|
506
327
|
is_reject_all: ((on_behalf_of: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
507
328
|
|
|
508
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
509
|
-
process_message: ((
|
|
510
|
-
message_ciphertext: FieldLike[],
|
|
511
|
-
message_context: {
|
|
512
|
-
tx_hash: FieldLike;
|
|
513
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
514
|
-
first_nullifier_in_tx: FieldLike;
|
|
515
|
-
recipient: AztecAddressLike;
|
|
516
|
-
},
|
|
517
|
-
) => ContractFunctionInteraction) &
|
|
518
|
-
Pick<ContractMethod, 'selector'>;
|
|
519
|
-
|
|
520
329
|
/** public_dispatch(selector: field) */
|
|
521
330
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
522
331
|
|
|
@@ -535,9 +344,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
535
344
|
/** set_reject_all(reject: boolean) */
|
|
536
345
|
set_reject_all: ((reject: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
537
346
|
|
|
538
|
-
/** sync_state() */
|
|
539
|
-
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
540
|
-
|
|
541
347
|
/** utility_is_consumable(on_behalf_of: struct, message_hash: field) */
|
|
542
348
|
utility_is_consumable: ((on_behalf_of: AztecAddressLike, message_hash: FieldLike) => ContractFunctionInteraction) &
|
|
543
349
|
Pick<ContractMethod, 'selector'>;
|