Skip to content

Commit 229f08d

Browse files
authored
Merge pull request #3 from its-everdred/feature/improve_contracts
Move functionality to factory, Improve scripts
2 parents df680e1 + df23168 commit 229f08d

20 files changed

+1082
-98
lines changed

RUNS_1_deployment.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
forge script script/1_DeployQuestFactory.s.sol --chain sepolia --rpc-url x --etherscan-api-key x --verify --broadcast
2+
3+
[] Compiling...
4+
No files changed, compilation skipped
5+
Script ran successfully.
6+
7+
== Return ==
8+
0: address 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f
9+
10+
== Logs ==
11+
QuestFactory deployed to: 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f
12+
13+
## Setting up 1 EVM.
14+
15+
==========================
16+
17+
Chain 11155111
18+
19+
Estimated gas price: 19.637747512 gwei
20+
21+
Estimated total gas used for script: 1885305
22+
23+
Estimated amount required: 0.03702314357311116 ETH
24+
25+
==========================
26+
27+
##### sepolia
28+
[Success] Hash: 0x4a3feb0dc27479b8d4e23f229f63175415a97323e3c074adf339f686be645de4
29+
Contract Address: 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f
30+
Block: 7671360
31+
Paid: 0.014693441869493135 ETH (1450235 gas * 10.131766141 gwei)
32+
33+
✅ Sequence #1 on sepolia | Total Paid: 0.014693441869493135 ETH (1450235 gas * avg 10.131766141 gwei)
34+
35+
36+
==========================
37+
38+
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
39+
##
40+
Start verification for (1) contracts
41+
Start verifying contract `0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f` deployed on sepolia
42+
Compiler version: 0.8.28
43+
Optimizations: 200
44+
45+
Submitting verification for [src/QuestFactory.sol:QuestFactory] 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f.
46+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (4 tries remaining)
47+
D
48+
Submitting verification for [src/QuestFactory.sol:QuestFactory] 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f.
49+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (3 tries remaining)
50+
51+
Submitting verification for [src/QuestFactory.sol:QuestFactory] 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f.
52+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (2 tries remaining)
53+
54+
Submitting verification for [src/QuestFactory.sol:QuestFactory] 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f.
55+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (1 tries remaining)
56+
57+
Submitting verification for [src/QuestFactory.sol:QuestFactory] 0x7db2542D15AC68C9958E8d73f32641Ed9714Fd6f.
58+
Submitted contract for verification:
59+
Response: `OK`
60+
GUID: `htrlj4vzbfruwbx35f4xw2f5s68eb29pvnac8kccxvutfiuqma`
61+
URL: https://sepolia.etherscan.io/address/0x7db2542d15ac68c9958e8d73f32641ed9714fd6f
62+
Contract verification status:
63+
Response: `NOTOK`
64+
Details: `Pending in queue`
65+
Warning: Verification is still pending...; waiting 15 seconds before trying again (7 tries remaining)
66+
Contract verification status:
67+
Response: `OK`
68+
Details: `Pass - Verified`
69+
Contract successfully verified
70+
All (1) contracts were verified!
71+
72+
Transactions saved to: /home/amsel/etherguild-contracts/broadcast/1_DeployQuestFactory.s.sol/11155111/run-latest.json
73+
74+
Sensitive values saved to: /home/amsel/etherguild-contracts/cache/1_DeployQuestFactory.s.sol/11155111/run-latest.json

RUNS_2_setup_factory.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
export FACTORY_ADDRESS="0x0"
2+
3+
forge script script/2_SetupQuestFactory.s.sol --chain sepolia --rpc-url x --etherscan-api-key x --broadcast --verify
4+
[] Compiling...
5+
No files changed, compilation skipped
6+
Script ran successfully.
7+
8+
== Logs ==
9+
ETH address(0) and USDC set as allowed tokens
10+
Price oracles set for ETH and USDC
11+
12+
## Setting up 1 EVM.
13+
14+
==========================
15+
16+
Chain 11155111
17+
18+
Estimated gas price: 17.74240113 gwei
19+
20+
Estimated total gas used for script: 341975
21+
22+
Estimated amount required: 0.00606745762643175 ETH
23+
24+
==========================
25+
26+
##### sepolia
27+
[Success] Hash: 0xd114458196fe6b069f87fa6d4dcf641736aea61e2d024be0ae4f53f504ee5db2
28+
Block: 7671411
29+
Paid: 0.000436615685746735 ETH (50359 gas * 8.670062665 gwei)
30+
31+
32+
##### sepolia
33+
[Success] Hash: 0xd114d046505cec617634cc62f8e3d9f1a42c6d400c78d553e6a59c2fbc641538
34+
Block: 7671411
35+
Paid: 0.0006613523800862 ETH (76280 gas * 8.670062665 gwei)
36+
37+
38+
##### sepolia
39+
[Success] Hash: 0x6b314a5c8995fb41012879b6cb8be9a7ceb1d594ddc300fe6df1d54e0db9cdae
40+
Block: 7671411
41+
Paid: 0.000614091868499285 ETH (70829 gas * 8.670062665 gwei)
42+
43+
44+
##### sepolia
45+
[Success] Hash: 0x7ee32be31ea2581e0010ed060da99264196a21c75f47d078a5bfe9b78e358e5f
46+
Block: 7671411
47+
Paid: 0.000434534870707135 ETH (50119 gas * 8.670062665 gwei)
48+
49+
✅ Sequence #1 on sepolia | Total Paid: 0.002146594805039355 ETH (247587 gas * avg 8.670062665 gwei)
50+
51+
52+
==========================
53+
54+
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
55+
##
56+
Start verification for (0) contracts
57+
All (0) contracts were verified!
58+
59+
Transactions saved to: /home/amsel/etherguild-contracts/broadcast/2_SetupQuestFactory.s.sol/11155111/run-latest.json
60+
61+
Sensitive values saved to: /home/amsel/etherguild-contracts/cache/2_SetupQuestFactory.s.sol/11155111/run-latest.json

