2020-11-20 13:12:02 +01:00
{
2020-12-02 11:07:09 +01:00
"name" : "ocean-subgraph" ,
2022-09-07 12:31:36 +02:00
"version" : "2.0.4" ,
2020-11-20 13:12:02 +01:00
"scripts" : {
2020-12-11 11:37:09 +01:00
"start" : "" ,
2022-02-17 11:59:55 +01:00
"quickstart:development" : "node ./scripts/generatenetworkssubgraphs.js development && npm run codegen && npm run create:local && npm run deploy:local" ,
2022-02-14 09:35:55 +01:00
"quickstart:barge" : "node ./scripts/generatenetworkssubgraphs.js development && npm run codegen && npm run create:local-barge && npm run deploy:local-barge" ,
2022-02-17 11:59:55 +01:00
"quickstart:rinkeby" : "node ./scripts/generatenetworkssubgraphs.js rinkeby && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:ropsten" : "node ./scripts/generatenetworkssubgraphs.js ropsten && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:mumbai" : "node ./scripts/generatenetworkssubgraphs.js mumbai && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:moonbase" : "node ./scripts/generatenetworkssubgraphs.js moonbase && npm run codegen && npm run create:local && npm run deploy:local" ,
2022-05-10 08:23:41 +02:00
"quickstart:polygon" : "node ./scripts/generatenetworkssubgraphs.js polygon && npm run codegen && npm run create:local && npm run deploy:local" ,
2022-06-05 20:17:37 +02:00
"quickstart:mainnet" : "node ./scripts/generatenetworkssubgraphs.js mainnet && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:moonriver" : "node ./scripts/generatenetworkssubgraphs.js moonriver && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:energyweb" : "node ./scripts/generatenetworkssubgraphs.js energyweb && npm run codegen && npm run create:local && npm run deploy:local" ,
"quickstart:bsc" : "node ./scripts/generatenetworkssubgraphs.js bsc && npm run codegen && npm run create:local && npm run deploy:local" ,
2022-02-17 11:59:55 +01:00
"create:thegraph" : "graph create oceanprotocol/ocean-subgraph --node https://api.thegraph.com/deploy/" ,
2020-11-20 13:12:02 +01:00
"create:local" : "graph create oceanprotocol/ocean-subgraph --node http://127.0.0.1:8020" ,
2022-02-14 09:35:55 +01:00
"create:local-barge" : "graph create oceanprotocol/ocean-subgraph --node http://172.15.0.15:8020" ,
2021-02-09 11:13:31 +01:00
"codegen" : "graph codegen --output-dir src/@types" ,
2020-11-20 13:12:02 +01:00
"build" : "graph build" ,
2022-02-17 11:59:55 +01:00
"deploy:thegraph" : "graph deploy oceanprotocol/ocean-subgraph -l $npm_package_version --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/" ,
2022-02-14 09:35:55 +01:00
"deploy:local" : "graph deploy oceanprotocol/ocean-subgraph subgraph.yaml -l $npm_package_version --debug --ipfs http://127.0.0.1:5001 --node http://127.0.0.1:8020" ,
"deploy:local-barge" : "graph deploy oceanprotocol/ocean-subgraph subgraph.yaml -l $npm_package_version --debug --ipfs http://172.15.0.16:5001 --node http://172.15.0.15:8020" ,
2021-02-09 11:13:31 +01:00
"test" : "npm run codegen && npm run lint && npm run type-check" ,
2021-04-13 17:10:03 +02:00
"test-integration" : "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/**/*.test.ts'" ,
2022-08-12 09:32:48 +02:00
"test-dispenser" : "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/Dispenser.test.ts'" ,
2022-08-11 14:59:19 +02:00
"test-fixed" : "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/FixedRateExchange.test.ts'" ,
2022-08-30 12:20:40 +02:00
"test-users" : "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/users.test.ts'" ,
2022-09-07 12:30:53 +02:00
"test-ve" : "TS_NODE_PROJECT='test/integration/tsconfig.json' mocha --config=test/integration/.mocharc.json --node-env=test --exit 'test/integration/VeOcean.test.ts'" ,
2020-12-11 11:37:09 +01:00
"lint" : "eslint --ignore-path .gitignore --ext .js --ext .ts --ext .tsx ." ,
2022-02-14 09:35:55 +01:00
"lint:fix" : "eslint --ignore-path .gitignore --ext .js,.ts,.tsx . --fix" ,
2020-12-11 11:37:09 +01:00
"format" : "prettier --ignore-path .gitignore './**/*.{css,yml,js,ts,tsx,json,yaml}' --write" ,
"type-check" : "tsc --noEmit" ,
2022-06-23 13:51:32 +02:00
"replaceVersion" : "node ./scripts/replaceVersion.js" ,
2020-12-11 11:37:09 +01:00
"release" : "release-it --non-interactive" ,
"changelog" : "auto-changelog -p"
2020-11-20 13:12:02 +01:00
} ,
"devDependencies" : {
2022-09-07 12:23:51 +02:00
"@graphprotocol/graph-cli" : "^0.33.1" ,
2022-05-26 10:15:30 +02:00
"@graphprotocol/graph-ts" : "^0.27.0" ,
2022-08-15 11:52:44 +02:00
"@types/chai" : "^4.3.3" ,
2021-04-13 17:10:03 +02:00
"@types/chai-spies" : "^1.0.3" ,
2022-05-02 13:33:17 +02:00
"@types/mocha" : "^9.1.1" ,
2021-10-28 18:43:50 +02:00
"@typescript-eslint/eslint-plugin" : "^4.33.0" ,
"@typescript-eslint/parser" : "^4.33.0" ,
2022-02-21 06:12:40 +01:00
"auto-changelog" : "^2.4.0" ,
2022-02-16 18:50:04 +01:00
"chai" : "^4.3.6" ,
2021-04-13 17:10:03 +02:00
"chai-spies" : "^1.0.0" ,
2021-08-02 11:43:36 +02:00
"eslint" : "^7.32.0" ,
2022-06-21 14:12:27 +02:00
"eslint-config-oceanprotocol" : "^2.0.3" ,
2022-03-14 13:34:21 +01:00
"eslint-config-prettier" : "^8.5.0" ,
2022-04-29 16:18:15 +02:00
"eslint-plugin-import" : "^2.26.0" ,
2021-10-28 18:43:50 +02:00
"eslint-plugin-node" : "^11.1.0" ,
2022-07-26 19:46:47 +02:00
"eslint-plugin-prettier" : "^4.2.1" ,
2021-10-28 18:43:50 +02:00
"eslint-plugin-standard" : "^5.0.0" ,
2022-05-02 10:27:48 +02:00
"mocha" : "^10.0.0" ,
2022-08-01 13:59:39 +02:00
"mock-local-storage" : "^1.1.23" ,
2022-06-21 16:04:11 +02:00
"prettier" : "^2.7.1" ,
2022-09-07 08:19:19 +02:00
"release-it" : "^15.4.1" ,
2022-04-04 14:52:30 +02:00
"source-map-support" : "^0.5.21" ,
2022-07-26 19:46:47 +02:00
"ts-node" : "^10.9.1" ,
"ts-node-dev" : "^2.0.0" ,
2021-04-13 17:10:03 +02:00
"ts-node-register" : "^1.0.0" ,
2022-09-12 15:39:06 +02:00
"typescript" : "^4.8.3"
2020-11-20 13:12:02 +01:00
} ,
2021-04-13 17:10:03 +02:00
"dependencies" : {
Implementing first pass of veAllocate schema, handlers, and test cove… (#490)
* Implementing first pass of veAllocate schema, handlers, and test coverage.
* Fixed compiling issues, wrote compiling & testing outline inside of veAllocate.test. More to come.
* Created documentation. Moving tests away from subgraph and into df-py.
* Expanding documentation to be thorough and cover more of the work involved.
* use barge artifacts
* use proper contracts in ci
* use barge artifacts folder
* fix replace
* use npm contracts dep
* use latest contracts for barge
* fix some lint
* Fix linter errors
* Update schema
* Finished basic integration of setAllocation event and verified queries/schema is working as intended.
* Fixing amount getter.
* Fixed remaining implementation, verified SimpleSubgraph.test is working, and fixed lint errors.
* Fixing import.
* Use .zero()
* Improve readability
* Add allocated to schema
* Update abi
* Update event handlers in the template
* Update veREADME
* Remove `AllocationRemoved` handler
* Hooking data for tx, firstContact, lastUpdate, block
* Update event abi
* Add chainId and nftAddress to schema
* Update `handleAllocationSet`
* Update abi
* Update readme
* Set initial values
* Fix math
* Missing event param
* set initial value of `lastContact`
* veOcean template
* VeOcean entity
* Handler functions - wip
* rename file
* Delegation schema
* veDelegate mapping file
* Rename
* Update template
* Update schema
* Update replaces
* Add handler for delegation
* Update schema
* getveDelegation
* Update naming
* Add deposit entity
* Update template
* Make delegation an array
* Add `handleDelegation`
* Add `handleDeposit` for veOCEAN
* Add `getveOCEAN` util function
* Add `getDeposit` util function
* Add `handleBurnBoost`
* Add `handleExtendBoost`
* Add `handleTransferBoost`
* Set default veOCEAN
* Remove unused import
* Rename Deposit to VeDeposit
* Include block number
* Remove `allocatedTotal`
* Updating schema and fixing errors due to naming changes. Let's keep the user current allocation, maybe we need to create a feature to more easily let them know whether they are fully allocated, or not..
* bump contracts to v1.1.1
* bump contracts
* bump to contracts 1.1.2
* fix script for networks without ve
* add veAllocation.sol's AllocationSetMultiple
* copy artfacts from barge for npm quickstart:barge
* fix using barge artifacts
* temp debug
* use barge artifacts
* use contracts 1.1.3
* use same approach for 'development'
* bump ocean-contracts
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
Co-authored-by: trizin <25263018+trizin@users.noreply.github.com>
2022-09-05 14:07:31 +02:00
"@oceanprotocol/contracts" : "^1.1.3" ,
2022-09-07 12:30:53 +02:00
"@oceanprotocol/lib" : "^2.0.0" ,
2021-04-13 17:10:03 +02:00
"cross-fetch" : "^3.1.4"
} ,
2020-12-11 11:37:09 +01:00
"repository" : {
"type" : "git" ,
"url" : "git+https://github.com/oceanprotocol/ocean-subgraph.git"
} ,
"license" : "Apache-2.0" ,
"release-it" : {
"hooks" : {
2022-06-23 13:51:32 +02:00
"after:bump" : "npm run changelog && npm run replaceVersion"
2020-12-11 11:37:09 +01:00
} ,
2021-05-25 15:31:52 +02:00
"plugins" : { } ,
2020-12-11 11:37:09 +01:00
"git" : {
"tagName" : "v${version}"
} ,
"github" : {
"release" : true
} ,
"npm" : {
"publish" : false
}
2020-11-20 13:12:02 +01:00
}
}