Comments (5)
Hi xrDavies,
There are a couple of things that i think it could be:
- Check that you have gas on both networks on the address obtained form the private key
- Check that the json you are using on the local chains are the ones generated when running npm run migrate or npm run deployIntegrationTest on the /bridge folder
Let me know if that works for you.
from tokenbridge.
Hi xrDavies,
There are a couple of things that i think it could be:
- Check that you have gas on both networks on the address obtained form the private key
- Check that the json you are using on the local chains are the ones generated when running npm run migrate or npm run deployIntegrationTest on the /bridge folder
Let me know if that works for you.
Thank you for quick reply.
After some investigation, I found that the event cross is not correctly handled in contract that mappedToken
is empty. Rerun these steps with another laptop at home, the error mentioned in this issue is gone, but new errors with voteTransaction.
Here is my config.js
const fs = require('fs');
module.exports = {
mainchain: require('./development.json'), //the json containing the smart contract addresses in rsk
sidechain: require('./ganache.json'), //the json containing the smart contract addresses in eth
runEvery: 1, // In minutes,
confirmations: 0, // Number of blocks before processing it, if working with ganache set as 0
privateKey: fs.readFileSync(`${__dirname}/federator.key`, 'utf8'),
storagePath: './db'
}
development.json
and ganache.json
are created by migration step 16 16_create_config_file.js
.
development.json
{
"bridge": "0x17696a1bb73721a262e04101d92531a8d7878da0",
"federation": "0x4390f17f79254e64fb16c2543e142044dc843301",
"multiSig": "0xe67e802fbb500d3db1fa7c17b6462eb002fcfb7e",
"allowTokens": "0xd10d9b87d117416d1ca737081771976c0b87d356",
"testToken": "0x8c00e56cb4e642b45b3993ce6b24393629261d9e",
"host": "http://127.0.0.1:9545",
"fromBlock": 41
}
ganache.json
{
"bridge": "0x17696a1bb73721a262e04101d92531a8d7878da0",
"federation": "0x8c00e56cb4e642b45b3993ce6b24393629261d9e",
"multiSig": "0xe67e802fbb500d3db1fa7c17b6462eb002fcfb7e",
"allowTokens": "0xd10d9b87d117416d1ca737081771976c0b87d356",
"testToken": "0x98ec36bdbc1314d3e85aafe0398c337c6e5ca0aa",
"host": "http://127.0.0.1:7545",
"fromBlock": 35
}
Here is the log:
npm run integrationTest
> [email protected] integrationTest /Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator
> rm -rf ./db/* && node ./integrationTest/integrationTest.js
[2020-09-12T03:45:16.941] [INFO] test - ----------- Transfer Test ---------------------
[2020-09-12T03:45:16.946] [INFO] test - Mainchain Host http://127.0.0.1:9545
[2020-09-12T03:45:16.946] [INFO] test - Sidechain Host http://127.0.0.1:7545
[2020-09-12T03:45:16.978] [INFO] test - Starting transfer from Mainchain to Sidechain
[2020-09-12T03:45:16.980] [INFO] test - ------------- SENDING THE TOKENS -----------------
[2020-09-12T03:45:16.980] [DEBUG] test - Getting address from pk
[2020-09-12T03:45:17.037] [INFO] test - Transaction Successful txHash:0xab2c65f2046dbd45e6aadea14966a87129220c986c8d6cbb5f6308f6eeec6e64 blockNumber:47
[2020-09-12T03:45:17.089] [INFO] test - Transaction Successful txHash:0x049f39dd06e9b92bd4259828452b8ff8d178eef67d737a4dfc8b89e4b806bfe6 blockNumber:45
[2020-09-12T03:45:17.090] [INFO] test - MAIN token addres 0x8C00e56CB4e642B45b3993Ce6B24393629261D9e - User Address: 0x1d87f9d2cb9c891246c4199229b88aeaa380d77e
[2020-09-12T03:45:17.093] [DEBUG] test - Initial user balance 101999470809000000000
[2020-09-12T03:45:17.094] [DEBUG] test - Aproving token transfer
[2020-09-12T03:45:17.156] [INFO] test - Transaction Successful txHash:0x916a6e496bae30d1edc010dcf72c59a7e712fa9caac7acf47ab81a285bc2d184 blockNumber:48
[2020-09-12T03:45:17.206] [INFO] test - Transaction Successful txHash:0xc2041679e04cf1e7d4f10f1be363e0e92df22045b342f68431cd0d9d2a05b883 blockNumber:49
[2020-09-12T03:45:17.206] [DEBUG] test - Token transfer approved
[2020-09-12T03:45:17.206] [DEBUG] test - Bridge receiveTokens (transferFrom)
[2020-09-12T03:45:17.302] [INFO] test - Transaction Successful txHash:0x14fca2d18da61c7212c427d3d444c0d3b1898ea74e1911a4bc32b63a086bf2bb blockNumber:50
[2020-09-12T03:45:17.302] [DEBUG] test - Bridge receivedTokens completed
[2020-09-12T03:45:17.302] [DEBUG] test - Wait for 0 blocks
[2020-09-12T03:45:17.305] [DEBUG] test - Starting federator processes
[2020-09-12T03:45:17.306] [DEBUG] test - Fund federator wallets
[2020-09-12T03:45:17.384] [INFO] Fund Federators - Transaction Successful txHash:0x24bca2d467d63ae8c2ed110f62147c786f17b36b38a13e1890edbb7b4f7cfb23 blockNumber:46
[2020-09-12T03:45:17.384] [INFO] Fund Federators - Successfuly transferred 1000000000000000000 to 0x33d3ff69e5967b3e6cdc95206f1abdf0709406f7
[2020-09-12T03:45:17.392] [INFO] FEDERATOR - Running to Block 50
[2020-09-12T03:45:17.393] [DEBUG] FEDERATOR - Running from Block 42
[2020-09-12T03:45:17.393] [DEBUG] FEDERATOR - Total pages 1, blocks per page 1000
[2020-09-12T03:45:17.393] [DEBUG] FEDERATOR - Page 1 getting events from block 42 to 50
[2020-09-12T03:45:17.471] [INFO] FEDERATOR - Found 2 logs
[2020-09-12T03:45:17.471] [INFO] FEDERATOR - Processing event log: {
logIndex: 2,
transactionIndex: 0,
transactionHash: '0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4',
blockHash: '0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5',
blockNumber: 46,
address: '0x17696A1BB73721a262E04101D92531A8d7878dA0',
type: 'mined',
id: 'log_03b32571',
returnValues: Result {
'0': '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
'1': '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
'2': '1000000000000000000',
'3': 'MAIN',
'4': null,
'5': '18',
'6': '1',
_tokenAddress: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
_to: '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
_amount: '1000000000000000000',
_symbol: 'MAIN',
_userData: null,
_decimals: '18',
_granularity: '1'
},
event: 'Cross',
signature: '0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
raw: {
data: '0x0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
topics: [
'0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
'0x0000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e',
'0x0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e'
]
}
}
[2020-09-12T03:45:17.508] [INFO] FEDERATOR - get transaction id: 0x7c58f26a631feb1b291ff7cbb84625e40e6dbef6ee6e714c4f008d0d7c41a890
[2020-09-12T03:45:17.536] [INFO] FEDERATOR - Voting tx: 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token: MAIN
[2020-09-12T03:45:17.537] [INFO] FEDERATOR - Voting Transfer 1000000000000000000 of MAIN trough sidechain bridge 0x17696A1BB73721a262E04101D92531A8d7878dA0 to receiver 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E
[2020-09-12T03:45:17.558] [INFO] FEDERATOR - voteTransaction(0x8C00e56CB4e642B45b3993Ce6B24393629261D9e, 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E, 1000000000000000000, MAIN, 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5, 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4, 2, 18, 1)
[2020-09-12T03:45:17.607] [ERROR] FEDERATOR - Send Signed Transaction Failed TxHash:undefined Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
data: {
'0x1f672667696fe6e542609155aa6033ac791a62095d377d6792814cc1f8343baf': { error: 'revert', program_counter: 7743, return: '0x' },
stack: 'RuntimeError: VM Exception while processing transaction: revert\n' +
' at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:89:13)\n' +
' at BlockchainDouble.processBlock (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:632:24)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:93:5)',
name: 'RuntimeError'
}
}
[2020-09-12T03:45:17.609] [ERROR] FEDERATOR - RawTx that failed {
gasPrice: '0x6fc23ac00',
gas: '0x3567e0',
value: '0x0',
to: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
data: '0xd03e1ee90000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000120cac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5d6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e00000000000000000000000000000000000000000000000000000000',
from: '0x33d3ff69e5967b3e6cdc95206f1abdf0709406f7',
nonce: '0x2e',
r: 0,
s: 0
}
CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:17.614] [ERROR] FEDERATOR - Error: Exception Running Federator
at Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:92:35)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7) CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:17.615] [DEBUG] FEDERATOR - Run 1 retrie
[2020-09-12T03:45:20.627] [INFO] FEDERATOR - Running to Block 50
[2020-09-12T03:45:20.628] [DEBUG] FEDERATOR - Running from Block 42
[2020-09-12T03:45:20.628] [DEBUG] FEDERATOR - Total pages 1, blocks per page 1000
[2020-09-12T03:45:20.628] [DEBUG] FEDERATOR - Page 1 getting events from block 42 to 50
[2020-09-12T03:45:20.640] [INFO] FEDERATOR - Found 2 logs
[2020-09-12T03:45:20.641] [INFO] FEDERATOR - Processing event log: {
logIndex: 2,
transactionIndex: 0,
transactionHash: '0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4',
blockHash: '0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5',
blockNumber: 46,
address: '0x17696A1BB73721a262E04101D92531A8d7878dA0',
type: 'mined',
id: 'log_03b32571',
returnValues: Result {
'0': '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
'1': '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
'2': '1000000000000000000',
'3': 'MAIN',
'4': null,
'5': '18',
'6': '1',
_tokenAddress: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
_to: '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
_amount: '1000000000000000000',
_symbol: 'MAIN',
_userData: null,
_decimals: '18',
_granularity: '1'
},
event: 'Cross',
signature: '0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
raw: {
data: '0x0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
topics: [
'0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
'0x0000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e',
'0x0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e'
]
}
}
[2020-09-12T03:45:20.669] [INFO] FEDERATOR - get transaction id: 0x7c58f26a631feb1b291ff7cbb84625e40e6dbef6ee6e714c4f008d0d7c41a890
[2020-09-12T03:45:20.698] [INFO] FEDERATOR - Voting tx: 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token: MAIN
[2020-09-12T03:45:20.698] [INFO] FEDERATOR - Voting Transfer 1000000000000000000 of MAIN trough sidechain bridge 0x17696A1BB73721a262E04101D92531A8d7878dA0 to receiver 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E
[2020-09-12T03:45:20.721] [INFO] FEDERATOR - voteTransaction(0x8C00e56CB4e642B45b3993Ce6B24393629261D9e, 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E, 1000000000000000000, MAIN, 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5, 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4, 2, 18, 1)
[2020-09-12T03:45:20.777] [ERROR] FEDERATOR - Send Signed Transaction Failed TxHash:undefined Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
data: {
'0x4c9da27949b6c0e76d869baeadd2834be53f1b054ec9ae81729d3821ca63a1f6': { error: 'revert', program_counter: 7743, return: '0x' },
stack: 'RuntimeError: VM Exception while processing transaction: revert\n' +
' at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:89:13)\n' +
' at BlockchainDouble.processBlock (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:632:24)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:93:5)',
name: 'RuntimeError'
}
}
[2020-09-12T03:45:20.778] [ERROR] FEDERATOR - RawTx that failed {
gasPrice: '0x6fc23ac00',
gas: '0x3567e0',
value: '0x0',
to: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
data: '0xd03e1ee90000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000120cac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5d6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e00000000000000000000000000000000000000000000000000000000',
from: '0x33d3ff69e5967b3e6cdc95206f1abdf0709406f7',
nonce: '0x2f',
r: 0,
s: 0
}
CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:20.779] [ERROR] FEDERATOR - Error: Exception Running Federator
at Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:92:35)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7) CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:20.781] [DEBUG] FEDERATOR - Run 2 retrie
[2020-09-12T03:45:23.793] [INFO] FEDERATOR - Running to Block 50
[2020-09-12T03:45:23.794] [DEBUG] FEDERATOR - Running from Block 42
[2020-09-12T03:45:23.794] [DEBUG] FEDERATOR - Total pages 1, blocks per page 1000
[2020-09-12T03:45:23.794] [DEBUG] FEDERATOR - Page 1 getting events from block 42 to 50
[2020-09-12T03:45:23.809] [INFO] FEDERATOR - Found 2 logs
[2020-09-12T03:45:23.810] [INFO] FEDERATOR - Processing event log: {
logIndex: 2,
transactionIndex: 0,
transactionHash: '0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4',
blockHash: '0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5',
blockNumber: 46,
address: '0x17696A1BB73721a262E04101D92531A8d7878dA0',
type: 'mined',
id: 'log_03b32571',
returnValues: Result {
'0': '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
'1': '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
'2': '1000000000000000000',
'3': 'MAIN',
'4': null,
'5': '18',
'6': '1',
_tokenAddress: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
_to: '0x1D87f9D2cB9c891246C4199229b88aeaA380D77E',
_amount: '1000000000000000000',
_symbol: 'MAIN',
_userData: null,
_decimals: '18',
_granularity: '1'
},
event: 'Cross',
signature: '0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
raw: {
data: '0x0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
topics: [
'0x33409cca56f705a7bbed38b7db57cf3a63317f3c1b9a747bbfb3d3ecffa84f6f',
'0x0000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e',
'0x0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e'
]
}
}
[2020-09-12T03:45:23.840] [INFO] FEDERATOR - get transaction id: 0x7c58f26a631feb1b291ff7cbb84625e40e6dbef6ee6e714c4f008d0d7c41a890
[2020-09-12T03:45:23.868] [INFO] FEDERATOR - Voting tx: 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token: MAIN
[2020-09-12T03:45:23.869] [INFO] FEDERATOR - Voting Transfer 1000000000000000000 of MAIN trough sidechain bridge 0x17696A1BB73721a262E04101D92531A8d7878dA0 to receiver 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E
[2020-09-12T03:45:23.887] [INFO] FEDERATOR - voteTransaction(0x8C00e56CB4e642B45b3993Ce6B24393629261D9e, 0x1D87f9D2cB9c891246C4199229b88aeaA380D77E, 1000000000000000000, MAIN, 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5, 0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4, 2, 18, 1)
[2020-09-12T03:45:23.973] [ERROR] FEDERATOR - Send Signed Transaction Failed TxHash:undefined Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
data: {
'0x942b42319c8ab45bf7e2a707aa94e9e7cbc1d73a388ece0aca5873f52d3254bc': { error: 'revert', program_counter: 7743, return: '0x' },
stack: 'RuntimeError: VM Exception while processing transaction: revert\n' +
' at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:89:13)\n' +
' at BlockchainDouble.processBlock (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:632:24)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:93:5)',
name: 'RuntimeError'
}
}
[2020-09-12T03:45:23.974] [ERROR] FEDERATOR - RawTx that failed {
gasPrice: '0x6fc23ac00',
gas: '0x3567e0',
value: '0x0',
to: '0x8C00e56CB4e642B45b3993Ce6B24393629261D9e',
data: '0xd03e1ee90000000000000000000000008c00e56cb4e642b45b3993ce6b24393629261d9e0000000000000000000000001d87f9d2cb9c891246c4199229b88aeaa380d77e0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000120cac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5d6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000044d41494e00000000000000000000000000000000000000000000000000000000',
from: '0x33d3ff69e5967b3e6cdc95206f1abdf0709406f7',
nonce: '0x30',
r: 0,
s: 0
}
CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:23.974] [ERROR] FEDERATOR - Error: Exception Running Federator
at Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:92:35)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7) CustomError: Exception processing logs
at Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:154:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Exception Voting tx:0xd6ad7a24a6aa4e8b3f32b9f49b49bef5faf9bbd512c3d44d0f0b47ff691d11c4 block: 0xcac9496cbe989225cde397504fe7ea2a74602be2e1224fa0462e4ada858809e5 token MAIN
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:194:19)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Transaction Failed: Send Signed Transaction Failed TxHash:undefined Error
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:84:23)
at Federator._voteTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:190:37)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Federator._processLogs (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:133:25)
at async Federator.run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/Federator.js:85:21)
at async transfer (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:146:9)
at async run (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/integrationTest/integrationTest.js:85:5)
at TransactionSender.sendTransaction (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/src/lib/TransactionSender.js:121:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Internal Error: Returned error: VM Exception while processing transaction: revert
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-helpers/src/errors.js:30:19)
at onJsonrpcResult (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-core-requestmanager/src/index.js:172:36)
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/web3-providers-http/src/index.js:111:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/federator/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2020-09-12T03:45:23.977] [DEBUG] FEDERATOR - Run 3 retrie
from tokenbridge.
Seems related to environment. Could you share you dev environment?
7_deploy_bridge_v0.js
=====================
Error: Error on oz deployment Error: Returned error: VM Exception while processing transaction: revert Cannot set a proxy implementation to a non-contract address
at Object.ErrorResponse (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/web3-core-helpers/src/errors.js:29:16)
at /Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/web3-core-requestmanager/src/index.js:140:36
at /Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/truffle-provider/wrapper.js:112:9
at XMLHttpRequest.request.onreadystatechange (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/truffle-provider/node_modules/web3-providers-http/src/index.js:96:13)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/xhr2-cookies/xml-http-request-event-target.ts:44:13)
at XMLHttpRequest._setReadyState (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/xhr2-cookies/xml-http-request.ts:219:8)
at XMLHttpRequest._onHttpResponseEnd (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/xhr2-cookies/xml-http-request.ts:345:8)
at IncomingMessage.<anonymous> (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/node_modules/xhr2-cookies/xml-http-request.ts:311:39)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
at ozDeploy (/Users/ruix/workfolder/active/rebase-tokebridge/rsk-tokebridge/bridge/migrations/7_deploy_bridge_v0.js:20:15)
at runNextTicks (internal/process/task_queues.js:62:5)
at listOnTimeout (internal/timers.js:518:9)
at processTimers (internal/timers.js:492:7)
Truffle v5.1.44 (core: 5.1.44)
Node v12.18.3
from tokenbridge.
It's really an env related issue. But found another issue with integrationTest.
from tokenbridge.
Could you describe what was missing in your configuration? for people who read this thread?
from tokenbridge.
Related Issues (11)
- Missing token in config for integrationTest HOT 2
- Unable to Convert tokens after Approve transaction successfully mined HOT 2
- Tokenbridge on testnetwork HOT 1
- Error: connection not open on send() HOT 4
- Host address HOT 2
- Incorrect Network HOT 2
- [Feature Request] Send tokens to a different address than the sender address HOT 1
- Problem using Sovryn bridge between BSC and RSK with USDT HOT 1
- Federator doesn't start HOT 1
- configured USDT token limits are 100x off of intended values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tokenbridge.