From 4d1494719e31e4bcc20506976c976b6fad60efac Mon Sep 17 00:00:00 2001 From: Kamil Mukhametzyanov Date: Thu, 13 May 2021 10:13:32 +0300 Subject: [PATCH] update readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7896f1b..fe759cb 100644 --- a/README.md +++ b/README.md @@ -711,39 +711,39 @@ $tx->sign('your private key'); ###### Example * Sign the SellSwapPool transaction -* Constructor: ```MinterSellSwapPoolTx($coinToSell, $valueToSell, $coinToBuy, $minimumValueToBuy)``` +* Constructor: ```MinterSellSwapPoolTx(array $coins, $valueToSell, $minimumValueToBuy)``` ```php use Minter\SDK\MinterTx; use Minter\SDK\MinterCoins\MinterSellSwapPoolTx; -$data = new MinterSellSwapPoolTx(0, '100', 1, '200'); +$data = new MinterSellSwapPoolTx([1, 2], '20', '2'); $tx = new MinterTx($nonce, $data); $tx->sign('your private key'); ``` ###### Example * Sign the BuySwapPool transaction -* Constructor: ```MinterBuySwapPoolTx($coinToBuy, $valueToBuy, $coinToSell, $maximumValueToSell)``` +* Constructor: ```MinterBuySwapPoolTx($coins, $valueToBuy, $maximumValueToSell)``` ```php use Minter\SDK\MinterTx; use Minter\SDK\MinterCoins\MinterBuySwapPoolTx; -$data = new MinterBuySwapPoolTx(0, '100', 1, '200'); +$data = new MinterBuySwapPoolTx([2, 3], '3', '5000'); $tx = new MinterTx($nonce, $data); $tx->sign('your private key'); ``` ###### Example * Sign the SellAllSwapPool transaction -* Constructor: ```MinterSellAllSwapPoolTx($coinToSell, $coinToBuy, $minimumValueToBuy)``` +* Constructor: ```MinterSellAllSwapPoolTx(array $coins, $minimumValueToBuy)``` ```php use Minter\SDK\MinterTx; use Minter\SDK\MinterCoins\MinterSellAllSwapPoolTx; -$data = new MinterSellAllSwapPoolTx(0, 1, '100'); +$data = new MinterSellAllSwapPoolTx([1, 4, 5], '100'); $tx = new MinterTx($nonce, $data); $tx->sign('your private key'); ```