@@ -2,7 +2,6 @@ import { BigInt } from '@graphprotocol/graph-ts'
22import { TransferBatch , TransferSingle } from '../../generated/ChildERC1155/ChildERC1155'
33import { TransactionEntity , GlobalTransferCounter } from '../../generated/schema'
44//import { BigDecimal, BigInt } from '@graphprotocol/graph-ts'
5- import { toDecimal } from '../helpers/numbers'
65
76const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
87
@@ -19,7 +18,7 @@ function getGlobalTransferCounter(): GlobalTransferCounter {
1918
2019export function handleSingleTransfer ( event : TransferSingle ) : void {
2120
22- // Try to get what's current global plasma counter's state
21+ // Try to get what's current global counter's state
2322 // when called for very first time, it'll be `0`
2423 let counter = getGlobalTransferCounter ( )
2524 let updated = counter . current . plus ( BigInt . fromI32 ( 1 ) )
@@ -40,13 +39,13 @@ export function handleSingleTransfer(event: TransferSingle): void {
4039 transactionEntity . timestamp = event . block . timestamp
4140 transactionEntity . transaction = event . transaction . hash
4241 transactionEntity . token = event . address
43- transactionEntity . tokenType = " ERC1155"
42+ transactionEntity . tokenType = ' ERC1155'
4443 transactionEntity . isPos = true
4544 transactionEntity . save ( )
4645}
4746
4847export 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
5049 // when called for very first time, it'll be `0`
5150 let counter = getGlobalTransferCounter ( )
5251 let updated = counter . current . plus ( BigInt . fromI32 ( 1 ) )
@@ -67,7 +66,7 @@ export function handleBatchTransfer(event: TransferBatch): void {
6766 transactionEntity . timestamp = event . block . timestamp
6867 transactionEntity . transaction = event . transaction . hash
6968 transactionEntity . token = event . address
70- transactionEntity . tokenType = " ERC1155"
69+ transactionEntity . tokenType = ' ERC1155'
7170 transactionEntity . isPos = true
7271 transactionEntity . save ( )
7372}
0 commit comments