diff --git a/package.json b/package.json index ebf29bee..93b03340 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rhino.fi/client-js", - "version": "5.2.1", + "version": "5.2.2", "main": "src/index.js", "files": [ "src", diff --git a/src/api/contract/abi/BridgeDepositContract.abi.json b/src/api/contract/abi/BridgeDepositContract.abi.json index 87d8d177..087def9c 100644 --- a/src/api/contract/abi/BridgeDepositContract.abi.json +++ b/src/api/contract/abi/BridgeDepositContract.abi.json @@ -1,364 +1,412 @@ [ - { - "type":"event", - "name":"BridgedDeposit", - "inputs":[ - { - "type":"address", - "name":"user", - "internalType":"address", - "indexed":true - }, - { - "type":"address", - "name":"token", - "internalType":"address", - "indexed":true - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256", - "indexed":false - } - ], - "anonymous":false - }, - { - "type":"event", - "name":"BridgedWithdrawal", - "inputs":[ - { - "type":"address", - "name":"user", - "internalType":"address", - "indexed":true - }, - { - "type":"address", - "name":"token", - "internalType":"address", - "indexed":true - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256", - "indexed":false - }, - { - "type":"string", - "name":"withdrawalId", - "internalType":"string", - "indexed":false - } - ], - "anonymous":false - }, - { - "type":"event", - "name":"OwnershipTransferred", - "inputs":[ - { - "type":"address", - "name":"previousOwner", - "internalType":"address", - "indexed":true - }, - { - "type":"address", - "name":"newOwner", - "internalType":"address", - "indexed":true - } - ], - "anonymous":false - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"addFunds", - "inputs":[ - { - "type":"address", - "name":"token", - "internalType":"address" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - } - ] - }, - { - "type":"function", - "stateMutability":"payable", - "outputs":[ - - ], - "name":"addFundsNative", - "inputs":[ - - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"authorize", - "inputs":[ - { - "type":"address", - "name":"user", - "internalType":"address" - }, - { - "type":"bool", - "name":"value", - "internalType":"bool" - } - ] - }, - { - "type":"function", - "stateMutability":"view", - "outputs":[ - { - "type":"bool", - "name":"", - "internalType":"bool" - } - ], - "name":"authorized", - "inputs":[ - { - "type":"address", - "name":"", - "internalType":"address" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"deposit", - "inputs":[ - { - "type":"address", - "name":"token", - "internalType":"address" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - } - ] - }, - { - "type":"function", - "stateMutability":"payable", - "outputs":[ - - ], - "name":"depositNative", - "inputs":[ - - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"initialize", - "inputs":[ - - ] - }, - { - "type":"function", - "stateMutability":"view", - "outputs":[ - { - "type":"address", - "name":"", - "internalType":"address" - } - ], - "name":"owner", - "inputs":[ - - ] - }, - { - "type":"function", - "stateMutability":"view", - "outputs":[ - { - "type":"bool", - "name":"", - "internalType":"bool" - } - ], - "name":"processedWithdrawalIds", - "inputs":[ - { - "type":"string", - "name":"", - "internalType":"string" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"removeFunds", - "inputs":[ - { - "type":"address", - "name":"token", - "internalType":"address" - }, - { - "type":"address", - "name":"to", - "internalType":"address" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"removeFundsNative", - "inputs":[ - { - "type":"address", - "name":"to", - "internalType":"address payable" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - } - ] - }, - { - "type":"function", - "stateMutability":"view", - "outputs":[ - - ], - "name":"renounceOwnership", - "inputs":[ - - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"transferOwner", - "inputs":[ - { - "type":"address", - "name":"newOwner", - "internalType":"address" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"transferOwnership", - "inputs":[ - { - "type":"address", - "name":"newOwner", - "internalType":"address" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"withdraw", - "inputs":[ - { - "type":"address", - "name":"token", - "internalType":"address" - }, - { - "type":"address", - "name":"to", - "internalType":"address" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - }, - { - "type":"string", - "name":"withdrawalId", - "internalType":"string" - } - ] - }, - { - "type":"function", - "stateMutability":"nonpayable", - "outputs":[ - - ], - "name":"withdrawNative", - "inputs":[ - { - "type":"address", - "name":"to", - "internalType":"address payable" - }, - { - "type":"uint256", - "name":"amount", - "internalType":"uint256" - }, - { - "type":"string", - "name":"withdrawalId", - "internalType":"string" - } - ] - } -] + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "BridgedDeposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "withdrawalId", + "type": "string" + } + ], + "name": "BridgedWithdrawal", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "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": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "addFunds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "addFundsNative", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "value", + "type": "bool" + } + ], + "name": "allowDeposits", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "value", + "type": "bool" + } + ], + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "authorized", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "depositNative", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "depositsDisallowed", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "name": "processedWithdrawalIds", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "removeFunds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "removeFundsNative", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "string", + "name": "withdrawalId", + "type": "string" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "string", + "name": "withdrawalId", + "type": "string" + } + ], + "name": "withdrawNative", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawNativeV2", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawV2", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] \ No newline at end of file