taquito icon indicating copy to clipboard operation
taquito copied to clipboard

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

Open hui-an-yang opened this issue 1 year ago • 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

hui-an-yang avatar Feb 29 '24 23:02 hui-an-yang

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"}]]}]

hui-an-yang avatar Apr 05 '24 22:04 hui-an-yang