> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecarry.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployments

> Live Carry package and object IDs on Sui mainnet and testnet, and how to publish your own.

Carry's `carry::access` module is live on **Sui mainnet** and testnet. The app reads these IDs from `deployments/`, so the verifier works out of the box on either network.

## Mainnet (live)

| Object | ID |
| - | - |
| **Package** | [`0xeaf4e6e4…4032d8`](https://suiscan.xyz/mainnet/object/0xeaf4e6e4e96e4f50dfcf2f4beebe3bacb766ad6cbf352b0982bd9631884032d8) |
| **AccessPolicy** (shared) | [`0x53e6e9f0…b1a288`](https://suiscan.xyz/mainnet/object/0x53e6e9f02cce2b106fb0e1e17280e7a0c94ba8ebb0b0fadf09e886cfd9b1a288) |
| **CarryVault** (portable memory) | [`0x10654b96…1bbc413`](https://suiscan.xyz/mainnet/object/0x10654b9653a2579334982185710dd306000452530d856b8d71560fb4c1bbc413) |

> [card] [Verify a live mainnet proof](https://usecarry.xyz/verify/0x1d9f44e0b8599b199f3b313775a3a639e7d96f012d0dd01996a34c80816376b8?network=mainnet)
>
> Four checks — hash chain, content binding, authorization recomputed, and the policy version the chain accepted.

> [card] [A sealed proof — verifies while revealing nothing](https://usecarry.xyz/verify/0x0837e76b15e3ef448069909c5c6eb188651c50863e927e2853f3cf62265e8f71?network=mainnet)
>
> Its public Walrus blob carries salted commitments instead of the memory itself.

Earlier packages stay deployed and their receipts keep verifying — the verifier resolves each receipt's package from its own object type.

## Testnet (live)

> [card] Package ID
>
> `0xf7acc10ee3de95ed5bb4560e48d5bf4a4e24f7c4003b892b56632c7ff398b6f9`

| Object | ID |
| - | - |
| **Package** | `0xf7acc10ee3de95ed5bb4560e48d5bf4a4e24f7c4003b892b56632c7ff398b6f9` |
| **AccessPolicy** (shared) | `0x7bac6b5168a646d7ef06a05fcdebb1526a831bae91c42bb1fd295f976af2cd51` |
| **OwnerCap** (owned) | `0xf274f5d02a19930445069f024b28de3cb5ed9ac49bbe7bbedeea54582db89777` |
| **Example Receipt** (demo) | `0xd84de0fd4d5d4c76c43620f780a6c1c6f2ecab38d183a0e37ea5b62b424765f7` |

> [card] [View a testnet proof](https://usecarry.xyz/verify/0xd84de0fd4d5d4c76c43620f780a6c1c6f2ecab38d183a0e37ea5b62b424765f7)
>
> Open the walletless verifier for a testnet Receipt — all three checks green.

## Configuration

The canonical IDs live in [`deployments/testnet.json`](https://github.com/Enoch208/carry/blob/main/deployments/testnet.json). The app reads them (with env overrides) in `apps/web/lib/sui.ts`:

```ts theme={null}
// apps/web/lib/sui.ts
export const PKG    = process.env.CARRY_PACKAGE_ID    || "0xf7acc10e…398b6f9"; // carry::access
export const POLICY = process.env.CARRY_ACCESS_POLICY || "0x7bac6b51…f2cd51"; // shared AccessPolicy
const RPC_URL = process.env.SUI_RPC_URL || "https://sui-testnet-rpc.publicnode.com";
const CLOCK   = "0x6"; // the shared Clock, fixed on every Sui network
```

> [!NOTE]
>
> On-chain reads (the verifier's `getObject` + `is_allowed` via `devInspect`) go through a public RPC — the `fullnode.testnet.sui.io` endpoint no longer serves raw JSON-RPC, so Carry points at `sui-testnet-rpc.publicnode.com` by default (override with `SUI_RPC_URL`).

## Publish your own

**1. Switch to testnet and fund gas**

```bash theme={null}
sui client switch --env testnet
sui client active-address
sui client gas   # need ~0.2 SUI; faucet at https://faucet.sui.io
```

**2. Publish**

```bash theme={null}
cd contracts
sui client publish --gas-budget 200000000 --json > publish.json
```

Grab the new `packageId` from the published `objectChanges`.

**3. Create your policy**

`publish` doesn't call `create()`, so make your shared `AccessPolicy` + `OwnerCap`:

```bash theme={null}
sui client call --package <packageId> --module access --function create --gas-budget 50000000
```

**4. Update deployments/testnet.json**

Set `packageId`, `accessPolicy`, `ownerCap`, and `owner` to the new values — the app picks them up automatically.

> [!WARNING]
>
> The Carry contract changes (new `Receipt` object, new `anchor_receipt` signature) are **breaking**, so a fresh `publish` — not an in-place `upgrade` — is required.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.