What is posRootChainManager.processReceivedMessage equivalent in v3? #312
-
Hi, in v2 we called this method: const tx = await maticPOSClient.posRootChainManager.processReceivedMessage(
rootTunnelAddress,
txHash,
{
from,
encodeAbi: true
}
) What is the equivalent of this method in v3? Having a hard time finding it in docs Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
ok, allow us some time to fix it. |
Beta Was this translation helpful? Give feedback.
-
The equivalent api you can use is -
Here is doc - https://github.com/fx-portal/maticjs-fxportal#withdrawexit for passing rootTunnel Address, you can pass value in
|
Beta Was this translation helpful? Give feedback.
-
@ujjwalguptaofficial thanks for the examples! I will check out the new repo |
Beta Was this translation helpful? Give feedback.
-
I think I made some progress but ran into a strange error; {\"jsonrpc\": \"2.0\", \"id\": 70, \"error\": {\"code\": -32000, \"message\": \"invalid opcode: opcode 0xf9 not defined\"}}", error={"code":-32000}, requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"maxFeePerGas\":\"0x3334963aac\",\"maxPriorityFeePerGas\":\"0xee6b2800\",\"from\":\"0x2a6303e6b99d451df3566068ebb110708335658f\",\"data\":\"0xf953cec700000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000d67f90d648410019860b90140889ba1d954568a7dd3ad82249f77a94f2d95d20d8a323d36f06d167a3318fb058f0312aed3e3f8873f6c4a21c46e0a477cf152f3cc46c2d765c53e198f84de27e9cced75203205acd0e778c6a40dd44e86f23a7e8c5dcb0798e64bec8d242567d82a680cf5519e9ef307cc65a690c528f9283fe8298418d473a08fc63824d424921255b0977ff0c79bbab1988e786de805e9a396acd49598f9f6210c638188e2be8bb736a4090fa266d26e3758d61c550e609f8961721ba0124b33d6ce5f793d2be61ad0bef1a2b99b519503c845c74672ce340880fbfaaeb900b1ca52feaa47779c6c0682ec855026cb87d2a48e8d3f16781562042fd96f81fc6be1a3b8332a1359924a5bb941818d58c9918dfe29c01c0a96373a907c0fe0850f953151d61aa6e35417ee5daef560435868f9cc0b55cd643e391bff2b59bc74c41536e78fbf84017022ba8461ef4a0aa09f60446e476c82fae2d9f49aca7cb0dcd74711c1b968669387899d70d2ffbc7aa0d09ffbfe46080fe8ccc111a1527039eb2189c62c6030d4d3c821758177f198bcb9044a02f90446018352deedb901000000000000000000000000001004000000000000002000000000000000002000000000000000060000000000000000000000c000000000000000000080040000000004000000000000000000000000800000000000040000008100000000000000000000000000000000000000000000000000000040000080000000000000000000000000240000800000000000000000000000000000080000000000000100200000000000000000000000000000000000000000000000000010000000004000000000002000000401000000000000000000000000000000100000000040000000000000000000000000200000000000000000000400000000000000100000f9033bf8bc94e28ea9254a9a433ec4e92227c498a1cead8210c2f863a0f52ad20d3b4f50d1c40901dfb95a9ce5270b2fc32694e5c668354721cd87aa74a00000000000000000000000000000000000000000000000000000000000000001a09dbbf381f2f042e8945e54469868aaec629c50d9beaf9d64ebadfb1c19de977ab84000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000061ef4a0af9013a94415bfea97b6ccdbac30ac897232e0b81ebe89cd7e1a08c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036b90100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a4ef6ebe5e00000000000000000000000000000000000000000000000000000000000000899dbbf381f2f042e8945e54469868aaec629c50d9beaf9d64ebadfb1c19de977a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000061ef4a0a00000000000000000000000000000000000000000000000000000000f9013d940000000000000000000000000000000000001010f884a04dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63a00000000000000000000000000000000000000000000000000000000000001010a0000000000000000000000000fefec7d3eb14a004029d278393e6ab8b46fb4fcaa00000000000000000000000007b5000af8ab69fd59eb0d4f5762bff57c9c04385b8a0000000000000000000000000000000000000000000000000000551ce6120bdc800000000000000000000000000000000000000000000058edd538abbcdf24d030000000000000000000000000000000000000000000087b3e4cf892a7711085c00000000000000000000000000000000000000000000058edd4e38ed6cd18f3b0000000000000000000000000000000000000000000087b3e4d4daf8d831c624b9077cf90779f90111a040ca1c23de79f15657b1fac356e71e9ca8b9769d6c1f7412bf173bafd9a51dcda06b860a798298b057831424b30c758bf8f4f3c88774dbc6bcaf2f15b3232a1b95a0d44c9e5c6d07941b29a6aa19ff9c5fa597f06cb05065f5318b25d58eca7f9b6aa0cf96081900371613f5cae45fa3037e46517d679f86fba07e1170b1db0251b7e0a086505a2002044837edf90122abd294f34aaf9b4b5d05a42d06ebe6890658d2c0a0f308e51ab20c9da6d04c79636f0a176f1e6e47d5e4de1888f933624d67e0e50ea0c87a8ecacbb90049b9d1f9d1c72a4c5d769432907392d880d56317605b04314d80a08dd5c30692cb06fbc39054b83846b8190475440760c898d9462fa5abecee739d8080808080808080f90211a0c342beac068a709d8d064941cb76b07dfe448bb1645abc0eb6319319a356ec88a04efc0710b8550fa0562d4f478420ce0baacd09bb8d4682312a2a2abdc933bd56a03f85d73cdb254065fb8fd64db5fc88147e8c88bc35cf28f5466648fb19c127c9a0537c781953995d6a7113e71c68627202948098578eee59c55da7cb739c7c94c7a005bc109634989fbb1a8d09217061502b4bcd33126d5f6a1070889f04e90d4cb8a0fcf966cac6efb31954672e67ebf80c36399be9724380b20bc8154c1ebd2b9cf0a00fdf3f419c8651634348b3a94eecea7ba356cbe48b0202f9cbe487bdb98d24a1a074918d7dda36aa60ba3a88593074c946df323e3097e7294945f4b7cb5b0c5266a05fb193604831d01b975b2119d52e150556954de4c9c673d14abff9d57b20dd79a081a4224ee8d0d37796a27644d00c502ce24c3d46105584a712c8fd7f22b4726ba067b3f8f2b657855e1fc04e465f072a3fa39c50661383a5043bf9fb94006cf3e3a0c825c0b2515644fb88347767d1be5afacfd162aa595f1c9694f1754f18e0843ca084d9cb4ef9b62754f6d9f5b3c2de40c14952a963951459bc0a454aaf798ed910a0befa600a2e18b20f075e2e3a5df76bd730fd669920a276b2a9ea172fcf7e6643a0586ab3ea3da5c057bdab9494fd2c323f3739823b164a6bc85ebd9254bca9f3d1a0bb422eda00bcdd427497301f182e30193538fea9af60d517141043662646d16180f9044e20b9044a02f90446018352deedb901000000000000000000000000001004000000000000002000000000000000002000000000000000060000000000000000000000c000000000000000000080040000000004000000000000000000000000800000000000040000008100000000000000000000000000000000000000000000000000000040000080000000000000000000000000240000800000000000000000000000000000080000000000000100200000000000000000000000000000000000000000000000000010000000004000000000002000000401000000000000000000000000000000100000000040000000000000000000000000200000000000000000000400000000000000100000f9033bf8bc94e28ea9254a9a433ec4e92227c498a1cead8210c2f863a0f52ad20d3b4f50d1c40901dfb95a9ce5270b2fc32694e5c668354721cd87aa74a00000000000000000000000000000000000000000000000000000000000000001a09dbbf381f2f042e8945e54469868aaec629c50d9beaf9d64ebadfb1c19de977ab84000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000061ef4a0af9013a94415bfea97b6ccdbac30ac897232e0b81ebe89cd7e1a08c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b036b90100000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a4ef6ebe5e00000000000000000000000000000000000000000000000000000000000000899dbbf381f2f042e8945e54469868aaec629c50d9beaf9d64ebadfb1c19de977a000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000061ef4a0a00000000000000000000000000000000000000000000000000000000f9013d940000000000000000000000000000000000001010f884a04dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63a00000000000000000000000000000000000000000000000000000000000001010a0000000000000000000000000fefec7d3eb14a004029d278393e6ab8b46fb4fcaa00000000000000000000000007b5000af8ab69fd59eb0d4f5762bff57c9c04385b8a0000000000000000000000000000000000000000000000000000551ce6120bdc800000000000000000000000000000000000000000000058edd538abbcdf24d030000000000000000000000000000000000000000000087b3e4cf892a7711085c00000000000000000000000000000000000000000000058edd4e38ed6cd18f3b0000000000000000000000000000000000000000000087b3e4d4daf8d831c62482002a0100000000000000000000000000000000000000000000000000\"}],\"id\":70,\"jsonrpc\":\"2.0\"} Code used const l1FxBaseRootTunnel = '0x7A08f1409E5D3e9Bc49063aA4009fB4BBC8777C3' // used as erc20.rootTunnel in config
const tokenAddress = '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174'
const txHash = '0x70bb6dbee84bd4ef1cd1891c666733d0803d81ac762ff7fdc4726e4525c1e23b'
const tx = await client.erc20(tokenAddress, true).withdrawExit(txHash) Any help is appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
-
I was able to generate the proof, just ensure that you have latest version of maticjs
I have tested using |
Beta Was this translation helpful? Give feedback.
I was able to generate the proof, just ensure that you have latest version of maticjs
3.2.0
. Here is code -