8000 GitHub - qd452/sswap: realise a Simple Swap contract · GitHub
[go: up one dir, main page]

Skip to content
  • qd452Public

    About

    realise a Simple Swap contract

    Resources

    Stars

    0 stars

    Watchers

    1 watching

    Forks

    Latest commit

     

    History

    7 Commits

    Folders and files

    Repository files navigation

    SSWAP

    realise a Simple Swap contract

    Quick Start

    yarn install
    yarn compile
    yarn test

    Dev

    yarn init
    yarn add --dev hardhat
    npx hardhat
    
    yarn add --dev @openzeppelin/contracts
    yarn add --dev solmate
    yarn add --dev ethereum-waffle
    yarn add --dev ethers@5.7.2
    
    npx hardhat compile
    npx hardhat test

    Design Considerations

    EIP-712

    for the signature validatiaon

    Nonce

    Nonce must be incremental, but not necessarily to consecutive; However if it is not consecutive, it is not gas efficient.

    bitmap to save gas, see Bitmap_Example

    About

    realise a Simple Swap contract

    Resources

    Stars

    0 stars

    Watchers

    1 watching

    Forks

    Releases

    Packages

    Contributors

    Languages

    0