web3wagmi
← All standards

ERC-2266 Atomic Swap-based American Call Option Contract Standard

Last CallERCcreated 2019-08-17

Authors: Runchao Han, Haoyu Lin, Jiangshan Yu

Functions this standard introduces (8)

0x363c41e2fillPremium(bytes32,uint256)
0x383ae8feinitiate(bytes32,uint256)
0xdcfc4726participate(bytes32,uint256)
0xd72a0a53redeemAsset(bytes32,bytes32)
0xb55587a9redeemPremium(bytes32)
0x5385c914refundAsset(bytes32)
0x8f1c087crefundPremium(bytes32)
0xda3a0ea7setup(bytes32,address,address,address,uint256,address,uint256,uint256)

Events (10)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x246bb861a6be0c50b1b27c51ea7dc22ac681c4edb6471faa3c685e781c002247SetUp(bytes32,address,address,address,address,uint256,uint256,uint256)
0x7a0dd4b659782d4183bbd2dedb6493a757a177f96eb9358a3ca25d2faf556969Initiated(uint256,bytes32,address,address,address,uint256,uint256)
0x2f438538b91e2a4f0c2938f43a2e4be6e90dcb3bf9c02285a2eeeae734fe0e27Participated(uint256,bytes32,address,address,address,uint256,uint256)
0xdbfbf5f63ae47cf95bb881a2317e5eeedd7441ab380ad3b51f13960296e53992PremiumFilled(uint256,bytes32,address,address,address,uint256,uint256)
0x351c1e2fd04b86bcf149e46c144612f602cac04fb7db655283286b6f37b79fa0InitiatorAssetRedeemed(uint256,bytes32,bytes32,address,address,uint256)
0x035ac03b9e216f1dba238ded540be26dd4d4e7645c646bff35fde75c88aa7f5eParticipantAssetRedeemed(uint256,bytes32,bytes32,address,address,uint256)
0xb5fe36403e49b636b4d67b5fbdd3f9610b03529b6486cad1e070e1f6f202391fInitiatorAssetRefunded(uint256,bytes32,address,address,uint256)
0x81885191c41c529e7ae0da5ddf4a4c00482bc8676d111849ecb891318bddf992ParticipantAssetRefunded(uint256,bytes32,address,address,uint256)
0xa2345b4af4efbcc7a200cecd3f36f2fbfdaa337b46138cb64d1cfac02fa45b84PremiumRedeemed(uint256,bytes32,address,address,uint256)
0x697197bd871b7a6b7418d4842f41ba1f182ad2594dd10a153b52eb26620756d8PremiumRefunded(uint256,bytes32,address,address,uint256)

What the specification covers

Compare with

Parsed from the canonical specification · discussion