Skip to content

Provide basic script function wrap in move starcoin-framework #41

Open
@jolestar

Description

Such as

const txnRequest = {
    script: {
      code: '0x1::TransferScripts::peer_to_peer_v2',
      type_args: ['0x1::STC::STC'],
      args: ['0xc13b50bdb12e3fdd03c4e3b05e34926a', '100000u128'],
    }
};
let txn = await signer.sendTransaction(txnRequest);

Can wrap to a javascript function

function peer_to_peer_v2(address,amount);

Expect script function list:

  • 0x1::TransferScripts::peer_to_peer_v2
  • 0x1::TransferScripts::batch_peer_to_peer_v2
  • 0x1::TransferScripts::peer_to_peer_with_metadata_v2

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions