Skip to content

Commit

Permalink
Merge pull request #190 from holographxyz/feature/hToken-upgrade
Browse files Browse the repository at this point in the history
Features: hToken, Zora, Base, Protocol Fee
  • Loading branch information
alexanderattar authored Aug 8, 2023
2 parents cfe1f68 + 6ebd11e commit a823267
Show file tree
Hide file tree
Showing 628 changed files with 204,129 additions and 5,177 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/enforce_prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
prettier_options: --check deploy/**/*.ts test/**/*.ts scripts/**/*.ts
dry: True
# TODO: Fix prettier_action to work on CI/CD
# - name: Prettify code
# uses: creyD/prettier_action@v4.3
# with:
# prettier_options: --check deploy/**/*.ts test/**/*.ts scripts/**/*.ts
# dry: True
128 changes: 128 additions & 0 deletions abi/develop/DropsPriceOracleBase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "adminCall",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "usdAmount",
"type": "uint256"
}
],
"name": "convertUsdToWei",
"outputs": [
{
"internalType": "uint256",
"name": "weiAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAdmin",
"outputs": [
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTokenPriceRatio",
"outputs": [
{
"internalType": "uint256",
"name": "tokenPriceRatio",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "init",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
}
],
"name": "setAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenPriceRatio",
"type": "uint256"
}
],
"name": "setTokenPriceRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
128 changes: 128 additions & 0 deletions abi/develop/DropsPriceOracleBaseTestnetGoerli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "adminCall",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "usdAmount",
"type": "uint256"
}
],
"name": "convertUsdToWei",
"outputs": [
{
"internalType": "uint256",
"name": "weiAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAdmin",
"outputs": [
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTokenPriceRatio",
"outputs": [
{
"internalType": "uint256",
"name": "tokenPriceRatio",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "init",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "adminAddress",
"type": "address"
}
],
"name": "setAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenPriceRatio",
"type": "uint256"
}
],
"name": "setTokenPriceRatio",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit a823267

Please sign in to comment.