Skip to content

Commit 78ecdda

Browse files
committed
add jb721 v3_4
1 parent 48257e0 commit 78ecdda

9 files changed

+2804
-0
lines changed

abis/shared/JB721Delegate3_4.json

+2,140
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "contract JBTiered721GovernanceDelegate",
6+
"name": "_onchainGovernance",
7+
"type": "address"
8+
},
9+
{
10+
"internalType": "contract JBTiered721Delegate",
11+
"name": "_noGovernance",
12+
"type": "address"
13+
},
14+
{
15+
"internalType": "contract IJBDelegatesRegistry",
16+
"name": "_delegatesRegistry",
17+
"type": "address"
18+
}
19+
],
20+
"stateMutability": "nonpayable",
21+
"type": "constructor"
22+
},
23+
{
24+
"inputs": [],
25+
"name": "INVALID_GOVERNANCE_TYPE",
26+
"type": "error"
27+
},
28+
{
29+
"anonymous": false,
30+
"inputs": [
31+
{
32+
"indexed": true,
33+
"internalType": "uint256",
34+
"name": "projectId",
35+
"type": "uint256"
36+
},
37+
{
38+
"indexed": false,
39+
"internalType": "contract IJBTiered721Delegate",
40+
"name": "newDelegate",
41+
"type": "address"
42+
},
43+
{
44+
"indexed": false,
45+
"internalType": "enum JB721GovernanceType",
46+
"name": "governanceType",
47+
"type": "uint8"
48+
}
49+
],
50+
"name": "DelegateDeployed",
51+
"type": "event"
52+
},
53+
{
54+
"inputs": [],
55+
"name": "delegatesRegistry",
56+
"outputs": [
57+
{
58+
"internalType": "contract IJBDelegatesRegistry",
59+
"name": "",
60+
"type": "address"
61+
}
62+
],
63+
"stateMutability": "view",
64+
"type": "function"
65+
},
66+
{
67+
"inputs": [
68+
{
69+
"internalType": "uint256",
70+
"name": "_projectId",
71+
"type": "uint256"
72+
},
73+
{
74+
"components": [
75+
{
76+
"internalType": "string",
77+
"name": "name",
78+
"type": "string"
79+
},
80+
{
81+
"internalType": "string",
82+
"name": "symbol",
83+
"type": "string"
84+
},
85+
{
86+
"internalType": "contract IJBFundingCycleStore",
87+
"name": "fundingCycleStore",
88+
"type": "address"
89+
},
90+
{
91+
"internalType": "string",
92+
"name": "baseUri",
93+
"type": "string"
94+
},
95+
{
96+
"internalType": "contract IJB721TokenUriResolver",
97+
"name": "tokenUriResolver",
98+
"type": "address"
99+
},
100+
{
101+
"internalType": "string",
102+
"name": "contractUri",
103+
"type": "string"
104+
},
105+
{
106+
"components": [
107+
{
108+
"components": [
109+
{
110+
"internalType": "uint104",
111+
"name": "price",
112+
"type": "uint104"
113+
},
114+
{
115+
"internalType": "uint32",
116+
"name": "initialQuantity",
117+
"type": "uint32"
118+
},
119+
{
120+
"internalType": "uint32",
121+
"name": "votingUnits",
122+
"type": "uint32"
123+
},
124+
{
125+
"internalType": "uint16",
126+
"name": "reservedRate",
127+
"type": "uint16"
128+
},
129+
{
130+
"internalType": "address",
131+
"name": "reservedTokenBeneficiary",
132+
"type": "address"
133+
},
134+
{
135+
"internalType": "bytes32",
136+
"name": "encodedIPFSUri",
137+
"type": "bytes32"
138+
},
139+
{
140+
"internalType": "uint24",
141+
"name": "category",
142+
"type": "uint24"
143+
},
144+
{
145+
"internalType": "bool",
146+
"name": "allowManualMint",
147+
"type": "bool"
148+
},
149+
{
150+
"internalType": "bool",
151+
"name": "shouldUseReservedTokenBeneficiaryAsDefault",
152+
"type": "bool"
153+
},
154+
{
155+
"internalType": "bool",
156+
"name": "transfersPausable",
157+
"type": "bool"
158+
},
159+
{
160+
"internalType": "bool",
161+
"name": "useVotingUnits",
162+
"type": "bool"
163+
}
164+
],
165+
"internalType": "struct JB721TierParams[]",
166+
"name": "tiers",
167+
"type": "tuple[]"
168+
},
169+
{
170+
"internalType": "uint48",
171+
"name": "currency",
172+
"type": "uint48"
173+
},
174+
{
175+
"internalType": "uint48",
176+
"name": "decimals",
177+
"type": "uint48"
178+
},
179+
{
180+
"internalType": "contract IJBPrices",
181+
"name": "prices",
182+
"type": "address"
183+
}
184+
],
185+
"internalType": "struct JB721PricingParams",
186+
"name": "pricing",
187+
"type": "tuple"
188+
},
189+
{
190+
"internalType": "address",
191+
"name": "reservedTokenBeneficiary",
192+
"type": "address"
193+
},
194+
{
195+
"internalType": "contract IJBTiered721DelegateStore",
196+
"name": "store",
197+
"type": "address"
198+
},
199+
{
200+
"components": [
201+
{
202+
"internalType": "bool",
203+
"name": "lockReservedTokenChanges",
204+
"type": "bool"
205+
},
206+
{
207+
"internalType": "bool",
208+
"name": "lockVotingUnitChanges",
209+
"type": "bool"
210+
},
211+
{
212+
"internalType": "bool",
213+
"name": "lockManualMintingChanges",
214+
"type": "bool"
215+
},
216+
{
217+
"internalType": "bool",
218+
"name": "preventOverspending",
219+
"type": "bool"
220+
}
221+
],
222+
"internalType": "struct JBTiered721Flags",
223+
"name": "flags",
224+
"type": "tuple"
225+
},
226+
{
227+
"internalType": "enum JB721GovernanceType",
228+
"name": "governanceType",
229+
"type": "uint8"
230+
}
231+
],
232+
"internalType": "struct JBDeployTiered721DelegateData",
233+
"name": "_deployTiered721DelegateData",
234+
"type": "tuple"
235+
}
236+
],
237+
"name": "deployDelegateFor",
238+
"outputs": [
239+
{
240+
"internalType": "contract IJBTiered721Delegate",
241+
"name": "newDelegate",
242+
"type": "address"
243+
}
244+
],
245+
"stateMutability": "nonpayable",
246+
"type": "function"
247+
},
248+
{
249+
"inputs": [],
250+
"name": "noGovernance",
251+
"outputs": [
252+
{
253+
"internalType": "contract JBTiered721Delegate",
254+
"name": "",
255+
"type": "address"
256+
}
257+
],
258+
"stateMutability": "view",
259+
"type": "function"
260+
},
261+
{
262+
"inputs": [],
263+
"name": "onchainGovernance",
264+
"outputs": [
265+
{
266+
"internalType": "contract JBTiered721GovernanceDelegate",
267+
"name": "",
268+
"type": "address"
269+
}
270+
],
271+
"stateMutability": "view",
272+
"type": "function"
273+
}
274+
]

