Gatekeeper SDK
Type-safe utilities for deploying contracts, managing sales, and executing purchases on the Gatekeeper protocol.

Installation
pnpm
pnpm add @sceneinfrastructure/sdkQuick Example
import {
Factory,
MINTER_ROLE,
gatekeeper1155FactoryAddress,
gatekeeper1155Address,
gatekeeperAddress,
} from '@sceneinfrastructure/sdk'
const chainId = 8453 // Base
const { to, data, predictedAddress } = Factory.prepareDeploy({
factory: gatekeeper1155FactoryAddress[chainId],
implementation: gatekeeper1155Address[chainId],
nonce: BigInt(Date.now()),
creator: '0x3456789012345678901234567890123456789012',
owner: '0x3456789012345678901234567890123456789012',
contractURI: 'ipfs://...',
calls: [
Factory.encodeGrantRoles({ user: gatekeeperAddress[chainId], roles: MINTER_ROLE }),
],
})
console.log('Predicted address:', predictedAddress)Next Steps
- Getting Started - Install and configure the SDK
- Quickstart - End-to-end path from deploy to first sale
- Deploying Contracts - Deploy your first Gatekeeper1155 contract
- Managing Sales - Register and configure ticket sales
- API Reference - Full API documentation