0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Kyber NetworkとRemixでKyber Networkを試してみる

Last updated at Posted at 2018-09-02

この記事はオオキマキさんのKyber NetworkでdAppsを作ってみよう勉強会の後半部分の記事です。前半部分はこちらをどうぞ!
また同じ部分の記事ですがより画像が多い記事もこちらにあります!
動かない、などありましたらコメントください!

必要なもの

  • MetaMask
  • npm

Kyber Networkとは?

どんなトークンをどこでも使えるようにするマントラです。合言葉はAny Token, Anywhereです。詳しくはKyber Network Evangelistのhoryさん資料をご覧ください。

やってみる

Kyner NetworkのSolidityのバージョンが低く、truffleだとコンパイラのバージョンを落とせないためRemixを使います。

準備


function swapTokenToEther(ERC20 token, uint srcAmount, uint minConversionRate) public returns(uint) ;
    function swapEtherToToken(ERC20 token, uint minConversionRate) public payable returns(uint);

        function swapTokenToToken(
        ERC20 src,
        uint srcAmount,
        ERC20 dest,
        uint minConversionRate
    )
        public
        returns(uint);

        function trade(
        ERC20 src,
        uint srcAmount,
        ERC20 dest,
        address destAddress,
        uint maxDestAmount,
        uint minConversionRate,
        address walletId
    )
        public
        payable
        returns(uint);

swapEtherToTokenを試す

swapTokenToEtherを試す

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?