crates/aptos-faucet/ts-client/README.md
pnpm add @aptos-labs/aptos-faucet-client
For Javascript or Typescript usage, check out the [./examples][examples] folder with ready-made package.json files to get you going quickly!
If you are using the types in a commonjs module, like in a Node app, you just have to enable esModuleInterop
and allowSyntheticDefaultImports in your tsconfig for types compatibility:
{
...
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
...
}
}
pnpm install
To generate the client from the spec, run:
pnpm generate-client
Run a faucet locally. See the README in the root for information on how to do that.
Run the tests:
pnpm test
If you see strange behavior regarding HTTP clients, try running the tests with --detectOpenHandles.
This project follows semver as closely as possible.
To release a new version of the SDK do the following.
pnpm generate-client
pnpm test
package.json according to semver.pnpm checked-publish manually.