Skip to content

Commit

Permalink
feat: update deployment for latest impl
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGuru7 committed Nov 28, 2023
1 parent a5200a4 commit 62aba9c
Show file tree
Hide file tree
Showing 12 changed files with 896 additions and 296 deletions.
92 changes: 46 additions & 46 deletions deployments/bsctestnet/XVSBridgeAdmin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"abi": [
{
"anonymous": false,
Expand Down Expand Up @@ -162,7 +162,7 @@
{
"indexed": false,
"internalType": "bool",
"name": "isRemoved",
"name": "active",
"type": "bool"
}
],
Expand Down Expand Up @@ -427,7 +427,7 @@
},
{
"internalType": "bool[]",
"name": "remove_",
"name": "active_",
"type": "bool[]"
}
],
Expand Down Expand Up @@ -458,83 +458,83 @@
"type": "constructor"
}
],
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"receipt": {
"to": null,
"from": "0x03862dFa5D0be8F64509C001cb8C6188194469DF",
"contractAddress": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 3,
"contractAddress": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"transactionIndex": 2,
"gasUsed": "796607",
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800080000000000000000000400000000000000000000000000000000000000000000080000000000000800000000000001000000000000000000400000000000400800000000040000000000000000020000000000000000200040000000000000400000400400000010020000000000000000000000000000001000000000800000000000000000000000000",
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47",
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000002000000000000000000000000000000000000000000000000000008000000000000000000000000000000002000001000000000000000000000000000001000000020000000000000000000800000000800000000000000000000000400000000000000000000100000000000000000000000080000000000000800000000000001000000000000000000400000000000000880000000000000000000000000020000000000000000200040000000000000400000000c00000000020000000000000000000000000000000000000000800200000000000000000000000",
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4",
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"logs": [
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
"0x000000000000000000000000825bc313102cb102f5f0d8ebca19913dd17592db"
"0x0000000000000000000000008a4c5090d972c83c44e8132a1fc2ff3e948e9a71"
],
"data": "0x",
"logIndex": 2,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 0,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000003862dfa5d0be8f64509c001cb8c6188194469df"
],
"data": "0x",
"logIndex": 3,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 1,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045f8a08f534f34a97187626e05d4b6648eeaa9aa",
"logIndex": 4,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 2,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"logIndex": 5,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 3,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043fd9f2dacb36853dbfba269a7539706e787cfce",
"logIndex": 6,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef480a5654b231ff7d80a0681f938f3db71a6ca6",
"logIndex": 4,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
}
],
"blockNumber": 34907914,
"cumulativeGasUsed": "955201",
"blockNumber": 35486114,
"cumulativeGasUsed": "848848",
"status": 1,
"byzantium": true
},
"args": [
"0x825bc313102Cb102F5F0D8eBca19913DD17592DB",
"0x43fd9F2DAcB36853dBfBa269A7539706e787cFce",
"0x8a4C5090d972C83C44E8132a1Fc2Ff3E948E9A71",
"0xef480a5654b231ff7d80A0681F938f3Db71a6Ca6",
"0xc4d66de800000000000000000000000045f8a08f534f34a97187626e05d4b6648eeaa9aa"
],
"numDeployments": 1,
Expand All @@ -546,7 +546,7 @@
"methodName": "initialize",
"args": ["0x45f8a08F534f34A97187626E05d4b6648Eeaa9AA"]
},
"implementation": "0x825bc313102Cb102F5F0D8eBca19913DD17592DB",
"implementation": "0x8a4C5090d972C83C44E8132a1Fc2Ff3E948E9A71",
"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.",
"kind": "dev",
Expand Down
77 changes: 38 additions & 39 deletions deployments/bsctestnet/XVSBridgeAdmin_Implementation.json

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions deployments/bsctestnet/XVSBridgeAdmin_Proxy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -146,83 +146,83 @@
"type": "receive"
}
],
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"receipt": {
"to": null,
"from": "0x03862dFa5D0be8F64509C001cb8C6188194469DF",
"contractAddress": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 3,
"contractAddress": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"transactionIndex": 2,
"gasUsed": "796607",
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000800080000000000000000000400000000000000000000000000000000000000000000080000000000000800000000000001000000000000000000400000000000400800000000040000000000000000020000000000000000200040000000000000400000400400000010020000000000000000000000000000001000000000800000000000000000000000000",
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47",
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000002000000000000000000000000000000000000000000000000000008000000000000000000000000000000002000001000000000000000000000000000001000000020000000000000000000800000000800000000000000000000000400000000000000000000100000000000000000000000080000000000000800000000000001000000000000000000400000000000000880000000000000000000000000020000000000000000200040000000000000400000000c00000000020000000000000000000000000000000000000000800200000000000000000000000",
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4",
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"logs": [
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
"0x000000000000000000000000825bc313102cb102f5f0d8ebca19913dd17592db"
"0x0000000000000000000000008a4c5090d972c83c44e8132a1fc2ff3e948e9a71"
],
"data": "0x",
"logIndex": 2,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 0,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x00000000000000000000000003862dfa5d0be8f64509c001cb8c6188194469df"
],
"data": "0x",
"logIndex": 3,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 1,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045f8a08f534f34a97187626e05d4b6648eeaa9aa",
"logIndex": 4,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 2,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"logIndex": 5,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"logIndex": 3,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
},
{
"transactionIndex": 3,
"blockNumber": 34907914,
"transactionHash": "0x2e37cd855f42a995de813f913caaf9e01cef69ede3b3137f4d434d9d2335d069",
"address": "0x021e15D34b1d0DFFf94f3F77f63e82F3523F47da",
"transactionIndex": 2,
"blockNumber": 35486114,
"transactionHash": "0x8ad916f861582381e1e03672b2cadb4001c97205bfbd605671134c610ea1cf0d",
"address": "0x5D08D49A2e43aC4c72C60754d1550BA12e846d66",
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043fd9f2dacb36853dbfba269a7539706e787cfce",
"logIndex": 6,
"blockHash": "0x66f816dae7676767e70d3682759941133d29352b0b06b74f9a52830dd1ccea47"
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ef480a5654b231ff7d80a0681f938f3db71a6ca6",
"logIndex": 4,
"blockHash": "0x157207a05a6692d53e40eaba4b7cd6a69ad3b51e21eccda71f2fcec636349ca4"
}
],
"blockNumber": 34907914,
"cumulativeGasUsed": "955201",
"blockNumber": 35486114,
"cumulativeGasUsed": "848848",
"status": 1,
"byzantium": true
},
"args": [
"0x825bc313102Cb102F5F0D8eBca19913DD17592DB",
"0x43fd9F2DAcB36853dBfBa269A7539706e787cFce",
"0x8a4C5090d972C83C44E8132a1Fc2Ff3E948E9A71",
"0xef480a5654b231ff7d80A0681F938f3Db71a6Ca6",
"0xc4d66de800000000000000000000000045f8a08f534f34a97187626e05d4b6648eeaa9aa"
],
"numDeployments": 1,
Expand Down
Loading

0 comments on commit 62aba9c

Please sign in to comment.