The Approval Facet handles all approval and permit related functions for the Silo.
Approves an address to access a Farmer's Deposit.
Increases transfer allowance of a Deposit.
Decreases transfer allowance of a Deposit.
Farm balances and Silo Deposits support EIP-2612 permits, which allows Farmers to delegate use of their Farm balances and Silo Deposits through permits without the need for a separate transaction.
Permits multiple Deposits.
Permits a single Deposit.
Set ERC-1155 approvals. Grants or revokes permission to operator
to transfer the caller’s tokens, according to approved
.
Returns the current nonce for Deposit permits.
Returns the domain separator for the current chain (link).
Returns how much of a token
Deposit that spender
can transfer on behalf of owner
.
Returns true if _operator
is approved to transfer _owner
's Deposit.
Emitted when a Deposit is approved to spend by another account.
Emitted when account
grants or revokes permission to operator
to transfer their tokens, according to approved
(link).
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
spender
address
Address to be given approval.
token
address
Address of ERC20.
amount
uint256
Amount to be approved.
spender
address
Address to increase approval for.
token
address
Address of ERC20.
addedValue
uint256
Additional approval value to be given.
bool
If the allowance increase was successful.
spender
address
Address to decrease approval for.
token
address
Address of ERC20.
subtractedValue
uint256
Amount of approval value to be removed.
bool
Success.
owner
address
Owner of the Deposit.
spender
address
Address to permit.
tokens
address[]
Array of ERC20s to permit.
values
uint256[]
Array of amount (corresponding to tokens
) to permit.
deadline
uint256
Expiration of signature (Unix time).
v
uint8
Recovery ID.
r
bytes32
ECDSA signature output.
s
bytes32
ECDSA signature output.
owner
address
Owner of the Deposit.
spender
address
Address to permit.
token
address
ERC20 to permit.
value
uint256
Amount of token
to permit.
deadline
uint256
Expiration of signature (Unix time).
v
uint8
Recovery ID.
r
bytes32
ECDSA signature output.
s
bytes32
ECDSA signature output.
spender
address
Address to approve spending for.
approved
bool
Whether or not to approve.
owner
address
Owner of the Deposit.
uint256
Current nonce for Deposit permits.
bytes32
The domain separator for the current chain.
owner
address
Owner of the Deposit.
spender
address
The address that can spend the Deposit.
token
address
The token Deposit that spender
can transfer.
uint256
The token
Deposit amount that spender
can transfer on behalf of owner
.
_owner
address
Owner of the Deposit.
_operator
address
Spender of the Deposit.
bool
True if _operator
is approved to transfer _owner
's tokens.
owner
address
Owner of the Deposit.
spender
address
Spender of the Deposit.
token
address
Deposit token that can be spent.
amount
uint256
Amount of the Deposit token that can be spent.
account
address
Owner of the Deposit.
operator
address
Spender of the Deposit.
approved
address
Whether or not the Deposit was approved.