ecadlabs/taquito

Add an integration test for forger when migrating protocol with new pseudo entrypoints

Closed this issue · 1 comments

Write a smart contract with each pseudo entrypoints listed here
Originate the smart contract on chain and test for localForger result of making contract call to each entrypoints are the same as rpcForger
Especially between protocol migration, so we need to target protocol specific testnets separately
Also, in the test need to add comment for every new protocol need to check in openAPI for example oxford the value under 018-Proxford.entrypoint for new entrypoint added to write a new contract covering all listed pseudo entrypoint names

michelson json contract code with each pseudo entrypiont name as parameter
also deployed on ghostnet for reference https://better-call.dev/ghostnet/KT1QYn1mFHynbangmvaGL4BDA66u766rLR1X/operations

[{"prim":"parameter","args":[{"prim":"or","args":[{"prim":"unit","annots":["%default"]},{"prim":"or","args":[{"prim":"unit","annots":["%root"]},{"prim":"or","args":[{"prim":"unit","annots":["%do"]},{"prim":"or","args":[{"prim":"unit","annots":["%set_delegate"]},{"prim":"or","args":[{"prim":"unit","annots":["%remove_delegate"]},{"prim":"or","args":[{"prim":"unit","annots":["%deposit"]},{"prim":"or","args":[{"prim":"unit","annots":["%stake"]},{"prim":"or","args":[{"prim":"unit","annots":["%unstake"]},{"prim":"or","args":[{"prim":"unit","annots":["%finalize_unstake"]},{"prim":"unit","annots":["%set_delegate_parameters"]}]}]}]}]}]}]}]}]}]}]},{"prim":"storage","args":[{"prim":"string"}]},{"prim":"code","args":[[{"prim":"CAR"},{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"default"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"root"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"do"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"set_delegate"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"remove_delegate"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"deposit"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"stake"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"unstake"}]}],[{"prim":"IF_LEFT","args":[[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"finalize_unstake"}]}],[{"prim":"DROP"},{"prim":"PUSH","args":[{"prim":"string"},{"string":"set_delegate_parameters"}]}]]}]]}]]}]]}]]}]]}]]}]]}]]},{"prim":"NIL","args":[{"prim":"operation"}]},{"prim":"PAIR"}]]}]