Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: modify referral fees #284

Merged
merged 19 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,13 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
submodules: recursive

- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: forge install

# - name: Run Lint Check
# run: forge fmt --check

- name: "Run Forge Tests"
run: "forge test"
- name: Run Forge Tests
run: forge test -vvv
2 changes: 1 addition & 1 deletion Quest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion QuestFactory.json

Large diffs are not rendered by default.

110 changes: 61 additions & 49 deletions broadcast/Quest.s.sol/10/run-latest.json

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions broadcast/Quest.s.sol/11155111/run-1719246321.json

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions broadcast/Quest.s.sol/11155111/run-1719441142.json

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions broadcast/Quest.s.sol/11155111/run-1719596556.json

Large diffs are not rendered by default.

72 changes: 36 additions & 36 deletions broadcast/Quest.s.sol/11155111/run-latest.json

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions broadcast/Quest.s.sol/137/run-latest.json

Large diffs are not rendered by default.

102 changes: 53 additions & 49 deletions broadcast/Quest.s.sol/42161/run-latest.json

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions broadcast/Quest.s.sol/666666666/run-1719425782.json

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions broadcast/Quest.s.sol/666666666/run-1719444123.json

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions broadcast/Quest.s.sol/666666666/run-1719859026.json

Large diffs are not rendered by default.

98 changes: 50 additions & 48 deletions broadcast/Quest.s.sol/666666666/run-latest.json

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions broadcast/Quest.s.sol/7560/run-1719427778.json

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions broadcast/Quest.s.sol/7560/run-1719444041.json

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions broadcast/Quest.s.sol/7560/run-1719859112.json

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions broadcast/Quest.s.sol/7560/run-latest.json

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions broadcast/Quest.s.sol/7777777/run-1719429866.json

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions broadcast/Quest.s.sol/7777777/run-1719443394.json

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions broadcast/Quest.s.sol/7777777/run-1719860051.json

Large diffs are not rendered by default.

106 changes: 58 additions & 48 deletions broadcast/Quest.s.sol/7777777/run-latest.json

Large diffs are not rendered by default.

103 changes: 103 additions & 0 deletions broadcast/Quest.s.sol/81457/run-1719428764.json

Large diffs are not rendered by default.

104 changes: 55 additions & 49 deletions broadcast/Quest.s.sol/81457/run-latest.json

Large diffs are not rendered by default.

