Skip to content

Commit 6caa36d

Browse files
author
guomaoye
committed
layercraft
1 parent 7396845 commit 6caa36d

File tree

6 files changed

+547
-3
lines changed

6 files changed

+547
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ venv
33
__pycache__
44
*.log
55
*.txt
6-
!requirements.txt
6+
!requirements.txt
7+
main_tmp*

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,21 @@ b2.shoebill_supply()
8181
# shoebill借出
8282
b2.shoebill_borrow()
8383

84-
#oooo明天搞。累了💤
84+
# dmain mint nft
85+
b2.demail_mint()
86+
#dmain 发邮件
87+
b2.send_mail()
88+
89+
#==============分界线之前的是老的测试网,分界线后的是新的测试网=================
90+
91+
# b2 layercraft 购买nft
92+
b2.layercraft_buy()
93+
# b2 layercraft 上架nft
94+
b2.layercraft_sale()
95+
96+
#oooo不会,会的可以提pr
97+
98+
# 其他。因为b2更换了测试网rpc,所以部分合约地址可能已经失效,需要自己去实际交互一下,然后替换config.py中的合约地址
8599

86100
# 刷新奥德赛点数(积分有延迟到账)
87101
b2.claim_point()

abi/erc721.json

Lines changed: 346 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
[
2+
{
3+
"anonymous": false,
4+
"inputs": [
5+
{
6+
"indexed": true,
7+
"internalType": "address",
8+
"name": "owner",
9+
"type": "address"
10+
},
11+
{
12+
"indexed": true,
13+
"internalType": "address",
14+
"name": "approved",
15+
"type": "address"
16+
},
17+
{
18+
"indexed": true,
19+
"internalType": "uint256",
20+
"name": "tokenId",
21+
"type": "uint256"
22+
}
23+
],
24+
"name": "Approval",
25+
"type": "event"
26+
},
27+
{
28+
"anonymous": false,
29+
"inputs": [
30+
{
31+
"indexed": true,
32+
"internalType": "address",
33+
"name": "owner",
34+
"type": "address"
35+
},
36+
{
37+
"indexed": true,
38+
"internalType": "address",
39+
"name": "operator",
40+
"type": "address"
41+
},
42+
{
43+
"indexed": false,
44+
"internalType": "bool",
45+
"name": "approved",
46+
"type": "bool"
47+
}
48+
],
49+
"name": "ApprovalForAll",
50+
"type": "event"
51+
},
52+
{
53+
"anonymous": false,
54+
"inputs": [
55+
{
56+
"indexed": true,
57+
"internalType": "address",
58+
"name": "from",
59+
"type": "address"
60+
},
61+
{
62+
"indexed": true,
63+
"internalType": "address",
64+
"name": "to",
65+
"type": "address"
66+
},
67+
{
68+
"indexed": true,
69+
"internalType": "uint256",
70+
"name": "tokenId",
71+
"type": "uint256"
72+
}
73+
],
74+
"name": "Transfer",
75+
"type": "event"
76+
},
77+
{
78+
"inputs": [
79+
{
80+
"internalType": "address",
81+
"name": "to",
82+
"type": "address"
83+
},
84+
{
85+
"internalType": "uint256",
86+
"name": "tokenId",
87+
"type": "uint256"
88+
}
89+
],
90+
"name": "approve",
91+
"outputs": [],
92+
"stateMutability": "nonpayable",
93+
"type": "function"
94+
},
95+
{
96+
"constant": true,
97+
"inputs": [],
98+
"name": "totalSupply",
99+
"outputs": [
100+
{
101+
"name": "",
102+
"type": "uint256"
103+
}
104+
],
105+
"payable": false,
106+
"stateMutability": "view",
107+
"type": "function"
108+
},
109+
{
110+
"inputs": [
111+
{
112+
"internalType": "address",
113+
"name": "owner",
114+
"type": "address"
115+
}
116+
],
117+
"name": "balanceOf",
118+
"outputs": [
119+
{
120+
"internalType": "uint256",
121+
"name": "balance",
122+
"type": "uint256"
123+
}
124+
],
125+
"stateMutability": "view",
126+
"type": "function"
127+
},
128+
{
129+
"inputs": [
130+
{
131+
"internalType": "uint256",
132+
"name": "tokenId",
133+
"type": "uint256"
134+
}
135+
],
136+
"name": "getApproved",
137+
"outputs": [
138+
{
139+
"internalType": "address",
140+
"name": "operator",
141+
"type": "address"
142+
}
143+
],
144+
"stateMutability": "view",
145+
"type": "function"
146+
},
147+
{
148+
"inputs": [
149+
{
150+
"internalType": "address",
151+
"name": "owner",
152+
"type": "address"
153+
},
154+
{
155+
"internalType": "address",
156+
"name": "operator",
157+
"type": "address"
158+
}
159+
],
160+
"name": "isApprovedForAll",
161+
"outputs": [
162+
{
163+
"internalType": "bool",
164+
"name": "",
165+
"type": "bool"
166+
}
167+
],
168+
"stateMutability": "view",
169+
"type": "function"
170+
},
171+
{
172+
"inputs": [],
173+
"name": "name",
174+
"outputs": [
175+
{
176+
"internalType": "string",
177+
"name": "",
178+
"type": "string"
179+
}
180+
],
181+
"stateMutability": "view",
182+
"type": "function"
183+
},
184+
{
185+
"inputs": [
186+
{
187+
"internalType": "uint256",
188+
"name": "tokenId",
189+
"type": "uint256"
190+
}
191+
],
192+
"name": "ownerOf",
193+
"outputs": [
194+
{
195+
"internalType": "address",
196+
"name": "owner",
197+
"type": "address"
198+
}
199+
],
200+
"stateMutability": "view",
201+
"type": "function"
202+
},
203+
{
204+
"inputs": [
205+
{
206+
"internalType": "address",
207+
"name": "from",
208+
"type": "address"
209+
},
210+
{
211+
"internalType": "address",
212+
"name": "to",
213+
"type": "address"
214+
},
215+
{
216+
"internalType": "uint256",
217+
"name": "tokenId",
218+
"type": "uint256"
219+
}
220+
],
221+
"name": "safeTransferFrom",
222+
"outputs": [],
223+
"stateMutability": "nonpayable",
224+
"type": "function"
225+
},
226+
{
227+
"inputs": [
228+
{
229+
"internalType": "address",
230+
"name": "from",
231+
"type": "address"
232+
},
233+
{
234+
"internalType": "address",
235+
"name": "to",
236+
"type": "address"
237+
},
238+
{
239+
"internalType": "uint256",
240+
"name": "tokenId",
241+
"type": "uint256"
242+
},
243+
{
244+
"internalType": "bytes",
245+
"name": "data",
246+
"type": "bytes"
247+
}
248+
],
249+
"name": "safeTransferFrom",
250+
"outputs": [],
251+
"stateMutability": "nonpayable",
252+
"type": "function"
253+
},
254+
{
255+
"inputs": [
256+
{
257+
"internalType": "address",
258+
"name": "operator",
259+
"type": "address"
260+
},
261+
{
262+
"internalType": "bool",
263+
"name": "_approved",
264+
"type": "bool"
265+
}
266+
],
267+
"name": "setApprovalForAll",
268+
"outputs": [],
269+
"stateMutability": "nonpayable",
270+
"type": "function"
271+
},
272+
{
273+
"inputs": [
274+
{
275+
"internalType": "bytes4",
276+
"name": "interfaceId",
277+
"type": "bytes4"
278+
}
279+
],
280+
"name": "supportsInterface",
281+
"outputs": [
282+
{
283+
"internalType": "bool",
284+
"name": "",
285+
"type": "bool"
286+
}
287+
],
288+
"stateMutability": "view",
289+
"type": "function"
290+
},
291+
{
292+
"inputs": [],
293+
"name": "symbol",
294+
"outputs": [
295+
{
296+
"internalType": "string",
297+
"name": "",
298+
"type": "string"
299+
}
300+
],
301+
"stateMutability": "view",
302+
"type": "function"
303+
},
304+
{
305+
"inputs": [
306+
{
307+
"internalType": "uint256",
308+
"name": "tokenId",
309+
"type": "uint256"
310+
}
311+
],
312+
"name": "tokenURI",
313+
"outputs": [
314+
{
315+
"internalType": "string",
316+
"name": "",
317+
"type": "string"
318+
}
319+
],
320+
"stateMutability": "view",
321+
"type": "function"
322+
},
323+
{
324+
"inputs": [
325+
{
326+
"internalType": "address",
327+
"name": "from",
328+
"type": "address"
329+
},
330+
{
331+
"internalType": "address",
332+
"name": "to",
333+
"type": "address"
334+
},
335+
{
336+
"internalType": "uint256",
337+
"name": "tokenId",
338+
"type": "uint256"
339+
}
340+
],
341+
"name": "transferFrom",
342+
"outputs": [],
343+
"stateMutability": "nonpayable",
344+
"type": "function"
345+
}
346+
]

