reef-defi / reef.js

Libraries for interacting with the Reef Chain
Apache License 2.0
2 stars 2 forks source link

Initial v9 beta support #6

Closed jbargu closed 2 years ago

jbargu commented 2 years ago
  1. Adds support for utility pallet:

    // Setup transfer extrinsic
    const RECEIPENT_ADDRESS = "addr";
    const SINGLE_REEF = BigNumber.from("1000000000000000000");
    const TRANSFER_AMOUNT = SINGLE_REEF.mul(100);
    const transfer = provider.api.tx.balances.transfer(
    RECEIPENT_ADDRESS,
    TRANSFER_AMOUNT.toString()
    );
    
    const transfer1 = provider.api.tx.balances.transfer(
    RECEIPENT_ADDRESS,
    SINGLE_REEF.mul(100).toString()
    );
    
    const batch = provider.api.tx.utility.batch([transfer, transfer1]);
    
    const hash = await batch.signAndSend(signer);
    console.log("Hash:", hash.toHex());
  2. Adds support for multisig pallet in console.reefscan.com image

  3. EVM contracts that create another contracts will emit a Evm.Created event or a self destruct event as part of the tracing PR.