Skip to content

Commit

Permalink
Featuer/HOLO-605: C4 medium risk fixes (#88)
Browse files Browse the repository at this point in the history
* init

* fixes

* enforcing msgSender on all source contract calls

* fixing typo

* fixing tests

* test fixes and prettier

* royatlies patch

* removing unused library

* Feature/adding generic contract type (#85)

* fixing critical issues

* adding generic contract type

* implemented suggestions

* merging latest from experimental branch

* adding withdraw andmsgSender protection

* adding withdraw andmsgSender protection

* prettier

* fixing typo

* assembly memory fix

* combined generic contract pr

* deployments

* deployments

* adding support for `asciihex` compiler function

* adding comments and fixing missed check
  • Loading branch information
ACC01ADE authored Nov 23, 2022
1 parent 1d0bfe4 commit c5193aa
Show file tree
Hide file tree
Showing 130 changed files with 10,961 additions and 1,443 deletions.
7 changes: 7 additions & 0 deletions abi/experimental/CxipERC721.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
Expand Down
7 changes: 7 additions & 0 deletions abi/experimental/ERC20H.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
Expand Down
7 changes: 7 additions & 0 deletions abi/experimental/ERC721H.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
Expand Down
100 changes: 100 additions & 0 deletions abi/experimental/GenericH.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "initPayload",
"type": "bytes"
}
],
"name": "init",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "wallet",
"type": "address"
}
],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
13 changes: 13 additions & 0 deletions abi/experimental/HolographERC20.json
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "destination",
"type": "address"
}
],
"name": "sourceWithdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit c5193aa

Please sign in to comment.