@aztec/entrypoints 0.82.3 → 0.83.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.
|
@@ -6,8 +6,8 @@ import type { ExecutionPayload } from './payload.js';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DefaultEntrypoint implements EntrypointInterface {
|
|
8
8
|
private chainId;
|
|
9
|
-
private
|
|
10
|
-
constructor(chainId: number,
|
|
9
|
+
private rollupVersion;
|
|
10
|
+
constructor(chainId: number, rollupVersion: number);
|
|
11
11
|
createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=default_entrypoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAC/C,OAAO,CAAC,OAAO;IAAU,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAC/C,OAAO,CAAC,OAAO;IAAU,OAAO,CAAC,aAAa;gBAAtC,OAAO,EAAE,MAAM,EAAU,aAAa,EAAE,MAAM;IAE5D,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;CA+B/B"}
|
|
@@ -4,10 +4,10 @@ import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
|
4
4
|
* Default implementation of the entrypoint interface. It calls a function on a contract directly
|
|
5
5
|
*/ export class DefaultEntrypoint {
|
|
6
6
|
chainId;
|
|
7
|
-
|
|
8
|
-
constructor(chainId,
|
|
7
|
+
rollupVersion;
|
|
8
|
+
constructor(chainId, rollupVersion){
|
|
9
9
|
this.chainId = chainId;
|
|
10
|
-
this.
|
|
10
|
+
this.rollupVersion = rollupVersion;
|
|
11
11
|
}
|
|
12
12
|
async createTxExecutionRequest(exec, fee, options) {
|
|
13
13
|
if (options.nonce || options.cancellable !== undefined) {
|
|
@@ -27,7 +27,7 @@ import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
|
27
27
|
throw new Error('Public entrypoints are not allowed');
|
|
28
28
|
}
|
|
29
29
|
// Assemble the tx request
|
|
30
|
-
return new TxExecutionRequest(call.to, call.selector, hashedArguments[0].hash, new TxContext(this.chainId, this.
|
|
30
|
+
return new TxExecutionRequest(call.to, call.selector, hashedArguments[0].hash, new TxContext(this.chainId, this.rollupVersion, fee.gasSettings), [
|
|
31
31
|
...hashedArguments,
|
|
32
32
|
...extraHashedArgs
|
|
33
33
|
], authWitnesses, capsules);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aztec/entrypoints",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/entrypoints",
|
|
4
4
|
"description": "Implementation of sample contract entrypoints for the Aztec Network",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.83.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./dapp": "./dest/dapp_entrypoint.js",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/constants": "0.
|
|
70
|
-
"@aztec/foundation": "0.
|
|
71
|
-
"@aztec/protocol-contracts": "0.
|
|
72
|
-
"@aztec/stdlib": "0.
|
|
69
|
+
"@aztec/constants": "0.83.0",
|
|
70
|
+
"@aztec/foundation": "0.83.0",
|
|
71
|
+
"@aztec/protocol-contracts": "0.83.0",
|
|
72
|
+
"@aztec/stdlib": "0.83.0",
|
|
73
73
|
"tslib": "^2.4.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
@@ -8,7 +8,7 @@ import type { ExecutionPayload } from './payload.js';
|
|
|
8
8
|
* Default implementation of the entrypoint interface. It calls a function on a contract directly
|
|
9
9
|
*/
|
|
10
10
|
export class DefaultEntrypoint implements EntrypointInterface {
|
|
11
|
-
constructor(private chainId: number, private
|
|
11
|
+
constructor(private chainId: number, private rollupVersion: number) {}
|
|
12
12
|
|
|
13
13
|
async createTxExecutionRequest(
|
|
14
14
|
exec: ExecutionPayload,
|
|
@@ -39,7 +39,7 @@ export class DefaultEntrypoint implements EntrypointInterface {
|
|
|
39
39
|
call.to,
|
|
40
40
|
call.selector,
|
|
41
41
|
hashedArguments[0].hash,
|
|
42
|
-
new TxContext(this.chainId, this.
|
|
42
|
+
new TxContext(this.chainId, this.rollupVersion, fee.gasSettings),
|
|
43
43
|
[...hashedArguments, ...extraHashedArgs],
|
|
44
44
|
authWitnesses,
|
|
45
45
|
capsules,
|