diff --git a/README.md b/README.md index 324a255..9ccff40 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ yarn install Available networks: mainnet, xdai, sokol, kovan, ropsten +Add +``` +--product hosted-service --access-token {TOKEN} +``` +as extra parameters just after "graph deploy" in the package json and then execute the following: + ```ssh yarn prepare: yarn codegen @@ -18,6 +24,7 @@ yarn build yarn deploy: ``` + ## Deployments ### Mainnet diff --git a/schema.graphql b/schema.graphql index ff85324..c6d16dd 100644 --- a/schema.graphql +++ b/schema.graphql @@ -6,6 +6,7 @@ type Token @entity transfers: [Transfer!]! @derivedFrom(field: "token") transferCount: BigInt! created: BigInt! + mintOrder: BigInt } type Account @entity diff --git a/src/mapping.ts b/src/mapping.ts index ffd9c37..ad49e93 100644 --- a/src/mapping.ts +++ b/src/mapping.ts @@ -37,6 +37,7 @@ export function handleEventToken(ev: EventTokenEvent): void event.tokenCount += BigInt.fromI32(1); event.transferCount += BigInt.fromI32(1); token.event = event.id; + token.mintOrder = event.tokenCount; event.save(); token.save(); }