ERC721Basic
event
ApprovalForAll
Inputs
Parameter | Type | Description |
---|---|---|
_owner | address | |
_operator | address | |
_approved | bool |
Outputs
(void)
event
Approval
Inputs
Parameter | Type | Description |
---|---|---|
_owner | address | |
_approved | address | |
_tokenId | uint256 |
Outputs
(void)
event
Transfer
Inputs
Parameter | Type | Description |
---|---|---|
_from | address | |
_to | address | |
_tokenId | uint256 |
Outputs
(void)
ERC721BasicToken
function
safeTransferFrom
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_from | address | |
_to | address | |
_tokenId | uint256 | |
_data | bytes |
Outputs
(void)
function
setApprovalForAll
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_to | address | |
_approved | bool |
Outputs
(void)
function
safeTransferFrom
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_from | address | |
_to | address | |
_tokenId | uint256 |
Outputs
(void)
function
isApprovedForAll
view
Inputs
Parameter | Type | Description |
---|---|---|
_owner | address | |
_operator | address |
Outputs
Type | Description |
---|---|
bool |
function
ownerOf
view
Inputs
Parameter | Type | Description |
---|---|---|
_tokenId | uint256 |
Outputs
Type | Description |
---|---|
address |
function
exists
view
Inputs
Parameter | Type | Description |
---|---|---|
_tokenId | uint256 |
Outputs
Type | Description |
---|---|
bool |
function
getApproved
view
Inputs
Parameter | Type | Description |
---|---|---|
_tokenId | uint256 |
Outputs
Type | Description |
---|---|
address |
ERC721MarginPosition
function
burnClosedTokenMultiple
nonpayable
Restricted (nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
positionIds | bytes32[] |
Outputs
(void)
function
approveRecipient
nonpayable
Restricted (nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
recipient | address | |
isApproved | bool |
Outputs
(void)
function
burnClosedToken
nonpayable
Restricted (nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
positionId | bytes32 |
Outputs
(void)
function
untokenizePosition
nonpayable
Restricted (nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
positionId | bytes32 | |
to | address |
Outputs
(void)
function
approveCloser
nonpayable
Restricted (nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
closer | address | |
isApproved | bool |
Outputs
(void)
function
depositCollateralOnBehalfOf
nonpayable
Restricted (onlyMargin, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
positionId | bytes32 | |
uint256 |
Outputs
Type | Description |
---|---|
address |
function
receivePositionOwnership
nonpayable
Restricted (onlyMargin, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
from | address | |
positionId | bytes32 |
Outputs
Type | Description |
---|---|
address |
function
increasePositionOnBehalfOf
nonpayable
Restricted (onlyMargin, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
positionId | bytes32 | |
uint256 |
Outputs
Type | Description |
---|---|
address |
function
closeOnBehalfOf
nonpayable
Restricted (onlyMargin, nonReentrant)
Inputs
Parameter | Type | Description |
---|---|---|
closer | address | |
payoutRecipient | address | |
positionId | bytes32 | |
requestedAmount | uint256 |
Outputs
Type | Description |
---|---|
address | |
uint256 |
function
getPositionDeedHolder
view
Inputs
Parameter | Type | Description |
---|---|---|
positionId | bytes32 |
Outputs
Type | Description |
---|---|
address |
event
RecipientApproval
Inputs
Parameter | Type | Description |
---|---|---|
owner | address | |
approved | address | |
isApproved | bool |
Outputs
(void)
event
CloserApproval
Inputs
Parameter | Type | Description |
---|---|---|
owner | address | |
approved | address | |
isApproved | bool |
Outputs
(void)
event
PositionUntokenized
Inputs
Parameter | Type | Description |
---|---|---|
positionId | bytes32 | |
owner | address | |
ownershipSentTo | address |
Outputs
(void)
event
PositionTokenized
Inputs
Parameter | Type | Description |
---|---|---|
positionId | bytes32 | |
owner | address |
Outputs
(void)
ERC721Token
function
tokenURI
view
Inputs
Parameter | Type | Description |
---|---|---|
_tokenId | uint256 |
Outputs
Type | Description |
---|---|
string |
function
symbol
view
Inputs
(void)
Outputs
Type | Description |
---|---|
string |
function
tokenByIndex
view
Inputs
Parameter | Type | Description |
---|---|---|
_index | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
tokenOfOwnerByIndex
view
Inputs
Parameter | Type | Description |
---|---|---|
_owner | address | |
_index | uint256 |
Outputs
Type | Description |
---|---|
uint256 |
function
name
view
Inputs
(void)
Outputs
Type | Description |
---|---|
string |
GeneralERC20
function
transferFrom
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_from | address | |
_to | address | |
_tokenId | uint256 |
Outputs
(void)
function
approve
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
_to | address | |
_tokenId | uint256 |
Outputs
(void)
function
balanceOf
view
Inputs
Parameter | Type | Description |
---|---|---|
_owner | address |
Outputs
Type | Description |
---|---|
uint256 |
function
totalSupply
view
Inputs
(void)
Outputs
Type | Description |
---|---|
uint256 |
SupportsInterfaceWithLookup
function
supportsInterface
view
Inputs
Parameter | Type | Description |
---|---|---|
_interfaceId | bytes4 |
Outputs
Type | Description |
---|---|
bool |
constructor
nonpayable
Inputs
Parameter | Type | Description |
---|---|---|
margin | address |
Outputs
(void)
function
approvedClosers
view
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
address |
Outputs
Type | Description |
---|---|
bool |
function
InterfaceId_ERC165
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bytes4 |
function
approvedRecipients
view
Inputs
Parameter | Type | Description |
---|---|---|
address | ||
address |
Outputs
Type | Description |
---|---|
bool |
function
DYDX_MARGIN
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |