Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Contract

Hierarchy

  • Contract

Index

Constructors

Properties

Methods

Constructors

  • new Contract(account: Account, contractId: string): Contract

Properties

account: Account
contractId: string

Methods

  • add_admin(args: { account_id: string }, options?: ChangeMethodOptions): Promise<boolean>
  • Add a new admin. Careful who you add!

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { account_id: string }
      • account_id: string
    • Optional options: ChangeMethodOptions

    Returns Promise<boolean>

  • add_adminRaw(args: { account_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
  • Add a new admin. Careful who you add!

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { account_id: string }
      • account_id: string
    • Optional options: ChangeMethodOptions

    Returns Promise<FinalExecutionOutcome>

  • add_adminTx(args: { account_id: string }, options?: ChangeMethodOptions): Action
  • Add a new admin. Careful who you add!

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { account_id: string }
      • account_id: string
    • Optional options: ChangeMethodOptions

    Returns Action

  • add_whitelist_accounts(args: { accounts: string[]; max_allowance?: number }, options?: ChangeMethodOptions): Promise<boolean>
  • Add whitelist accounts at a given max allowance

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { accounts: string[]; max_allowance?: number }
      • accounts: string[]
      • Optional max_allowance?: number
    • Optional options: ChangeMethodOptions

    Returns Promise<boolean>

  • add_whitelist_accountsRaw(args: { accounts: string[]; max_allowance?: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
  • Add whitelist accounts at a given max allowance

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { accounts: string[]; max_allowance?: number }
      • accounts: string[]
      • Optional max_allowance?: number
    • Optional options: ChangeMethodOptions

    Returns Promise<FinalExecutionOutcome>

  • add_whitelist_accountsTx(args: { accounts: string[]; max_allowance?: number }, options?: ChangeMethodOptions): Action
  • Add whitelist accounts at a given max allowance

    allow

    ["::admins", "::owner"]

    Parameters

    • args: { accounts: string[]; max_allowance?: number }
      • accounts: string[]
      • Optional max_allowance?: number
    • Optional options: ChangeMethodOptions

    Returns Action

  • admins(args?: {}, options?: ViewFunctionOptions): Promise<string[]>
  • Current set of admins

    Parameters

    • args: {} = {}
      • Optional options: ViewFunctionOptions

      Returns Promise<string[]>

    • check_key(args: { public_key: string }, options?: ViewFunctionOptions): Promise<boolean>
    • Parameters

      • args: { public_key: string }
        • public_key: string
      • Optional options: ViewFunctionOptions

      Returns Promise<boolean>

    • close_sale(args?: {}, options?: ChangeMethodOptions): Promise<boolean>
    • End public sale/minting, going back to the pre-presale state in which no one can mint.

      allow

      ["::admins", "::owner"]

      Parameters

      • args: {} = {}
        • Optional options: ChangeMethodOptions

        Returns Promise<boolean>

      • close_saleRaw(args?: {}, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
      • End public sale/minting, going back to the pre-presale state in which no one can mint.

        allow

        ["::admins", "::owner"]

        Parameters

        • args: {} = {}
          • Optional options: ChangeMethodOptions

          Returns Promise<FinalExecutionOutcome>

        • close_saleTx(args?: {}, options?: ChangeMethodOptions): Action
        • End public sale/minting, going back to the pre-presale state in which no one can mint.

          allow

          ["::admins", "::owner"]

          Parameters

          • args: {} = {}
            • Optional options: ChangeMethodOptions

            Returns Action

          • cost_of_linkdrop(args: { minter: string }, options?: ViewFunctionOptions): Promise<string>
          • Cost of NFT + fees for linkdrop

            Parameters

            • args: { minter: string }
              • minter: string
            • Optional options: ViewFunctionOptions

            Returns Promise<string>

          • cost_per_token(args: { minter: string }, options?: ViewFunctionOptions): Promise<string>
          • Flat cost of one token

            Parameters

            • args: { minter: string }
              • minter: string
            • Optional options: ViewFunctionOptions

            Returns Promise<string>

          • create_linkdrop(args: { public_key: string }, options?: ChangeMethodOptions): Promise<void>
          • Create a pending token that can be claimed with corresponding private key

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Promise<void>

          • create_linkdropRaw(args: { public_key: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
          • Create a pending token that can be claimed with corresponding private key

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Promise<FinalExecutionOutcome>

          • create_linkdropTx(args: { public_key: string }, options?: ChangeMethodOptions): Action
          • Create a pending token that can be claimed with corresponding private key

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Action

          • delete_linkdrop(args: { public_key: string }, options?: ChangeMethodOptions): Promise<void>
          • Delete an linkdrop and decrease the number of pending tokens.

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Promise<void>

          • delete_linkdropRaw(args: { public_key: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
          • Delete an linkdrop and decrease the number of pending tokens.

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Promise<FinalExecutionOutcome>

          • delete_linkdropTx(args: { public_key: string }, options?: ChangeMethodOptions): Action
          • Delete an linkdrop and decrease the number of pending tokens.

            allow

            ["::admins", "::owner"]

            Parameters

            • args: { public_key: string }
              • public_key: string
            • Optional options: ChangeMethodOptions

            Returns Action

          • get_key_balance(args?: {}, options?: ViewFunctionOptions): Promise<string>
          • Returns the balance associated with given key.

            Parameters

            • args: {} = {}
              • Optional options: ViewFunctionOptions

              Returns Promise<string>

            • get_linkdrop_contract(args?: {}, options?: ViewFunctionOptions): Promise<string>
            • Parameters

              • args: {} = {}
                • Optional options: ViewFunctionOptions

                Returns Promise<string>

              • get_sale_info(args?: {}, options?: ViewFunctionOptions): Promise<SaleInfo>
              • Information about the current sale. When in starts, status, price, and how many could be minted.

                Parameters

                • args: {} = {}
                  • Optional options: ViewFunctionOptions

                  Returns Promise<SaleInfo>

                • get_user_sale_info(args: { account_id: string }, options?: ViewFunctionOptions): Promise<UserSaleInfo>
                • Information about a current user. Whether they are VIP and how many tokens left in their allowance.

                  Parameters

                  • args: { account_id: string }
                    • account_id: string
                  • Optional options: ViewFunctionOptions

                  Returns Promise<UserSaleInfo>

                • initial(args?: {}, options?: ViewFunctionOptions): Promise<number>
                • Initial size of collection. Number left to raffle + current total supply

                  Parameters

                  • args: {} = {}
                    • Optional options: ViewFunctionOptions

                    Returns Promise<number>

                  • mint_rate_limit(args?: {}, options?: ViewFunctionOptions): Promise<null | number>
                  • Max number of mints in one transaction. None, means unlimited

                    Parameters

                    • args: {} = {}
                      • Optional options: ViewFunctionOptions

                      Returns Promise<null | number>

                    • new(args: { media_extension?: string; metadata: NftContractMetadata; owner_id: string; sale: Sale; size: number }, options?: ChangeMethodOptions): Promise<void>
                    • Parameters

                      • args: { media_extension?: string; metadata: NftContractMetadata; owner_id: string; sale: Sale; size: number }
                      • Optional options: ChangeMethodOptions

                      Returns Promise<void>

                    • newRaw(args: { media_extension?: string; metadata: NftContractMetadata; owner_id: string; sale: Sale; size: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                    • Parameters

                      • args: { media_extension?: string; metadata: NftContractMetadata; owner_id: string; sale: Sale; size: number }
                      • Optional options: ChangeMethodOptions

                      Returns Promise<FinalExecutionOutcome>

                    • newTx(args: { media_extension?: string; metadata: NftContractMetadata; owner_id: string; sale: Sale; size: number }, options?: ChangeMethodOptions): Action
                    • new_default_meta(args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }, options?: ChangeMethodOptions): Promise<void>
                    • Parameters

                      • args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }
                        • Optional media_extension?: string
                        • metadata: InitialMetadata
                        • owner_id: string
                        • Optional sale?: Sale
                        • size: number
                      • Optional options: ChangeMethodOptions

                      Returns Promise<void>

                    • new_default_metaRaw(args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                    • Parameters

                      • args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }
                        • Optional media_extension?: string
                        • metadata: InitialMetadata
                        • owner_id: string
                        • Optional sale?: Sale
                        • size: number
                      • Optional options: ChangeMethodOptions

                      Returns Promise<FinalExecutionOutcome>

                    • new_default_metaTx(args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }, options?: ChangeMethodOptions): Action
                    • Parameters

                      • args: { media_extension?: string; metadata: InitialMetadata; owner_id: string; sale?: Sale; size: number }
                        • Optional media_extension?: string
                        • metadata: InitialMetadata
                        • owner_id: string
                        • Optional sale?: Sale
                        • size: number
                      • Optional options: ChangeMethodOptions

                      Returns Action

                    • nft_approve(args: { account_id: string; msg?: string; token_id: string }, options?: ChangeMethodOptions): Promise<void>
                    • Add an approved account for a specific token.

                      Requirements

                      • Caller of the method must attach a deposit of at least 1 yoctoⓃ for security purposes
                      • Contract MAY require caller to attach larger deposit, to cover cost of storing approver data
                      • Contract MUST panic if called by someone other than token owner
                      • Contract MUST panic if addition would cause nft_revoke_all to exceed single-block gas limit
                      • Contract MUST increment approval ID even if re-approving an account
                      • If successfully approved or if had already been approved, and if msg is present, contract MUST call nft_on_approve on account_id. See nft_on_approve description below for details.

                      Arguments:

                      • token_id: the token for which to add an approval
                      • account_id: the account to add to approvals
                      • msg: optional string to be passed to nft_on_approve

                      Returns void, if no msg given. Otherwise, returns promise call to nft_on_approve, which can resolve with whatever it wants.

                      Parameters

                      • args: { account_id: string; msg?: string; token_id: string }
                        • account_id: string
                        • Optional msg?: string
                        • token_id: string
                      • Optional options: ChangeMethodOptions

                      Returns Promise<void>

                    • nft_approveRaw(args: { account_id: string; msg?: string; token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                    • Add an approved account for a specific token.

                      Requirements

                      • Caller of the method must attach a deposit of at least 1 yoctoⓃ for security purposes
                      • Contract MAY require caller to attach larger deposit, to cover cost of storing approver data
                      • Contract MUST panic if called by someone other than token owner
                      • Contract MUST panic if addition would cause nft_revoke_all to exceed single-block gas limit
                      • Contract MUST increment approval ID even if re-approving an account
                      • If successfully approved or if had already been approved, and if msg is present, contract MUST call nft_on_approve on account_id. See nft_on_approve description below for details.

                      Arguments:

                      • token_id: the token for which to add an approval
                      • account_id: the account to add to approvals
                      • msg: optional string to be passed to nft_on_approve

                      Returns void, if no msg given. Otherwise, returns promise call to nft_on_approve, which can resolve with whatever it wants.

                      Parameters

                      • args: { account_id: string; msg?: string; token_id: string }
                        • account_id: string
                        • Optional msg?: string
                        • token_id: string
                      • Optional options: ChangeMethodOptions

                      Returns Promise<FinalExecutionOutcome>

                    • nft_approveTx(args: { account_id: string; msg?: string; token_id: string }, options?: ChangeMethodOptions): Action
                    • Add an approved account for a specific token.

                      Requirements

                      • Caller of the method must attach a deposit of at least 1 yoctoⓃ for security purposes
                      • Contract MAY require caller to attach larger deposit, to cover cost of storing approver data
                      • Contract MUST panic if called by someone other than token owner
                      • Contract MUST panic if addition would cause nft_revoke_all to exceed single-block gas limit
                      • Contract MUST increment approval ID even if re-approving an account
                      • If successfully approved or if had already been approved, and if msg is present, contract MUST call nft_on_approve on account_id. See nft_on_approve description below for details.

                      Arguments:

                      • token_id: the token for which to add an approval
                      • account_id: the account to add to approvals
                      • msg: optional string to be passed to nft_on_approve

                      Returns void, if no msg given. Otherwise, returns promise call to nft_on_approve, which can resolve with whatever it wants.

                      Parameters

                      • args: { account_id: string; msg?: string; token_id: string }
                        • account_id: string
                        • Optional msg?: string
                        • token_id: string
                      • Optional options: ChangeMethodOptions

                      Returns Action

                    • nft_is_approved(args: { approval_id?: number; approved_account_id: string; token_id: string }, options?: ViewFunctionOptions): Promise<boolean>
                    • Check if a token is approved for transfer by a given account, optionally checking an approval_id

                      Arguments:

                      • token_id: the token for which to revoke an approval
                      • approved_account_id: the account to check the existence of in approvals
                      • approval_id: an optional approval ID to check against current approval ID for given account

                      Returns: if approval_id given, true if approved_account_id is approved with given approval_id otherwise, true if approved_account_id is in list of approved accounts

                      Parameters

                      • args: { approval_id?: number; approved_account_id: string; token_id: string }
                        • Optional approval_id?: number
                        • approved_account_id: string
                        • token_id: string
                      • Optional options: ViewFunctionOptions

                      Returns Promise<boolean>

                    • Part of the NFT metadata standard. Returns the contract's metadata

                      Parameters

                      • args: {} = {}
                        • Optional options: ViewFunctionOptions

                        Returns Promise<NftContractMetadata>

                      • nft_mint(args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }, options?: ChangeMethodOptions): Promise<Token>
                      • Parameters

                        • args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }
                          • token_id: string
                          • token_metadata: TokenMetadata
                          • token_owner_id: string
                        • Optional options: ChangeMethodOptions

                        Returns Promise<Token>

                      • nft_mintRaw(args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                      • Parameters

                        • args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }
                          • token_id: string
                          • token_metadata: TokenMetadata
                          • token_owner_id: string
                        • Optional options: ChangeMethodOptions

                        Returns Promise<FinalExecutionOutcome>

                      • nft_mintTx(args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }, options?: ChangeMethodOptions): Action
                      • Parameters

                        • args: { token_id: string; token_metadata: TokenMetadata; token_owner_id: string }
                          • token_id: string
                          • token_metadata: TokenMetadata
                          • token_owner_id: string
                        • Optional options: ChangeMethodOptions

                        Returns Action

                      • nft_mint_many(args: { num: number }, options?: ChangeMethodOptions): Promise<Token[]>
                      • Parameters

                        • args: { num: number }
                          • num: number
                        • Optional options: ChangeMethodOptions

                        Returns Promise<Token[]>

                      • nft_mint_manyRaw(args: { num: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                      • Parameters

                        • args: { num: number }
                          • num: number
                        • Optional options: ChangeMethodOptions

                        Returns Promise<FinalExecutionOutcome>

                      • nft_mint_manyTx(args: { num: number }, options?: ChangeMethodOptions): Action
                      • Parameters

                        • args: { num: number }
                          • num: number
                        • Optional options: ChangeMethodOptions

                        Returns Action

                      • nft_mint_one(args?: {}, options?: ChangeMethodOptions): Promise<Token>
                      • Parameters

                        • args: {} = {}
                          • Optional options: ChangeMethodOptions

                          Returns Promise<Token>

                        • nft_mint_oneRaw(args?: {}, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                        • Parameters

                          • args: {} = {}
                            • Optional options: ChangeMethodOptions

                            Returns Promise<FinalExecutionOutcome>

                          • nft_mint_oneTx(args?: {}, options?: ChangeMethodOptions): Action
                          • Parameters

                            • args: {} = {}
                              • Optional options: ChangeMethodOptions

                              Returns Action

                            • nft_payout(args: { balance: string; max_len_payout?: number; token_id: string }, options?: ViewFunctionOptions): Promise<Payout>
                            • Parameters

                              • args: { balance: string; max_len_payout?: number; token_id: string }
                                • balance: string
                                • Optional max_len_payout?: number
                                • token_id: string
                              • Optional options: ViewFunctionOptions

                              Returns Promise<Payout>

                            • nft_revoke(args: { account_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<void>
                            • Revoke an approved account for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund associated storage deposit when owner revokes approval
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token for which to revoke an approval
                              • account_id: the account to remove from approvals

                              Parameters

                              • args: { account_id: string; token_id: string }
                                • account_id: string
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Promise<void>

                            • nft_revokeRaw(args: { account_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                            • Revoke an approved account for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund associated storage deposit when owner revokes approval
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token for which to revoke an approval
                              • account_id: the account to remove from approvals

                              Parameters

                              • args: { account_id: string; token_id: string }
                                • account_id: string
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Promise<FinalExecutionOutcome>

                            • nft_revokeTx(args: { account_id: string; token_id: string }, options?: ChangeMethodOptions): Action
                            • Revoke an approved account for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund associated storage deposit when owner revokes approval
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token for which to revoke an approval
                              • account_id: the account to remove from approvals

                              Parameters

                              • args: { account_id: string; token_id: string }
                                • account_id: string
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Action

                            • nft_revoke_all(args: { token_id: string }, options?: ChangeMethodOptions): Promise<void>
                            • Revoke all approved accounts for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund all associated storage deposit when owner revokes approvals
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token with approvals to revoke

                              Parameters

                              • args: { token_id: string }
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Promise<void>

                            • nft_revoke_allRaw(args: { token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                            • Revoke all approved accounts for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund all associated storage deposit when owner revokes approvals
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token with approvals to revoke

                              Parameters

                              • args: { token_id: string }
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Promise<FinalExecutionOutcome>

                            • nft_revoke_allTx(args: { token_id: string }, options?: ChangeMethodOptions): Action
                            • Revoke all approved accounts for a specific token.

                              Requirements

                              • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                              • If contract requires >1yN deposit on nft_approve, contract MUST refund all associated storage deposit when owner revokes approvals
                              • Contract MUST panic if called by someone other than token owner

                              Arguments:

                              • token_id: the token with approvals to revoke

                              Parameters

                              • args: { token_id: string }
                                • token_id: string
                              • Optional options: ChangeMethodOptions

                              Returns Action

                            • nft_supply_for_owner(args: { account_id: string }, options?: ViewFunctionOptions): Promise<string>
                            • Get number of tokens owned by a given account

                              Arguments:

                              • account_id: a valid NEAR account

                              Returns the number of non-fungible tokens owned by given account_id as a string representing the value as an unsigned 128-bit integer to avoid JSON number limit of 2^53.

                              Parameters

                              • args: { account_id: string }
                                • account_id: string
                              • Optional options: ViewFunctionOptions

                              Returns Promise<string>

                            • nft_token(args: { token_id: string }, options?: ViewFunctionOptions): Promise<null | Token>
                            • Returns the token with the given token_id or null if no such token.

                              Parameters

                              • args: { token_id: string }
                                • token_id: string
                              • Optional options: ViewFunctionOptions

                              Returns Promise<null | Token>

                            • nft_tokens(args: { from_index?: string; limit?: number }, options?: ViewFunctionOptions): Promise<Token[]>
                            • Get a list of all tokens

                              Arguments:

                              • from_index: a string representing an unsigned 128-bit integer, representing the starting index of tokens to return. (default 0)
                              • limit: the maximum number of tokens to return (default total supply) Could fail on gas

                              Returns an array of Token objects, as described in Core standard

                              Parameters

                              • args: { from_index?: string; limit?: number }
                                • Optional from_index?: string
                                • Optional limit?: number
                              • Optional options: ViewFunctionOptions

                              Returns Promise<Token[]>

                            • nft_tokens_for_owner(args: { account_id: string; from_index?: string; limit?: number }, options?: ViewFunctionOptions): Promise<Token[]>
                            • Get list of all tokens owned by a given account

                              Arguments:

                              • account_id: a valid NEAR account
                              • from_index: a string representing an unsigned 128-bit integer, representing the starting index of tokens to return. (default 0)
                              • limit: the maximum number of tokens to return. (default unlimited) Could fail on gas

                              Returns a paginated list of all tokens owned by this account

                              Parameters

                              • args: { account_id: string; from_index?: string; limit?: number }
                                • account_id: string
                                • Optional from_index?: string
                                • Optional limit?: number
                              • Optional options: ViewFunctionOptions

                              Returns Promise<Token[]>

                            • nft_total_supply(args?: {}, options?: ViewFunctionOptions): Promise<string>
                            • Returns the total supply of non-fungible tokens as a string representing an unsigned 128-bit integer to avoid JSON number limit of 2^53.

                              Parameters

                              • args: {} = {}
                                • Optional options: ViewFunctionOptions

                                Returns Promise<string>

                              • nft_transfer(args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<void>
                              • Simple transfer. Transfer a given token_id from current owner to receiver_id.

                                Requirements

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token
                                • token_id: the token to transfer
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer

                                Parameters

                                • args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<void>

                              • nft_transferRaw(args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                              • Simple transfer. Transfer a given token_id from current owner to receiver_id.

                                Requirements

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token
                                • token_id: the token to transfer
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer

                                Parameters

                                • args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<FinalExecutionOutcome>

                              • nft_transferTx(args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Action
                              • Simple transfer. Transfer a given token_id from current owner to receiver_id.

                                Requirements

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token
                                • token_id: the token to transfer
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer

                                Parameters

                                • args: { approval_id?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Action

                              • nft_transfer_call(args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<void>
                              • Transfer token and call a method on a receiver contract. A successful workflow will end in a success execution outcome to the callback on the NFT contract at the method nft_resolve_transfer.

                                You can think of this as being similar to attaching native NEAR tokens to a function call. It allows you to attach any Non-Fungible Token in a call to a receiver contract.

                                Requirements:

                                • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                                • Contract MUST panic if called by someone other than token owner or, if using Approval Management, one of the approved accounts
                                • The receiving contract must implement ft_on_transfer according to the standard. If it does not, FT contract's ft_resolve_transfer MUST deal with the resulting failed cross-contract call and roll back the transfer.
                                • Contract MUST implement the behavior described in ft_resolve_transfer
                                • approval_id is for use with Approval Management extension, see that document for full explanation.
                                • If using Approval Management, contract MUST nullify approved accounts on successful transfer.

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token.
                                • token_id: the token to send.
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer.
                                • msg: specifies information needed by the receiving contract in order to properly handle the transfer. Can indicate both a function to call and the parameters to pass to that function.

                                Parameters

                                • args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • msg: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<void>

                              • nft_transfer_callRaw(args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                              • Transfer token and call a method on a receiver contract. A successful workflow will end in a success execution outcome to the callback on the NFT contract at the method nft_resolve_transfer.

                                You can think of this as being similar to attaching native NEAR tokens to a function call. It allows you to attach any Non-Fungible Token in a call to a receiver contract.

                                Requirements:

                                • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                                • Contract MUST panic if called by someone other than token owner or, if using Approval Management, one of the approved accounts
                                • The receiving contract must implement ft_on_transfer according to the standard. If it does not, FT contract's ft_resolve_transfer MUST deal with the resulting failed cross-contract call and roll back the transfer.
                                • Contract MUST implement the behavior described in ft_resolve_transfer
                                • approval_id is for use with Approval Management extension, see that document for full explanation.
                                • If using Approval Management, contract MUST nullify approved accounts on successful transfer.

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token.
                                • token_id: the token to send.
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer.
                                • msg: specifies information needed by the receiving contract in order to properly handle the transfer. Can indicate both a function to call and the parameters to pass to that function.

                                Parameters

                                • args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • msg: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<FinalExecutionOutcome>

                              • nft_transfer_callTx(args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Action
                              • Transfer token and call a method on a receiver contract. A successful workflow will end in a success execution outcome to the callback on the NFT contract at the method nft_resolve_transfer.

                                You can think of this as being similar to attaching native NEAR tokens to a function call. It allows you to attach any Non-Fungible Token in a call to a receiver contract.

                                Requirements:

                                • Caller of the method must attach a deposit of 1 yoctoⓃ for security purposes
                                • Contract MUST panic if called by someone other than token owner or, if using Approval Management, one of the approved accounts
                                • The receiving contract must implement ft_on_transfer according to the standard. If it does not, FT contract's ft_resolve_transfer MUST deal with the resulting failed cross-contract call and roll back the transfer.
                                • Contract MUST implement the behavior described in ft_resolve_transfer
                                • approval_id is for use with Approval Management extension, see that document for full explanation.
                                • If using Approval Management, contract MUST nullify approved accounts on successful transfer.

                                Arguments:

                                • receiver_id: the valid NEAR account receiving the token.
                                • token_id: the token to send.
                                • approval_id: expected approval ID. A number smaller than 2^53, and therefore representable as JSON. See Approval Management standard for full explanation.
                                • memo (optional): for use cases that may benefit from indexing or providing information for a transfer.
                                • msg: specifies information needed by the receiving contract in order to properly handle the transfer. Can indicate both a function to call and the parameters to pass to that function.

                                Parameters

                                • args: { approval_id?: number; memo?: string; msg: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • Optional memo?: string
                                  • msg: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Action

                              • nft_transfer_payout(args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<Payout>
                              • Parameters

                                • args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • balance: string
                                  • Optional max_len_payout?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<Payout>

                              • nft_transfer_payoutRaw(args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                              • Parameters

                                • args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • balance: string
                                  • Optional max_len_payout?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Promise<FinalExecutionOutcome>

                              • nft_transfer_payoutTx(args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }, options?: ChangeMethodOptions): Action
                              • Parameters

                                • args: { approval_id?: number; balance: string; max_len_payout?: number; memo?: string; receiver_id: string; token_id: string }
                                  • Optional approval_id?: number
                                  • balance: string
                                  • Optional max_len_payout?: number
                                  • Optional memo?: string
                                  • receiver_id: string
                                  • token_id: string
                                • Optional options: ChangeMethodOptions

                                Returns Action

                              • owner(args?: {}, options?: ViewFunctionOptions): Promise<string>
                              • Current contract owner

                                Parameters

                                • args: {} = {}
                                  • Optional options: ViewFunctionOptions

                                  Returns Promise<string>

                                • remaining_allowance(args: { account_id: string }, options?: ViewFunctionOptions): Promise<null | number>
                                • How many tokens an account is still allowed to mint. None, means unlimited

                                  Parameters

                                  • args: { account_id: string }
                                    • account_id: string
                                  • Optional options: ViewFunctionOptions

                                  Returns Promise<null | number>

                                • remove_whitelist_account(args: { account_id: string }, options?: ChangeMethodOptions): Promise<null | number>
                                • Remove whitelisted account. If account is removed, the number of tokens left in returned.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { account_id: string }
                                    • account_id: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<null | number>

                                • remove_whitelist_accountRaw(args: { account_id: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                • Remove whitelisted account. If account is removed, the number of tokens left in returned.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { account_id: string }
                                    • account_id: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<FinalExecutionOutcome>

                                • remove_whitelist_accountTx(args: { account_id: string }, options?: ChangeMethodOptions): Action
                                • Remove whitelisted account. If account is removed, the number of tokens left in returned.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { account_id: string }
                                    • account_id: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Action

                                • start_presale(args: { presale_price?: string; public_sale_start?: number }, options?: ChangeMethodOptions): Promise<boolean>
                                • Override the current presale start time to start presale now. Most provide when public sale starts. None, means never. Can provide new presale price. Note: you most likely won't need to call this since the presale starts automatically based on time.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { presale_price?: string; public_sale_start?: number }
                                    • Optional presale_price?: string
                                    • Optional public_sale_start?: number
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<boolean>

                                • start_presaleRaw(args: { presale_price?: string; public_sale_start?: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                • Override the current presale start time to start presale now. Most provide when public sale starts. None, means never. Can provide new presale price. Note: you most likely won't need to call this since the presale starts automatically based on time.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { presale_price?: string; public_sale_start?: number }
                                    • Optional presale_price?: string
                                    • Optional public_sale_start?: number
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<FinalExecutionOutcome>

                                • start_presaleTx(args: { presale_price?: string; public_sale_start?: number }, options?: ChangeMethodOptions): Action
                                • Override the current presale start time to start presale now. Most provide when public sale starts. None, means never. Can provide new presale price. Note: you most likely won't need to call this since the presale starts automatically based on time.

                                  allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { presale_price?: string; public_sale_start?: number }
                                    • Optional presale_price?: string
                                    • Optional public_sale_start?: number
                                  • Optional options: ChangeMethodOptions

                                  Returns Action

                                • start_sale(args: { price?: string }, options?: ChangeMethodOptions): Promise<boolean>
                                • allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { price?: string }
                                    • Optional price?: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<boolean>

                                • start_saleRaw(args: { price?: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                • allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { price?: string }
                                    • Optional price?: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Promise<FinalExecutionOutcome>

                                • start_saleTx(args: { price?: string }, options?: ChangeMethodOptions): Action
                                • allow

                                  ["::admins", "::owner"]

                                  Parameters

                                  • args: { price?: string }
                                    • Optional price?: string
                                  • Optional options: ChangeMethodOptions

                                  Returns Action

                                • token_storage_cost(args?: {}, options?: ViewFunctionOptions): Promise<string>
                                • Current cost in NEAR to store one NFT

                                  Parameters

                                  • args: {} = {}
                                    • Optional options: ViewFunctionOptions

                                    Returns Promise<string>

                                  • tokens_left(args?: {}, options?: ViewFunctionOptions): Promise<number>
                                  • Tokens left to be minted. This includes those left to be raffled minus any pending linkdrops

                                    Parameters

                                    • args: {} = {}
                                      • Optional options: ViewFunctionOptions

                                      Returns Promise<number>

                                    • total_cost(args: { minter: string; num: number }, options?: ViewFunctionOptions): Promise<string>
                                    • Parameters

                                      • args: { minter: string; num: number }
                                        • minter: string
                                        • num: number
                                      • Optional options: ViewFunctionOptions

                                      Returns Promise<string>

                                    • transfer_ownership(args: { new_owner: string }, options?: ChangeMethodOptions): Promise<boolean>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { new_owner: string }
                                        • new_owner: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • transfer_ownershipRaw(args: { new_owner: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { new_owner: string }
                                        • new_owner: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • transfer_ownershipTx(args: { new_owner: string }, options?: ChangeMethodOptions): Action
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { new_owner: string }
                                        • new_owner: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_allowance(args: { allowance?: number }, options?: ChangeMethodOptions): Promise<boolean>
                                    • This is the allowance during the public sale. When an allowance isn't provided, it is unlimited. e.g. submit with no allowance argument

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { allowance?: number }
                                        • Optional allowance?: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_allowanceRaw(args: { allowance?: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • This is the allowance during the public sale. When an allowance isn't provided, it is unlimited. e.g. submit with no allowance argument

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { allowance?: number }
                                        • Optional allowance?: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_allowanceTx(args: { allowance?: number }, options?: ChangeMethodOptions): Action
                                    • This is the allowance during the public sale. When an allowance isn't provided, it is unlimited. e.g. submit with no allowance argument

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { allowance?: number }
                                        • Optional allowance?: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_initial_royalties(args: { initial_royalties: Royalties }, options?: ChangeMethodOptions): Promise<boolean>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { initial_royalties: Royalties }
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_initial_royaltiesRaw(args: { initial_royalties: Royalties }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { initial_royalties: Royalties }
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_initial_royaltiesTx(args: { initial_royalties: Royalties }, options?: ChangeMethodOptions): Action
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { initial_royalties: Royalties }
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_presale_price(args: { presale_price?: string }, options?: ChangeMethodOptions): Promise<boolean>
                                    • Update the presale price Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_price?: string }
                                        • Optional presale_price?: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_presale_priceRaw(args: { presale_price?: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • Update the presale price Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_price?: string }
                                        • Optional presale_price?: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_presale_priceTx(args: { presale_price?: string }, options?: ChangeMethodOptions): Action
                                    • Update the presale price Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_price?: string }
                                        • Optional presale_price?: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_presale_start(args: { presale_start: number }, options?: ChangeMethodOptions): Promise<boolean>
                                    • Update the presale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_start: number }
                                        • presale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_presale_startRaw(args: { presale_start: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • Update the presale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_start: number }
                                        • presale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_presale_startTx(args: { presale_start: number }, options?: ChangeMethodOptions): Action
                                    • Update the presale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { presale_start: number }
                                        • presale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_price(args: { price: string }, options?: ChangeMethodOptions): Promise<boolean>
                                    • Update public sale price. Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { price: string }
                                        • price: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_priceRaw(args: { price: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • Update public sale price. Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { price: string }
                                        • price: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_priceTx(args: { price: string }, options?: ChangeMethodOptions): Action
                                    • Update public sale price. Careful this is in yoctoNear: 1N = 1000000000000000000000000 yN

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { price: string }
                                        • price: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_public_sale_start(args: { public_sale_start: number }, options?: ChangeMethodOptions): Promise<boolean>
                                    • Update the public sale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { public_sale_start: number }
                                        • public_sale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_public_sale_startRaw(args: { public_sale_start: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • Update the public sale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { public_sale_start: number }
                                        • public_sale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_public_sale_startTx(args: { public_sale_start: number }, options?: ChangeMethodOptions): Action
                                    • Update the public sale start Careful this is in ms since 1970

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { public_sale_start: number }
                                        • public_sale_start: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_royalties(args: { royalties: Royalties }, options?: ChangeMethodOptions): Promise<boolean>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      Returns Promise<boolean>

                                    • update_royaltiesRaw(args: { royalties: Royalties }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_royaltiesTx(args: { royalties: Royalties }, options?: ChangeMethodOptions): Action
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      Returns Action

                                    • update_uri(args: { uri: string }, options?: ChangeMethodOptions): Promise<boolean>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { uri: string }
                                        • uri: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_uriRaw(args: { uri: string }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { uri: string }
                                        • uri: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_uriTx(args: { uri: string }, options?: ChangeMethodOptions): Action
                                    • allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { uri: string }
                                        • uri: string
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • update_whitelist_accounts(args: { accounts: string[]; allowance_increase: number }, options?: ChangeMethodOptions): Promise<boolean>
                                    • Increases allowance for whitelist accounts

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { accounts: string[]; allowance_increase: number }
                                        • accounts: string[]
                                        • allowance_increase: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<boolean>

                                    • update_whitelist_accountsRaw(args: { accounts: string[]; allowance_increase: number }, options?: ChangeMethodOptions): Promise<FinalExecutionOutcome>
                                    • Increases allowance for whitelist accounts

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { accounts: string[]; allowance_increase: number }
                                        • accounts: string[]
                                        • allowance_increase: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Promise<FinalExecutionOutcome>

                                    • update_whitelist_accountsTx(args: { accounts: string[]; allowance_increase: number }, options?: ChangeMethodOptions): Action
                                    • Increases allowance for whitelist accounts

                                      allow

                                      ["::admins", "::owner"]

                                      Parameters

                                      • args: { accounts: string[]; allowance_increase: number }
                                        • accounts: string[]
                                        • allowance_increase: number
                                      • Optional options: ChangeMethodOptions

                                      Returns Action

                                    • whitelisted(args: { account_id: string }, options?: ViewFunctionOptions): Promise<boolean>
                                    • Check whether an account is allowed to mint during the presale

                                      Parameters

                                      • args: { account_id: string }
                                        • account_id: string
                                      • Optional options: ViewFunctionOptions

                                      Returns Promise<boolean>

                                    Generated using TypeDoc