MCPcopy Create free account

hub / github.com/cygaar/inkmate / functions

Functions45 in github.com/cygaar/inkmate

↓ 3 callersMethodowner_of
Returns the owner of token `id`. Requirements: - Token `id` must exist.
contracts/src/tokens/erc721.rs:331
↓ 2 callersMethod_burn
Burns `amount` tokens from `from`, reducing the total supply. Emits a {Transfer} event.
contracts/src/tokens/erc20.rs:119
↓ 2 callersMethod_compute_domain_separator
Computes the domain separator for the current contract and chain
contracts/src/tokens/erc20.rs:140
↓ 2 callersMethod_mint
Mints `amount` tokens to `to`, increasing the total supply. Emits a {Transfer} event.
contracts/src/tokens/erc20.rs:104
↓ 2 callersMethod_require_authorized_to_spend
Requires that msg::sender() is authorized to spend a given token
contracts/src/tokens/erc721.rs:71
↓ 2 callersMethod_transfer
Moves `amount` of tokens from `from` to `to`.
contracts/src/tokens/erc20.rs:74
↓ 1 callersMethod_mint
Mints token `id` to `to`. Requirements: - Token `id` must not exist. - `to` cannot be the zero address. Emits a {Transfer} event.
contracts/src/tokens/erc721.rs:186
↓ 1 callersMethod_transfer
Internal transfer function
contracts/src/tokens/erc721.rs:98
↓ 1 callersMethodtransfer_from
Transfers token `id` from `from` to `to`. Requirements: - Token `id` must exist. - `from` must be the owner of the token. - `to` cannot be the zero
contracts/src/tokens/erc721.rs:392
Method_burn
Destroys token `id`, using `by`. Requirements: - Token `id` must exist. - If `by` is not the zero address, it must be the owner of the token, or be
contracts/src/tokens/erc721.rs:238
Method_call_receiver
Calls the onERC721Received callback function if the receiver is not an EOA (code size > 0). Throws an error if the receiver cannot be called or the re
contracts/src/tokens/erc721.rs:126
Method_safe_mint
Mints token `id` to `to`. Requirements: - Token `id` must not exist. - `to` cannot be the zero address. - If `to` refers to a smart contract, it mus
contracts/src/tokens/erc721.rs:218
Method_safe_transfer
Transfers token `id` from `from` to `to`. Requirements: - Token `id` must exist. - `from` must be the owner of the token. - `to` cannot be the zero
contracts/src/tokens/erc721.rs:167
Methodallowance
Returns the amount of tokens that `spender` can spend on behalf of `owner`.
contracts/src/tokens/erc20.rs:179
Methodapprove
Sets `amount` as the allowance of `spender` over the caller's tokens. Emits a {Approval} event.
contracts/src/tokens/erc20.rs:197
Methodapprove
Sets `account` as the approved account to manage token `id`. Requirements: - Token `id` must exist. - The caller must be the owner of the token, or a
contracts/src/tokens/erc721.rs:414
Methodbalance_of
Returns the amount of tokens owned by `owner`.
contracts/src/tokens/erc20.rs:174
Methodbalance_of
Returns the number of tokens owned by `owner`. Requirements: - `owner` must not be the zero address.
contracts/src/tokens/erc721.rs:323
Methodburn
(&mut self, qty: U256)
samples/src/erc20_mock.rs:32
Methodburn
(&mut self, token_id: U256)
samples/src/erc721_mock.rs:51
Methoddecimals
()
contracts/src/tokens/erc20.rs:164
Methoddomain_separator
(&self)
contracts/src/tokens/erc20.rs:242
Methodecrecover
( message_hash: &[u8; HASH_OUTPUT_SIZE], v: u8, r: &[u8; NUM_BYTES_U256], s: &
common/src/crypto/ecrecover.rs:28
Methodecrecover_implementation
ecrecover implementation based off of revm's precompile: https://github.com/bluealloy/revm/blob/main/crates/precompile/src/secp256k1.rs#L13
common/src/crypto/ecrecover.rs:78
Methodecrecover_implementation
Calls the ecrecover EVM precompile through a static call
contracts/src/utils/ecrecover.rs:17
Methodget_approved
Returns the account approved to manage token `id`. Returns the zero address instead of reverting if the token does not exist.
contracts/src/tokens/erc721.rs:453
Methodis_approved_for_all
Returns whether `operator` is approved to manage the tokens of `owner`.
contracts/src/tokens/erc721.rs:458
Methodmint
(&mut self, qty: U256)
samples/src/erc20_mock.rs:27
Methodmint_loop
(&mut self, qty: U256)
samples/src/erc721_mock.rs:39
Methodname
()
contracts/src/tokens/erc20.rs:156
Methodname
Returns the token collection name.
contracts/src/tokens/erc721.rs:285
Methodpermit
@dev Sets `value` as the allowance of `spender` over the tokens of `owner`, authorized by a signed approval by `owner`. Emits a {Approval} event.
contracts/src/tokens/erc20.rs:250
Methodsafe_transfer_from
Transfers token `id` from `from` to `to`. Requirements: - Token `id` must exist. - `from` must be the owner of the token. - `to` cannot be the zero
contracts/src/tokens/erc721.rs:351
Methodsafe_transfer_from_with_data
( storage: &mut S, from: Address, to: Address, id: U256, data: Bytes,
contracts/src/tokens/erc721.rs:365
Methodset_approval_for_all
Sets whether `operator` is approved to manage the tokens of the caller. Emits an {ApprovalForAll} event.
contracts/src/tokens/erc721.rs:438
Methodsupports_interface
Returns true if this contract implements the interface defined by `interfaceId`. See: https://eips.ethereum.org/EIPS/eip-165
contracts/src/tokens/erc721.rs:303
Methodsymbol
()
contracts/src/tokens/erc20.rs:160
Methodsymbol
Returns the token collection symbol.
contracts/src/tokens/erc721.rs:290
Functiontest_ec_recover_with_native_implementation
()
common/src/crypto/ecrecover.rs:118
Methodtoken_uri
(token_id: U256)
samples/src/erc721_mock.rs:15
Methodtoken_uri
(&self, id: U256)
contracts/src/tokens/erc721.rs:296
Methodtotal_supply
(&self)
samples/src/erc721_mock.rs:35
Methodtotal_supply
Returns the amount of tokens in existence.
contracts/src/tokens/erc20.rs:169
Methodtransfer
Transfer `amount` tokens from the caller to `to`. Requirements: - `from` must at least have `amount`. Emits a {Transfer} event.
contracts/src/tokens/erc20.rs:189
Methodtransfer_from
Transfers `amount` tokens from `from` to `to`. Requirements: - `from` must at least have `amount`. - The caller must have at least `amount` of allowa
contracts/src/tokens/erc20.rs:216