diff --git a/rollup-cli/helpers/abis/RollupAbi.json b/rollup-cli/helpers/abis/RollupAbi.json index 5a6f3869..38cf179d 100644 --- a/rollup-cli/helpers/abis/RollupAbi.json +++ b/rollup-cli/helpers/abis/RollupAbi.json @@ -1,627 +1,827 @@ [ - { - "constant": true, - "inputs": [ - { - "name": "msgHash", - "type": "bytes32" - }, - { - "name": "rsv", - "type": "bytes" - } - ], - "name": "checkSig", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "pure", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "miningOnChainTxsHash", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "currentOnChainTx", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "tokens", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isOwner", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MAX_ONCHAIN_TX", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "FEE_ONCHAIN_TX", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "exitNullifier", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "feeAddToken", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "NLevels", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "float", - "type": "uint16" - } - ], - "name": "float2Fix", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "pure", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MAX_TX", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_verifier", - "type": "address" - }, - { - "name": "_poseidon", - "type": "address" - }, - { - "name": "_maxTx", - "type": "uint256" - }, - { - "name": "_maxOnChainTx", - "type": "uint256" - }, - { - "name": "_feeTokenAddress", - "type": "address" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "batchNumber", - "type": "uint256" - }, - { - "indexed": false, - "name": "txData", - "type": "bytes32" - }, - { - "indexed": false, - "name": "loadAmount", - "type": "uint128" - }, - { - "indexed": false, - "name": "ethAddress", - "type": "address" - }, - { - "indexed": false, - "name": "Ax", - "type": "uint256" - }, - { - "indexed": false, - "name": "Ay", - "type": "uint256" - } - ], - "name": "OnChainTx", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "batchNumber", - "type": "uint256" - }, - { - "indexed": false, - "name": "blockNumber", - "type": "uint256" - } - ], - "name": "ForgeBatch", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "tokenAddress", - "type": "address" - }, - { - "indexed": false, - "name": "tokenId", - "type": "uint256" - } - ], - "name": "AddToken", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "constant": false, - "inputs": [ - { - "name": "forgeBatchMechanismAddress", - "type": "address" - } - ], - "name": "loadForgeBatchMechanism", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "tokenAddress", - "type": "address" - } - ], - "name": "addToken", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "loadAmount", - "type": "uint128" - }, - { - "name": "tokenId", - "type": "uint32" - }, - { - "name": "ethAddress", - "type": "address" - }, - { - "name": "babyPubKey", - "type": "uint256[2]" - } - ], - "name": "deposit", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "idBalanceTree", - "type": "uint64" - }, - { - "name": "loadAmount", - "type": "uint128" - }, - { - "name": "tokenId", - "type": "uint32" - } - ], - "name": "depositOnTop", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "fromId", - "type": "uint64" - }, - { - "name": "toId", - "type": "uint64" - }, - { - "name": "amountF", - "type": "uint16" - }, - { - "name": "tokenId", - "type": "uint32" - } - ], - "name": "transfer", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "loadAmount", - "type": "uint128" - }, - { - "name": "tokenId", - "type": "uint32" - }, - { - "name": "ethAddress", - "type": "address" - }, - { - "name": "babyPubKey", - "type": "uint256[2]" - }, - { - "name": "toId", - "type": "uint64" - }, - { - "name": "amountF", - "type": "uint16" - } - ], - "name": "depositAndTransfer", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "idBalanceTree", - "type": "uint64" - }, - { - "name": "amountF", - "type": "uint16" - } - ], - "name": "forceWithdraw", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "idBalanceTree", - "type": "uint64" - }, - { - "name": "amount", - "type": "uint256" - }, - { - "name": "numExitRoot", - "type": "uint256" - }, - { - "name": "siblings", - "type": "uint256[]" - } - ], - "name": "withdraw", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "beneficiaryAddress", - "type": "address" - }, - { - "name": "proofA", - "type": "uint256[2]" - }, - { - "name": "proofB", - "type": "uint256[2][2]" - }, - { - "name": "proofC", - "type": "uint256[2]" - }, - { - "name": "input", - "type": "uint256[8]" - } - ], - "name": "forgeBatch", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "numBatch", - "type": "uint256" - } - ], - "name": "getStateRoot", - "outputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getStateDepth", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "numBatch", - "type": "uint256" - } - ], - "name": "getExitRoot", - "outputs": [ - { - "name": "", - "type": "bytes32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "tokenId", - "type": "uint256" - } - ], - "name": "getTokenAddress", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ] \ No newline at end of file + { + "inputs": [ + { + "internalType": "address", + "name": "_verifier", + "type": "address" + }, + { + "internalType": "address", + "name": "_poseidon", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_maxTx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_maxOnChainTx", + "type": "uint256" + }, + { + "internalType": "address payable", + "name": "_feeTokenAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "AddToken", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "batchNumber", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } + ], + "name": "ForgeBatch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "batchNumber", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "txData", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "loadAmount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "address", + "name": "fromEthAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "fromAx", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "fromAy", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "toEthAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toAx", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "toAy", + "type": "uint256" + } + ], + "name": "OnChainTx", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "inputs": [], + "name": "MAX_ONCHAIN_TX", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAX_TX", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "NLevels", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "batchToInfo", + "outputs": [ + { + "internalType": "uint64", + "name": "lastLeafIndex", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "depositOnChainCount", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "msgHash", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "rsv", + "type": "bytes" + } + ], + "name": "checkSig", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "currentFillingBatch", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "depositFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "exitNullifier", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "feeAddToken", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "feeOnchainTx", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "fillingMap", + "outputs": [ + { + "internalType": "uint256", + "name": "fillingOnChainTxsHash", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "totalFillingOnChainFee", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "currentOnChainTx", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "float", + "type": "uint16" + } + ], + "name": "float2Fix", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "isOwner", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "miningOnChainTxsHash", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "tokenList", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "tokens", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalMinningOnChainFee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "forgeBatchMechanismAddress", + "type": "address" + } + ], + "name": "loadForgeBatchMechanism", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + } + ], + "name": "addToken", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint128", + "name": "loadAmount", + "type": "uint128" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "ethAddress", + "type": "address" + }, + { + "internalType": "uint256[2]", + "name": "babyPubKey", + "type": "uint256[2]" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "babyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint128", + "name": "loadAmount", + "type": "uint128" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + } + ], + "name": "depositOnTop", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint256[2]", + "name": "toBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint16", + "name": "amountF", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint128", + "name": "loadAmount", + "type": "uint128" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "address", + "name": "fromEthAddress", + "type": "address" + }, + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint256[2]", + "name": "toBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint16", + "name": "amountF", + "type": "uint16" + } + ], + "name": "depositAndTransfer", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "amountF", + "type": "uint16" + } + ], + "name": "forceWithdraw", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "numExitRoot", + "type": "uint256" + }, + { + "internalType": "uint256[]", + "name": "siblings", + "type": "uint256[]" + }, + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "proofA", + "type": "uint256[2]" + }, + { + "internalType": "uint256[2][2]", + "name": "proofB", + "type": "uint256[2][2]" + }, + { + "internalType": "uint256[2]", + "name": "proofC", + "type": "uint256[2]" + }, + { + "internalType": "uint256[10]", + "name": "input", + "type": "uint256[10]" + }, + { + "internalType": "bytes", + "name": "compressedOnChainTx", + "type": "bytes" + } + ], + "name": "forgeBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "numBatch", + "type": "uint256" + } + ], + "name": "getStateRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getStateDepth", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "numBatch", + "type": "uint256" + } + ], + "name": "getExitRoot", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "name": "getTokenAddress", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + } + ], + "name": "getLeafInfo", + "outputs": [ + { + "internalType": "uint64", + "name": "forgedBatch", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "relativeIndex", + "type": "uint32" + }, + { + "internalType": "address", + "name": "ethAddress", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[2]", + "name": "fromBabyPubKey", + "type": "uint256[2]" + }, + { + "internalType": "uint32", + "name": "tokenId", + "type": "uint32" + } + ], + "name": "getLeafId", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "view", + "type": "function" + } +] \ No newline at end of file diff --git a/rollup-operator/src/server/utils.js b/rollup-operator/src/server/utils.js index bd9276c9..db7f032f 100644 --- a/rollup-operator/src/server/utils.js +++ b/rollup-operator/src/server/utils.js @@ -86,8 +86,8 @@ async function getGeneralInfo(rollupSynch, posSynch) { generalInfo["rollupSynch"].synch = await rollupSynch.getSynchPercentage(); generalInfo["rollupSynch"].lastBlockSynched = await rollupSynch.getLastSynchBlock(); generalInfo["rollupSynch"].lastBatchSynched = await rollupSynch.getLastBatch(); - generalInfo["rollupSynch"].feeDeposit = await rollupSynch.getFeeDepOffChain().toString(); - generalInfo["rollupSynch"].feeOnChainTx = await rollupSynch.getFeeOnChainTx().toString(); + generalInfo["rollupSynch"].feeDeposit = (await rollupSynch.getFeeDepOffChain()).toString(); + generalInfo["rollupSynch"].feeOnChainTx = (await rollupSynch.getFeeOnChainTx()).toString(); // StaticData generalInfo["rollupSynch"].contractAddress = staticDataRollup.contractAddress; @@ -130,8 +130,8 @@ async function getGeneralInfoPob(rollupSynch, pobSynch) { generalInfo["rollupSynch"].synch = await rollupSynch.getSynchPercentage(); generalInfo["rollupSynch"].lastBlockSynched = await rollupSynch.getLastSynchBlock(); generalInfo["rollupSynch"].lastBatchSynched = await rollupSynch.getLastBatch(); - generalInfo["rollupSynch"].feeDeposit = await rollupSynch.getFeeDepOffChain().toString(); - generalInfo["rollupSynch"].feeOnChainTx = await rollupSynch.getFeeOnChainTx().toString(); + generalInfo["rollupSynch"].feeDeposit = (await rollupSynch.getFeeDepOffChain()).toString(); + generalInfo["rollupSynch"].feeOnChainTx = (await rollupSynch.getFeeOnChainTx()).toString(); // StaticData generalInfo["rollupSynch"].contractAddress = staticDataRollup.contractAddress;