Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cygaar/inkmate
/ functions
Functions
45 in github.com/cygaar/inkmate
⨍
Functions
45
◇
Types & classes
10
↓ 3 callers
Method
owner_of
Returns the owner of token `id`. Requirements: - Token `id` must exist.
contracts/src/tokens/erc721.rs:331
↓ 2 callers
Method
_burn
Burns `amount` tokens from `from`, reducing the total supply. Emits a {Transfer} event.
contracts/src/tokens/erc20.rs:119
↓ 2 callers
Method
_compute_domain_separator
Computes the domain separator for the current contract and chain
contracts/src/tokens/erc20.rs:140
↓ 2 callers
Method
_mint
Mints `amount` tokens to `to`, increasing the total supply. Emits a {Transfer} event.
contracts/src/tokens/erc20.rs:104
↓ 2 callers
Method
_require_authorized_to_spend
Requires that msg::sender() is authorized to spend a given token
contracts/src/tokens/erc721.rs:71
↓ 2 callers
Method
_transfer
Moves `amount` of tokens from `from` to `to`.
contracts/src/tokens/erc20.rs:74
↓ 1 callers
Method
_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 callers
Method
_transfer
Internal transfer function
contracts/src/tokens/erc721.rs:98
↓ 1 callers
Method
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: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
Method
allowance
Returns the amount of tokens that `spender` can spend on behalf of `owner`.
contracts/src/tokens/erc20.rs:179
Method
approve
Sets `amount` as the allowance of `spender` over the caller's tokens. Emits a {Approval} event.
contracts/src/tokens/erc20.rs:197
Method
approve
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
Method
balance_of
Returns the amount of tokens owned by `owner`.
contracts/src/tokens/erc20.rs:174
Method
balance_of
Returns the number of tokens owned by `owner`. Requirements: - `owner` must not be the zero address.
contracts/src/tokens/erc721.rs:323
Method
burn
(&mut self, qty: U256)
samples/src/erc20_mock.rs:32
Method
burn
(&mut self, token_id: U256)
samples/src/erc721_mock.rs:51
Method
decimals
()
contracts/src/tokens/erc20.rs:164
Method
domain_separator
(&self)
contracts/src/tokens/erc20.rs:242
Method
ecrecover
( message_hash: &[u8; HASH_OUTPUT_SIZE], v: u8, r: &[u8; NUM_BYTES_U256], s: &
common/src/crypto/ecrecover.rs:28
Method
ecrecover_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
Method
ecrecover_implementation
Calls the ecrecover EVM precompile through a static call
contracts/src/utils/ecrecover.rs:17
Method
get_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
Method
is_approved_for_all
Returns whether `operator` is approved to manage the tokens of `owner`.
contracts/src/tokens/erc721.rs:458
Method
mint
(&mut self, qty: U256)
samples/src/erc20_mock.rs:27
Method
mint_loop
(&mut self, qty: U256)
samples/src/erc721_mock.rs:39
Method
name
()
contracts/src/tokens/erc20.rs:156
Method
name
Returns the token collection name.
contracts/src/tokens/erc721.rs:285
Method
permit
@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
Method
safe_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
Method
safe_transfer_from_with_data
( storage: &mut S, from: Address, to: Address, id: U256, data: Bytes,
contracts/src/tokens/erc721.rs:365
Method
set_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
Method
supports_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
Method
symbol
()
contracts/src/tokens/erc20.rs:160
Method
symbol
Returns the token collection symbol.
contracts/src/tokens/erc721.rs:290
Function
test_ec_recover_with_native_implementation
()
common/src/crypto/ecrecover.rs:118
Method
token_uri
(token_id: U256)
samples/src/erc721_mock.rs:15
Method
token_uri
(&self, id: U256)
contracts/src/tokens/erc721.rs:296
Method
total_supply
(&self)
samples/src/erc721_mock.rs:35
Method
total_supply
Returns the amount of tokens in existence.
contracts/src/tokens/erc20.rs:169
Method
transfer
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
Method
transfer_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