Skip to content

Commit ca3ab0e

Browse files
committed
complete the Fund App
1 parent 6546c0b commit ca3ab0e

7 files changed

+22259
-9
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
.env
3+
4+
# Hardhat files
5+
/cache
6+
/artifacts
7+
8+
# TypeChain files
9+
/typechain
10+
/typechain-types
11+
12+
# solidity-coverage files
13+
/coverage
14+
/coverage.json

Constants.js

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
export const contractAddress = "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512";
2+
3+
export const abi = [
4+
{
5+
inputs: [
6+
{
7+
internalType: "address",
8+
name: "priceFeed",
9+
type: "address",
10+
},
11+
],
12+
stateMutability: "nonpayable",
13+
type: "constructor",
14+
},
15+
{
16+
inputs: [],
17+
name: "FundMe__NotOwner",
18+
type: "error",
19+
},
20+
{
21+
inputs: [],
22+
name: "MINIMUM_USD",
23+
outputs: [
24+
{
25+
internalType: "uint256",
26+
name: "",
27+
type: "uint256",
28+
},
29+
],
30+
stateMutability: "view",
31+
type: "function",
32+
},
33+
{
34+
inputs: [],
35+
name: "cheaperWithdraw",
36+
outputs: [],
37+
stateMutability: "nonpayable",
38+
type: "function",
39+
},
40+
{
41+
inputs: [],
42+
name: "fund",
43+
outputs: [],
44+
stateMutability: "payable",
45+
type: "function",
46+
},
47+
{
48+
inputs: [
49+
{
50+
internalType: "address",
51+
name: "fundingAddress",
52+
type: "address",
53+
},
54+
],
55+
name: "getAddressToAmountFunded",
56+
outputs: [
57+
{
58+
internalType: "uint256",
59+
name: "",
60+
type: "uint256",
61+
},
62+
],
63+
stateMutability: "view",
64+
type: "function",
65+
},
66+
{
67+
inputs: [
68+
{
69+
internalType: "uint256",
70+
name: "index",
71+
type: "uint256",
72+
},
73+
],
74+
name: "getFunder",
75+
outputs: [
76+
{
77+
internalType: "address",
78+
name: "",
79+
type: "address",
80+
},
81+
],
82+
stateMutability: "view",
83+
type: "function",
84+
},
85+
{
86+
inputs: [],
87+
name: "getOwner",
88+
outputs: [
89+
{
90+
internalType: "address",
91+
name: "",
92+
type: "address",
93+
},
94+
],
95+
stateMutability: "view",
96+
type: "function",
97+
},
98+
{
99+
inputs: [],
100+
name: "getPriceFeed",
101+
outputs: [
102+
{
103+
internalType: "contract AggregatorV3Interface",
104+
name: "",
105+
type: "address",
106+
},
107+
],
108+
stateMutability: "view",
109+
type: "function",
110+
},
111+
{
112+
inputs: [],
113+
name: "getVersion",
114+
outputs: [
115+
{
116+
internalType: "uint256",
117+
name: "",
118+
type: "uint256",
119+
},
120+
],
121+
stateMutability: "view",
122+
type: "function",
123+
},
124+
{
125+
inputs: [],
126+
name: "withdraw",
127+
outputs: [],
128+
stateMutability: "nonpayable",
129+
type: "function",
130+
},
131+
];

0 commit comments

Comments
 (0)