@aztec/aztec.js 1.0.0-staging.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,10 +62,6 @@ export declare class RollupCheatCodes {
|
|
|
62
62
|
* @param action - The action to execute
|
|
63
63
|
*/
|
|
64
64
|
asOwner(action: (owner: Hex, rollup: GetContractReturnType<typeof RollupAbi, ViemPublicClient>) => Promise<void>): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Sets up the epoch.
|
|
67
|
-
*/
|
|
68
|
-
setupEpoch(): Promise<void>;
|
|
69
65
|
/** Directly calls the L1 gas fee oracle. */
|
|
70
66
|
updateL1GasFeeOracle(): Promise<void>;
|
|
71
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup_cheat_codes.d.ts","sourceRoot":"","sources":["../../src/test/rollup_cheat_codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,GAAG,EAA8D,MAAM,MAAM,CAAC;AAGxH,8CAA8C;AAC9C,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IANvB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,MAAM,CAA4D;IAE1E,OAAO,CAAC,MAAM,CAAuC;gBAG3C,aAAa,EAAE,aAAa,EACpC,SAAS,EAAE,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC;IAavD,+BAA+B;IAClB,OAAO;IAKpB,gCAAgC;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,CAAC,IAAI,CAAC;IAQ1G,4CAA4C;IAC/B,oBAAoB;IAQjC;;;OAGG;IACU,sBAAsB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM;IAMtE;;;OAGG;IACU,qBAAqB,CAAC,QAAQ,EAAE,MAAM;CAOpD"}
|
|
@@ -161,20 +161,6 @@ import { foundry } from 'viem/chains';
|
|
|
161
161
|
await action(owner, this.rollup);
|
|
162
162
|
await this.ethCheatCodes.stopImpersonating(owner);
|
|
163
163
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Sets up the epoch.
|
|
166
|
-
*/ async setupEpoch() {
|
|
167
|
-
// Doesn't need to be done as owner, but the functionality is here...
|
|
168
|
-
await this.asOwner(async (account, rollup)=>{
|
|
169
|
-
const hash = await rollup.write.setupEpoch({
|
|
170
|
-
account
|
|
171
|
-
});
|
|
172
|
-
await this.client.waitForTransactionReceipt({
|
|
173
|
-
hash
|
|
174
|
-
});
|
|
175
|
-
this.logger.warn(`Setup epoch`);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
164
|
/** Directly calls the L1 gas fee oracle. */ async updateL1GasFeeOracle() {
|
|
179
165
|
await this.asOwner(async (account, rollup)=>{
|
|
180
166
|
const hash = await rollup.write.updateL1GasFeeOracle({
|
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": "1.0.0
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dest/index.js",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@aztec/constants": "1.0.0
|
|
86
|
-
"@aztec/entrypoints": "1.0.0
|
|
87
|
-
"@aztec/ethereum": "1.0.0
|
|
88
|
-
"@aztec/foundation": "1.0.0
|
|
89
|
-
"@aztec/l1-artifacts": "1.0.0
|
|
90
|
-
"@aztec/protocol-contracts": "1.0.0
|
|
91
|
-
"@aztec/stdlib": "1.0.0
|
|
85
|
+
"@aztec/constants": "1.0.0",
|
|
86
|
+
"@aztec/entrypoints": "1.0.0",
|
|
87
|
+
"@aztec/ethereum": "1.0.0",
|
|
88
|
+
"@aztec/foundation": "1.0.0",
|
|
89
|
+
"@aztec/l1-artifacts": "1.0.0",
|
|
90
|
+
"@aztec/protocol-contracts": "1.0.0",
|
|
91
|
+
"@aztec/stdlib": "1.0.0",
|
|
92
92
|
"axios": "^1.8.2",
|
|
93
93
|
"tslib": "^2.4.0",
|
|
94
94
|
"viem": "2.23.7"
|
|
@@ -200,18 +200,6 @@ export class RollupCheatCodes {
|
|
|
200
200
|
await this.ethCheatCodes.stopImpersonating(owner);
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
/**
|
|
204
|
-
* Sets up the epoch.
|
|
205
|
-
*/
|
|
206
|
-
public async setupEpoch() {
|
|
207
|
-
// Doesn't need to be done as owner, but the functionality is here...
|
|
208
|
-
await this.asOwner(async (account, rollup) => {
|
|
209
|
-
const hash = await rollup.write.setupEpoch({ account });
|
|
210
|
-
await this.client.waitForTransactionReceipt({ hash });
|
|
211
|
-
this.logger.warn(`Setup epoch`);
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
203
|
/** Directly calls the L1 gas fee oracle. */
|
|
216
204
|
public async updateL1GasFeeOracle() {
|
|
217
205
|
await this.asOwner(async (account, rollup) => {
|