@@ -2,7 +2,6 @@ import { BigInt } from '@graphprotocol/graph-ts'
2
2
import { TransferBatch , TransferSingle } from '../../generated/ChildERC1155/ChildERC1155'
3
3
import { TransactionEntity , GlobalTransferCounter } from '../../generated/schema'
4
4
//import { BigDecimal, BigInt } from '@graphprotocol/graph-ts'
5
- import { toDecimal } from '../helpers/numbers'
6
5
7
6
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
8
7
@@ -19,7 +18,7 @@ function getGlobalTransferCounter(): GlobalTransferCounter {
19
18
20
19
export function handleSingleTransfer ( event : TransferSingle ) : void {
21
20
22
- // Try to get what's current global plasma counter's state
21
+ // Try to get what's current global counter's state
23
22
// when called for very first time, it'll be `0`
24
23
let counter = getGlobalTransferCounter ( )
25
24
let updated = counter . current . plus ( BigInt . fromI32 ( 1 ) )
@@ -40,13 +39,13 @@ export function handleSingleTransfer(event: TransferSingle): void {
40
39
transactionEntity . timestamp = event . block . timestamp
41
40
transactionEntity . transaction = event . transaction . hash
42
41
transactionEntity . token = event . address
43
- transactionEntity . tokenType = " ERC1155"
42
+ transactionEntity . tokenType = ' ERC1155'
44
43
transactionEntity . isPos = true
45
44
transactionEntity . save ( )
46
45
}
47
46
48
47
export function handleBatchTransfer ( event : TransferBatch ) : void {
49
- // Try to get what's current global plasma counter's state
48
+ // Try to get what's current global counter's state
50
49
// when called for very first time, it'll be `0`
51
50
let counter = getGlobalTransferCounter ( )
52
51
let updated = counter . current . plus ( BigInt . fromI32 ( 1 ) )
@@ -67,7 +66,7 @@ export function handleBatchTransfer(event: TransferBatch): void {
67
66
transactionEntity . timestamp = event . block . timestamp
68
67
transactionEntity . transaction = event . transaction . hash
69
68
transactionEntity . token = event . address
70
- transactionEntity . tokenType = " ERC1155"
69
+ transactionEntity . tokenType = ' ERC1155'
71
70
transactionEntity . isPos = true
72
71
transactionEntity . save ( )
73
72
}
0 commit comments