Provide basic script function wrap in move starcoin-framework #41
Open
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