RUNS_3_create_quest.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
export FACTORY_ADDRESS="0x0"
2+
3+
forge script script/3_CreateQuestDonation.s.sol --chain sepolia --rpc-url x --etherscan-api-key x --broadcast --verify
4+
[] Compiling...
5+
No files changed, compilation skipped
6+
Script ran successfully.
7+
8+
== Return ==
9+
questDonationAddress: address 0xFd843f5158401a48a7689BbAe1976689c6582cdf
10+
11+
== Logs ==
12+
QuestDonation deployed to: 0xFd843f5158401a48a7689BbAe1976689c6582cdf
13+
14+
## Setting up 1 EVM.
15+
16+
==========================
17+
18+
Chain 11155111
19+
20+
Estimated gas price: 17.488031658 gwei
21+
22+
Estimated total gas used for script: 1210820
23+
24+
Estimated amount required: 0.02117485849213956 ETH
25+
26+
==========================
27+
28+
##### sepolia
29+
[Success] Hash: 0x105e076c0874f525868697cdb88b71abefad1f63f7b81289f259c55f74234335
30+
Block: 7671437
31+
Paid: 0.008521738795657032 ETH (876612 gas * 9.721220786 gwei)
32+
33+
✅ Sequence #1 on sepolia | Total Paid: 0.008521738795657032 ETH (876612 gas * avg 9.721220786 gwei)
34+
35+
36+
==========================
37+
38+
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
39+
##
40+
Start verification for (1) contracts
41+
Start verifying contract `0xFd843f5158401a48a7689BbAe1976689c6582cdf` deployed on sepolia
42+
Compiler version: 0.8.28
43+
Optimizations: 200
44+
Constructor args: 0000000000000000000000006a439b14f527d8731794b982d785b72f5d245c6f0000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000006a439b14f527d8731794b982d785b72f5d245c6f0000000000000000000000007db2542d15ac68c9958e8d73f32641ed9714fd6f
45+
46+
Submitting verification for [src/QuestDonation.sol:QuestDonation] 0xFd843f5158401a48a7689BbAe1976689c6582cdf.
47+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (4 tries remaining)
48+
49+
Submitting verification for [src/QuestDonation.sol:QuestDonation] 0xFd843f5158401a48a7689BbAe1976689c6582cdf.
50+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (3 tries remaining)
51+
52+
Submitting verification for [src/QuestDonation.sol:QuestDonation] 0xFd843f5158401a48a7689BbAe1976689c6582cdf.
53+
Warning: Etherscan could not detect the deployment.; waiting 5 seconds before trying again (2 tries remaining)
54+
55+
Submitting verification for [src/QuestDonation.sol:QuestDonation] 0xFd843f5158401a48a7689BbAe1976689c6582cdf.
56+
Submitted contract for verification:
57+
Response: `OK`
58+
GUID: `kkhvfmpkgcskw1ayggsskttl42uznvvgiyl9dmplgxgytx6ij5`
59+
URL: https://sepolia.etherscan.io/address/0xfd843f5158401a48a7689bbae1976689c6582cdf
60+
Contract verification status:
61+
Response: `NOTOK`
62+
Details: `Pending in queue`
63+
Warning: Verification is still pending...; waiting 15 seconds before trying again (7 tries remaining)
64+
Contract verification status:
65+
Response: `OK`
66+
Details: `Pass - Verified`
67+
Contract successfully verified
68+
All (1) contracts were verified!
69+
70+
Transactions saved to: /home/amsel/etherguild-contracts/broadcast/3_CreateQuestDonation.s.sol/11155111/run-latest.json
71+
72+
Sensitive values saved to: /home/amsel/etherguild-contracts/cache/3_CreateQuestDonation.s.sol/11155111/run-latest.json

RUNS_4_quest_interaction.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export DONATION_ADDRESS="0x0"
2+
3+
forge script script/4_InteractionQuest.s.sol --chain sepolia --rpc-url x --etherscan-api-key x
4+
[] Compiling...
5+
No files changed, compilation skipped
6+
Traces:
7+
[635973] → new InteractionQuestScript@0x9f7cF1d1F558E57ef88a59ac3D47214eF25B6A06
8+
└─ ← [Return] 3066 bytes of code

0 commit comments

Comments
 (0)