Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/developers/guides/js_apps/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install @aztec/aztec.js

At the top of your JavaScript file, you can import what you need, eg:

#include_code import_aztecjs yarn-project/end-to-end/src/e2e_simple.test.ts typescript
#include_code import_aztecjs yarn-project/end-to-end/src/e2e_2_pxes.test.ts typescript

## Flow

Expand All @@ -26,4 +26,4 @@ These are some of the important functions you'll need to use in your Aztec.js:
- [Create an account with `@aztec/accounts`](./create_account.md)
- [Deploy a contract](./deploy_contract.md)
- [Simulate a function call](./call_view_function.md)
- [Send a transaction](./send_transaction.md)
- [Send a transaction](./send_transaction.md)
2 changes: 2 additions & 0 deletions yarn-project/end-to-end/src/e2e_2_pxes.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { getSchnorrAccount } from '@aztec/accounts/schnorr';
import { type InitialAccountData, deployFundedSchnorrAccount } from '@aztec/accounts/testing';
// docs:start:import_aztecjs
import { type AztecAddress, type AztecNode, Fr, type Logger, type PXE, type Wallet, sleep } from '@aztec/aztec.js';
// docs:end:import_aztecjs
import { ChildContract } from '@aztec/noir-contracts.js/Child';
import { TokenContract } from '@aztec/noir-contracts.js/Token';

Expand Down
2 changes: 0 additions & 2 deletions yarn-project/end-to-end/src/e2e_simple.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// docs:start:import_aztecjs
import type { AztecNodeConfig } from '@aztec/aztec-node';
import { type AztecNode, ContractDeployer, Fr, type Wallet, waitForProven } from '@aztec/aztec.js';
// docs:end:import_aztecjs
// eslint-disable-next-line no-restricted-imports
import { EthAddress } from '@aztec/foundation/eth-address';
import { StatefulTestContractArtifact } from '@aztec/noir-contracts.js/StatefulTest';
Expand Down
Loading