Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
jolestar opened this issue Feb 16, 2022 · 2 comments
Open
3 tasks

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

jolestar opened this issue Feb 16, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jolestar
Copy link
Member

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
@jolestar jolestar added help wanted Extra attention is needed enhancement New feature or request labels Feb 16, 2022
@tarvos21
Copy link
Collaborator

batch_peer_to_peer_v2 的 args 是什么样的

@jolestar

@jolestar
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants