@aztec/accounts 3.0.0-devnet.6 → 3.0.0-devnet.6-patch.1

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.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/artifacts/EcdsaKAccount.json +1287 -1068
  3. package/artifacts/EcdsaRAccount.json +1287 -1068
  4. package/artifacts/SchnorrAccount.json +1302 -1107
  5. package/artifacts/SchnorrSingleKeyAccount.json +761 -640
  6. package/artifacts/SimulatedAccount.json +536 -407
  7. package/dest/defaults/account_contract.d.ts +1 -1
  8. package/dest/defaults/account_contract.d.ts.map +1 -1
  9. package/dest/defaults/account_interface.d.ts +3 -4
  10. package/dest/defaults/account_interface.d.ts.map +1 -1
  11. package/dest/defaults/index.d.ts +2 -2
  12. package/dest/defaults/index.js +1 -1
  13. package/dest/ecdsa/ecdsa_k/account_contract.d.ts +1 -1
  14. package/dest/ecdsa/ecdsa_k/account_contract.d.ts.map +1 -1
  15. package/dest/ecdsa/ecdsa_k/account_contract.js +1 -1
  16. package/dest/ecdsa/ecdsa_k/index.d.ts +1 -1
  17. package/dest/ecdsa/ecdsa_k/index.d.ts.map +1 -1
  18. package/dest/ecdsa/ecdsa_k/lazy.d.ts +1 -1
  19. package/dest/ecdsa/ecdsa_k/lazy.d.ts.map +1 -1
  20. package/dest/ecdsa/ecdsa_r/account_contract.d.ts +1 -1
  21. package/dest/ecdsa/ecdsa_r/account_contract.d.ts.map +1 -1
  22. package/dest/ecdsa/ecdsa_r/account_contract.js +1 -1
  23. package/dest/ecdsa/ecdsa_r/index.d.ts +1 -1
  24. package/dest/ecdsa/ecdsa_r/index.d.ts.map +1 -1
  25. package/dest/ecdsa/ecdsa_r/lazy.d.ts +1 -1
  26. package/dest/ecdsa/ecdsa_r/lazy.d.ts.map +1 -1
  27. package/dest/ecdsa/index.d.ts +1 -1
  28. package/dest/ecdsa/lazy.d.ts +1 -1
  29. package/dest/ecdsa/ssh_ecdsa_r/account_contract.d.ts +1 -1
  30. package/dest/ecdsa/ssh_ecdsa_r/account_contract.d.ts.map +1 -1
  31. package/dest/ecdsa/ssh_ecdsa_r/account_contract.js +1 -1
  32. package/dest/ecdsa/ssh_ecdsa_r/index.d.ts +1 -1
  33. package/dest/ecdsa/ssh_ecdsa_r/index.d.ts.map +1 -1
  34. package/dest/ecdsa/ssh_ecdsa_r/lazy.d.ts +1 -1
  35. package/dest/ecdsa/ssh_ecdsa_r/lazy.d.ts.map +1 -1
  36. package/dest/schnorr/account_contract.d.ts +3 -2
  37. package/dest/schnorr/account_contract.d.ts.map +1 -1
  38. package/dest/schnorr/account_contract.js +1 -1
  39. package/dest/schnorr/index.d.ts +3 -2
  40. package/dest/schnorr/index.d.ts.map +1 -1
  41. package/dest/schnorr/lazy.d.ts +3 -2
  42. package/dest/schnorr/lazy.d.ts.map +1 -1
  43. package/dest/single_key/account_contract.d.ts +2 -2
  44. package/dest/single_key/account_contract.d.ts.map +1 -1
  45. package/dest/single_key/account_contract.js +1 -1
  46. package/dest/single_key/index.d.ts +1 -1
  47. package/dest/single_key/index.d.ts.map +1 -1
  48. package/dest/single_key/lazy.d.ts +1 -1
  49. package/dest/single_key/lazy.d.ts.map +1 -1
  50. package/dest/stub/account_contract.d.ts +2 -2
  51. package/dest/stub/account_contract.d.ts.map +1 -1
  52. package/dest/stub/index.d.ts +1 -1
  53. package/dest/stub/index.d.ts.map +1 -1
  54. package/dest/stub/lazy.d.ts +1 -1
  55. package/dest/stub/lazy.d.ts.map +1 -1
  56. package/dest/testing/configuration.d.ts +5 -4
  57. package/dest/testing/configuration.d.ts.map +1 -1
  58. package/dest/testing/configuration.js +1 -1
  59. package/dest/testing/index.d.ts +1 -1
  60. package/dest/testing/index.js +1 -1
  61. package/dest/testing/lazy.d.ts +1 -1
  62. package/dest/testing/lazy.js +1 -1
  63. package/dest/utils/index.d.ts +1 -1
  64. package/dest/utils/ssh_agent.d.ts +1 -1
  65. package/package.json +10 -9
  66. package/src/defaults/account_interface.ts +2 -3
  67. package/src/defaults/index.ts +1 -1
  68. package/src/ecdsa/ecdsa_k/account_contract.ts +2 -2
  69. package/src/ecdsa/ecdsa_r/account_contract.ts +2 -2
  70. package/src/ecdsa/ssh_ecdsa_r/account_contract.ts +2 -2
  71. package/src/schnorr/account_contract.ts +3 -2
  72. package/src/schnorr/index.ts +2 -1
  73. package/src/schnorr/lazy.ts +2 -1
  74. package/src/single_key/account_contract.ts +3 -2
  75. package/src/stub/account_contract.ts +1 -1
  76. package/src/testing/configuration.ts +2 -1
  77. package/src/testing/index.ts +1 -1
  78. package/src/testing/lazy.ts +1 -1
