@aztec/cli 0.80.0 → 0.81.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.
@@ -1,3 +1,3 @@
1
1
  import type { LogFn } from '@aztec/foundation/log';
2
- export declare function generateEncodedBootnodeENR(privateKey: string, udpAnnounceAddress: string, l1ChainId: number, log: LogFn): Promise<void>;
2
+ export declare function generateEncodedBootnodeENR(privateKey: string, p2pIp: string, p2pPort: number, l1ChainId: number, log: LogFn): Promise<void>;
3
3
  //# sourceMappingURL=generate_bootnode_enr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate_bootnode_enr.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/generate_bootnode_enr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,0BAA0B,CAC9C,UAAU,EAAE,MAAM,EAClB,kBAAkB,EAAE,MAAM,EAC1B,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,KAAK,iBAIX"}
1
+ {"version":3,"file":"generate_bootnode_enr.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/generate_bootnode_enr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,wBAAsB,0BAA0B,CAC9C,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,KAAK,iBAIX"}
@@ -1,5 +1,5 @@
1
1
  import { createBootnodeENRandPeerId } from '@aztec/p2p/enr';
2
- export async function generateEncodedBootnodeENR(privateKey, udpAnnounceAddress, l1ChainId, log) {
3
- const { enr } = await createBootnodeENRandPeerId(privateKey, udpAnnounceAddress, l1ChainId);
2
+ export async function generateEncodedBootnodeENR(privateKey, p2pIp, p2pPort, l1ChainId, log) {
3
+ const { enr } = await createBootnodeENRandPeerId(privateKey, p2pIp, p2pPort, l1ChainId);
4
4
  log(`ENR: ${enr.encodeTxt()}`);
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,WAoF1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cmds/misc/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,WAqF1D"}
@@ -16,9 +16,9 @@ export function injectCommands(program, log) {
16
16
  const { generateP2PPrivateKey } = await import('./generate_p2p_private_key.js');
17
17
  await generateP2PPrivateKey(log);
18
18
  });
19
- program.command('generate-bootnode-enr').summary('Generates the encoded ENR record for a bootnode.').description('Generates the encoded ENR record for a bootnode.').argument('<privateKey>', 'The peer id private key of the bootnode').argument('<udpAnnounceAddress>', 'The bootnode UDP announce address').addOption(l1ChainIdOption).action(async (privateKey, udpAnnounceAddress, options)=>{
19
+ program.command('generate-bootnode-enr').summary('Generates the encoded ENR record for a bootnode.').description('Generates the encoded ENR record for a bootnode.').argument('<privateKey>', 'The peer id private key of the bootnode').argument('<p2pIp>', 'The bootnode P2P IP address').argument('<p2pPort>', 'The bootnode P2P port').addOption(l1ChainIdOption).action(async (privateKey, p2pIp, p2pPort, options)=>{
20
20
  const { generateEncodedBootnodeENR } = await import('./generate_bootnode_enr.js');
21
- await generateEncodedBootnodeENR(privateKey, udpAnnounceAddress, options.l1ChainId, log);
21
+ await generateEncodedBootnodeENR(privateKey, p2pIp, p2pPort, options.l1ChainId, log);
22
22
  });
23
23
  program.command('decode-enr').summary('Decodes an ENR record').description('Decodes and ENR record').argument('<enr>', 'The encoded ENR string').action(async (enr)=>{
24
24
  await printENR(enr, log);
@@ -1 +1 @@
1
- {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/utils/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,iBA0B7G;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,EACV,IAAI,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,iBAmGrE;AAyCD,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAC/D,KAAK,2BAA2B,GAAG,gBAAgB,GAAG;IAAE,OAAO,EAAE,EAAE,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/utils/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,iBA0B7G;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,EACV,IAAI,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,iBAmGrE;AAwCD,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAC/D,KAAK,2BAA2B,GAAG,gBAAgB,GAAG;IAAE,OAAO,EAAE,EAAE,CAAA;CAAE,CAAC"}
@@ -120,9 +120,8 @@ export async function inspectTx(pxe, txHash, log, opts = {}) {
120
120
  function inspectNote(note, artifactMap, log, text = 'Note') {
121
121
  const artifact = artifactMap[note.contractAddress.toString()];
122
122
  const contract = artifact?.name ?? note.contractAddress.toString();
123
- const type = artifact?.notes[note.noteTypeId.toString()]?.typ ?? note.noteTypeId.toField().toShortString();
124
- log(` ${text} type ${type} at ${contract}`);
125
- log(` Owner: ${toFriendlyAddress(note.owner, artifactMap)}`);
123
+ log(` ${text} at ${contract}`);
124
+ log(` Recipient: ${toFriendlyAddress(note.recipient, artifactMap)}`);
126
125
  for (const field of note.note.items){
127
126
  log(` ${field.toString()}`);
128
127
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/cli",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./contracts": "./dest/cmds/contracts/index.js",
@@ -67,14 +67,14 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/archiver": "0.80.0",
71
- "@aztec/aztec.js": "0.80.0",
72
- "@aztec/constants": "0.80.0",
73
- "@aztec/foundation": "0.80.0",
74
- "@aztec/l1-artifacts": "0.80.0",
75
- "@aztec/p2p": "0.80.0",
76
- "@aztec/stdlib": "0.80.0",
77
- "@aztec/world-state": "0.80.0",
70
+ "@aztec/archiver": "0.81.0",
71
+ "@aztec/aztec.js": "0.81.0",
72
+ "@aztec/constants": "0.81.0",
73
+ "@aztec/foundation": "0.81.0",
74
+ "@aztec/l1-artifacts": "0.81.0",
75
+ "@aztec/p2p": "0.81.0",
76
+ "@aztec/stdlib": "0.81.0",
77
+ "@aztec/world-state": "0.81.0",
78
78
  "@iarna/toml": "^2.2.5",
79
79
  "@libp2p/peer-id-factory": "^3.0.4",
80
80
  "commander": "^12.1.0",
@@ -86,9 +86,9 @@
86
86
  "viem": "2.23.7"
87
87
  },
88
88
  "devDependencies": {
89
- "@aztec/accounts": "0.80.0",
90
- "@aztec/ethereum": "0.80.0",
91
- "@aztec/protocol-contracts": "0.80.0",
89
+ "@aztec/accounts": "0.81.0",
90
+ "@aztec/ethereum": "0.81.0",
91
+ "@aztec/protocol-contracts": "0.81.0",
92
92
  "@jest/globals": "^29.5.0",
93
93
  "@types/jest": "^29.5.0",
94
94
  "@types/lodash.chunk": "^4.2.9",
@@ -104,14 +104,14 @@
104
104
  "typescript": "^5.0.4"
105
105
  },
106
106
  "peerDependencies": {
107
- "@aztec/accounts": "0.80.0",
108
- "@aztec/bb-prover": "0.80.0",
109
- "@aztec/ethereum": "0.80.0",
110
- "@aztec/l1-artifacts": "0.80.0",
111
- "@aztec/noir-contracts.js": "0.80.0",
112
- "@aztec/noir-protocol-circuits-types": "0.80.0",
113
- "@aztec/protocol-contracts": "0.80.0",
114
- "@aztec/stdlib": "0.80.0"
107
+ "@aztec/accounts": "0.81.0",
108
+ "@aztec/bb-prover": "0.81.0",
109
+ "@aztec/ethereum": "0.81.0",
110
+ "@aztec/l1-artifacts": "0.81.0",
111
+ "@aztec/noir-contracts.js": "0.81.0",
112
+ "@aztec/noir-protocol-circuits-types": "0.81.0",
113
+ "@aztec/protocol-contracts": "0.81.0",
114
+ "@aztec/stdlib": "0.81.0"
115
115
  },
116
116
  "files": [
117
117
  "dest",
@@ -3,10 +3,11 @@ import { createBootnodeENRandPeerId } from '@aztec/p2p/enr';
3
3
 
4
4
  export async function generateEncodedBootnodeENR(
5
5
  privateKey: string,
6
- udpAnnounceAddress: string,
6
+ p2pIp: string,
7
+ p2pPort: number,
7
8
  l1ChainId: number,
8
9
  log: LogFn,
9
10
  ) {
10
- const { enr } = await createBootnodeENRandPeerId(privateKey, udpAnnounceAddress, l1ChainId);
11
+ const { enr } = await createBootnodeENRandPeerId(privateKey, p2pIp, p2pPort, l1ChainId);
11
12
  log(`ENR: ${enr.encodeTxt()}`);
12
13
  }
@@ -35,11 +35,12 @@ export function injectCommands(program: Command, log: LogFn) {
35
35
  .summary('Generates the encoded ENR record for a bootnode.')
36
36
  .description('Generates the encoded ENR record for a bootnode.')
37
37
  .argument('<privateKey>', 'The peer id private key of the bootnode')
38
- .argument('<udpAnnounceAddress>', 'The bootnode UDP announce address')
38
+ .argument('<p2pIp>', 'The bootnode P2P IP address')
39
+ .argument('<p2pPort>', 'The bootnode P2P port')
39
40
  .addOption(l1ChainIdOption)
40
- .action(async (privateKey: string, udpAnnounceAddress: string, options) => {
41
+ .action(async (privateKey: string, p2pIp: string, p2pPort: number, options) => {
41
42
  const { generateEncodedBootnodeENR } = await import('./generate_bootnode_enr.js');
42
- await generateEncodedBootnodeENR(privateKey, udpAnnounceAddress, options.l1ChainId, log);
43
+ await generateEncodedBootnodeENR(privateKey, p2pIp, p2pPort, options.l1ChainId, log);
43
44
  });
44
45
 
45
46
  program
@@ -142,9 +142,8 @@ export async function inspectTx(
142
142
  function inspectNote(note: ExtendedNote, artifactMap: ArtifactMap, log: LogFn, text = 'Note') {
143
143
  const artifact = artifactMap[note.contractAddress.toString()];
144
144
  const contract = artifact?.name ?? note.contractAddress.toString();
145
- const type = artifact?.notes[note.noteTypeId.toString()]?.typ ?? note.noteTypeId.toField().toShortString();
146
- log(` ${text} type ${type} at ${contract}`);
147
- log(` Owner: ${toFriendlyAddress(note.owner, artifactMap)}`);
145
+ log(` ${text} at ${contract}`);
146
+ log(` Recipient: ${toFriendlyAddress(note.recipient, artifactMap)}`);
148
147
  for (const field of note.note.items) {
149
148
  log(` ${field.toString()}`);
150
149
  }