config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
shoebill_faucet_stone = Web3.to_checksum_address('0xB762B8dA36B59f7dF9aeE066a364c08aac746DbF')
2121
shoebill_supply = Web3.to_checksum_address('0x80E81348D9386Eb4d10c2A32A7458638cD3308dF')
2222
shoebill_borrow = Web3.to_checksum_address('0xE103F874B2D144C5B327FA3d57069Bb19c0779e2')
23+
oooo_bridge = Web3.to_checksum_address('0x7EcF9dadDF7EE01D850150cB360C824CfA322D8D')
24+
dmain_send = Web3.to_checksum_address('0x64812F1212f6276068A0726f4695a6637DA3E4F8')
25+
dmain_nft = Web3.to_checksum_address('0xD4276Edd50813aD26C1c493b66Ee2dFDD3B45230')
26+
layercraft_nft_contract_address = Web3.to_checksum_address('0xc6aa5857fb7ff7f0a2b9f72d38b744aca251fb80')
27+
layercraft_market = Web3.to_checksum_address('0x547396018c41Cb7211A8f685515A9a3Aa7eb3e87')
28+
layercraft_wbtc_address = Web3.to_checksum_address('0x0d4Fa73d08Cd92BB27688d8929C1C8faa38aA2A8')
2329

2430
# 保存账户链接
2531
my_file_name = 'account.txt'

0 commit comments

Comments
 (0)