Skip to content

Commit

Permalink
chore: Upgrade LBC to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoares85 committed May 22, 2024
1 parent 1a5ecfc commit 23f70b7
Show file tree
Hide file tree
Showing 36 changed files with 560 additions and 110 deletions.
368 changes: 368 additions & 0 deletions .openzeppelin/unknown-31.json
Original file line number Diff line number Diff line change
Expand Up @@ -8753,6 +8753,374 @@
},
"namespaces": {}
}
},
"56b4d8730bb2da365dde94906809b9c6e3282992debae620b5238d4dcf7fe477": {
"address": "0x7fD406aebE278B77B1304Ed97c547a479aF834C8",
"txHash": "0xf0130b482e1960ef79d6de4d81e6a02307970603579a3380b34f4e120d2abe52",
"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": {}
}
}
}
}
2 changes: 1 addition & 1 deletion build/contracts/Address.json
Original file line number Diff line number Diff line change
Expand Up @@ -4371,7 +4371,7 @@
},
"networks": {},
"schemaVersion": "3.4.13",
"updatedAt": "2024-05-22T07:27:05.114Z",
"updatedAt": "2024-05-22T08:24:03.620Z",
"devdoc": {
"details": "Collection of functions related to the address type",
"kind": "dev",
Expand Down
2 changes: 1 addition & 1 deletion build/contracts/AddressUpgradeable.json
Original file line number Diff line number Diff line change
Expand Up @@ -4371,7 +4371,7 @@
},
"networks": {},
"schemaVersion": "3.4.13",
"updatedAt": "2024-05-22T07:27:05.099Z",
"updatedAt": "2024-05-22T08:24:03.606Z",
"devdoc": {
"details": "Collection of functions related to the address type",
"kind": "dev",
Expand Down
Loading

0 comments on commit 23f70b7

Please sign in to comment.