# arl:prepare-single-side-pool — Ammora SDK 0.3.8 arl:prepare-single-side-pool -- . Read-only; no permanent-lock assumption. [Read in Docs](https://docs.ammora.org/examples?command=arl%3Aprepare-single-side-pool) · [Detailed guide](https://docs.ammora.org/guides/src-arl-readme) · [Local setup](https://docs.ammora.org/guides/example-setup) ## Context and execution GIWA Sepolia 91342. Public SDK 0.3.8, Math 0.3.0. Source revision: `a9b3fd798fa51495e8defec99a25de59e4d70672`. Install the SDK in your app, or prepare the example project using the local setup guide for its npm commands. Review the entry source and guide for required arguments, roles and deployment selection. `AMMORA_SEND=0` does not turn send-only commands into previews. Never put CLI keys in a browser or resend an uncertain transaction. Command: `npm run arl:prepare-single-side-pool -- ` (`tsx src/arl/prepare-single-side-pool.ts`). Omit `--` and arguments when the source accepts none. ## Entry file: `src/arl/prepare-single-side-pool.ts` ```typescript /** arl:prepare-single-side-pool -- . Read-only; no permanent-lock assumption. */ import { zeroAddress } from "viem"; import { DammV2Client } from "@ammora-protocol/sdk"; import { address, clientOptions, deployment, reader } from "../shared/env.js"; import { caller, natural } from "../shared/actions.js"; import { printJson } from "../shared/input.js"; import { main } from "../shared/run.js"; main(async () => { const [base, quote, side, amount, minimum, maximum, salt] = process.argv.slice(2); if (side !== "base" && side !== "quote") throw new Error("tokenSide must be base or quote"); if (!/^0x[0-9a-fA-F]{64}$/.test(salt ?? "")) throw new Error("salt must be 32 bytes"); const client = await reader(), c = deployment().contracts.launch, block = await client.getBlock(); // There is no pool yet. The factory and deployment source authenticate preparation. const sdk = new DammV2Client(client, zeroAddress, "concentrated", c.concentratedFactory, c.concentratedPositionManager, clientOptions()); const plan = await sdk.preparePoolCreationSingleSide({ baseToken: address("BASE_TOKEN", base), quoteToken: address("QUOTE_TOKEN", quote), creator: caller(), feeBps: 100, sqrtMinPrice: natural(minimum, "sqrtMinQ64", true), sqrtMaxPrice: natural(maximum, "sqrtMaxQ64", true), activationType: 0, activationPoint: Number(block.timestamp), collectFeeMode: 0, userSalt: salt as `0x${string}`, tokenSide: side, tokenAmount: natural(amount, "amountRaw", true) }); printJson({ plan, sendEnabled: false, tokenPolicyAndCreationPermissionVerified: false }); }); ``` ## Supporting files Keep relative paths intact. Local imports are listed recursively; JSON templates are choices to review, not approved inputs. Runtime-selected files and wallet/environment setup still follow the detailed guide. - [src/shared/actions.ts](https://docs.ammora.org/examples/source/src/shared/actions.ts.txt) - [src/shared/env.ts](https://docs.ammora.org/examples/source/src/shared/env.ts.txt) - [src/shared/input.ts](https://docs.ammora.org/examples/source/src/shared/input.ts.txt) - [src/shared/retry.ts](https://docs.ammora.org/examples/source/src/shared/retry.ts.txt) - [src/shared/rpc.ts](https://docs.ammora.org/examples/source/src/shared/rpc.ts.txt) - [src/shared/run.ts](https://docs.ammora.org/examples/source/src/shared/run.ts.txt) - [package.json](https://docs.ammora.org/examples/source/package.json.txt) - [package-lock.json](https://docs.ammora.org/examples/source/package-lock.json.txt) - [tsconfig.json](https://docs.ammora.org/examples/source/tsconfig.json.txt) - [.env.giwa.example](https://docs.ammora.org/examples/source/file.env.giwa.example.txt) - [.nvmrc](https://docs.ammora.org/examples/source/file.nvmrc.txt) ## AI implementation checklist Use the actual SDK exports and parameter types in the linked files. Start with reads and unsigned plans where supported. Use a connected wallet for browser signing. Preserve raw integer units, exact approvals, caller authority, deadlines and receipt reconciliation. Report local checks separately from live-chain verification.