@aztec/aztec.js 0.0.1-commit.d3ec352c → 0.0.1-commit.f295ac2
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/account/account.d.ts +4 -4
- package/dest/account/account.d.ts.map +1 -1
- package/dest/account/account.js +1 -1
- package/dest/account/account_contract.d.ts +3 -3
- package/dest/account/account_contract.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.d.ts +4 -3
- package/dest/account/account_with_secret_key.d.ts.map +1 -1
- package/dest/account/index.d.ts +2 -2
- package/dest/account/index.d.ts.map +1 -1
- package/dest/account/interface.d.ts +2 -2
- package/dest/account/interface.d.ts.map +1 -1
- package/dest/account/signerless_account.d.ts +2 -2
- package/dest/account/signerless_account.d.ts.map +1 -1
- package/dest/api/block.d.ts +2 -2
- package/dest/api/block.d.ts.map +1 -1
- package/dest/api/block.js +1 -1
- package/dest/api/fields.d.ts +3 -2
- package/dest/api/fields.d.ts.map +1 -1
- package/dest/api/fields.js +2 -1
- package/dest/api/protocol.d.ts +7 -1
- package/dest/api/protocol.d.ts.map +1 -1
- package/dest/api/protocol.js +6 -0
- package/dest/api/wallet.d.ts +2 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +1 -1
- package/dest/authorization/call_authorization_request.d.ts +23 -2
- package/dest/authorization/call_authorization_request.d.ts.map +1 -1
- package/dest/contract/batch_call.d.ts +1 -1
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +3 -1
- package/dest/contract/contract_base.d.ts +4 -1
- package/dest/contract/contract_base.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.d.ts +1 -1
- package/dest/contract/deploy_method.d.ts +2 -2
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +6 -5
- package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/auth-registry.js +928 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-class-registry.js +797 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.js +867 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/fee-juice.js +824 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +576 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/public-checks.js +592 -0
- package/dest/contract/sent_tx.d.ts +2 -3
- package/dest/contract/sent_tx.d.ts.map +1 -1
- package/dest/contract/wait_for_proven.d.ts +2 -2
- package/dest/contract/wait_for_proven.d.ts.map +1 -1
- package/dest/deployment/broadcast_function.js +4 -4
- package/dest/deployment/publish_class.js +3 -3
- package/dest/deployment/publish_instance.d.ts +2 -2
- package/dest/deployment/publish_instance.d.ts.map +1 -1
- package/dest/deployment/publish_instance.js +3 -3
- package/dest/ethereum/portal_manager.d.ts +9 -6
- package/dest/ethereum/portal_manager.d.ts.map +1 -1
- package/dest/ethereum/portal_manager.js +17 -18
- package/dest/fee/fee_juice_payment_method_with_claim.js +1 -1
- package/dest/fee/private_fee_payment_method.js +1 -1
- package/dest/fee/public_fee_payment_method.js +1 -1
- package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
- package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
- package/dest/scripts/generate_protocol_contract_types.js +120 -0
- package/dest/utils/abi_types.d.ts +2 -2
- package/dest/utils/abi_types.d.ts.map +1 -1
- package/dest/utils/authwit.d.ts +2 -2
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +1 -1
- package/dest/utils/cross_chain.d.ts +2 -2
- package/dest/utils/cross_chain.d.ts.map +1 -1
- package/dest/utils/fee_juice.js +1 -1
- package/dest/utils/field_compressed_string.js +1 -1
- package/dest/utils/pub_key.d.ts +2 -2
- package/dest/utils/pub_key.d.ts.map +1 -1
- package/dest/utils/pub_key.js +1 -1
- package/dest/wallet/account_manager.d.ts +6 -3
- package/dest/wallet/account_manager.d.ts.map +1 -1
- package/dest/wallet/account_manager.js +1 -1
- package/dest/wallet/deploy_account_method.d.ts +2 -2
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +1 -1
- package/dest/wallet/wallet.d.ts +241 -954
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +61 -87
- package/package.json +14 -12
- package/src/account/account.ts +1 -1
- package/src/account/account_contract.ts +1 -1
- package/src/account/account_with_secret_key.ts +1 -1
- package/src/account/index.ts +1 -1
- package/src/account/interface.ts +1 -1
- package/src/account/signerless_account.ts +1 -1
- package/src/api/block.ts +1 -1
- package/src/api/fields.ts +2 -1
- package/src/api/protocol.ts +7 -0
- package/src/api/wallet.ts +4 -2
- package/src/authorization/call_authorization_request.ts +1 -1
- package/src/contract/batch_call.ts +4 -2
- package/src/contract/deploy_method.ts +8 -7
- package/src/contract/protocol_contracts/auth-registry.ts +542 -0
- package/src/contract/protocol_contracts/contract-class-registry.ts +442 -0
- package/src/contract/protocol_contracts/contract-instance-registry.ts +501 -0
- package/src/contract/protocol_contracts/fee-juice.ts +462 -0
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +338 -0
- package/src/contract/protocol_contracts/public-checks.ts +324 -0
- package/src/contract/sent_tx.ts +1 -2
- package/src/deployment/broadcast_function.ts +4 -4
- package/src/deployment/publish_class.ts +3 -3
- package/src/deployment/publish_instance.ts +3 -6
- package/src/ethereum/portal_manager.ts +20 -24
- package/src/fee/fee_juice_payment_method_with_claim.ts +1 -1
- package/src/fee/private_fee_payment_method.ts +1 -1
- package/src/fee/public_fee_payment_method.ts +1 -1
- package/src/scripts/generate_protocol_contract_types.ts +150 -0
- package/src/utils/abi_types.ts +1 -1
- package/src/utils/authwit.ts +1 -1
- package/src/utils/cross_chain.ts +1 -1
- package/src/utils/fee_juice.ts +1 -1
- package/src/utils/field_compressed_string.ts +1 -1
- package/src/utils/pub_key.ts +2 -2
- package/src/wallet/account_manager.ts +1 -1
- package/src/wallet/deploy_account_method.ts +1 -1
- package/src/wallet/wallet.ts +161 -81
- package/dest/contract/protocol_contracts.d.ts +0 -9
- package/dest/contract/protocol_contracts.d.ts.map +0 -1
- package/dest/contract/protocol_contracts.js +0 -26
- package/dest/contract/unsafe_contract.d.ts +0 -15
- package/dest/contract/unsafe_contract.d.ts.map +0 -1
- package/dest/contract/unsafe_contract.js +0 -6
- package/src/contract/protocol_contracts.ts +0 -35
- package/src/contract/unsafe_contract.ts +0 -19
|
@@ -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,KAAK,EAAE,EAAE,EAAE,MAAM,
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAEH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAK7C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AAyEH,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
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { BlockNumberPositiveSchema } from '@aztec/foundation/branded-types';
|
|
1
2
|
import { AbiTypeSchema, ContractArtifactSchema, FunctionType } from '@aztec/stdlib/abi';
|
|
2
3
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
3
|
-
import {
|
|
4
|
+
import { ContractInstanceWithAddressSchema } from '@aztec/stdlib/contract';
|
|
4
5
|
import { Gas } from '@aztec/stdlib/gas';
|
|
5
|
-
import { AbiDecodedSchema, optional, schemas } from '@aztec/stdlib/schemas';
|
|
6
|
-
import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult } from '@aztec/stdlib/tx';
|
|
6
|
+
import { AbiDecodedSchema, optional, schemas, zodFor } from '@aztec/stdlib/schemas';
|
|
7
|
+
import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult, inTxSchema } from '@aztec/stdlib/tx';
|
|
7
8
|
import { z } from 'zod';
|
|
8
9
|
export const FunctionCallSchema = z.object({
|
|
9
10
|
name: z.string(),
|
|
@@ -74,77 +75,45 @@ export const MessageHashOrIntentSchema = z.union([
|
|
|
74
75
|
call: FunctionCallSchema
|
|
75
76
|
})
|
|
76
77
|
]);
|
|
77
|
-
export const BatchedMethodSchema = z.union([
|
|
78
|
-
z.object({
|
|
79
|
-
name: z.literal('registerSender'),
|
|
80
|
-
args: z.tuple([
|
|
81
|
-
schemas.AztecAddress,
|
|
82
|
-
optional(z.string())
|
|
83
|
-
])
|
|
84
|
-
}),
|
|
85
|
-
z.object({
|
|
86
|
-
name: z.literal('registerContract'),
|
|
87
|
-
args: z.tuple([
|
|
88
|
-
ContractInstanceWithAddressSchema,
|
|
89
|
-
optional(ContractArtifactSchema),
|
|
90
|
-
optional(schemas.Fr)
|
|
91
|
-
])
|
|
92
|
-
}),
|
|
93
|
-
z.object({
|
|
94
|
-
name: z.literal('sendTx'),
|
|
95
|
-
args: z.tuple([
|
|
96
|
-
ExecutionPayloadSchema,
|
|
97
|
-
SendOptionsSchema
|
|
98
|
-
])
|
|
99
|
-
}),
|
|
100
|
-
z.object({
|
|
101
|
-
name: z.literal('simulateUtility'),
|
|
102
|
-
args: z.tuple([
|
|
103
|
-
FunctionCallSchema,
|
|
104
|
-
optional(z.array(AuthWitness.schema))
|
|
105
|
-
])
|
|
106
|
-
}),
|
|
107
|
-
z.object({
|
|
108
|
-
name: z.literal('simulateTx'),
|
|
109
|
-
args: z.tuple([
|
|
110
|
-
ExecutionPayloadSchema,
|
|
111
|
-
SimulateOptionsSchema
|
|
112
|
-
])
|
|
113
|
-
})
|
|
114
|
-
]);
|
|
115
|
-
export const ContractMetadataSchema = z.object({
|
|
116
|
-
contractInstance: z.union([
|
|
117
|
-
ContractInstanceWithAddressSchema,
|
|
118
|
-
z.undefined()
|
|
119
|
-
]),
|
|
120
|
-
isContractInitialized: z.boolean(),
|
|
121
|
-
isContractPublished: z.boolean()
|
|
122
|
-
});
|
|
123
|
-
export const ContractClassMetadataSchema = z.object({
|
|
124
|
-
contractClass: z.union([
|
|
125
|
-
ContractClassWithIdSchema,
|
|
126
|
-
z.undefined()
|
|
127
|
-
]),
|
|
128
|
-
isContractClassPubliclyRegistered: z.boolean(),
|
|
129
|
-
artifact: z.union([
|
|
130
|
-
ContractArtifactSchema,
|
|
131
|
-
z.undefined()
|
|
132
|
-
])
|
|
133
|
-
});
|
|
134
78
|
export const EventMetadataDefinitionSchema = z.object({
|
|
135
79
|
eventSelector: schemas.EventSelector,
|
|
136
80
|
abiType: AbiTypeSchema,
|
|
137
81
|
fieldNames: z.array(z.string())
|
|
138
82
|
});
|
|
139
|
-
export const
|
|
83
|
+
export const PrivateEventSchema = zodFor()(z.object({
|
|
84
|
+
event: AbiDecodedSchema,
|
|
85
|
+
metadata: inTxSchema()
|
|
86
|
+
}));
|
|
87
|
+
export const PrivateEventFilterSchema = z.object({
|
|
88
|
+
contractAddress: schemas.AztecAddress,
|
|
89
|
+
scopes: z.array(schemas.AztecAddress),
|
|
90
|
+
txHash: optional(TxHash.schema),
|
|
91
|
+
fromBlock: optional(BlockNumberPositiveSchema),
|
|
92
|
+
toBlock: optional(BlockNumberPositiveSchema)
|
|
93
|
+
});
|
|
94
|
+
export const ContractMetadataSchema = z.object({
|
|
95
|
+
instance: optional(ContractInstanceWithAddressSchema),
|
|
96
|
+
isContractInitialized: z.boolean(),
|
|
97
|
+
isContractPublished: z.boolean(),
|
|
98
|
+
isContractUpdated: z.boolean(),
|
|
99
|
+
updatedContractClassId: optional(schemas.Fr)
|
|
100
|
+
});
|
|
101
|
+
export const ContractClassMetadataSchema = z.object({
|
|
102
|
+
isArtifactRegistered: z.boolean(),
|
|
103
|
+
isContractClassPubliclyRegistered: z.boolean()
|
|
104
|
+
});
|
|
105
|
+
/**
|
|
106
|
+
* Record of all wallet method schemas (excluding batch).
|
|
107
|
+
* This is the single source of truth for method schemas - batch schemas are derived from this.
|
|
108
|
+
*/ const WalletMethodSchemas = {
|
|
140
109
|
getChainInfo: z.function().args().returns(z.object({
|
|
141
110
|
chainId: schemas.Fr,
|
|
142
111
|
version: schemas.Fr
|
|
143
112
|
})),
|
|
144
|
-
getContractClassMetadata: z.function().args(schemas.Fr, optional(z.boolean())).returns(ContractClassMetadataSchema),
|
|
145
|
-
getContractMetadata: z.function().args(schemas.AztecAddress).returns(ContractMetadataSchema),
|
|
146
113
|
getTxReceipt: z.function().args(TxHash.schema).returns(TxReceipt.schema),
|
|
147
|
-
|
|
114
|
+
getContractMetadata: z.function().args(schemas.AztecAddress).returns(ContractMetadataSchema),
|
|
115
|
+
getContractClassMetadata: z.function().args(schemas.Fr).returns(ContractClassMetadataSchema),
|
|
116
|
+
getPrivateEvents: z.function().args(EventMetadataDefinitionSchema, PrivateEventFilterSchema).returns(z.array(PrivateEventSchema)),
|
|
148
117
|
registerSender: z.function().args(schemas.AztecAddress, optional(z.string())).returns(schemas.AztecAddress),
|
|
149
118
|
getAddressBook: z.function().args().returns(z.array(z.object({
|
|
150
119
|
alias: z.string(),
|
|
@@ -159,28 +128,33 @@ export const WalletSchema = {
|
|
|
159
128
|
simulateUtility: z.function().args(FunctionCallSchema, optional(z.array(AuthWitness.schema))).returns(UtilitySimulationResult.schema),
|
|
160
129
|
profileTx: z.function().args(ExecutionPayloadSchema, ProfileOptionsSchema).returns(TxProfileResult.schema),
|
|
161
130
|
sendTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(TxHash.schema),
|
|
162
|
-
createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema)
|
|
131
|
+
createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema)
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Creates batch schemas from the individual wallet methods.
|
|
135
|
+
* This allows us to define them once and derive batch schemas automatically,
|
|
136
|
+
* reducing duplication and ensuring consistency.
|
|
137
|
+
*/ function createBatchSchemas(methodSchemas) {
|
|
138
|
+
const names = Object.keys(methodSchemas);
|
|
139
|
+
const namesAndArgs = names.map((name)=>z.object({
|
|
140
|
+
name: z.literal(name),
|
|
141
|
+
args: methodSchemas[name].parameters()
|
|
142
|
+
}));
|
|
143
|
+
const namesAndReturns = names.map((name)=>z.object({
|
|
144
|
+
name: z.literal(name),
|
|
145
|
+
result: methodSchemas[name].returnType()
|
|
146
|
+
}));
|
|
147
|
+
// Type assertion needed because discriminatedUnion expects a tuple type [T, T, ...T[]]
|
|
148
|
+
// but we're building the array dynamically. The runtime behavior is correct.
|
|
149
|
+
return {
|
|
150
|
+
input: z.discriminatedUnion('name', namesAndArgs),
|
|
151
|
+
output: z.discriminatedUnion('name', namesAndReturns)
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
const { input: BatchedMethodSchema, output: BatchedResultSchema } = createBatchSchemas(WalletMethodSchemas);
|
|
155
|
+
export { BatchedMethodSchema, BatchedResultSchema };
|
|
156
|
+
export const WalletSchema = {
|
|
157
|
+
...WalletMethodSchemas,
|
|
163
158
|
// @ts-expect-error - ApiSchemaFor cannot properly type generic methods with readonly arrays
|
|
164
|
-
batch: z.function().args(z.array(BatchedMethodSchema)).returns(z.array(
|
|
165
|
-
z.object({
|
|
166
|
-
name: z.literal('registerSender'),
|
|
167
|
-
result: schemas.AztecAddress
|
|
168
|
-
}),
|
|
169
|
-
z.object({
|
|
170
|
-
name: z.literal('registerContract'),
|
|
171
|
-
result: ContractInstanceWithAddressSchema
|
|
172
|
-
}),
|
|
173
|
-
z.object({
|
|
174
|
-
name: z.literal('sendTx'),
|
|
175
|
-
result: TxHash.schema
|
|
176
|
-
}),
|
|
177
|
-
z.object({
|
|
178
|
-
name: z.literal('simulateUtility'),
|
|
179
|
-
result: UtilitySimulationResult.schema
|
|
180
|
-
}),
|
|
181
|
-
z.object({
|
|
182
|
-
name: z.literal('simulateTx'),
|
|
183
|
-
result: TxSimulationResult.schema
|
|
184
|
-
})
|
|
185
|
-
])))
|
|
159
|
+
batch: z.function().args(z.array(BatchedMethodSchema)).returns(z.array(BatchedResultSchema))
|
|
186
160
|
};
|
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.f295ac2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./abi": "./dest/api/abi.js",
|
|
@@ -36,10 +36,11 @@
|
|
|
36
36
|
"tsconfig": "./tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
|
-
"build": "yarn clean && ../scripts/tsc.sh",
|
|
39
|
+
"build": "yarn clean && yarn generate && ../scripts/tsc.sh",
|
|
40
40
|
"build:dev": "../scripts/tsc.sh --watch",
|
|
41
|
-
"build:ts": "
|
|
42
|
-
"clean": "rm -rf ./dest .tsbuildinfo ./src/account_contract/artifacts",
|
|
41
|
+
"build:ts": "../scripts/tsc.sh",
|
|
42
|
+
"clean": "rm -rf ./dest .tsbuildinfo ./src/account_contract/artifacts ./src/contract/protocol_contracts",
|
|
43
|
+
"generate": "node --no-warnings --loader @swc-node/register/esm src/scripts/generate_protocol_contract_types.ts && run -T prettier -w src/contract/protocol_contracts",
|
|
43
44
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
44
45
|
},
|
|
45
46
|
"inherits": [
|
|
@@ -84,23 +85,24 @@
|
|
|
84
85
|
]
|
|
85
86
|
},
|
|
86
87
|
"dependencies": {
|
|
87
|
-
"@aztec/constants": "0.0.1-commit.
|
|
88
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
89
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
90
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
91
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
92
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
93
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
88
|
+
"@aztec/constants": "0.0.1-commit.f295ac2",
|
|
89
|
+
"@aztec/entrypoints": "0.0.1-commit.f295ac2",
|
|
90
|
+
"@aztec/ethereum": "0.0.1-commit.f295ac2",
|
|
91
|
+
"@aztec/foundation": "0.0.1-commit.f295ac2",
|
|
92
|
+
"@aztec/l1-artifacts": "0.0.1-commit.f295ac2",
|
|
93
|
+
"@aztec/protocol-contracts": "0.0.1-commit.f295ac2",
|
|
94
|
+
"@aztec/stdlib": "0.0.1-commit.f295ac2",
|
|
94
95
|
"axios": "^1.12.0",
|
|
95
96
|
"tslib": "^2.4.0",
|
|
96
97
|
"viem": "npm:@aztec/viem@2.38.2",
|
|
97
98
|
"zod": "^3.23.8"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
101
|
+
"@aztec/builder": "0.0.1-commit.f295ac2",
|
|
100
102
|
"@jest/globals": "^30.0.0",
|
|
101
103
|
"@types/jest": "^30.0.0",
|
|
102
104
|
"@types/node": "^22.15.17",
|
|
103
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
105
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
104
106
|
"buffer": "^6.0.3",
|
|
105
107
|
"crypto-browserify": "^3.12.1",
|
|
106
108
|
"jest": "^30.0.0",
|
package/src/account/account.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultAccountEntrypointOptions } from '@aztec/entrypoints/account';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
4
4
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
5
5
|
import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthWitnessProvider, ChainInfo } from '@aztec/entrypoints/interfaces';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
4
4
|
import type { CompleteAddress } from '@aztec/stdlib/contract';
|
|
5
5
|
import { getContractInstanceFromInstantiationParams } from '@aztec/stdlib/contract';
|
package/src/account/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import type { Fr } from '@aztec/foundation/
|
|
6
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
7
7
|
|
|
8
8
|
export { type AccountContract, getAccountContractAddress } from './account_contract.js';
|
|
9
9
|
export { type AccountInterface } from './interface.js';
|
package/src/account/interface.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthWitnessProvider, EntrypointInterface } from '@aztec/entrypoints/interfaces';
|
|
2
|
-
import type { Fr } from '@aztec/foundation/
|
|
2
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
4
4
|
import type { CompleteAddress } from '@aztec/stdlib/contract';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChainInfo, EntrypointInterface } from '@aztec/entrypoints/interfaces';
|
|
2
2
|
import { DefaultMultiCallEntrypoint } from '@aztec/entrypoints/multicall';
|
|
3
|
-
import type { Fr } from '@aztec/foundation/
|
|
3
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
4
4
|
import { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
5
5
|
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
6
6
|
import type { CompleteAddress } from '@aztec/stdlib/contract';
|
package/src/api/block.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Body,
|
|
1
|
+
export { Body, L2BlockNew } from '@aztec/stdlib/block';
|
|
2
2
|
export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
|
package/src/api/fields.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Fr, Fq } from '@aztec/foundation/curves/bn254';
|
|
2
|
+
export { GrumpkinScalar, Point } from '@aztec/foundation/curves/grumpkin';
|
package/src/api/protocol.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
2
2
|
export { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
|
|
3
|
+
|
|
4
|
+
export { AuthRegistryContract } from '../contract/protocol_contracts/auth-registry.js';
|
|
5
|
+
export { ContractClassRegistryContract } from '../contract/protocol_contracts/contract-class-registry.js';
|
|
6
|
+
export { ContractInstanceRegistryContract } from '../contract/protocol_contracts/contract-instance-registry.js';
|
|
7
|
+
export { FeeJuiceContract } from '../contract/protocol_contracts/fee-juice.js';
|
|
8
|
+
export { MultiCallEntrypointContract } from '../contract/protocol_contracts/multi-call-entrypoint.js';
|
|
9
|
+
export { PublicChecksContract } from '../contract/protocol_contracts/public-checks.js';
|
package/src/api/wallet.ts
CHANGED
|
@@ -9,6 +9,8 @@ export {
|
|
|
9
9
|
type BatchedMethodResultWrapper,
|
|
10
10
|
type BatchResults,
|
|
11
11
|
type Wallet,
|
|
12
|
+
type PrivateEvent,
|
|
13
|
+
type PrivateEventFilter,
|
|
12
14
|
FunctionCallSchema,
|
|
13
15
|
ExecutionPayloadSchema,
|
|
14
16
|
GasSettingsOptionSchema,
|
|
@@ -18,9 +20,9 @@ export {
|
|
|
18
20
|
ProfileOptionsSchema,
|
|
19
21
|
MessageHashOrIntentSchema,
|
|
20
22
|
BatchedMethodSchema,
|
|
21
|
-
ContractMetadataSchema,
|
|
22
|
-
ContractClassMetadataSchema,
|
|
23
23
|
EventMetadataDefinitionSchema,
|
|
24
|
+
PrivateEventSchema,
|
|
25
|
+
PrivateEventFilterSchema,
|
|
24
26
|
WalletSchema,
|
|
25
27
|
} from '../wallet/wallet.js';
|
|
26
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Fr } from '@aztec/foundation/
|
|
1
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import { FieldReader } from '@aztec/foundation/serialize';
|
|
3
3
|
import { AuthorizationSelector, FunctionSelector } from '@aztec/stdlib/abi';
|
|
4
4
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
} from './interaction_options.js';
|
|
16
16
|
|
|
17
17
|
/** A batch of function calls to be sent as a single transaction through a wallet. */
|
|
18
|
+
// docs:start:batch_call_class
|
|
18
19
|
export class BatchCall extends BaseContractInteraction {
|
|
19
20
|
constructor(
|
|
20
21
|
wallet: Wallet,
|
|
@@ -22,6 +23,7 @@ export class BatchCall extends BaseContractInteraction {
|
|
|
22
23
|
) {
|
|
23
24
|
super(wallet);
|
|
24
25
|
}
|
|
26
|
+
// docs:end:batch_call_class
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* Returns an execution request that represents this operation.
|
|
@@ -74,13 +76,13 @@ export class BatchCall extends BaseContractInteraction {
|
|
|
74
76
|
{ indexedExecutionPayloads: [], utility: [], publicIndex: 0, privateIndex: 0 },
|
|
75
77
|
);
|
|
76
78
|
|
|
77
|
-
const batchRequests:
|
|
79
|
+
const batchRequests: BatchedMethod[] = [];
|
|
78
80
|
|
|
79
81
|
// Add utility calls to batch
|
|
80
82
|
for (const [call] of utility) {
|
|
81
83
|
batchRequests.push({
|
|
82
84
|
name: 'simulateUtility' as const,
|
|
83
|
-
args: [call, options?.authWitnesses]
|
|
85
|
+
args: [call, options?.authWitnesses],
|
|
84
86
|
});
|
|
85
87
|
}
|
|
86
88
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fr } from '@aztec/foundation/
|
|
1
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
2
|
import { type ContractArtifact, type FunctionAbi, type FunctionArtifact, getInitializer } from '@aztec/stdlib/abi';
|
|
3
3
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
4
4
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
@@ -184,16 +184,17 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
184
184
|
|
|
185
185
|
// Publish the contract class if it hasn't been published already.
|
|
186
186
|
if (!options?.skipClassPublication) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
`Skipping publication of already-registered contract class ${contractClass.id.toString()} for ${instance.address.toString()}`,
|
|
190
|
-
);
|
|
191
|
-
} else {
|
|
187
|
+
const classMetadata = await this.wallet.getContractClassMetadata(contractClass.id);
|
|
188
|
+
if (!classMetadata.isContractClassPubliclyRegistered) {
|
|
192
189
|
this.log.info(
|
|
193
190
|
`Creating request for publishing contract class ${contractClass.id.toString()} as part of deployment for ${instance.address.toString()}`,
|
|
194
191
|
);
|
|
195
192
|
const registerContractClassInteraction = await publishContractClass(this.wallet, this.artifact);
|
|
196
193
|
calls.push(await registerContractClassInteraction.request());
|
|
194
|
+
} else {
|
|
195
|
+
this.log.debug(
|
|
196
|
+
`Skipping contract class publication for ${contractClass.id.toString()} as it is already registered`,
|
|
197
|
+
);
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
|
|
@@ -202,7 +203,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
|
|
|
202
203
|
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/15596):
|
|
203
204
|
// Read the artifact, and if there are no public functions, warn the caller that publication of the
|
|
204
205
|
// contract instance is not necessary (until such time as they wish to update the instance (i.e. change its class_id)).
|
|
205
|
-
const deploymentInteraction =
|
|
206
|
+
const deploymentInteraction = publishInstance(this.wallet, instance);
|
|
206
207
|
calls.push(await deploymentInteraction.request());
|
|
207
208
|
}
|
|
208
209
|
|