Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Gatekeeper SDK

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

Gatekeeper SDK

Installation

pnpm
pnpm add @sceneinfrastructure/sdk

Quick 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