Skip to content

Commit 69541db

Browse files
committed
Subgraph pointed to new contract
1 parent 3c1fde4 commit 69541db

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

contracts/scripts/deploy.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ const sleep = (sleepDurationInSecs: number) => (new Promise((resolve) => {
2020

2121
console.log("\n\n[+] Deploying contracts...");
2222

23-
// Deploy CZP
23+
/*// Deploy CZP
2424
const czpTokenContract = await (await (await ethers.getContractFactory("CazzPayToken")).deploy(ethers.utils.parseEther("10000000"))).deployed();
2525
console.log("\t [>] $CZP contract deployed!");
2626
2727
// Deploy TestCoin
2828
const testCoinContract = await (await (await ethers.getContractFactory("TestCoin")).deploy(ethers.utils.parseEther("10000000"))).deployed();
29-
console.log("\t [>] $TST contract deployed!");
29+
console.log("\t [>] $TST contract deployed!");*/
3030

3131
// Deploy CazzPay
3232
const cazzPayContract = await (await (await ethers.getContractFactory("CazzPay")).deploy(
3333
UNISWAP_V2_FACTORY,
3434
UNISWAP_V2_ROUTER,
35-
czpTokenContract.address,
35+
"0x8d7b5E919620D2C9742389bc1CeC671eaB0E3150",
3636
WETH,
3737
100, // Payment processing fees = 1%
3838
REDSTONE_SIGNER))
@@ -42,14 +42,14 @@ const sleep = (sleepDurationInSecs: number) => (new Promise((resolve) => {
4242

4343
// Print contract addresses
4444
console.table([
45-
{
45+
/*{
4646
Name: "CazzPayToken",
4747
Address: czpTokenContract.address
4848
},
4949
{
5050
Name: "TestCoin",
5151
Address: testCoinContract.address
52-
},
52+
},*/
5353
{
5454
Name: "CazzPay",
5555
Address: cazzPayContract.address
@@ -60,20 +60,20 @@ const sleep = (sleepDurationInSecs: number) => (new Promise((resolve) => {
6060
console.log("\n[...] Waiting a few mins before starting verification...")
6161
await sleep(120);
6262
await Promise.all([
63-
run("verify:verify", {
63+
/*run("verify:verify", {
6464
address: czpTokenContract.address,
6565
constructorArguments: [ethers.utils.parseEther("10000000")],
6666
}),
6767
run("verify:verify", {
6868
address: testCoinContract.address,
6969
constructorArguments: [ethers.utils.parseEther("10000000")],
70-
}),
70+
}),*/
7171
run("verify:verify", {
7272
address: cazzPayContract.address,
7373
constructorArguments: [
7474
UNISWAP_V2_FACTORY,
7575
UNISWAP_V2_ROUTER,
76-
czpTokenContract.address,
76+
"0x8d7b5E919620D2C9742389bc1CeC671eaB0E3150",
7777
WETH,
7878
100, // Payment processing fees = 1%
7979
REDSTONE_SIGNER

graph/build/subgraph.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dataSources:
66
name: CazzPay
77
network: rinkeby
88
source:
9-
address: "0x9753bC5c6C2ed1F0E1299c1c978425AC8C3adcd0"
9+
address: "0xDBbD3EF86b6F1a250f542F21362FeA46c28F037c"
1010
abi: CazzPay
11-
startBlock: 10715114
11+
startBlock: 10719301
1212
mapping:
1313
kind: ethereum/events
1414
apiVersion: 0.0.5

graph/subgraph.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dataSources:
66
name: CazzPay
77
network: rinkeby
88
source:
9-
address: "0x9753bC5c6C2ed1F0E1299c1c978425AC8C3adcd0"
9+
address: "0xDBbD3EF86b6F1a250f542F21362FeA46c28F037c"
1010
abi: CazzPay
11-
startBlock: 10715114
11+
startBlock: 10719301
1212
mapping:
1313
kind: ethereum/events
1414
apiVersion: 0.0.5

0 commit comments

Comments
 (0)