Skip to content

contract.ExchangeDomainV1

Aleksey Bykhun edited this page Jan 18, 2023 · 1 revision

ExchangeDomainV1

Git Source

Structs

Asset

struct Asset {
    address token;
    uint256 tokenId;
    AssetType assetType;
}

OrderKey

struct OrderKey {
    address owner;
    uint256 salt;
    Asset sellAsset;
    Asset buyAsset;
}

Order

struct Order {
    OrderKey key;
    uint256 selling;
    uint256 buying;
    uint256 sellerFee;
}

Sig

struct Sig {
    uint8 v;
    bytes32 r;
    bytes32 s;
}

Enums

AssetType

enum AssetType {
    ETH,
    ERC20,
    ERC1155,
    ERC721,
    ERC721Deprecated
}
Clone this wiki locally