@aztec/accounts 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.
@@ -4,7 +4,7 @@ import { DefaultAccountInterface } from '../defaults/account_interface.js';
4
4
  * Default implementation for an account interface that uses a dapp entrypoint.
5
5
  */
6
6
  export declare class DefaultDappInterface extends DefaultAccountInterface {
7
- constructor(authWitnessProvider: AuthWitnessProvider, userAddress: CompleteAddress, dappAddress: AztecAddress, nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'protocolVersion'>);
7
+ constructor(authWitnessProvider: AuthWitnessProvider, userAddress: CompleteAddress, dappAddress: AztecAddress, nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'rollupVersion'>);
8
8
  static createFromUserWallet(wallet: AccountWallet, dappAddress: AztecAddress): DefaultDappInterface;
9
9
  }
10
10
  //# sourceMappingURL=dapp_interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dapp_interface.d.ts","sourceRoot":"","sources":["../../src/dapp/dapp_interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,YAAY,EACZ,eAAe,EACf,KAAK,QAAQ,EACd,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;gBAE7D,mBAAmB,EAAE,mBAAmB,EACxC,WAAW,EAAE,eAAe,EAC5B,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,iBAAiB,CAAC;IAY3D,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,GAAG,oBAAoB;CAMpG"}
1
+ {"version":3,"file":"dapp_interface.d.ts","sourceRoot":"","sources":["../../src/dapp/dapp_interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,YAAY,EACZ,eAAe,EACf,KAAK,QAAQ,EACd,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;gBAE7D,mBAAmB,EAAE,mBAAmB,EACxC,WAAW,EAAE,eAAe,EAC5B,WAAW,EAAE,YAAY,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,eAAe,CAAC;IAYzD,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,GAAG,oBAAoB;CAMpG"}
@@ -5,12 +5,12 @@ import { DefaultAccountInterface } from '../defaults/account_interface.js';
5
5
  */ export class DefaultDappInterface extends DefaultAccountInterface {
6
6
  constructor(authWitnessProvider, userAddress, dappAddress, nodeInfo){
7
7
  super(authWitnessProvider, userAddress, nodeInfo);
8
- this.entrypoint = new DefaultDappEntrypoint(userAddress.address, authWitnessProvider, dappAddress, nodeInfo.l1ChainId, nodeInfo.protocolVersion);
8
+ this.entrypoint = new DefaultDappEntrypoint(userAddress.address, authWitnessProvider, dappAddress, nodeInfo.l1ChainId, nodeInfo.rollupVersion);
9
9
  }
10
10
  static createFromUserWallet(wallet, dappAddress) {
11
11
  return new DefaultDappInterface(wallet, wallet.getCompleteAddress(), dappAddress, {
12
12
  l1ChainId: wallet.getChainId().toNumber(),
13
- protocolVersion: wallet.getVersion().toNumber()
13
+ rollupVersion: wallet.getVersion().toNumber()
14
14
  });
15
15
  }
16
16
  }
@@ -17,7 +17,7 @@ export declare class DefaultAccountInterface implements AccountInterface {
17
17
  protected entrypoint: EntrypointInterface;
18
18
  private chainId;
19
19
  private version;
20
- constructor(authWitnessProvider: AuthWitnessProvider, address: CompleteAddress, nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'protocolVersion'>);
20
+ constructor(authWitnessProvider: AuthWitnessProvider, address: CompleteAddress, nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'rollupVersion'>);
21
21
  createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
22
22
  createAuthWit(messageHash: Fr): Promise<AuthWitness>;
23
23
  getCompleteAddress(): CompleteAddress;
@@ -1 +1 @@
1
- {"version":3,"file":"account_interface.d.ts","sourceRoot":"","sources":["../../src/defaults/account_interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAErF,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACzG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAO5D,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,OAAO;IAPjB,SAAS,CAAC,UAAU,EAAE,mBAAmB,CAAC;IAE1C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAK;gBAGV,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,eAAe,EAChC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,iBAAiB,CAAC;IAY3D,wBAAwB,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W,GAAG,eAAe,CAAC;IAYzD,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;IAI9B,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAIpD,kBAAkB,IAAI,eAAe;IAIrC,UAAU,IAAI,YAAY;IAI1B,UAAU,IAAI,EAAE;IAIhB,UAAU,IAAI,EAAE;CAGjB"}
@@ -12,9 +12,9 @@ import { Fr } from '@aztec/foundation/fields';
12
12
  constructor(authWitnessProvider, address, nodeInfo){
13
13
  this.authWitnessProvider = authWitnessProvider;
14
14
  this.address = address;
15
- this.entrypoint = new DefaultAccountEntrypoint(address.address, authWitnessProvider, nodeInfo.l1ChainId, nodeInfo.protocolVersion);
15
+ this.entrypoint = new DefaultAccountEntrypoint(address.address, authWitnessProvider, nodeInfo.l1ChainId, nodeInfo.rollupVersion);
16
16
  this.chainId = new Fr(nodeInfo.l1ChainId);
17
- this.version = new Fr(nodeInfo.protocolVersion);
17
+ this.version = new Fr(nodeInfo.rollupVersion);
18
18
  }
19
19
  createTxExecutionRequest(exec, fee, options) {
20
20
  return this.entrypoint.createTxExecutionRequest(exec, fee, options);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aztec/accounts",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/accounts",
4
4
  "description": "Implementation of sample account contracts for Aztec Network",
5
- "version": "0.82.3",
5
+ "version": "0.83.0",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  "./dapp": "./dest/dapp/index.js",
@@ -77,11 +77,11 @@
77
77
  ]
78
78
  },
79
79
  "dependencies": {
80
- "@aztec/aztec.js": "0.82.3",
81
- "@aztec/entrypoints": "0.82.3",
82
- "@aztec/ethereum": "0.82.3",
83
- "@aztec/foundation": "0.82.3",
84
- "@aztec/stdlib": "0.82.3",
80
+ "@aztec/aztec.js": "0.83.0",
81
+ "@aztec/entrypoints": "0.83.0",
82
+ "@aztec/ethereum": "0.83.0",
83
+ "@aztec/foundation": "0.83.0",
84
+ "@aztec/stdlib": "0.83.0",
85
85
  "tslib": "^2.4.0"
86
86
  },
87
87
  "devDependencies": {
@@ -17,7 +17,7 @@ export class DefaultDappInterface extends DefaultAccountInterface {
17
17
  authWitnessProvider: AuthWitnessProvider,
18
18
  userAddress: CompleteAddress,
19
19
  dappAddress: AztecAddress,
20
- nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'protocolVersion'>,
20
+ nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'rollupVersion'>,
21
21
  ) {
22
22
  super(authWitnessProvider, userAddress, nodeInfo);
23
23
  this.entrypoint = new DefaultDappEntrypoint(
@@ -25,14 +25,14 @@ export class DefaultDappInterface extends DefaultAccountInterface {
25
25
  authWitnessProvider,
26
26
  dappAddress,
27
27
  nodeInfo.l1ChainId,
28
- nodeInfo.protocolVersion,
28
+ nodeInfo.rollupVersion,
29
29
  );
30
30
  }
31
31
 
32
32
  static createFromUserWallet(wallet: AccountWallet, dappAddress: AztecAddress): DefaultDappInterface {
33
33
  return new DefaultDappInterface(wallet, wallet.getCompleteAddress(), dappAddress, {
34
34
  l1ChainId: wallet.getChainId().toNumber(),
35
- protocolVersion: wallet.getVersion().toNumber(),
35
+ rollupVersion: wallet.getVersion().toNumber(),
36
36
  });
37
37
  }
38
38
  }
@@ -22,16 +22,16 @@ export class DefaultAccountInterface implements AccountInterface {
22
22
  constructor(
23
23
  private authWitnessProvider: AuthWitnessProvider,
24
24
  private address: CompleteAddress,
25
- nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'protocolVersion'>,
25
+ nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'rollupVersion'>,
26
26
  ) {
27
27
  this.entrypoint = new DefaultAccountEntrypoint(
28
28
  address.address,
29
29
  authWitnessProvider,
30
30
  nodeInfo.l1ChainId,
31
- nodeInfo.protocolVersion,
31
+ nodeInfo.rollupVersion,
32
32
  );
33
33
  this.chainId = new Fr(nodeInfo.l1ChainId);
34
- this.version = new Fr(nodeInfo.protocolVersion);
34
+ this.version = new Fr(nodeInfo.rollupVersion);
35
35
  }
36
36
 
37
37
  createTxExecutionRequest(