diff --git a/.openzeppelin/unknown-31.json b/.openzeppelin/unknown-31.json index 3a0b6b6..b309e6b 100644 --- a/.openzeppelin/unknown-31.json +++ b/.openzeppelin/unknown-31.json @@ -8385,6 +8385,374 @@ }, "namespaces": {} } + }, + "e4ed84c291a62b06343b07175822467433bbdfcd118dedbe50c2b26fbcfb6c4f": { + "address": "0x36da26125a8d77a8127a4a458c2434EFDacdA7b6", + "txHash": "0x6fe62813d18b36f1b264a3656a160b154dde7332a80b5a72067ef94f6688e025", + "layout": { + "solcVersion": "0.8.18", + "storage": [ + { + "contract": "Initializable", + "label": "_initialized", + "type": "t_uint8", + "src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63", + "retypedFrom": "bool" + }, + { + "contract": "Initializable", + "label": "_initializing", + "type": "t_bool", + "src": "../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68" + }, + { + "contract": "ContextUpgradeable", + "label": "__gap", + "type": "t_array(t_uint256)50_storage", + "src": "../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40" + }, + { + "contract": "OwnableUpgradeable", + "label": "_owner", + "type": "t_address", + "src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" + }, + { + "contract": "OwnableUpgradeable", + "label": "__gap", + "type": "t_array(t_uint256)49_storage", + "src": "../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94" + }, + { + "contract": "ReentrancyGuardUpgradeable", + "label": "_status", + "type": "t_uint256", + "src": "../@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38" + }, + { + "contract": "ReentrancyGuardUpgradeable", + "label": "__gap", + "type": "t_array(t_uint256)49_storage", + "src": "../@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "bridge", + "type": "t_contract(Bridge)3652", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:92" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "balances", + "type": "t_mapping(t_address,t_uint256)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:93" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "collateral", + "type": "t_mapping(t_address,t_uint256)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:94" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "pegoutCollateral", + "type": "t_mapping(t_address,t_uint256)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:95" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "liquidityProviders", + "type": "t_mapping(t_uint256,t_struct(LiquidityProvider)7500_storage)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:96" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "callRegistry", + "type": "t_mapping(t_bytes32,t_struct(Registry)7482_storage)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:97" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "resignationBlockNum", + "type": "t_mapping(t_address,t_uint256)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:98" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "minCollateral", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:100" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "minPegIn", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:101" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "rewardP", + "type": "t_uint32", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:103" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "resignDelayInBlocks", + "type": "t_uint32", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:104" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "dust", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:105" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "providerId", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:106" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "btcBlockTime", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:108" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "mainnet", + "type": "t_bool", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:109" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "processedQuotes", + "type": "t_mapping(t_bytes32,t_uint8)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:111" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "registeredPegoutQuotes", + "type": "t_mapping(t_bytes32,t_struct(PegOutQuote)10638_storage)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:112" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "pegoutRegistry", + "type": "t_mapping(t_bytes32,t_struct(PegoutRecord)7487_storage)", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:113" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "productFeePercentage", + "type": "t_uint256", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:115" + }, + { + "contract": "LiquidityBridgeContractV2", + "label": "daoFeeCollectorAddress", + "type": "t_address", + "src": "../project:/contracts/LiquidityBridgeContractV2.sol:116" + } + ], + "types": { + "t_contract(Bridge)3652": { + "label": "contract Bridge" + }, + "t_mapping(t_address,t_uint256)": { + "label": "mapping(address => uint256)" + }, + "t_address": { + "label": "address" + }, + "t_uint256": { + "label": "uint256" + }, + "t_mapping(t_uint256,t_struct(LiquidityProvider)7500_storage)": { + "label": "mapping(uint256 => struct LiquidityBridgeContractV2.LiquidityProvider)" + }, + "t_struct(LiquidityProvider)7500_storage": { + "label": "struct LiquidityBridgeContractV2.LiquidityProvider", + "members": [ + { + "label": "id", + "type": "t_uint256" + }, + { + "label": "provider", + "type": "t_address" + }, + { + "label": "name", + "type": "t_string_storage" + }, + { + "label": "apiBaseUrl", + "type": "t_string_storage" + }, + { + "label": "status", + "type": "t_bool" + }, + { + "label": "providerType", + "type": "t_string_storage" + } + ] + }, + "t_string_storage": { + "label": "string" + }, + "t_bool": { + "label": "bool" + }, + "t_mapping(t_bytes32,t_struct(Registry)7482_storage)": { + "label": "mapping(bytes32 => struct LiquidityBridgeContractV2.Registry)" + }, + "t_bytes32": { + "label": "bytes32" + }, + "t_struct(Registry)7482_storage": { + "label": "struct LiquidityBridgeContractV2.Registry", + "members": [ + { + "label": "timestamp", + "type": "t_uint32" + }, + { + "label": "success", + "type": "t_bool" + } + ] + }, + "t_uint32": { + "label": "uint32" + }, + "t_mapping(t_bytes32,t_uint8)": { + "label": "mapping(bytes32 => uint8)" + }, + "t_uint8": { + "label": "uint8" + }, + "t_mapping(t_bytes32,t_struct(PegOutQuote)10638_storage)": { + "label": "mapping(bytes32 => struct QuotesV2.PegOutQuote)" + }, + "t_struct(PegOutQuote)10638_storage": { + "label": "struct QuotesV2.PegOutQuote", + "members": [ + { + "label": "lbcAddress", + "type": "t_address" + }, + { + "label": "lpRskAddress", + "type": "t_address" + }, + { + "label": "btcRefundAddress", + "type": "t_bytes_storage" + }, + { + "label": "rskRefundAddress", + "type": "t_address" + }, + { + "label": "lpBtcAddress", + "type": "t_bytes_storage" + }, + { + "label": "callFee", + "type": "t_uint256" + }, + { + "label": "penaltyFee", + "type": "t_uint256" + }, + { + "label": "nonce", + "type": "t_int64" + }, + { + "label": "deposityAddress", + "type": "t_bytes_storage" + }, + { + "label": "value", + "type": "t_uint256" + }, + { + "label": "agreementTimestamp", + "type": "t_uint32" + }, + { + "label": "depositDateLimit", + "type": "t_uint32" + }, + { + "label": "depositConfirmations", + "type": "t_uint16" + }, + { + "label": "transferConfirmations", + "type": "t_uint16" + }, + { + "label": "transferTime", + "type": "t_uint32" + }, + { + "label": "expireDate", + "type": "t_uint32" + }, + { + "label": "expireBlock", + "type": "t_uint32" + }, + { + "label": "productFeeAmount", + "type": "t_uint256" + }, + { + "label": "gasFee", + "type": "t_uint256" + } + ] + }, + "t_bytes_storage": { + "label": "bytes" + }, + "t_int64": { + "label": "int64" + }, + "t_uint16": { + "label": "uint16" + }, + "t_mapping(t_bytes32,t_struct(PegoutRecord)7487_storage)": { + "label": "mapping(bytes32 => struct LiquidityBridgeContractV2.PegoutRecord)" + }, + "t_struct(PegoutRecord)7487_storage": { + "label": "struct LiquidityBridgeContractV2.PegoutRecord", + "members": [ + { + "label": "depositTimestamp", + "type": "t_uint256" + }, + { + "label": "completed", + "type": "t_bool" + } + ] + }, + "t_array(t_uint256)49_storage": { + "label": "uint256[49]" + }, + "t_array(t_uint256)50_storage": { + "label": "uint256[50]" + } + }, + "namespaces": {} + } } } } diff --git a/build/contracts/Address.json b/build/contracts/Address.json index 5ab9178..552fbe5 100644 --- a/build/contracts/Address.json +++ b/build/contracts/Address.json @@ -4371,7 +4371,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.235Z", + "updatedAt": "2024-05-22T07:27:05.114Z", "devdoc": { "details": "Collection of functions related to the address type", "kind": "dev", diff --git a/build/contracts/AddressUpgradeable.json b/build/contracts/AddressUpgradeable.json index 17f8071..d33aa77 100644 --- a/build/contracts/AddressUpgradeable.json +++ b/build/contracts/AddressUpgradeable.json @@ -4371,7 +4371,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.224Z", + "updatedAt": "2024-05-22T07:27:05.099Z", "devdoc": { "details": "Collection of functions related to the address type", "kind": "dev", diff --git a/build/contracts/Bridge.json b/build/contracts/Bridge.json index b585e69..268beed 100644 --- a/build/contracts/Bridge.json +++ b/build/contracts/Bridge.json @@ -5783,7 +5783,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.244Z", + "updatedAt": "2024-05-22T07:27:05.122Z", "devdoc": { "kind": "dev", "methods": {}, diff --git a/build/contracts/BridgeMock.json b/build/contracts/BridgeMock.json index 2d8ffd2..1b07bdc 100644 --- a/build/contracts/BridgeMock.json +++ b/build/contracts/BridgeMock.json @@ -23815,7 +23815,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.704Z", + "updatedAt": "2024-05-22T07:27:09.296Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/BtcUtils.json b/build/contracts/BtcUtils.json index bd3b8d3..610dd6f 100644 --- a/build/contracts/BtcUtils.json +++ b/build/contracts/BtcUtils.json @@ -40,8 +40,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -65,8 +64,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -85,8 +83,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -105,8 +102,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -130,8 +126,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -155,8 +150,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -175,8 +169,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -195,8 +188,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -215,8 +207,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -245,8 +236,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -270,8 +260,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"header\",\"type\":\"bytes\"}],\"name\":\"getBtcBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"rawTx\",\"type\":\"bytes\"}],\"name\":\"getOutputs\",\"outputs\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"value\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"pkScript\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"scriptSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalSize\",\"type\":\"uint256\"}],\"internalType\":\"struct BtcUtils.TxRawOutput[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"script\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"mainnet\",\"type\":\"bool\"}],\"name\":\"getP2SHAddressFromScript\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"btcTx\",\"type\":\"bytes\"}],\"name\":\"hashBtcTx\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"pkScript\",\"type\":\"bytes\"}],\"name\":\"isP2PKHOutput\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"pkScript\",\"type\":\"bytes\"}],\"name\":\"isP2SHOutput\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"outputScript\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"mainnet\",\"type\":\"bool\"}],\"name\":\"outputScriptToAddress\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"outputScript\",\"type\":\"bytes\"}],\"name\":\"parseNullDataScript\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"outputScript\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"mainnet\",\"type\":\"bool\"}],\"name\":\"parsePayToPubKeyHash\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"outputScript\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"mainnet\",\"type\":\"bool\"}],\"name\":\"parsePayToScriptHash\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"p2sh\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"script\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"mainnet\",\"type\":\"bool\"}],\"name\":\"validateP2SHAdress\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getBtcBlockTimestamp(bytes)\":{\"details\":\"Gets the timestamp of a Bitcoin block header\",\"params\":{\"header\":\"The block header\"},\"returns\":{\"_0\":\"The timestamp of the block header\"}},\"getOutputs(bytes)\":{\"params\":{\"rawTx\":\"the raw transaction\"},\"returns\":{\"_0\":\"An array of `TxRawOutput` with the outputs of the transaction\"}},\"getP2SHAddressFromScript(bytes,bool)\":{\"params\":{\"mainnet\":\"flag to specify if the output should be a mainnet address\",\"script\":\"the script to generate the address from\"},\"returns\":{\"_0\":\"The address generate from the script\"}},\"hashBtcTx(bytes)\":{\"params\":{\"btcTx\":\"the transaction to hash\"},\"returns\":{\"_0\":\"The transaction id \"}},\"isP2PKHOutput(bytes)\":{\"params\":{\"pkScript\":\"the fragment of the raw transaction containing the raw output script\"},\"returns\":{\"_0\":\"Whether the script has a pay-to-public-key-hash output structure or not\"}},\"isP2SHOutput(bytes)\":{\"params\":{\"pkScript\":\"the fragment of the raw transaction containing the raw output script\"},\"returns\":{\"_0\":\"Whether the script has a pay-to-script-hash output structure or not\"}},\"outputScriptToAddress(bytes,bool)\":{\"params\":{\"mainnet\":\"if the address to generate is from mainnet or testnet\",\"outputScript\":\"the fragment of the raw transaction containing the raw output script\"},\"returns\":{\"_0\":\"The address bytes regarless of the output script type\"}},\"parseNullDataScript(bytes)\":{\"params\":{\"outputScript\":\"the fragment of the raw transaction containing the raw output script \"},\"returns\":{\"_0\":\"The content embedded inside the script\"}},\"parsePayToPubKeyHash(bytes,bool)\":{\"params\":{\"mainnet\":\"if the address to generate is from mainnet or testnet \",\"outputScript\":\"the fragment of the raw transaction containing the raw output script\"},\"returns\":{\"_0\":\"The address generated using the receiver's public key hash\"}},\"parsePayToScriptHash(bytes,bool)\":{\"params\":{\"mainnet\":\"if the address to generate is from mainnet or testnet\",\"outputScript\":\"the fragment of the raw transaction containing the raw output script\"},\"returns\":{\"_0\":\"The address generated using the script hash\"}},\"validateP2SHAdress(bytes,bytes,bool)\":{\"params\":{\"mainnet\":\"flag to specify if its a mainnet address\",\"p2sh\":\"the pay-to-script-hash address\",\"script\":\"the script to check\"},\"returns\":{\"_0\":\"Whether the address belongs to the script or not\"}}},\"title\":\"BtcUtils\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getOutputs(bytes)\":{\"notice\":\"Parse a raw transaction to get an array of its outputs in a structured representation\"},\"getP2SHAddressFromScript(bytes,bool)\":{\"notice\":\"Generate a pay-to-script-hash address from a script, the resulting byte array already contains the 4 checksum bytes at the end of it\"},\"hashBtcTx(bytes)\":{\"notice\":\"Hash a bitcoin raw transaction to get its id (reversed double sha256)\"},\"isP2PKHOutput(bytes)\":{\"notice\":\"Check if a raw output script is a pay-to-public-key-hash output\"},\"isP2SHOutput(bytes)\":{\"notice\":\"Check if a raw output script is a pay-to-script-hash output\"},\"outputScriptToAddress(bytes,bool)\":{\"notice\":\"Parse a raw output script whose type is not known by the consumer. The function will return the corresponding address if the type of the script is supported or an error if not. For the addresses that are encoded with base58check the checksum bytes are not included in the resulting byte array\"},\"parseNullDataScript(bytes)\":{\"notice\":\"Parse a raw null-data output script to get its content\"},\"parsePayToPubKeyHash(bytes,bool)\":{\"notice\":\"Parse a raw pay-to-public-key-hash output script to get the corresponding address, the resulting byte array doesn't include the checksum bytes of the base58check encoding at the end\"},\"parsePayToScriptHash(bytes,bool)\":{\"notice\":\"Parse a raw pay-to-script-hash output script to get the corresponding address, the resulting byte array doesn't include the checksum bytes of the base58check encoding at the end\"},\"validateP2SHAdress(bytes,bytes,bool)\":{\"notice\":\"Check if a pay-to-script-hash address belogs to a specific script, expects the address bytes to include the 4 checksum bytes at the end\"}},\"notice\":\"This library contains functionality to make easier to work with Bitcoin transactions in Solidity.This library is based in this document: https://developer.bitcoin.org/reference/transactions.html#raw-transaction-format\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@rsksmart/btc-transaction-solidity-helper/contracts/BtcUtils.sol\":\"BtcUtils\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"@rsksmart/btc-transaction-solidity-helper/contracts/BtcUtils.sol\":{\"keccak256\":\"0x0dc781715e8c751a32cc8a6cb062c0aa315dac2d14f9e00cf93d3aec0ae295e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1dc434f8cc19e5ddf589ec5bab31427e9b0a0eb990e00a217fdfeca7223cf4f9\",\"dweb:/ipfs/QmUpkMKeG7ncvyxpye4Z1izF2NvRK4rJ2nt6fof9TbPsvc\"]},\"@rsksmart/btc-transaction-solidity-helper/contracts/OpCodes.sol\":{\"keccak256\":\"0x74d384b5e0ce7b5be1cb5d1446b40e788a0b3e13522aaa583d73a554c835c4d8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e94fc123058c5e2cc8cd4635f12bcba195b8b57fef895980c519130f44aa5d17\",\"dweb:/ipfs/QmVhqvcmMhvwYeuYgheTFVBo3EHBKuyYpthdhQRwTdBfx4\"]}},\"version\":1}", @@ -24254,16 +24243,9 @@ "name": "solc", "version": "0.8.18+commit.87f61d96.Emscripten.clang" }, - "networks": { - "31": { - "events": {}, - "links": {}, - "address": "0x1a11730F3853EA233D22A57459d361481690cfdD", - "transactionHash": "0x852a97e26a0472436fcf16b72888a7ce19c64d38e03bf8fcb8119f5dbfc4c8a9" - } - }, + "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.723Z", + "updatedAt": "2024-05-22T07:27:09.311Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/Context.json b/build/contracts/Context.json index 6fe6e61..5a7e4e3 100644 --- a/build/contracts/Context.json +++ b/build/contracts/Context.json @@ -340,7 +340,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.237Z", + "updatedAt": "2024-05-22T07:27:05.115Z", "devdoc": { "details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", "kind": "dev", diff --git a/build/contracts/ContextUpgradeable.json b/build/contracts/ContextUpgradeable.json index a62fd27..5da8b8c 100644 --- a/build/contracts/ContextUpgradeable.json +++ b/build/contracts/ContextUpgradeable.json @@ -555,7 +555,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.226Z", + "updatedAt": "2024-05-22T07:27:05.101Z", "devdoc": { "details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", "events": { diff --git a/build/contracts/ERC1967Proxy.json b/build/contracts/ERC1967Proxy.json index 90cc361..e71585b 100644 --- a/build/contracts/ERC1967Proxy.json +++ b/build/contracts/ERC1967Proxy.json @@ -3719,7 +3719,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.227Z", + "updatedAt": "2024-05-22T07:27:05.104Z", "devdoc": { "details": "This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an implementation address that can be changed. This address is stored in storage in the location specified by https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the implementation behind the proxy.", "events": { diff --git a/build/contracts/ERC1967Upgrade.json b/build/contracts/ERC1967Upgrade.json index e85c4b9..256f2da 100644 --- a/build/contracts/ERC1967Upgrade.json +++ b/build/contracts/ERC1967Upgrade.json @@ -3943,7 +3943,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.228Z", + "updatedAt": "2024-05-22T07:27:05.106Z", "devdoc": { "details": "This abstract contract provides getters and event emitting update functions for https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. _Available since v4.1._", "events": { diff --git a/build/contracts/IBeacon.json b/build/contracts/IBeacon.json index 912ca85..b115f35 100644 --- a/build/contracts/IBeacon.json +++ b/build/contracts/IBeacon.json @@ -144,7 +144,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.229Z", + "updatedAt": "2024-05-22T07:27:05.108Z", "devdoc": { "details": "This is the interface that {BeaconProxy} expects of its beacon.", "kind": "dev", diff --git a/build/contracts/IERC1822Proxiable.json b/build/contracts/IERC1822Proxiable.json index 2bede12..a8e90b9 100644 --- a/build/contracts/IERC1822Proxiable.json +++ b/build/contracts/IERC1822Proxiable.json @@ -143,7 +143,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.227Z", + "updatedAt": "2024-05-22T07:27:05.103Z", "devdoc": { "details": "ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified proxy whose upgrades are fully controlled by the current implementation.", "kind": "dev", diff --git a/build/contracts/IERC1967.json b/build/contracts/IERC1967.json index e31cd9e..dcba458 100644 --- a/build/contracts/IERC1967.json +++ b/build/contracts/IERC1967.json @@ -296,7 +296,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.226Z", + "updatedAt": "2024-05-22T07:27:05.103Z", "devdoc": { "details": "ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. _Available since v4.8.3._", "events": { diff --git a/build/contracts/ITransparentUpgradeableProxy.json b/build/contracts/ITransparentUpgradeableProxy.json index 9e02456..8f93959 100644 --- a/build/contracts/ITransparentUpgradeableProxy.json +++ b/build/contracts/ITransparentUpgradeableProxy.json @@ -4124,7 +4124,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.231Z", + "updatedAt": "2024-05-22T07:27:05.110Z", "devdoc": { "details": "Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy} does not implement this interface directly, and some of its functions are implemented by an internal dispatch mechanism. The compiler is unaware that these functions are implemented by {TransparentUpgradeableProxy} and will not include them in the ABI so this interface must be used to interact with it.", "events": { diff --git a/build/contracts/Initializable.json b/build/contracts/Initializable.json index fefafbd..5b367e2 100644 --- a/build/contracts/Initializable.json +++ b/build/contracts/Initializable.json @@ -2083,7 +2083,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.223Z", + "updatedAt": "2024-05-22T07:27:05.097Z", "devdoc": { "custom:oz-upgrades-unsafe-allow": "constructor constructor() { _disableInitializers(); } ``` ====", "details": "This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. The initialization functions use a version number. Once a version number is used, it is consumed and cannot be reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in case an upgrade adds a module that needs to be initialized. For example: [.hljs-theme-light.nopadding] ```solidity contract MyToken is ERC20Upgradeable { function initialize() initializer public { __ERC20_init(\"MyToken\", \"MTK\"); } } contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { function initializeV2() reinitializer(2) public { __ERC20Permit_init(\"MyToken\"); } } ``` TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: [.hljs-theme-light.nopadding] ```", diff --git a/build/contracts/LiquidityBridgeContract.json b/build/contracts/LiquidityBridgeContract.json index 708ff54..a6f75d0 100644 --- a/build/contracts/LiquidityBridgeContract.json +++ b/build/contracts/LiquidityBridgeContract.json @@ -87808,16 +87808,9 @@ "name": "solc", "version": "0.8.18+commit.87f61d96.Emscripten.clang" }, - "networks": { - "31": { - "events": {}, - "links": { - "BtcUtils": "0x1a11730F3853EA233D22A57459d361481690cfdD" - } - } - }, + "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.668Z", + "updatedAt": "2024-05-22T07:27:09.274Z", "networkType": "ethereum", "devdoc": { "events": { diff --git a/build/contracts/LiquidityBridgeContractAdmin.json b/build/contracts/LiquidityBridgeContractAdmin.json index 157e88d..27f1605 100644 --- a/build/contracts/LiquidityBridgeContractAdmin.json +++ b/build/contracts/LiquidityBridgeContractAdmin.json @@ -3865,7 +3865,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.270Z", + "updatedAt": "2024-05-22T07:27:05.148Z", "devdoc": { "kind": "dev", "methods": { diff --git a/build/contracts/LiquidityBridgeContractProxy.json b/build/contracts/LiquidityBridgeContractProxy.json index 0edb4e2..338f26d 100644 --- a/build/contracts/LiquidityBridgeContractProxy.json +++ b/build/contracts/LiquidityBridgeContractProxy.json @@ -6889,7 +6889,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.271Z", + "updatedAt": "2024-05-22T07:27:05.149Z", "devdoc": { "events": { "AdminChanged(address,address)": { diff --git a/build/contracts/LiquidityBridgeContractV2.json b/build/contracts/LiquidityBridgeContractV2.json index 2c4df70..daef104 100644 --- a/build/contracts/LiquidityBridgeContractV2.json +++ b/build/contracts/LiquidityBridgeContractV2.json @@ -452,8 +452,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -466,8 +465,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -480,8 +478,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -494,8 +491,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -508,8 +504,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -522,8 +517,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -536,8 +530,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -550,8 +543,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -564,8 +556,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -578,8 +569,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -592,8 +582,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -606,8 +595,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -620,8 +608,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -634,8 +621,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -648,8 +634,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -662,8 +647,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -676,8 +660,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -690,8 +673,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -704,8 +686,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -718,8 +699,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -732,8 +712,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -757,8 +736,7 @@ }, { "stateMutability": "payable", - "type": "receive", - "payable": true + "type": "receive" }, { "inputs": [ @@ -789,8 +767,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -803,8 +780,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -817,8 +793,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -831,8 +806,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -845,8 +819,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -859,8 +832,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], @@ -873,8 +845,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -893,8 +864,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -913,8 +883,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -933,8 +902,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -968,8 +936,7 @@ } ], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [ @@ -1020,32 +987,28 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [], "name": "addCollateral", "outputs": [], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [], "name": "addPegoutCollateral", "outputs": [], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [], "name": "deposit", "outputs": [], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [ @@ -1091,8 +1054,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -1111,8 +1073,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -1131,8 +1092,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -1253,8 +1213,7 @@ } ], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [ @@ -1510,8 +1469,7 @@ "name": "depositPegout", "outputs": [], "stateMutability": "payable", - "type": "function", - "payable": true + "type": "function" }, { "inputs": [ @@ -1683,8 +1641,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -1805,8 +1762,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -1922,8 +1878,7 @@ } ], "stateMutability": "view", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -85603,21 +85558,9 @@ "name": "solc", "version": "0.8.18+commit.87f61d96.Emscripten.clang" }, - "networks": { - "31": { - "events": {}, - "links": { - "SignatureValidator": "0xe90bAe63CB58f7da3915C8478aD1823BC8A3BEb5", - "QuotesV2": "0x0b4b80314A33F65089386C2E1e0f61f1d0B56487", - "BtcUtils": "0x1a11730F3853EA233D22A57459d361481690cfdD" - }, - "address": "0x18D8212bC00106b93070123f325021C723D503a3", - "transactionHash": "0x8453270893c0261368ee6f8f7713cd0f7df1f47f8a6f153a94be3a1763b5f14a" - } - }, + "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:26.382Z", - "networkType": "ethereum", + "updatedAt": "2024-05-22T07:27:05.150Z", "devdoc": { "events": { "Initialized(uint8)": { diff --git a/build/contracts/Migrations.json b/build/contracts/Migrations.json index 98d2065..bfaab96 100644 --- a/build/contracts/Migrations.json +++ b/build/contracts/Migrations.json @@ -1076,7 +1076,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.729Z", + "updatedAt": "2024-05-22T07:34:37.780Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/Mock.json b/build/contracts/Mock.json index 453ae2b..bb93c4c 100644 --- a/build/contracts/Mock.json +++ b/build/contracts/Mock.json @@ -2349,7 +2349,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.699Z", + "updatedAt": "2024-05-22T07:27:09.293Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/OpCodes.json b/build/contracts/OpCodes.json index 07fac99..e185a38 100644 --- a/build/contracts/OpCodes.json +++ b/build/contracts/OpCodes.json @@ -551,7 +551,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.243Z", + "updatedAt": "2024-05-22T07:27:05.122Z", "devdoc": { "kind": "dev", "methods": {}, diff --git a/build/contracts/Ownable.json b/build/contracts/Ownable.json index bf3bbf5..e082f5d 100644 --- a/build/contracts/Ownable.json +++ b/build/contracts/Ownable.json @@ -1394,7 +1394,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.226Z", + "updatedAt": "2024-05-22T07:27:05.102Z", "devdoc": { "details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.", "kind": "dev", diff --git a/build/contracts/OwnableUpgradeable.json b/build/contracts/OwnableUpgradeable.json index aa4bc76..bfa56f6 100644 --- a/build/contracts/OwnableUpgradeable.json +++ b/build/contracts/OwnableUpgradeable.json @@ -1612,7 +1612,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.221Z", + "updatedAt": "2024-05-22T07:27:05.094Z", "devdoc": { "details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.", "events": { diff --git a/build/contracts/Proxy.json b/build/contracts/Proxy.json index 1b43a7c..99551b9 100644 --- a/build/contracts/Proxy.json +++ b/build/contracts/Proxy.json @@ -813,7 +813,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.229Z", + "updatedAt": "2024-05-22T07:27:05.108Z", "devdoc": { "details": "This abstract contract provides a fallback function that delegates all calls to another contract using the EVM instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to be specified by overriding the virtual {_implementation} function. Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a different contract through the {_delegate} function. The success and return data of the delegated call will be returned back to the caller of the proxy.", "kind": "dev", diff --git a/build/contracts/ProxyAdmin.json b/build/contracts/ProxyAdmin.json index 060323b..f0d7ba5 100644 --- a/build/contracts/ProxyAdmin.json +++ b/build/contracts/ProxyAdmin.json @@ -5459,7 +5459,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.230Z", + "updatedAt": "2024-05-22T07:27:05.108Z", "devdoc": { "details": "This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.", "kind": "dev", diff --git a/build/contracts/Quotes.json b/build/contracts/Quotes.json index 7da0fbe..a506c01 100644 --- a/build/contracts/Quotes.json +++ b/build/contracts/Quotes.json @@ -15168,7 +15168,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.713Z", + "updatedAt": "2024-05-22T07:27:09.304Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/QuotesV2.json b/build/contracts/QuotesV2.json index d2a775c..16c623e 100644 --- a/build/contracts/QuotesV2.json +++ b/build/contracts/QuotesV2.json @@ -120,8 +120,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -237,8 +236,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" }, { "inputs": [ @@ -358,8 +356,7 @@ "name": "checkAgreedAmount", "outputs": [], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes20\",\"name\":\"fedBtcAddress\",\"type\":\"bytes20\"},{\"internalType\":\"address\",\"name\":\"lbcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"liquidityProviderRskAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"btcRefundAddress\",\"type\":\"bytes\"},{\"internalType\":\"address payable\",\"name\":\"rskRefundAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"liquidityProviderBtcAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"penaltyFee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"internalType\":\"int64\",\"name\":\"nonce\",\"type\":\"int64\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"agreementTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"timeForDeposit\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"callTime\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"depositConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"callOnRegister\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"productFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasFee\",\"type\":\"uint256\"}],\"internalType\":\"struct QuotesV2.PeginQuote\",\"name\":\"quote\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"transferredAmount\",\"type\":\"uint256\"}],\"name\":\"checkAgreedAmount\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"lbcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lpRskAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"btcRefundAddress\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"rskRefundAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"lpBtcAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"penaltyFee\",\"type\":\"uint256\"},{\"internalType\":\"int64\",\"name\":\"nonce\",\"type\":\"int64\"},{\"internalType\":\"bytes\",\"name\":\"deposityAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"agreementTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"depositDateLimit\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"depositConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"transferConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"uint32\",\"name\":\"transferTime\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"expireDate\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"expireBlock\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"productFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasFee\",\"type\":\"uint256\"}],\"internalType\":\"struct QuotesV2.PegOutQuote\",\"name\":\"quote\",\"type\":\"tuple\"}],\"name\":\"encodePegOutQuote\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes20\",\"name\":\"fedBtcAddress\",\"type\":\"bytes20\"},{\"internalType\":\"address\",\"name\":\"lbcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"liquidityProviderRskAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"btcRefundAddress\",\"type\":\"bytes\"},{\"internalType\":\"address payable\",\"name\":\"rskRefundAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"liquidityProviderBtcAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"callFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"penaltyFee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"internalType\":\"int64\",\"name\":\"nonce\",\"type\":\"int64\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"agreementTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"timeForDeposit\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"callTime\",\"type\":\"uint32\"},{\"internalType\":\"uint16\",\"name\":\"depositConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"callOnRegister\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"productFeeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasFee\",\"type\":\"uint256\"}],\"internalType\":\"struct QuotesV2.PeginQuote\",\"name\":\"quote\",\"type\":\"tuple\"}],\"name\":\"encodeQuote\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/QuotesV2.sol\":\"QuotesV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"project:/contracts/QuotesV2.sol\":{\"keccak256\":\"0xda3afec2b2b9aae5c1747ffcd7646fd0680965743702961b08236e0cce699d35\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0e751b7128c53b32303e573fb14796eb0e8912d50114c8824ad307ac632725ee\",\"dweb:/ipfs/QmTyF3Dmw1d7crXtSALUsaQcHtp5cCzUo1xEtyG3uBtXAY\"]}},\"version\":1}", @@ -16120,8 +16117,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:26.368Z", - "networkType": "ethereum", + "updatedAt": "2024-05-22T07:27:05.176Z", "devdoc": { "kind": "dev", "methods": {}, diff --git a/build/contracts/ReentrancyGuardUpgradeable.json b/build/contracts/ReentrancyGuardUpgradeable.json index 9db1a6d..7bc33e7 100644 --- a/build/contracts/ReentrancyGuardUpgradeable.json +++ b/build/contracts/ReentrancyGuardUpgradeable.json @@ -956,7 +956,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.223Z", + "updatedAt": "2024-05-22T07:27:05.099Z", "devdoc": { "details": "Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions marked as `nonReentrant` may not call one another. This can be worked around by making those functions `private`, and then adding `external` `nonReentrant` entry points to them. TIP: If you would like to learn more about reentrancy and alternative ways to protect against it, check out our blog post https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].", "events": { diff --git a/build/contracts/SignatureValidator.json b/build/contracts/SignatureValidator.json index 496e072..f486a13 100644 --- a/build/contracts/SignatureValidator.json +++ b/build/contracts/SignatureValidator.json @@ -28,8 +28,7 @@ } ], "stateMutability": "pure", - "type": "function", - "constant": true + "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"quoteHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"verify(address,bytes32,bytes)\":{\"details\":\"Verfies signature against address\",\"params\":{\"addr\":\"The signing address\",\"quoteHash\":\"The hash of the signed data\",\"signature\":\"The signature containing v, r and s\"},\"returns\":{\"_0\":\"True if the signature is valid, false otherwise.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/SignatureValidator.sol\":\"SignatureValidator\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1},\"remappings\":[]},\"sources\":{\"project:/contracts/SignatureValidator.sol\":{\"keccak256\":\"0x9d72920dd5ff2891c8dd3b3a814c1b108e82fcc6dfd849c96842e88c01d25b2c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8df1167e9def35ced4a620e3fa1e6d148bc7c1fb995378bf12dabef250b3be65\",\"dweb:/ipfs/QmZJJchWvzUeMb68VPHFGnMXBx7aMhK5GqJy8ECDx2rf58\"]}},\"version\":1}", @@ -2969,7 +2968,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.710Z", + "updatedAt": "2024-05-22T07:27:09.302Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/SignatureValidatorMock.json b/build/contracts/SignatureValidatorMock.json index 8f3b061..2d78f93 100644 --- a/build/contracts/SignatureValidatorMock.json +++ b/build/contracts/SignatureValidatorMock.json @@ -1727,7 +1727,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-22T06:55:55.719Z", + "updatedAt": "2024-05-22T07:27:09.308Z", "networkType": "ethereum", "devdoc": { "kind": "dev", diff --git a/build/contracts/StorageSlot.json b/build/contracts/StorageSlot.json index 1b55970..7404bb9 100644 --- a/build/contracts/StorageSlot.json +++ b/build/contracts/StorageSlot.json @@ -1513,7 +1513,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.237Z", + "updatedAt": "2024-05-22T07:27:05.116Z", "devdoc": { "details": "Library for reading and writing primitive types to specific storage slots. Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. This library helps with reading and writing to such slots without the need for inline assembly. The functions in this library return Slot structs that contain a `value` member that can be used to read or write. Example usage to set ERC1967 implementation slot: ```solidity contract ERC1967 { bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } function _setImplementation(address newImplementation) internal { require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\"); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } } ``` _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ _Available since v4.9 for `string`, `bytes`._", "kind": "dev", diff --git a/build/contracts/TransparentUpgradeableProxy.json b/build/contracts/TransparentUpgradeableProxy.json index 09991bb..e5ad50a 100644 --- a/build/contracts/TransparentUpgradeableProxy.json +++ b/build/contracts/TransparentUpgradeableProxy.json @@ -10601,7 +10601,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.232Z", + "updatedAt": "2024-05-22T07:27:05.111Z", "devdoc": { "details": "This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy. NOTE: The real interface of this proxy is that defined in `ITransparentUpgradeableProxy`. This contract does not inherit from that interface, and instead the admin functions are implicitly implemented using a custom dispatch mechanism in `_fallback`. Consequently, the compiler will not produce an ABI for this contract. This is necessary to fully implement transparency without decoding reverts caused by selector clashes between the proxy and the implementation. WARNING: It is not recommended to extend this contract to add additional external functions. If you do so, the compiler will not check that there are no selector conflicts, due to the note above. A selector clash between any new function and the functions declared in {ITransparentUpgradeableProxy} will be resolved in favor of the new one. This could render the admin operations inaccessible, which could prevent upgradeability. Transparency may also be compromised.", "events": { diff --git a/build/contracts/WalletMock.json b/build/contracts/WalletMock.json index 3e9e364..0cd4104 100644 --- a/build/contracts/WalletMock.json +++ b/build/contracts/WalletMock.json @@ -782,7 +782,7 @@ }, "networks": {}, "schemaVersion": "3.4.13", - "updatedAt": "2024-05-21T23:47:25.305Z", + "updatedAt": "2024-05-22T07:27:05.180Z", "devdoc": { "kind": "dev", "methods": {}, diff --git a/config.json b/config.json index 0e7fd4c..1f3ac8e 100644 --- a/config.json +++ b/config.json @@ -134,7 +134,7 @@ "deployed": true }, "QuotesV2": { - "address": "0x8655F2455dA372f07a930F4275460B0265635FdC", + "address": "0xe3cdAe87f8e843D8607184F8dE404EBc9F5f9Cc4", "deployed": false } }