@aztec/accounts 0.32.0 → 0.33.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.
- package/dest/artifacts/EcdsaAccount.json +1 -1
- package/dest/artifacts/SchnorrAccount.json +1 -1
- package/dest/artifacts/SchnorrSingleKeyAccount.json +1 -1
- package/dest/defaults/account_contract.d.ts +4 -4
- package/dest/defaults/account_contract.d.ts.map +1 -1
- package/dest/defaults/account_interface.d.ts +5 -5
- package/dest/defaults/account_interface.d.ts.map +1 -1
- package/dest/defaults/account_interface.js +1 -1
- package/dest/ecdsa/account_contract.d.ts +2 -2
- package/dest/ecdsa/account_contract.d.ts.map +1 -1
- package/dest/ecdsa/account_contract.js +1 -1
- package/dest/ecdsa/artifact.js +1 -1
- package/dest/ecdsa/index.d.ts +4 -4
- package/dest/ecdsa/index.d.ts.map +1 -1
- package/dest/ecdsa/index.js +1 -1
- package/dest/schnorr/account_contract.d.ts +3 -3
- package/dest/schnorr/account_contract.d.ts.map +1 -1
- package/dest/schnorr/account_contract.js +1 -1
- package/dest/schnorr/artifact.js +1 -1
- package/dest/schnorr/index.d.ts +4 -4
- package/dest/schnorr/index.d.ts.map +1 -1
- package/dest/schnorr/index.js +1 -1
- package/dest/single_key/account_contract.d.ts +2 -2
- package/dest/single_key/account_contract.d.ts.map +1 -1
- package/dest/single_key/account_contract.js +1 -1
- package/dest/single_key/artifact.js +1 -1
- package/dest/single_key/index.d.ts +4 -4
- package/dest/single_key/index.d.ts.map +1 -1
- package/dest/single_key/index.js +1 -1
- package/dest/testing/configuration.d.ts +2 -2
- package/dest/testing/configuration.d.ts.map +1 -1
- package/dest/testing/configuration.js +2 -2
- package/dest/testing/create_account.d.ts +2 -2
- package/dest/testing/create_account.d.ts.map +1 -1
- package/dest/testing/create_account.js +2 -2
- package/package.json +18 -12
- package/src/artifacts/EcdsaAccount.json +1 -1
- package/src/artifacts/SchnorrAccount.json +1 -1
- package/src/artifacts/SchnorrSingleKeyAccount.json +1 -1
- package/src/defaults/account_contract.ts +4 -4
- package/src/defaults/account_interface.ts +5 -5
- package/src/ecdsa/account_contract.ts +4 -4
- package/src/ecdsa/artifact.ts +1 -1
- package/src/ecdsa/index.ts +4 -4
- package/src/schnorr/account_contract.ts +4 -4
- package/src/schnorr/artifact.ts +1 -1
- package/src/schnorr/index.ts +4 -4
- package/src/single_key/account_contract.ts +5 -5
- package/src/single_key/artifact.ts +1 -1
- package/src/single_key/index.ts +4 -4
- package/src/testing/configuration.ts +3 -3
- package/src/testing/create_account.ts +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AccountContract, AccountInterface, AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
-
import { CompleteAddress } from '@aztec/circuit-types';
|
|
3
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
4
|
-
import { NodeInfo } from '@aztec/types/interfaces';
|
|
1
|
+
import { type AccountContract, type AccountInterface, type AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
+
import { type CompleteAddress } from '@aztec/circuit-types';
|
|
3
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
4
|
+
import { type NodeInfo } from '@aztec/types/interfaces';
|
|
5
5
|
|
|
6
6
|
import { DefaultAccountInterface } from '../defaults/account_interface.js';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AccountInterface, AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
-
import { EntrypointInterface, FeeOptions } from '@aztec/aztec.js/entrypoint';
|
|
3
|
-
import { AuthWitness, FunctionCall, TxExecutionRequest } from '@aztec/circuit-types';
|
|
4
|
-
import { AztecAddress, CompleteAddress, Fr } from '@aztec/circuits.js';
|
|
1
|
+
import { type AccountInterface, type AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
+
import { type EntrypointInterface, type FeeOptions } from '@aztec/aztec.js/entrypoint';
|
|
3
|
+
import { type AuthWitness, type FunctionCall, type TxExecutionRequest } from '@aztec/circuit-types';
|
|
4
|
+
import { type AztecAddress, type CompleteAddress, Fr } from '@aztec/circuits.js';
|
|
5
5
|
import { DefaultAccountEntrypoint } from '@aztec/entrypoints/account';
|
|
6
|
-
import { NodeInfo } from '@aztec/types/interfaces';
|
|
6
|
+
import { type NodeInfo } from '@aztec/types/interfaces';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Default implementation for an account interface. Requires that the account uses the default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
-
import { AuthWitness, CompleteAddress } from '@aztec/circuit-types';
|
|
1
|
+
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
+
import { AuthWitness, type CompleteAddress } from '@aztec/circuit-types';
|
|
3
3
|
import { Ecdsa } from '@aztec/circuits.js/barretenberg';
|
|
4
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
5
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
5
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
6
6
|
|
|
7
7
|
import { DefaultAccountContract } from '../defaults/account_contract.js';
|
|
8
8
|
import { EcdsaAccountContractArtifact } from './artifact.js';
|
package/src/ecdsa/artifact.ts
CHANGED
package/src/ecdsa/index.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { AccountManager, Salt } from '@aztec/aztec.js/account';
|
|
8
|
-
import { AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
-
import { GrumpkinPrivateKey, PXE } from '@aztec/circuit-types';
|
|
10
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
7
|
+
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
|
|
8
|
+
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
+
import { type GrumpkinPrivateKey, type PXE } from '@aztec/circuit-types';
|
|
10
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
11
11
|
|
|
12
12
|
import { EcdsaAccountContract } from './account_contract.js';
|
|
13
13
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
-
import { AuthWitness, CompleteAddress, GrumpkinPrivateKey } from '@aztec/circuit-types';
|
|
1
|
+
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
2
|
+
import { AuthWitness, type CompleteAddress, type GrumpkinPrivateKey } from '@aztec/circuit-types';
|
|
3
3
|
import { Schnorr } from '@aztec/circuits.js/barretenberg';
|
|
4
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
5
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
4
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
5
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
6
6
|
|
|
7
7
|
import { DefaultAccountContract } from '../defaults/account_contract.js';
|
|
8
8
|
import { SchnorrAccountContractArtifact } from './artifact.js';
|
package/src/schnorr/artifact.ts
CHANGED
package/src/schnorr/index.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { AccountManager, Salt } from '@aztec/aztec.js/account';
|
|
8
|
-
import { AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
-
import { GrumpkinPrivateKey, PXE } from '@aztec/circuit-types';
|
|
10
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
7
|
+
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
|
|
8
|
+
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
+
import { type GrumpkinPrivateKey, type PXE } from '@aztec/circuit-types';
|
|
10
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
11
11
|
|
|
12
12
|
import { SchnorrAccountContract } from './account_contract.js';
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { generatePublicKey } from '@aztec/aztec.js';
|
|
2
|
-
import { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
3
|
-
import { AuthWitness, CompleteAddress, GrumpkinPrivateKey } from '@aztec/circuit-types';
|
|
4
|
-
import { PartialAddress } from '@aztec/circuits.js';
|
|
2
|
+
import { type AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
3
|
+
import { AuthWitness, type CompleteAddress, type GrumpkinPrivateKey } from '@aztec/circuit-types';
|
|
4
|
+
import { type PartialAddress } from '@aztec/circuits.js';
|
|
5
5
|
import { Schnorr } from '@aztec/circuits.js/barretenberg';
|
|
6
|
-
import { ContractArtifact } from '@aztec/foundation/abi';
|
|
7
|
-
import { Fr } from '@aztec/foundation/fields';
|
|
6
|
+
import { type ContractArtifact } from '@aztec/foundation/abi';
|
|
7
|
+
import { type Fr } from '@aztec/foundation/fields';
|
|
8
8
|
|
|
9
9
|
import { DefaultAccountContract } from '../defaults/account_contract.js';
|
|
10
10
|
import { SchnorrSingleKeyAccountContractArtifact } from './artifact.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js';
|
|
1
|
+
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js';
|
|
2
2
|
|
|
3
3
|
import SchnorrSingleKeyAccountContractJson from '../artifacts/SchnorrSingleKeyAccount.json' assert { type: 'json' };
|
|
4
4
|
|
package/src/single_key/index.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { AccountManager, Salt } from '@aztec/aztec.js/account';
|
|
8
|
-
import { AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
-
import { GrumpkinPrivateKey, PXE } from '@aztec/circuit-types';
|
|
10
|
-
import { AztecAddress } from '@aztec/circuits.js';
|
|
7
|
+
import { AccountManager, type Salt } from '@aztec/aztec.js/account';
|
|
8
|
+
import { type AccountWallet, getWallet } from '@aztec/aztec.js/wallet';
|
|
9
|
+
import { type GrumpkinPrivateKey, type PXE } from '@aztec/circuit-types';
|
|
10
|
+
import { type AztecAddress } from '@aztec/circuits.js';
|
|
11
11
|
|
|
12
12
|
import { SingleKeyAccountContract } from './account_contract.js';
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generatePublicKey } from '@aztec/aztec.js';
|
|
2
|
-
import { AccountWalletWithPrivateKey } from '@aztec/aztec.js/wallet';
|
|
3
|
-
import { PXE } from '@aztec/circuit-types';
|
|
2
|
+
import { type AccountWalletWithPrivateKey } from '@aztec/aztec.js/wallet';
|
|
3
|
+
import { type PXE } from '@aztec/circuit-types';
|
|
4
4
|
import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
5
5
|
|
|
6
6
|
import { getSchnorrAccount } from '../schnorr/index.js';
|
|
@@ -68,7 +68,7 @@ export async function deployInitialTestAccounts(pxe: PXE) {
|
|
|
68
68
|
skipPublicDeployment: true,
|
|
69
69
|
universalDeploy: true,
|
|
70
70
|
});
|
|
71
|
-
await deployMethod.
|
|
71
|
+
await deployMethod.prove({});
|
|
72
72
|
return deployMethod;
|
|
73
73
|
}),
|
|
74
74
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AccountWalletWithPrivateKey } from '@aztec/aztec.js/wallet';
|
|
2
|
-
import { PXE } from '@aztec/circuit-types';
|
|
1
|
+
import { type AccountWalletWithPrivateKey } from '@aztec/aztec.js/wallet';
|
|
2
|
+
import { type PXE } from '@aztec/circuit-types';
|
|
3
3
|
import { GrumpkinScalar } from '@aztec/circuits.js';
|
|
4
4
|
|
|
5
5
|
import { getSchnorrAccount } from '../schnorr/index.js';
|
|
@@ -29,7 +29,7 @@ export async function createAccounts(pxe: PXE, numberOfAccounts = 1): Promise<Ac
|
|
|
29
29
|
// the results get stored within the account object. By calling it here we increase the probability of all the
|
|
30
30
|
// accounts being deployed in the same block because it makes the deploy() method basically instant.
|
|
31
31
|
await account.getDeployMethod().then(d =>
|
|
32
|
-
d.
|
|
32
|
+
d.prove({
|
|
33
33
|
contractAddressSalt: account.salt,
|
|
34
34
|
skipClassRegistration: true,
|
|
35
35
|
skipPublicDeployment: true,
|