Contract 63d0345d3f5ed8666bdd5d73b8d9541d1e92e4db9837bd589095063e3730b571

← Back to Index 📥 Download WASM

Meta

rssdkver 23.5.1#59fcef437260ed4da42d1efb357137a5c166c02e
rsver 1.93.0

Instances

  • CDNMNOMCY4WT3IL4ERB7OEBXAR64WMMJOREO2UAJZZW7OOTVFTVUJNPM

Interface

fn burn(env: soroban_sdk::Env, from: soroban_sdk::Address, token_id: u32)

Admin mint — always available

fn mint(env: soroban_sdk::Env, to: soroban_sdk::Address) -> u32
fn name(env: soroban_sdk::Env) -> soroban_sdk::String
fn ping(env: soroban_sdk::Env) -> u32

Public: claim a token assigned to you

fn claim(env: soroban_sdk::Env, token_id: u32, claimer: soroban_sdk::Address)
fn pause(env: soroban_sdk::Env)
fn paused(env: soroban_sdk::Env) -> bool
fn symbol(env: soroban_sdk::Env) -> soroban_sdk::String
fn approve(
    env: soroban_sdk::Env,
    approver: soroban_sdk::Address,
    approved: soroban_sdk::Address,
    token_id: u32,
    live_until_ledger: u32,
)
fn balance(env: soroban_sdk::Env, account: soroban_sdk::Address) -> u32
fn unpause(env: soroban_sdk::Env)
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
fn version(env: soroban_sdk::Env) -> u32
fn base_uri(env: soroban_sdk::Env) -> soroban_sdk::String
fn decimals(env: soroban_sdk::Env) -> u32
fn owner_of(env: soroban_sdk::Env, token_id: u32) -> soroban_sdk::Address
fn transfer(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
    token_id: u32,
)
fn burn_from(
    env: soroban_sdk::Env,
    spender: soroban_sdk::Address,
    from: soroban_sdk::Address,
    token_id: u32,
)

Returns Some(Address) if ownership is set, or None if ownership has been renounced.

Arguments

  • e - Access to the Soroban environment.
fn get_owner(env: soroban_sdk::Env) -> Option
fn token_uri(env: soroban_sdk::Env, token_id: u32) -> soroban_sdk::String

Admin batch mint

fn mint_batch(env: soroban_sdk::Env, to: soroban_sdk::Address, count: u32) -> u32

Batch claim — max 10 per TX

fn batch_claim(
    env: soroban_sdk::Env,
    ids: soroban_sdk::Vec,
    claimer: soroban_sdk::Address,
)

Public mint — anyone can mint when active (max 3 per wallet)

fn public_mint(env: soroban_sdk::Env, to: soroban_sdk::Address) -> u32
fn get_approved(env: soroban_sdk::Env, token_id: u32) -> Option
fn get_claimant(env: soroban_sdk::Env, token_id: u32) -> Option
fn is_claimable(env: soroban_sdk::Env, token_id: u32) -> bool
fn royalty_info(
    env: soroban_sdk::Env,
    token_id: u32,
    sale_price: i128,
) -> (soroban_sdk::Address, i128)
fn set_base_uri(env: soroban_sdk::Env, uri: soroban_sdk::String)
fn total_minted(env: soroban_sdk::Env) -> u32
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    base_uri: soroban_sdk::String,
    royalty_recipient: soroban_sdk::Address,
)

Admin: make a token claimable (transfer to contract, set claimant)

fn set_claimable(
    env: soroban_sdk::Env,
    token_id: u32,
    claimant: Option,
)
fn set_token_uri(env: soroban_sdk::Env, token_id: u32, uri: soroban_sdk::String)
fn transfer_from(
    env: soroban_sdk::Env,
    spender: soroban_sdk::Address,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
    token_id: u32,
)

Batch transfer — max 15 per TX

fn batch_transfer(
    env: soroban_sdk::Env,
    from: soroban_sdk::Address,
    to: soroban_sdk::Address,
    ids: soroban_sdk::Vec,
)
fn approve_for_all(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    operator: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn set_public_mint(env: soroban_sdk::Env, active: bool)

Accepts a pending ownership transfer.

Arguments

  • e - Access to the Soroban environment.

Errors

  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If there is no pending transfer to accept.

Events

  • topics - ["ownership_transfer_completed"]
  • data - [new_owner: Address]
fn accept_ownership(env: soroban_sdk::Env)
fn public_mint_active(env: soroban_sdk::Env) -> bool

Renounces ownership of the contract.

Permanently removes the owner, disabling all functions gated by #[only_owner].

Arguments

  • e - Access to the Soroban environment.

Errors

  • [OwnableError::TransferInProgress] - If there is a pending ownership transfer.
  • [OwnableError::OwnerNotSet] - If the owner is not set.

Notes

  • Authorization for the current owner is required.
fn renounce_ownership(env: soroban_sdk::Env)

Initiates a 2-step ownership transfer to a new address.

Requires authorization from the current owner. The new owner must later call accept_ownership() to complete the transfer.

Arguments

  • e - Access to the Soroban environment.
  • new_owner - The proposed new owner.
  • live_until_ledger - Ledger number until which the new owner can accept. A value of 0 cancels any pending transfer.

Errors

  • [OwnableError::OwnerNotSet] - If the owner is not set.
  • [crate::role_transfer::RoleTransferError::NoPendingTransfer] - If trying to cancel a transfer that doesn't exist.
  • [crate::role_transfer::RoleTransferError::InvalidLiveUntilLedger] - If the specified ledger is in the past.
  • [crate::role_transfer::RoleTransferError::InvalidPendingAccount] - If the specified pending account is not the same as the provided new address.

Notes

  • Authorization for the current owner is required.
fn transfer_ownership(
    env: soroban_sdk::Env,
    new_owner: soroban_sdk::Address,
    live_until_ledger: u32,
)
fn is_approved_for_all(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    operator: soroban_sdk::Address,
) -> bool

Batch make claimable — max 8 per TX

fn batch_make_claimable(
    env: soroban_sdk::Env,
    ids: soroban_sdk::Vec,
    claimant: Option,
)
fn set_royalty_recipient(env: soroban_sdk::Env, recipient: soroban_sdk::Address)

Imports

WebAssembly Text (WAT) ▶