Skip to content

Commit

Permalink
feat: add migration script for upgrading RNSAuction and deploy `RNS…
Browse files Browse the repository at this point in the history
…Operation` (#135)
  • Loading branch information
ducthotran2010 authored Dec 5, 2023
2 parents 3ff1d46 + 2a9e0e1 commit b9a44cf
Show file tree
Hide file tree
Showing 18 changed files with 10,696 additions and 3,127 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

118 changes: 118 additions & 0 deletions broadcast/20231124_DeployRNSOperation.s.sol/2021/run-1700813839.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"transactions": [
{
"hash": "0x4707d6b011412097bb9ba87962b2c9753954fbb164fe5c79b3cc66824d9a06f1",
"transactionType": "CREATE",
"contractName": "RNSOperation",
"contractAddress": "0x64cc51f89d337c7327E1351D7568b733517eB851",
"function": null,
"arguments": [
"0xf0c99c9677EDa0D13291C093b27E6512E4ACdF83",
"0x803c459dCB8771e5354D1fC567Ecc6885A9fd5E6",
"0xb962eddeD164f55D136E491a3022246815e1B5A8"
],
"transaction": {
"type": "0x00",
"from": "0x968d0cd7343f711216817e617d3f92a23dc91c07",
"gas": "0xefa77",
"value": "0x0",
"data": "0x60e060405234801561001057600080fd5b50604051610d8d380380610d8d83398101604081905261002f916100bc565b61003833610054565b6001600160a01b03928316608052821660c0521660a052610109565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100b957600080fd5b50565b6000806000606084860312156100d157600080fd5b83516100dc816100a4565b60208501519093506100ed816100a4565b60408501519092506100fe816100a4565b809150509250925092565b60805160a05160c051610c3a6101536000396000818161017601526101c601526000818160a8015261034b015260008181610127015281816102d701526104120152610c3a6000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461014957806371e8704d146101515780637d9f6db5146101715780638da5cb5b14610198578063f2fde38b146101a957600080fd5b806304f3bcec146100a357806319edebf2146100e757806338d73f63146100fc5780635ca032941461010f578063663b44c514610122575b600080fd5b6100ca7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100fa6100f536600461074d565b6101bc565b005b6100fa61010a3660046107e7565b61026e565b6100fa61011d36600461085d565b610408565b6100ca7f000000000000000000000000000000000000000000000000000000000000000081565b6100fa61049e565b61016461015f3660046108b4565b6104b2565b6040516100de9190610931565b6100ca7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03166100ca565b6100fa6101b7366004610967565b6105ba565b6101c4610633565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166391a3823f86866101ff87876104b2565b856040518563ffffffff1660e01b815260040161021f9493929190610982565b6000604051808303816000875af115801561023e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102669190810190610a0c565b505050505050565b610276610633565b8184146102ca5760405162461bcd60e51b815260206004820152601d60248201527f524e534f7065726174696f6e3a206c656e677468206d69736d6174636800000060448201526064015b60405180910390fd5b60005b82811015610266577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630570891f7fba69923fa107dbf5a25a073a10b7c9216ae39fbadc95dc891d460d9ae315d68886868581811061033757610337610ad1565b90506020028101906103499190610ae7565b7f00000000000000000000000000000000000000000000000000000000000000008b8b8881811061037c5761037c610ad1565b90506020020160208101906103919190610967565b886040518763ffffffff1660e01b81526004016103b396959493929190610b2e565b60408051808303816000875af11580156103d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f59190610b8b565b50508061040190610bb9565b90506102cd565b610410610633565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ec63b01f61044985856104b2565b836040518363ffffffff1660e01b8152600401610467929190610be0565b600060405180830381600087803b15801561048157600080fd5b505af1158015610495573d6000803e3d6000fd5b50505050505050565b6104a6610633565b6104b0600061068d565b565b60608167ffffffffffffffff8111156104cd576104cd6109eb565b6040519080825280602002602001820160405280156104f6578160200160208202803683370190505b50905060005b828110156105b3576105867fba69923fa107dbf5a25a073a10b7c9216ae39fbadc95dc891d460d9ae315d68885858481811061053a5761053a610ad1565b905060200281019061054c9190610ae7565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506106dd92505050565b82828151811061059857610598610ad1565b60209081029190910101526105ac81610bb9565b90506104fc565b5092915050565b6105c2610633565b6001600160a01b0381166106275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c1565b6106308161068d565b50565b6000546001600160a01b031633146104b05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000918252805160209182012090526040902090565b60008083601f84011261070557600080fd5b50813567ffffffffffffffff81111561071d57600080fd5b6020830191508360208260051b850101111561073857600080fd5b9250929050565b801515811461063057600080fd5b60008060008060006060868803121561076557600080fd5b853567ffffffffffffffff8082111561077d57600080fd5b61078989838a016106f3565b909750955060208801359150808211156107a257600080fd5b506107af888289016106f3565b90945092505060408601356107c38161073f565b809150509295509295909350565b67ffffffffffffffff8116811461063057600080fd5b6000806000806000606086880312156107ff57600080fd5b853567ffffffffffffffff8082111561081757600080fd5b61082389838a016106f3565b9097509550602088013591508082111561083c57600080fd5b50610849888289016106f3565b90945092505060408601356107c3816107d1565b60008060006040848603121561087257600080fd5b833567ffffffffffffffff81111561088957600080fd5b610895868287016106f3565b90945092505060208401356108a98161073f565b809150509250925092565b600080602083850312156108c757600080fd5b823567ffffffffffffffff8111156108de57600080fd5b6108ea858286016106f3565b90969095509350505050565b600081518084526020808501945080840160005b838110156109265781518752958201959082019060010161090a565b509495945050505050565b60208152600061094460208301846108f6565b9392505050565b80356001600160a01b038116811461096257600080fd5b919050565b60006020828403121561097957600080fd5b6109448261094b565b6060808252810184905260008560808301825b878110156109c3576001600160a01b036109ae8461094b565b16825260209283019290910190600101610995565b5083810360208501526109d681876108f6565b92505050821515604083015295945050505050565b634e487b7160e01b600052604160045260246000fd5b80516109628161073f565b60006020808385031215610a1f57600080fd5b825167ffffffffffffffff80821115610a3757600080fd5b818501915085601f830112610a4b57600080fd5b815181811115610a5d57610a5d6109eb565b8060051b604051601f19603f83011681018181108582111715610a8257610a826109eb565b604052918252848201925083810185019188831115610aa057600080fd5b938501935b82851015610ac557610ab685610a01565b84529385019392850192610aa5565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112610afe57600080fd5b83018035915067ffffffffffffffff821115610b1957600080fd5b60200191503681900382131561073857600080fd5b86815260a060208201528460a0820152848660c0830137600060c08683018101919091526001600160a01b03948516604083015292909316606084015267ffffffffffffffff166080830152601f909201601f1916010192915050565b60008060408385031215610b9e57600080fd5b8251610ba9816107d1565b6020939093015192949293505050565b600060018201610bd957634e487b7160e01b600052601160045260246000fd5b5060010190565b604081526000610bf360408301856108f6565b90508215156020830152939250505056fea2646970667358221220740b9574a3a60d51c9153c3c1fc4d37b014870c53a5b57950a6a050a94f9d1ba64736f6c63430008150033000000000000000000000000f0c99c9677eda0d13291c093b27e6512e4acdf83000000000000000000000000803c459dcb8771e5354d1fc567ecc6885a9fd5e6000000000000000000000000b962edded164f55d136e491a3022246815e1b5a8",
"nonce": "0x2d3c9"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0xcf04bc25f9de13eda4c74f0c7076c89146603aa206678723966cbbd968cdce69",
"transactionType": "CALL",
"contractName": "RNSOperation",
"contractAddress": "0x64cc51f89d337c7327E1351D7568b733517eB851",
"function": "transferOwnership(address)",
"arguments": [
"0x968D0Cd7343f711216817E617d3f92a23dC91c07"
],
"transaction": {
"type": "0x00",
"from": "0x968d0cd7343f711216817e617d3f92a23dc91c07",
"to": "0x64cc51f89d337c7327e1351d7568b733517eb851",
"gas": "0x9444",
"value": "0x0",
"data": "0xf2fde38b000000000000000000000000968d0cd7343f711216817e617d3f92a23dc91c07",
"nonce": "0x2d3ca"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x4eddf665b0bc4c705dfcd33570857e4496678aaf30427504bedc5555404d1040",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xf0c99c9677EDa0D13291C093b27E6512E4ACdF83",
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x968d0cd7343f711216817e617d3f92a23dc91c07",
"to": "0xf0c99c9677eda0d13291c093b27e6512e4acdf83",
"gas": "0x11021",
"value": "0x0",
"data": "0xa22cb46500000000000000000000000064cc51f89d337c7327e1351d7568b733517eb8510000000000000000000000000000000000000000000000000000000000000001",
"nonce": "0x2d3cb"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x489c7245a90016c5a67e653454c67685c419b8261b2a5e176b6b25f726327c6c",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xb962eddeD164f55D136E491a3022246815e1B5A8",
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x968d0cd7343f711216817e617d3f92a23dc91c07",
"to": "0xb962edded164f55d136e491a3022246815e1b5a8",
"gas": "0x23467",
"value": "0x0",
"data": "0x2f2ff15d97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92900000000000000000000000064cc51f89d337c7327e1351d7568b733517eb851",
"nonce": "0x2d3cc"
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0x666b8957362eb68b0cd8ed8154d9d99fde202120b21027a35810ebc211d728db",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xf0c99c9677EDa0D13291C093b27E6512E4ACdF83",
"function": null,
"arguments": null,
"transaction": {
"type": "0x00",
"from": "0x968d0cd7343f711216817e617d3f92a23dc91c07",
"to": "0xf0c99c9677eda0d13291c093b27e6512e4acdf83",
"gas": "0x2154a",
"value": "0x0",
"data": "0x2f2ff15d9e4a939112df4627ab5078e49dd57d2c45b4cffd9ae0b912f9fc355e5b10803800000000000000000000000064cc51f89d337c7327e1351d7568b733517eb851",
"nonce": "0x2d3cd"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [
"0x4707d6b011412097bb9ba87962b2c9753954fbb164fe5c79b3cc66824d9a06f1",
"0xcf04bc25f9de13eda4c74f0c7076c89146603aa206678723966cbbd968cdce69",
"0x4eddf665b0bc4c705dfcd33570857e4496678aaf30427504bedc5555404d1040",
"0x489c7245a90016c5a67e653454c67685c419b8261b2a5e176b6b25f726327c6c",
"0x666b8957362eb68b0cd8ed8154d9d99fde202120b21027a35810ebc211d728db"
],
"returns": {},
"timestamp": 1700813839,
"chain": 2021,
"multi": false,
"commit": "3ff1d46"
}
Loading

0 comments on commit b9a44cf

Please sign in to comment.