From fc48c7de58237fd95685334020e9138b2ae4789a Mon Sep 17 00:00:00 2001 From: AlexOnomy Date: Thu, 30 Sep 2021 09:48:30 -0700 Subject: [PATCH 1/2] Don't included generated code in repo, generate on yarn install --- .gitignore | 3 +- generated/BondingNOM/BondingNOM.ts | 644 ----------------------------- generated/schema.ts | 228 ---------- package.json | 3 +- 4 files changed, 4 insertions(+), 874 deletions(-) delete mode 100644 generated/BondingNOM/BondingNOM.ts delete mode 100644 generated/schema.ts diff --git a/.gitignore b/.gitignore index e327999f..add91301 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,8 @@ /build/ /coverage/ /node_modules/ +/generated/ /package-lock.json /subgraph.yaml -/yarn-error.log \ No newline at end of file +/yarn-error.log diff --git a/generated/BondingNOM/BondingNOM.ts b/generated/BondingNOM/BondingNOM.ts deleted file mode 100644 index 157917c5..00000000 --- a/generated/BondingNOM/BondingNOM.ts +++ /dev/null @@ -1,644 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class OwnershipTransferred extends ethereum.Event { - get params(): OwnershipTransferred__Params { - return new OwnershipTransferred__Params(this); - } -} - -export class OwnershipTransferred__Params { - _event: OwnershipTransferred; - - constructor(event: OwnershipTransferred) { - this._event = event; - } - - get previousOwner(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get newOwner(): Address { - return this._event.parameters[1].value.toAddress(); - } -} - -export class Transaction extends ethereum.Event { - get params(): Transaction__Params { - return new Transaction__Params(this); - } -} - -export class Transaction__Params { - _event: Transaction; - - constructor(event: Transaction) { - this._event = event; - } - - get _by(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get amountNOM(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get amountETH(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } - - get price(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } - - get supply(): BigInt { - return this._event.parameters[4].value.toBigInt(); - } - - get buyOrSell(): string { - return this._event.parameters[5].value.toString(); - } - - get slippage(): BigInt { - return this._event.parameters[6].value.toBigInt(); - } -} - -export class BondingNOM extends ethereum.SmartContract { - static bind(address: Address): BondingNOM { - return new BondingNOM("BondingNOM", address); - } - - NOMSupToETH(supplyTop: BigInt, supplyBot: BigInt): BigInt { - let result = super.call( - "NOMSupToETH", - "NOMSupToETH(uint256,uint256):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(supplyTop), - ethereum.Value.fromUnsignedBigInt(supplyBot) - ] - ); - - return result[0].toBigInt(); - } - - try_NOMSupToETH( - supplyTop: BigInt, - supplyBot: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "NOMSupToETH", - "NOMSupToETH(uint256,uint256):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(supplyTop), - ethereum.Value.fromUnsignedBigInt(supplyBot) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - NOMTokenContract(): Address { - let result = super.call( - "NOMTokenContract", - "NOMTokenContract():(address)", - [] - ); - - return result[0].toAddress(); - } - - try_NOMTokenContract(): ethereum.CallResult
{ - let result = super.tryCall( - "NOMTokenContract", - "NOMTokenContract():(address)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - a(): BigInt { - let result = super.call("a", "a():(uint256)", []); - - return result[0].toBigInt(); - } - - try_a(): ethereum.CallResult { - let result = super.tryCall("a", "a():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - buyQuoteETH(amountETH: BigInt): BigInt { - let result = super.call("buyQuoteETH", "buyQuoteETH(uint256):(uint256)", [ - ethereum.Value.fromUnsignedBigInt(amountETH) - ]); - - return result[0].toBigInt(); - } - - try_buyQuoteETH(amountETH: BigInt): ethereum.CallResult { - let result = super.tryCall( - "buyQuoteETH", - "buyQuoteETH(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(amountETH)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - buyQuoteNOM(amountNOM: BigInt): BigInt { - let result = super.call("buyQuoteNOM", "buyQuoteNOM(uint256):(uint256)", [ - ethereum.Value.fromUnsignedBigInt(amountNOM) - ]); - - return result[0].toBigInt(); - } - - try_buyQuoteNOM(amountNOM: BigInt): ethereum.CallResult { - let result = super.tryCall( - "buyQuoteNOM", - "buyQuoteNOM(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(amountNOM)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - cubrtu(x: BigInt): BigInt { - let result = super.call("cubrtu", "cubrtu(uint256):(uint256)", [ - ethereum.Value.fromUnsignedBigInt(x) - ]); - - return result[0].toBigInt(); - } - - try_cubrtu(x: BigInt): ethereum.CallResult { - let result = super.tryCall("cubrtu", "cubrtu(uint256):(uint256)", [ - ethereum.Value.fromUnsignedBigInt(x) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - decimals(): i32 { - let result = super.call("decimals", "decimals():(uint8)", []); - - return result[0].toI32(); - } - - try_decimals(): ethereum.CallResult { - let result = super.tryCall("decimals", "decimals():(uint8)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toI32()); - } - - f64ToTok(fixed64: BigInt): BigInt { - let result = super.call("f64ToTok", "f64ToTok(int128):(uint256)", [ - ethereum.Value.fromSignedBigInt(fixed64) - ]); - - return result[0].toBigInt(); - } - - try_f64ToTok(fixed64: BigInt): ethereum.CallResult { - let result = super.tryCall("f64ToTok", "f64ToTok(int128):(uint256)", [ - ethereum.Value.fromSignedBigInt(fixed64) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getBondPrice(): BigInt { - let result = super.call("getBondPrice", "getBondPrice():(uint256)", []); - - return result[0].toBigInt(); - } - - try_getBondPrice(): ethereum.CallResult { - let result = super.tryCall("getBondPrice", "getBondPrice():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getNOMAddr(): Address { - let result = super.call("getNOMAddr", "getNOMAddr():(address)", []); - - return result[0].toAddress(); - } - - try_getNOMAddr(): ethereum.CallResult
{ - let result = super.tryCall("getNOMAddr", "getNOMAddr():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - getSupplyNOM(): BigInt { - let result = super.call("getSupplyNOM", "getSupplyNOM():(uint256)", []); - - return result[0].toBigInt(); - } - - try_getSupplyNOM(): ethereum.CallResult { - let result = super.tryCall("getSupplyNOM", "getSupplyNOM():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - owner(): Address { - let result = super.call("owner", "owner():(address)", []); - - return result[0].toAddress(); - } - - try_owner(): ethereum.CallResult
{ - let result = super.tryCall("owner", "owner():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - priceAtSupply(_supplyNOM: BigInt): BigInt { - let result = super.call( - "priceAtSupply", - "priceAtSupply(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(_supplyNOM)] - ); - - return result[0].toBigInt(); - } - - try_priceAtSupply(_supplyNOM: BigInt): ethereum.CallResult { - let result = super.tryCall( - "priceAtSupply", - "priceAtSupply(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(_supplyNOM)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - priceBondCurve(): BigInt { - let result = super.call("priceBondCurve", "priceBondCurve():(uint256)", []); - - return result[0].toBigInt(); - } - - try_priceBondCurve(): ethereum.CallResult { - let result = super.tryCall( - "priceBondCurve", - "priceBondCurve():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - sellQuoteNOM(amountNOM: BigInt): BigInt { - let result = super.call("sellQuoteNOM", "sellQuoteNOM(uint256):(uint256)", [ - ethereum.Value.fromUnsignedBigInt(amountNOM) - ]); - - return result[0].toBigInt(); - } - - try_sellQuoteNOM(amountNOM: BigInt): ethereum.CallResult { - let result = super.tryCall( - "sellQuoteNOM", - "sellQuoteNOM(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(amountNOM)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - supplyAtPrice(price: BigInt): BigInt { - let result = super.call( - "supplyAtPrice", - "supplyAtPrice(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(price)] - ); - - return result[0].toBigInt(); - } - - try_supplyAtPrice(price: BigInt): ethereum.CallResult { - let result = super.tryCall( - "supplyAtPrice", - "supplyAtPrice(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(price)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - supplyNOM(): BigInt { - let result = super.call("supplyNOM", "supplyNOM():(uint256)", []); - - return result[0].toBigInt(); - } - - try_supplyNOM(): ethereum.CallResult { - let result = super.tryCall("supplyNOM", "supplyNOM():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - teamBalance(): BigInt { - let result = super.call("teamBalance", "teamBalance():(uint256)", []); - - return result[0].toBigInt(); - } - - try_teamBalance(): ethereum.CallResult { - let result = super.tryCall("teamBalance", "teamBalance():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - tokToF64(token: BigInt): BigInt { - let result = super.call("tokToF64", "tokToF64(uint256):(int128)", [ - ethereum.Value.fromUnsignedBigInt(token) - ]); - - return result[0].toBigInt(); - } - - try_tokToF64(token: BigInt): ethereum.CallResult { - let result = super.tryCall("tokToF64", "tokToF64(uint256):(int128)", [ - ethereum.Value.fromUnsignedBigInt(token) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - withdraw(): boolean { - let result = super.call("withdraw", "withdraw():(bool)", []); - - return result[0].toBoolean(); - } - - try_withdraw(): ethereum.CallResult { - let result = super.tryCall("withdraw", "withdraw():(bool)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBoolean()); - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } - - get NOMContAddr(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} - -export class BuyNOMCall extends ethereum.Call { - get inputs(): BuyNOMCall__Inputs { - return new BuyNOMCall__Inputs(this); - } - - get outputs(): BuyNOMCall__Outputs { - return new BuyNOMCall__Outputs(this); - } -} - -export class BuyNOMCall__Inputs { - _call: BuyNOMCall; - - constructor(call: BuyNOMCall) { - this._call = call; - } - - get estAmountNOM(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get allowSlip(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class BuyNOMCall__Outputs { - _call: BuyNOMCall; - - constructor(call: BuyNOMCall) { - this._call = call; - } -} - -export class RenounceOwnershipCall extends ethereum.Call { - get inputs(): RenounceOwnershipCall__Inputs { - return new RenounceOwnershipCall__Inputs(this); - } - - get outputs(): RenounceOwnershipCall__Outputs { - return new RenounceOwnershipCall__Outputs(this); - } -} - -export class RenounceOwnershipCall__Inputs { - _call: RenounceOwnershipCall; - - constructor(call: RenounceOwnershipCall) { - this._call = call; - } -} - -export class RenounceOwnershipCall__Outputs { - _call: RenounceOwnershipCall; - - constructor(call: RenounceOwnershipCall) { - this._call = call; - } -} - -export class SellNOMCall extends ethereum.Call { - get inputs(): SellNOMCall__Inputs { - return new SellNOMCall__Inputs(this); - } - - get outputs(): SellNOMCall__Outputs { - return new SellNOMCall__Outputs(this); - } -} - -export class SellNOMCall__Inputs { - _call: SellNOMCall; - - constructor(call: SellNOMCall) { - this._call = call; - } - - get amountNOM(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get estAmountETH(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } - - get allowSlip(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } -} - -export class SellNOMCall__Outputs { - _call: SellNOMCall; - - constructor(call: SellNOMCall) { - this._call = call; - } -} - -export class TransferOwnershipCall extends ethereum.Call { - get inputs(): TransferOwnershipCall__Inputs { - return new TransferOwnershipCall__Inputs(this); - } - - get outputs(): TransferOwnershipCall__Outputs { - return new TransferOwnershipCall__Outputs(this); - } -} - -export class TransferOwnershipCall__Inputs { - _call: TransferOwnershipCall; - - constructor(call: TransferOwnershipCall) { - this._call = call; - } - - get newOwner(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class TransferOwnershipCall__Outputs { - _call: TransferOwnershipCall; - - constructor(call: TransferOwnershipCall) { - this._call = call; - } -} - -export class WithdrawCall extends ethereum.Call { - get inputs(): WithdrawCall__Inputs { - return new WithdrawCall__Inputs(this); - } - - get outputs(): WithdrawCall__Outputs { - return new WithdrawCall__Outputs(this); - } -} - -export class WithdrawCall__Inputs { - _call: WithdrawCall; - - constructor(call: WithdrawCall) { - this._call = call; - } -} - -export class WithdrawCall__Outputs { - _call: WithdrawCall; - - constructor(call: WithdrawCall) { - this._call = call; - } - - get success(): boolean { - return this._call.outputValues[0].value.toBoolean(); - } -} diff --git a/generated/schema.ts b/generated/schema.ts deleted file mode 100644 index 73999c1d..00000000 --- a/generated/schema.ts +++ /dev/null @@ -1,228 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - TypedMap, - Entity, - Value, - ValueKind, - store, - Address, - Bytes, - BigInt, - BigDecimal -} from "@graphprotocol/graph-ts"; - -export class WNOMTransaction extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id !== null, "Cannot save WNOMTransaction entity without an ID"); - assert( - id.kind == ValueKind.STRING, - "Cannot save WNOMTransaction entity with non-string ID. " + - 'Considering using .toHex() to convert the "id" to a string.' - ); - store.set("WNOMTransaction", id.toString(), this); - } - - static load(id: string): WNOMTransaction | null { - return store.get("WNOMTransaction", id) as WNOMTransaction | null; - } - - get id(): string { - let value = this.get("id"); - return value.toString(); - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get senderAddress(): Bytes { - let value = this.get("senderAddress"); - return value.toBytes(); - } - - set senderAddress(value: Bytes) { - this.set("senderAddress", Value.fromBytes(value)); - } - - get amountNOM(): BigInt { - let value = this.get("amountNOM"); - return value.toBigInt(); - } - - set amountNOM(value: BigInt) { - this.set("amountNOM", Value.fromBigInt(value)); - } - - get amountETH(): BigInt { - let value = this.get("amountETH"); - return value.toBigInt(); - } - - set amountETH(value: BigInt) { - this.set("amountETH", Value.fromBigInt(value)); - } - - get price(): BigInt { - let value = this.get("price"); - return value.toBigInt(); - } - - set price(value: BigInt) { - this.set("price", Value.fromBigInt(value)); - } - - get supply(): BigInt { - let value = this.get("supply"); - return value.toBigInt(); - } - - set supply(value: BigInt) { - this.set("supply", Value.fromBigInt(value)); - } - - get buyOrSell(): boolean { - let value = this.get("buyOrSell"); - return value.toBoolean(); - } - - set buyOrSell(value: boolean) { - this.set("buyOrSell", Value.fromBoolean(value)); - } - - get slippage(): BigInt { - let value = this.get("slippage"); - return value.toBigInt(); - } - - set slippage(value: BigInt) { - this.set("slippage", Value.fromBigInt(value)); - } - - get timestamp(): BigInt { - let value = this.get("timestamp"); - return value.toBigInt(); - } - - set timestamp(value: BigInt) { - this.set("timestamp", Value.fromBigInt(value)); - } -} - -export class WNOMHistoricalFrame extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id !== null, "Cannot save WNOMHistoricalFrame entity without an ID"); - assert( - id.kind == ValueKind.STRING, - "Cannot save WNOMHistoricalFrame entity with non-string ID. " + - 'Considering using .toHex() to convert the "id" to a string.' - ); - store.set("WNOMHistoricalFrame", id.toString(), this); - } - - static load(id: string): WNOMHistoricalFrame | null { - return store.get("WNOMHistoricalFrame", id) as WNOMHistoricalFrame | null; - } - - get id(): string { - let value = this.get("id"); - return value.toString(); - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get type(): string { - let value = this.get("type"); - return value.toString(); - } - - set type(value: string) { - this.set("type", Value.fromString(value)); - } - - get updateTime(): BigInt { - let value = this.get("updateTime"); - return value.toBigInt(); - } - - set updateTime(value: BigInt) { - this.set("updateTime", Value.fromBigInt(value)); - } - - get startTime(): BigInt { - let value = this.get("startTime"); - return value.toBigInt(); - } - - set startTime(value: BigInt) { - this.set("startTime", Value.fromBigInt(value)); - } - - get startPrice(): BigInt { - let value = this.get("startPrice"); - return value.toBigInt(); - } - - set startPrice(value: BigInt) { - this.set("startPrice", Value.fromBigInt(value)); - } - - get endTime(): BigInt { - let value = this.get("endTime"); - return value.toBigInt(); - } - - set endTime(value: BigInt) { - this.set("endTime", Value.fromBigInt(value)); - } - - get endPrice(): BigInt { - let value = this.get("endPrice"); - return value.toBigInt(); - } - - set endPrice(value: BigInt) { - this.set("endPrice", Value.fromBigInt(value)); - } - - get minPrice(): BigInt { - let value = this.get("minPrice"); - return value.toBigInt(); - } - - set minPrice(value: BigInt) { - this.set("minPrice", Value.fromBigInt(value)); - } - - get maxPrice(): BigInt { - let value = this.get("maxPrice"); - return value.toBigInt(); - } - - set maxPrice(value: BigInt) { - this.set("maxPrice", Value.fromBigInt(value)); - } - - get transactionsCount(): BigInt { - let value = this.get("transactionsCount"); - return value.toBigInt(); - } - - set transactionsCount(value: BigInt) { - this.set("transactionsCount", Value.fromBigInt(value)); - } -} diff --git a/package.json b/package.json index e39d801f..cbc6df63 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,12 @@ "codegen": "graph codegen", "build": "graph build", "test": "asp --verbose", + "prepare": "yarn codegen", "prep:mainnet": "mustache networks/mainnet.json subgraph.template.yaml > subgraph.yaml && yarn codegen", "prep:rinkeby": "mustache networks/rinkeby.json subgraph.template.yaml > subgraph.yaml && yarn codegen", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ onomyprotocol/ograph", "deploy:debug": "graph deploy --debug --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ onomyprotocol/ograph", - "create-local": "graph create --node http://localhost:8020/ onomyprotocol/ograph", + "create-local": "graph crt eate --node http://localhost:8020/ onomyprotocol/ograph", "remove-local": "graph remove --node http://localhost:8020/ onomyprotocol/ograph", "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 onomyprotocol/ograph" }, From 4dc2c106fd1b5fc64481609eee0216ea9bfaa196 Mon Sep 17 00:00:00 2001 From: AlexOnomy Date: Thu, 30 Sep 2021 09:55:40 -0700 Subject: [PATCH 2/2] Fix typo introduced into package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cbc6df63..9dcb77fd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "prep:rinkeby": "mustache networks/rinkeby.json subgraph.template.yaml > subgraph.yaml && yarn codegen", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ onomyprotocol/ograph", "deploy:debug": "graph deploy --debug --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ onomyprotocol/ograph", - "create-local": "graph crt eate --node http://localhost:8020/ onomyprotocol/ograph", + "create-local": "graph create --node http://localhost:8020/ onomyprotocol/ograph", "remove-local": "graph remove --node http://localhost:8020/ onomyprotocol/ograph", "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 onomyprotocol/ograph" },