File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ After cloning initialise the contracts needed for testing and installing dependancies run:
2
+
3
+ ``` bash
4
+ git submodule update --init --recursive
5
+ yarn && cd async-contracts && yarn && cd ..
6
+ ```
7
+
8
+ ### Local development and testing
9
+
10
+ Run:
11
+
12
+ ``` bash
13
+ make graph-test
14
+ ```
Original file line number Diff line number Diff line change 1
- import { BigInt } from "@graphprotocol/graph-ts" ;
1
+ import { BigInt , log } from "@graphprotocol/graph-ts" ;
2
2
import {
3
3
Contract ,
4
4
Approval ,
@@ -57,6 +57,8 @@ export function handleBuyPriceSet(event: BuyPriceSet): void {}
57
57
export function handleControlLeverUpdated ( event : ControlLeverUpdated ) : void { }
58
58
59
59
export function handleCreatorWhitelisted ( event : CreatorWhitelisted ) : void {
60
+ log . warning ( "Whitelist" , [ ] ) ;
61
+
60
62
let txTimestamp = event . block . timestamp ;
61
63
let blockNumber = event . block . number ;
62
64
let user = new ExampleEntity ( txTimestamp . toString ( ) ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ dataSources:
6
6
name : Contract
7
7
network : ganache
8
8
source :
9
- address : " 0x5Db1Dd1980E17050B38413B0561d95CF781CB8C5 "
9
+ address : " 0x13759fA52EBf752aF1bbe4b6Fd6A09B6839d737c "
10
10
abi : Contract
11
11
startBlock : 0
12
12
mapping :
Original file line number Diff line number Diff line change @@ -228,9 +228,9 @@ asn1@~0.2.3:
228
228
dependencies :
229
229
safer-buffer "~2.1.0"
230
230
231
- " assemblyscript@git+ https://github.com/AssemblyScript/assemblyscript.git #36040d5b5312f19a025782b5e36663823494c2f3 " :
231
+ " assemblyscript@https://github.com/AssemblyScript/assemblyscript#36040d5b5312f19a025782b5e36663823494c2f3 " :
232
232
version "0.6.0"
233
- resolved "git+ https://github.com/AssemblyScript/assemblyscript.git #36040d5b5312f19a025782b5e36663823494c2f3"
233
+ resolved "https://github.com/AssemblyScript/assemblyscript#36040d5b5312f19a025782b5e36663823494c2f3"
234
234
dependencies :
235
235
" @protobufjs/utf8" " ^1.1.0"
236
236
binaryen "77.0.0-nightly.20190407"
You can’t perform that action at this time.
0 commit comments