Skip to content

Commit

Permalink
feature/contract details logic (#89)
Browse files Browse the repository at this point in the history
* contract details logic

* add whole contract details

* fixes after review

* add mixins for contract info pages
  • Loading branch information
Sorizen authored Sep 3, 2024
1 parent 86d3f2e commit 8e748fe
Show file tree
Hide file tree
Showing 61 changed files with 14,970 additions and 145 deletions.
889 changes: 889 additions & 0 deletions src/abi/Distribution.json

Large diffs are not rendered by default.

334 changes: 334 additions & 0 deletions src/abi/L1Sender.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,334 @@
[
{
"inputs":[

],
"stateMutability":"nonpayable",
"type":"constructor"
},
{
"anonymous":false,
"inputs":[
{
"indexed":false,
"internalType":"uint8",
"name":"version",
"type":"uint8"
}
],
"name":"Initialized",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"address",
"name":"previousOwner",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"newOwner",
"type":"address"
}
],
"name":"OwnershipTransferred",
"type":"event"
},
{
"inputs":[
{
"internalType":"address",
"name":"distribution_",
"type":"address"
},
{
"components":[
{
"internalType":"address",
"name":"gateway",
"type":"address"
},
{
"internalType":"address",
"name":"receiver",
"type":"address"
},
{
"internalType":"uint16",
"name":"receiverChainId",
"type":"uint16"
},
{
"internalType":"address",
"name":"zroPaymentAddress",
"type":"address"
},
{
"internalType":"bytes",
"name":"adapterParams",
"type":"bytes"
}
],
"internalType":"struct IL1Sender.RewardTokenConfig",
"name":"rewardTokenConfig_",
"type":"tuple"
},
{
"components":[
{
"internalType":"address",
"name":"token",
"type":"address"
},
{
"internalType":"address",
"name":"gateway",
"type":"address"
},
{
"internalType":"address",
"name":"receiver",
"type":"address"
}
],
"internalType":"struct IL1Sender.DepositTokenConfig",
"name":"depositTokenConfig_",
"type":"tuple"
}
],
"name":"L1Sender__init",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[

],
"name":"depositTokenConfig",
"outputs":[
{
"internalType":"address",
"name":"token",
"type":"address"
},
{
"internalType":"address",
"name":"gateway",
"type":"address"
},
{
"internalType":"address",
"name":"receiver",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"distribution",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"owner",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"renounceOwnership",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[

],
"name":"rewardTokenConfig",
"outputs":[
{
"internalType":"address",
"name":"gateway",
"type":"address"
},
{
"internalType":"address",
"name":"receiver",
"type":"address"
},
{
"internalType":"uint16",
"name":"receiverChainId",
"type":"uint16"
},
{
"internalType":"address",
"name":"zroPaymentAddress",
"type":"address"
},
{
"internalType":"bytes",
"name":"adapterParams",
"type":"bytes"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"uint256",
"name":"gasLimit_",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"maxFeePerGas_",
"type":"uint256"
},
{
"internalType":"uint256",
"name":"maxSubmissionCost_",
"type":"uint256"
}
],
"name":"sendDepositToken",
"outputs":[
{
"internalType":"bytes",
"name":"",
"type":"bytes"
}
],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"user_",
"type":"address"
},
{
"internalType":"uint256",
"name":"amount_",
"type":"uint256"
},
{
"internalType":"address",
"name":"refundTo_",
"type":"address"
}
],
"name":"sendMintMessage",
"outputs":[

],
"stateMutability":"payable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"zroPaymentAddress_",
"type":"address"
},
{
"internalType":"bytes",
"name":"adapterParams_",
"type":"bytes"
}
],
"name":"setRewardTokenLZParams",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes4",
"name":"interfaceId_",
"type":"bytes4"
}
],
"name":"supportsInterface",
"outputs":[
{
"internalType":"bool",
"name":"",
"type":"bool"
}
],
"stateMutability":"pure",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"newOwner",
"type":"address"
}
],
"name":"transferOwnership",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[

],
"name":"unwrappedDepositToken",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
}
]
Loading

0 comments on commit 8e748fe

Please sign in to comment.