Skip to content

Commit

Permalink
feat: deploy to scroll mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
thongxuan committed Jul 10, 2024
1 parent bf52898 commit 0df5c06
Show file tree
Hide file tree
Showing 7 changed files with 1,195 additions and 0 deletions.
284 changes: 284 additions & 0 deletions .openzeppelin/unknown-534352.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0x0face3fDBE5cCad109C97fE4131a1f69Ccf45e6e",
"txHash": "0x74cb670e8e5ae225b8cd7fa08899d59f420e0e65a04e1c0e6336adbed9a496af",
"kind": "transparent"
},
{
"address": "0x8F06e23108403707d3F3D5630486693DFB826A6b",
"txHash": "0x50e5445155408278c2bded267b3e75268244ec9272c1e26d71aa4b7ce76ccd67",
"kind": "transparent"
},
{
"address": "0xb10d362D99F29FcaA1D0a4091d6878b806F93383",
"txHash": "0x2515f9d8038cd0d9bae9de5bfff384331c73b3c735c813ddf0c01130f73a965b",
"kind": "transparent"
}
],
"impls": {
"3bf7bb368c7220231dba6c0a3d92bd61d9082882a54f0c4c7e44d495f099172d": {
"address": "0x6065a5ec435854187b0b3225336b4FAdc1d01ce5",
"txHash": "0x8ee0abbfdddfc55214c24a6917d03aa355619d03198905759e6fef6c8ecf727f",
"layout": {
"solcVersion": "0.8.4",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "accessRegistry",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "PaymentConfigRegistry",
"src": "contracts/payment/PaymentConfigRegistry.sol:21"
},
{
"label": "authorizedSigner",
"offset": 0,
"slot": "102",
"type": "t_address",
"contract": "PaymentConfigRegistry",
"src": "contracts/payment/PaymentConfigRegistry.sol:22"
},
{
"label": "feePPM",
"offset": 0,
"slot": "103",
"type": "t_uint256",
"contract": "PaymentConfigRegistry",
"src": "contracts/payment/PaymentConfigRegistry.sol:23"
},
{
"label": "__gap",
"offset": 0,
"slot": "104",
"type": "t_array(t_uint256)20_storage",
"contract": "PaymentConfigRegistry",
"src": "contracts/payment/PaymentConfigRegistry.sol:24"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)20_storage": {
"label": "uint256[20]",
"numberOfBytes": "640"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
},
"4c4e2f108a6dc9ff4bf3e23194d239343dc14798fb81d3af86b2ae2c62a0c651": {
"address": "0x9fAa5494298205c9E81aEB4aA9bE99c45D4CE6e5",
"txHash": "0xb2fdee2a2ebae18d2fa4ae8ad23f7a120c533457fd1dfcd63ef674cf55f88887",
"layout": {
"solcVersion": "0.8.4",
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:40"
},
{
"label": "_owner",
"offset": 0,
"slot": "51",
"type": "t_address",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22"
},
{
"label": "__gap",
"offset": 0,
"slot": "52",
"type": "t_array(t_uint256)49_storage",
"contract": "OwnableUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:94"
},
{
"label": "configRegistry",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "LemonadeRelayPayment",
"src": "contracts/payment/relay/LemonadeRelayPayment.sol:40"
},
{
"label": "payments",
"offset": 0,
"slot": "102",
"type": "t_mapping(t_bytes32,t_struct(Payment)24796_storage)",
"contract": "LemonadeRelayPayment",
"src": "contracts/payment/relay/LemonadeRelayPayment.sol:41"
},
{
"label": "splitters",
"offset": 0,
"slot": "103",
"type": "t_mapping(t_address,t_bool)",
"contract": "LemonadeRelayPayment",
"src": "contracts/payment/relay/LemonadeRelayPayment.sol:42"
},
{
"label": "__gap",
"offset": 0,
"slot": "104",
"type": "t_array(t_uint256)20_storage",
"contract": "LemonadeRelayPayment",
"src": "contracts/payment/relay/LemonadeRelayPayment.sol:43"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)20_storage": {
"label": "uint256[20]",
"numberOfBytes": "640"
},
"t_array(t_uint256)49_storage": {
"label": "uint256[49]",
"numberOfBytes": "1568"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_bool)": {
"label": "mapping(address => bool)",
"numberOfBytes": "32"
},
"t_mapping(t_bytes32,t_struct(Payment)24796_storage)": {
"label": "mapping(bytes32 => struct LemonadeRelayPayment.Payment)",
"numberOfBytes": "32"
},
"t_struct(Payment)24796_storage": {
"label": "struct LemonadeRelayPayment.Payment",
"members": [
{
"label": "guest",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "currency",
"type": "t_address",
"offset": 0,
"slot": "1"
},
{
"label": "amount",
"type": "t_uint256",
"offset": 0,
"slot": "2"
}
],
"numberOfBytes": "96"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
},
"namespaces": {}
}
}
}
}
7 changes: 7 additions & 0 deletions deploy/scroll/AccessRegistry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { deployFunction } from "../../services/AccessRegistry";

export default deployFunction([
{ role: 'TRUSTED_CLAIMER_ROLE', account: '0xB25D3d684EAB618B51eE8A3127FBacA6224DaFA9', grant: true },
{ role: 'TRUSTED_OPERATOR_ROLE', account: '0xB25D3d684EAB618B51eE8A3127FBacA6224DaFA9', grant: true },
{ role: 'PAYMENT_ADMIN_ROLE', account: '0x6950Af4b7815c15073066C7540b1c64Fa7Be97F1', grant: true },
]);
1 change: 1 addition & 0 deletions deployments/scroll/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
534352
Loading

0 comments on commit 0df5c06

Please sign in to comment.