@@ -1,13 +1,12 @@
1
1
  import type { AccountInterface, AuthWitnessProvider } from '@aztec/aztec.js/account';
2
2
  import { DefaultAccountEntrypoint, type DefaultAccountEntrypointOptions } from '@aztec/entrypoints/account';
3
3
  import type { ChainInfo, EntrypointInterface } from '@aztec/entrypoints/interfaces';
4
- import type { ExecutionPayload } from '@aztec/entrypoints/payload';
5
- import { Fr } from '@aztec/foundation/fields';
4
+ import { Fr } from '@aztec/foundation/curves/bn254';
6
5
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
7
6
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
8
7
  import { CompleteAddress } from '@aztec/stdlib/contract';
9
8
  import type { GasSettings } from '@aztec/stdlib/gas';
10
- import type { TxExecutionRequest } from '@aztec/stdlib/tx';
9
+ import type { ExecutionPayload, TxExecutionRequest } from '@aztec/stdlib/tx';
11
10
 
12
11
  /**
13
12
  * Default implementation for an account interface. Requires that the account uses the default
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `@aztec/accounts/defaults` export provides the base class {@link DefaultAccountContract} for implementing account contracts that use the default entrypoint payload module.
3
3
  *
4
- * Read more in {@link https://docs.aztec.network/developers/tutorials/codealong/contract_tutorials/write_accounts_contract | Writing an account contract}.
4
+ * Read more in {@link https://docs.aztec.network/developers/tutorials/contract_tutorials/counter_contract | Writing an account contract}.
5
5
  *
6
6
  * @packageDocumentation
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { Ecdsa } from '@aztec/foundation/crypto';
3
- import type { Fr } from '@aztec/foundation/fields';
2
+ import { Ecdsa } from '@aztec/foundation/crypto/ecdsa';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import { CompleteAddress } from '@aztec/stdlib/contract';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { Ecdsa } from '@aztec/foundation/crypto';
3
- import type { Fr } from '@aztec/foundation/fields';
2
+ import { Ecdsa } from '@aztec/foundation/crypto/ecdsa';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import { CompleteAddress } from '@aztec/stdlib/contract';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { EcdsaSignature } from '@aztec/foundation/crypto';
3
- import type { Fr } from '@aztec/foundation/fields';
2
+ import { EcdsaSignature } from '@aztec/foundation/crypto/ecdsa';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
4
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
5
  import { CompleteAddress } from '@aztec/stdlib/contract';
6
6
 
@@ -1,6 +1,7 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { Schnorr } from '@aztec/foundation/crypto';
3
- import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
2
+ import { Schnorr } from '@aztec/foundation/crypto/schnorr';
3
+ import { Fr } from '@aztec/foundation/curves/bn254';
4
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
4
5
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
6
  import { CompleteAddress } from '@aztec/stdlib/contract';
6
7
 
@@ -6,7 +6,8 @@
6
6
  */
7
7
  import { getAccountContractAddress } from '@aztec/aztec.js/account';
8
8
  import type { AztecAddress } from '@aztec/aztec.js/addresses';
9
- import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
9
+ import { Fr } from '@aztec/foundation/curves/bn254';
10
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
10
11
  import type { ContractArtifact } from '@aztec/stdlib/abi';
11
12
  import { loadContractArtifact } from '@aztec/stdlib/abi';
12
13
  import { deriveSigningKey } from '@aztec/stdlib/keys';
@@ -5,7 +5,8 @@
5
5
  * @packageDocumentation
6
6
  */
7
7
  import { getAccountContractAddress } from '@aztec/aztec.js/account';
8
- import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
8
+ import { Fr } from '@aztec/foundation/curves/bn254';
9
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
9
10
  import type { ContractArtifact } from '@aztec/stdlib/abi';
10
11
  import { loadContractArtifact } from '@aztec/stdlib/abi';
11
12
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
@@ -1,6 +1,7 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { Schnorr } from '@aztec/foundation/crypto';
3
- import { type Fr, GrumpkinScalar } from '@aztec/foundation/fields';
2
+ import { Schnorr } from '@aztec/foundation/crypto/schnorr';
3
+ import type { Fr } from '@aztec/foundation/curves/bn254';
4
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
4
5
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
5
6
  import { CompleteAddress } from '@aztec/stdlib/contract';
6
7
 
@@ -1,5 +1,5 @@
1
1
  import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
2
- import { Fr } from '@aztec/foundation/fields';
2
+ import { Fr } from '@aztec/foundation/curves/bn254';
3
3
  import { AuthWitness } from '@aztec/stdlib/auth-witness';
4
4
  import { CompleteAddress } from '@aztec/stdlib/contract';
5
5
 
@@ -1,4 +1,5 @@
1
- import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
+ import { GrumpkinScalar } from '@aztec/foundation/curves/grumpkin';
2
3
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
3
4
  import { deriveMasterIncomingViewingSecretKey } from '@aztec/stdlib/keys';
4
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The `@aztec/accounts/testing` export provides utility methods for testing, in particular in a Sandbox environment.
2
+ * The `@aztec/accounts/testing` export provides utility methods for testing, in particular in a local network environment.
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The `@aztec/accounts/testing/lazy` export provides utility methods for testing, in particular in a Sandbox environment.
2
+ * The `@aztec/accounts/testing/lazy` export provides utility methods for testing, in particular in a local network environment.
3
3
  *
4
4
  * @packageDocumentation
5
5
  */