110 changes: 61 additions & 49 deletions broadcast/Quest.s.sol/8453/run-latest.json

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions broadcast/Quest.s.sol/84532/run-latest.json

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions broadcast/QuestFactory.s.sol/10/run-1719429420.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"transactions": [
{
"hash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2",
"transactionType": "CALL",
"contractName": "TransparentUpgradeableProxy",
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xd211",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0x12f",
"chainId": "0xa"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x259f0d",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0x02f2ca7583060d2bf7d38dd491a823d1a74b39a80fb3507f3f1e92007a1c6dd2",
"transactionIndex": "0x10",
"blockHash": "0x5e6093a243e4140a66969076b236e941ae7e4af6a5765e620c1003d64474021e",
"blockNumber": "0x74447b6",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0x18a240e",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null,
"l1BaseFeeScalar": "0x558",
"l1BlobBaseFee": "0x11ee80",
"l1BlobBaseFeeScalar": "0xc5fc5",
"l1Fee": "0x41817040e",
"l1GasPrice": "0x1838015f4",
"l1GasUsed": "0x7ac"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719429420,
"chain": 10,
"commit": "9f10ed7"
}
118 changes: 28 additions & 90 deletions broadcast/QuestFactory.s.sol/10/run-latest.json

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions broadcast/QuestFactory.s.sol/11155111/run-1719246225.json

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions broadcast/QuestFactory.s.sol/11155111/run-1719249950.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"transactions": [
{
"hash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883",
"transactionType": "CALL",
"contractName": "TransparentUpgradeableProxy",
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xd211",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0x197",
"chainId": "0xaa36a7"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x78ba80",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0x46b08ba8ceb5c8759f9b53accfee98f5201af9aa2854531e81651c60ba066883",
"transactionIndex": "0x3f",
"blockHash": "0x44461736fc1e4e06bd05c0cb28510593ffc3d39f61f0a2ea3a361081a556ba30",
"blockNumber": "0x5e43f9",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0x3f25c9071",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719249950,
"chain": 11155111,
"commit": "42a9cc2"
}
106 changes: 20 additions & 86 deletions broadcast/QuestFactory.s.sol/11155111/run-latest.json

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions broadcast/QuestFactory.s.sol/137/run-1719429110.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"transactions": [
{
"hash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983",
"transactionType": "CALL",
"contractName": "TransparentUpgradeableProxy",
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xd211",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0xe5",
"chainId": "0x89"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x613541",
"logs": [
{
"address": "0x0000000000000000000000000000000000001010",
"topics": [
"0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
"0x0000000000000000000000000000000000000000000000000000000000001010",
"0x000000000000000000000000017f8ad14a2e745ea0f756bd57cd4852400be78c",
"0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49"
],
"data": "0x0000000000000000000000000000000000000000000000000003eb4a77ca84000000000000000000000000000000000000000000000000121652fb6200f98be8000000000000000000000000000000000000000000030b04e742fc2f8eb9e835000000000000000000000000000000000000000000000012164f1017892f07e8000000000000000000000000000000000000000000030b04e746e77a06846c35",
"blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a",
"blockNumber": "0x37ec729",
"transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983",
"transactionIndex": "0x48",
"logIndex": "0xe8",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000008000000000000000000000000000000000000000000000000400000000800000000000400000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000200000000004000000000000000000001000000000000000100000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000",
"type": "0x2",
"transactionHash": "0xb0ad04e007f492747051a462818ca7a12c2db69629dc6307cdd70210a03af983",
"transactionIndex": "0x48",
"blockHash": "0xb101f8a97c027b660a23afc9a5ab28b0f1adebb30fd6a46b8905fdd83f9a7f1a",
"blockNumber": "0x37ec729",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0x6fc23ac39",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719429110,
"chain": 137,
"commit": "9f10ed7"
}
141 changes: 29 additions & 112 deletions broadcast/QuestFactory.s.sol/137/run-latest.json

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions broadcast/QuestFactory.s.sol/42161/run-1719429647.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"transactions": [
{
"hash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91",
"transactionType": "CALL",
"contractName": "TransparentUpgradeableProxy",
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": null,
"arguments": null,
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xbc93",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0xd0",
"chainId": "0xa4b1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x2eb66",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0x767e5fd57c5bf64013a94827b149fa6591925094404a8021c3d56be0438eae91",
"transactionIndex": "0x4",
"blockHash": "0x35d9d61b2acd28362917927deb05ec0750d52386bddb79870153c1c9e241de45",
"blockNumber": "0xd78a1f3",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0x989680",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null,
"gasUsedForL1": "0x0",
"l1BlockNumber": "0x133e3f6"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719429647,
"chain": 42161,
"commit": "9f10ed7"
}
114 changes: 24 additions & 90 deletions broadcast/QuestFactory.s.sol/42161/run-latest.json

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions broadcast/QuestFactory.s.sol/666666666/run-1719425769.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions broadcast/QuestFactory.s.sol/666666666/run-1719425865.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"transactions": [
{
"hash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": "setQuestFee(uint16)",
"arguments": [
"250"
],
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xd211",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0x13",
"chainId": "0x27bc86aa"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x8fa3",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0x63d61506389865f872d1323eea3004295a5dfc10c8924a31069236b8fe2d735c",
"transactionIndex": "0x1",
"blockHash": "0xe871a6bdd456cff16d935a34cc3925a8511e7a2383814608232342f25bcf171d",
"blockNumber": "0x1635d9b",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0x174876e800",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null,
"gasUsedForL1": "0x0",
"l1BlockNumber": "0xf8ff30"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719425865,
"chain": 666666666,
"commit": "6cb07c2"
}
112 changes: 24 additions & 88 deletions broadcast/QuestFactory.s.sol/666666666/run-latest.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions broadcast/QuestFactory.s.sol/7560/run-1719427263.json

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions broadcast/QuestFactory.s.sol/7560/run-1719427429.json

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions broadcast/QuestFactory.s.sol/7560/run-1719427835.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"transactions": [
{
"hash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"function": "setQuestFee(uint16)",
"arguments": [
"250"
],
"transaction": {
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"gas": "0xd211",
"value": "0x0",
"input": "0xe1bc3aba00000000000000000000000000000000000000000000000000000000000000fa",
"nonce": "0xd",
"chainId": "0x1d88"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x13aee",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0xd74e4a9c486f179f2febf110d56cb7e530d4158c01acdf7eebec1713ac6ea9f3",
"transactionIndex": "0x1",
"blockHash": "0x949cb217e4b19b3c633b69346066b6e4f0deb08232953749b7f6b202c1217051",
"blockNumber": "0x2dc550",
"gasUsed": "0x8fa3",
"effectiveGasPrice": "0xf433c",
"from": "0x017f8ad14a2e745ea0f756bd57cd4852400be78c",
"to": "0x52629961f71c1c2564c5aa22372cb1b9fa9eba3e",
"contractAddress": null,
"l1Fee": "0xe97e9a8d6c",
"l1GasPrice": "0x17f905e15",
"l1GasUsed": "0x79c"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1719427835,
"chain": 7560,
"commit": "9f10ed7"
}
401 changes: 19 additions & 382 deletions broadcast/QuestFactory.s.sol/7560/run-latest.json

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions broadcast/QuestFactory.s.sol/7777777/run-1719429808.json

Large diffs are not rendered by default.

Loading
Loading