@aztec/bot 1.0.0-nightly.20250708 → 1.0.0-nightly.20250710
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/config.d.ts +2 -2
- package/dest/config.d.ts.map +1 -1
- package/dest/factory.js +4 -4
- package/package.json +11 -11
- package/src/config.ts +2 -2
- package/src/factory.ts +4 -4
package/dest/config.d.ts
CHANGED
|
@@ -26,11 +26,11 @@ export type BotConfig = {
|
|
|
26
26
|
l1ToL2MessageTimeoutSeconds: number;
|
|
27
27
|
/** Signing private key for the sender account. */
|
|
28
28
|
senderPrivateKey: SecretValue<Fr | undefined>;
|
|
29
|
-
/** Optional salt to use to
|
|
29
|
+
/** Optional salt to use to instantiate the sender account */
|
|
30
30
|
senderSalt: Fr | undefined;
|
|
31
31
|
/** Encryption secret for a recipient account. */
|
|
32
32
|
recipientEncryptionSecret: SecretValue<Fr>;
|
|
33
|
-
/** Salt for the token contract
|
|
33
|
+
/** Salt for the token contract instantiation. */
|
|
34
34
|
tokenSalt: Fr;
|
|
35
35
|
/** Every how many seconds should a new tx be sent. */
|
|
36
36
|
txIntervalSeconds: number;
|
package/dest/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAQjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAG9C,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,cAAc,wCAAyC,CAAC;AAC9D,KAAK,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC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A4B;IAC5B,QAAQ,EAAE,uBAAuB,CAAC;IAClC,yEAAyE;IACzE,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iDAAiD;IACjD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,+DAA+D;IAC/D,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCK,CAAC;AAElC,eAAO,MAAM,iBAAiB,EAAE,kBAAkB,CAAC,SAAS,CAkJ3D,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,SAAS,CAE/C;AAED,wBAAgB,mBAAmB,IAAI,SAAS,CAE/C;AAED,wBAAgB,WAAW,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAKzD"}
|
package/dest/factory.js
CHANGED
|
@@ -155,14 +155,14 @@ export class BotFactory {
|
|
|
155
155
|
deploy = TokenContract.deploy(wallet, wallet.getAddress(), 'BotToken', 'BOT', 18);
|
|
156
156
|
} else if (this.config.contract === SupportedTokenContracts.EasyPrivateTokenContract) {
|
|
157
157
|
deploy = EasyPrivateTokenContract.deploy(wallet, MINT_BALANCE, wallet.getAddress());
|
|
158
|
-
deployOpts.
|
|
159
|
-
deployOpts.
|
|
158
|
+
deployOpts.skipInstancePublication = true;
|
|
159
|
+
deployOpts.skipClassPublication = true;
|
|
160
160
|
deployOpts.skipInitialization = false;
|
|
161
161
|
} else {
|
|
162
162
|
throw new Error(`Unsupported token contract type: ${this.config.contract}`);
|
|
163
163
|
}
|
|
164
164
|
const address = (await deploy.getInstance(deployOpts)).address;
|
|
165
|
-
if ((await this.pxe.getContractMetadata(address)).
|
|
165
|
+
if ((await this.pxe.getContractMetadata(address)).isContractPublished) {
|
|
166
166
|
this.log.info(`Token at ${address.toString()} already deployed`);
|
|
167
167
|
return deploy.register();
|
|
168
168
|
} else {
|
|
@@ -252,7 +252,7 @@ export class BotFactory {
|
|
|
252
252
|
}
|
|
253
253
|
async registerOrDeployContract(name, deploy, deployOpts) {
|
|
254
254
|
const address = (await deploy.getInstance(deployOpts)).address;
|
|
255
|
-
if ((await this.pxe.getContractMetadata(address)).
|
|
255
|
+
if ((await this.pxe.getContractMetadata(address)).isContractPublished) {
|
|
256
256
|
this.log.info(`Contract ${name} at ${address.toString()} already deployed`);
|
|
257
257
|
return deploy.register();
|
|
258
258
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/bot",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250710",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
58
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
59
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
60
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
61
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
62
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
63
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
64
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
65
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
66
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
57
|
+
"@aztec/accounts": "1.0.0-nightly.20250710",
|
|
58
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250710",
|
|
59
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250710",
|
|
60
|
+
"@aztec/ethereum": "1.0.0-nightly.20250710",
|
|
61
|
+
"@aztec/foundation": "1.0.0-nightly.20250710",
|
|
62
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250710",
|
|
63
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250710",
|
|
64
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250710",
|
|
65
|
+
"@aztec/stdlib": "1.0.0-nightly.20250710",
|
|
66
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250710",
|
|
67
67
|
"source-map-support": "^0.5.21",
|
|
68
68
|
"tslib": "^2.4.0",
|
|
69
69
|
"zod": "^3.23.8"
|
package/src/config.ts
CHANGED
|
@@ -42,11 +42,11 @@ export type BotConfig = {
|
|
|
42
42
|
l1ToL2MessageTimeoutSeconds: number;
|
|
43
43
|
/** Signing private key for the sender account. */
|
|
44
44
|
senderPrivateKey: SecretValue<Fr | undefined>;
|
|
45
|
-
/** Optional salt to use to
|
|
45
|
+
/** Optional salt to use to instantiate the sender account */
|
|
46
46
|
senderSalt: Fr | undefined;
|
|
47
47
|
/** Encryption secret for a recipient account. */
|
|
48
48
|
recipientEncryptionSecret: SecretValue<Fr>;
|
|
49
|
-
/** Salt for the token contract
|
|
49
|
+
/** Salt for the token contract instantiation. */
|
|
50
50
|
tokenSalt: Fr;
|
|
51
51
|
/** Every how many seconds should a new tx be sent. */
|
|
52
52
|
txIntervalSeconds: number;
|
package/src/factory.ts
CHANGED
|
@@ -171,15 +171,15 @@ export class BotFactory {
|
|
|
171
171
|
deploy = TokenContract.deploy(wallet, wallet.getAddress(), 'BotToken', 'BOT', 18);
|
|
172
172
|
} else if (this.config.contract === SupportedTokenContracts.EasyPrivateTokenContract) {
|
|
173
173
|
deploy = EasyPrivateTokenContract.deploy(wallet, MINT_BALANCE, wallet.getAddress());
|
|
174
|
-
deployOpts.
|
|
175
|
-
deployOpts.
|
|
174
|
+
deployOpts.skipInstancePublication = true;
|
|
175
|
+
deployOpts.skipClassPublication = true;
|
|
176
176
|
deployOpts.skipInitialization = false;
|
|
177
177
|
} else {
|
|
178
178
|
throw new Error(`Unsupported token contract type: ${this.config.contract}`);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
const address = (await deploy.getInstance(deployOpts)).address;
|
|
182
|
-
if ((await this.pxe.getContractMetadata(address)).
|
|
182
|
+
if ((await this.pxe.getContractMetadata(address)).isContractPublished) {
|
|
183
183
|
this.log.info(`Token at ${address.toString()} already deployed`);
|
|
184
184
|
return deploy.register();
|
|
185
185
|
} else {
|
|
@@ -308,7 +308,7 @@ export class BotFactory {
|
|
|
308
308
|
deployOpts: DeployOptions,
|
|
309
309
|
): Promise<T> {
|
|
310
310
|
const address = (await deploy.getInstance(deployOpts)).address;
|
|
311
|
-
if ((await this.pxe.getContractMetadata(address)).
|
|
311
|
+
if ((await this.pxe.getContractMetadata(address)).isContractPublished) {
|
|
312
312
|
this.log.info(`Contract ${name} at ${address.toString()} already deployed`);
|
|
313
313
|
return deploy.register();
|
|
314
314
|
} else {
|