You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New functional component added to contract package which provides ability for client to generate request parameter ScVals given a contract and a function name.
input - contract Wasm bytes or contract id/wasm hash for on-chain contract wasm code retrieval.
input - the contract fn name
input - list of parameter argument values expressed as go types to be applied as the args to the contract fn.
return - slice of ScVals in same order as the input parameters argument values
checkout the stellar-js-sdk Spec.funcArgsToScVals for a complete implementation reference.
What problem does your feature solve?
Go SDK doesn't have capability to generate request parameter ScVals for a contract function defined on a contract spec.
What would you like to see?
Determine the best interface approach in SDK for DX concerns and provide the implementation of chosen approach.
contractpackage which provides ability for client to generate request parameter ScVals given a contract and a function name.What alternatives are there?