goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 45 forks source link

Entrypoint Parsing: Expand to support all Entrypoint cases #176

Open DefinitelyNotAGoat opened 3 years ago

DefinitelyNotAGoat commented 3 years ago

Example of Transfer entrypoint in tzBTC:

Entrypoint: Default
Parameter: RRRRLRRL (pair address (pair (addressto value)))
Entrypoint: Transfer
Parameter:
(pair address (pair (addressto value)))
Entrypoint: safeentrypoints
Parameter: RRL (pair address (pair (addressto value)))

Attached are code examples addressing the issue, special thanks to Marco from the Tezos foundation: Code: https://drive.google.com/file/d/1Y6u36NMOMad2CvXnMF3n6xP6ab6ADkPK/view?usp=sharing Test: https://drive.google.com/file/d/19EPO0mg0hkxpeTdpvRo6Ln60VScM-qK0/view?usp=sharing