config/goerli.json

+4
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
"address": "0x55e778fBD008Cf3e29beaed2FB3E7F55f89cB487",
8282
"startBlock": 9162460
8383
},
84+
"jbTiered721DelegateDeployer3_4": {
85+
"address": "0xa69De301D5c676C504a8A8B044527Aa024d833bA",
86+
"startBlock": 9518267
87+
},
8488
"jbTiered721DelegateStore3": {
8589
"address": "0x3ea16deff07f031e86bd13c55961eb576cd579a6",
8690
"startBlock": 7885285

config/mainnet.json

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
"address": "0xc017a3F357a1C5F5298cA40B5647d5667B73B22A",
144144
"startBlock": 17459251
145145
},
146+
"jbTiered721DelegateDeployer3_4": {
147+
"address": "0x5C9f2fd6cE9E600dd9c4cA4cd67e777CbaB6353b",
148+
"startBlock": 17915435
149+
},
146150
"jbTiered721DelegateStore3": {
147151
"address": "0xffb2cd8519439a7ddcf2c933caedd938053067d2",
148152
"startBlock": 16722143

config/template.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"jbTiered721DelegateDeployer3_1",
4141
"jbTiered721DelegateDeployer3_2",
4242
"jbTiered721DelegateDeployer3_3",
43+
"jbTiered721DelegateDeployer3_4",
4344
"jbTiered721DelegateStore3",
4445
"jbTiered721DelegateStore3_1",
4546
"jbTiered721DelegateStore3_2",

shared.template.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,32 @@
159159
handler: handleDelegateDeployed
160160
file: ./src/mappings/shared/jbTiered721DelegateDeployer3_3.ts
161161
{{ /jbTiered721DelegateDeployer3_3 }}
162+
{{ #jbTiered721DelegateDeployer3_4 }}
163+
- kind: ethereum/contract
164+
name: JBTiered721DelegateDeployer3_4
165+
network: {{network}}
166+
source:
167+
abi: JBTiered721DelegateDeployer3_4
168+
address: '{{address}}'
169+
startBlock: {{startBlock}}
170+
mapping:
171+
kind: ethereum/events
172+
apiVersion: 0.0.6
173+
language: wasm/assemblyscript
174+
entities:
175+
- NFT
176+
- NFTTier
177+
- NFTCollection
178+
abis:
179+
- name: JBTiered721DelegateDeployer3_4
180+
file: ./abis/shared/JBTiered721DelegateDeployer3_4.json
181+
- name: JBTiered721DelegateStore3_3
182+
file: ./abis/shared/JBTiered721DelegateStore3_3.json
183+
- name: JB721Delegate3_4
184+
file: ./abis/shared/JB721Delegate3_4.json
185+
eventHandlers:
186+
- event: DelegateDeployed(indexed uint256,address,uint8)
187+
handler: handleDelegateDeployed
188+
file: ./src/mappings/shared/jbTiered721DelegateDeployer3_4.ts
189+
{{ /jbTiered721DelegateDeployer3_4 }}
162190
{{ /shared }}

0 commit comments

Comments
 (0)