@aztec/entrypoints 3.0.0-nightly.20251121 → 3.0.0-nightly.20251122
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/interfaces.d.ts +15 -1
- package/dest/interfaces.d.ts.map +1 -1
- package/dest/interfaces.js +8 -1
- package/package.json +7 -6
- package/src/interfaces.ts +11 -1
package/dest/interfaces.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
2
2
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
3
3
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
4
4
|
import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
/**
|
|
6
7
|
* Information on the connected chain. Used by wallets when constructing transactions to protect against replay
|
|
7
8
|
* attacks.
|
|
@@ -12,6 +13,19 @@ export type ChainInfo = {
|
|
|
12
13
|
/** The version of the rollup */
|
|
13
14
|
version: Fr;
|
|
14
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Zod schema for ChainInfo
|
|
18
|
+
*/
|
|
19
|
+
export declare const ChainInfoSchema: z.ZodObject<{
|
|
20
|
+
chainId: z.ZodType<Fr, any, string>;
|
|
21
|
+
version: z.ZodType<Fr, any, string>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
chainId: Fr;
|
|
24
|
+
version: Fr;
|
|
25
|
+
}, {
|
|
26
|
+
chainId: string;
|
|
27
|
+
version: string;
|
|
28
|
+
}>;
|
|
15
29
|
/**
|
|
16
30
|
* Creates transaction execution requests out of a set of function calls, a fee payment method and
|
|
17
31
|
* general options for the transaction
|
package/dest/interfaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,sBAAsB;IACtB,OAAO,EAAE,EAAE,CAAC;IACZ,iCAAiC;IACjC,OAAO,EAAE,EAAE,CAAC;CACb,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AAEH;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,GAAG,GACZ,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D"}
|
package/dest/interfaces.js
CHANGED
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": "3.0.0-nightly.
|
|
5
|
+
"version": "3.0.0-nightly.20251122",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./account": "./dest/account_entrypoint.js",
|
|
@@ -67,11 +67,12 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
71
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
72
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
73
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
74
|
-
"tslib": "^2.4.0"
|
|
70
|
+
"@aztec/constants": "3.0.0-nightly.20251122",
|
|
71
|
+
"@aztec/foundation": "3.0.0-nightly.20251122",
|
|
72
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251122",
|
|
73
|
+
"@aztec/stdlib": "3.0.0-nightly.20251122",
|
|
74
|
+
"tslib": "^2.4.0",
|
|
75
|
+
"zod": "^3.23.8"
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"@jest/globals": "^30.0.0",
|
package/src/interfaces.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Fr } from '@aztec/foundation/fields';
|
|
2
2
|
import type { AuthWitness } from '@aztec/stdlib/auth-witness';
|
|
3
3
|
import type { GasSettings } from '@aztec/stdlib/gas';
|
|
4
4
|
import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
|
|
5
5
|
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
6
8
|
/**
|
|
7
9
|
* Information on the connected chain. Used by wallets when constructing transactions to protect against replay
|
|
8
10
|
* attacks.
|
|
@@ -14,6 +16,14 @@ export type ChainInfo = {
|
|
|
14
16
|
version: Fr;
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Zod schema for ChainInfo
|
|
21
|
+
*/
|
|
22
|
+
export const ChainInfoSchema = z.object({
|
|
23
|
+
chainId: Fr.schema,
|
|
24
|
+
version: Fr.schema,
|
|
25
|
+
});
|
|
26
|
+
|
|
17
27
|
/**
|
|
18
28
|
* Creates transaction execution requests out of a set of function calls, a fee payment method and
|
|
19
29
|
* general options for the transaction
|