Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions db/migrations/1706784285253-Data.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 21 additions & 11 deletions db/migrations/1706784285254-Data.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
module.exports = class Data1706784285254 {
name = 'Data1706784285254'
// module.exports = class Data1706784285254 {
// name = 'Data1706784285254'

async up(db) {
// *************************************************************************************************************
// Script inserted manually. Modifies the foreign key constraint on the verified_contract table to delete
// the verified contract when the contract is deleted.
// *************************************************************************************************************
await db.query(`ALTER TABLE "verified_contract" DROP CONSTRAINT "FK_70c992c058f4f82d658a2cd899c";`);
await db.query(`ALTER TABLE "verified_contract" ADD CONSTRAINT "FK_70c992c058f4f82d658a2cd899c" FOREIGN KEY ("contract_id") REFERENCES "contract"("id") ON DELETE CASCADE ON UPDATE NO ACTION`)
}
}
// async up(db) {
// // *************************************************************************************************************
// // Script inserted manually. Modifies the foreign key constraint on the verified_contract table to delete
// // the verified contract when the contract is deleted.
// // *************************************************************************************************************
// await db.query(`
// ALTER TABLE "verified_contract"
// DROP CONSTRAINT IF EXISTS "FK_70c992c058f4f82d658a2cd899c";
// `);


// await db.query(`
// ALTER TABLE "verified_contract"
// ADD CONSTRAINT "FK_70c992c058f4f82d658a2cd899c"
// FOREIGN KEY ("contract_id") REFERENCES "contract"("id")
// ON DELETE CASCADE ON UPDATE NO ACTION;
// `);
// }
// }
108 changes: 108 additions & 0 deletions squid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
manifestVersion: subsquid.io/v0.1
name: reef-explorer
version: 13
description: |-
Reef Chain explorer data

# squid-reef@2.1.2

build:

deploy:
addons:
postgres:
processor:
env:
NETWORK:
mainnet
HEAD_REACHED:
true
PIN_TO_IPFS:
false
USE_ONLY_RPC:
false
SUPPORT_HOT_BLOCKS:
true
UPDATE_FROM_HEAD_BATCH_SIZE:
100
PROCESSOR_BATCH_SIZE:
1000
REEFSWAP_ROUTER_ADDRESS_MAINNET:
"0x10ED43C718714eb63d5aA57B78B54704E256024E"
FIREBASE_EMITTER_ENABLED:
false
FIREBASE_PROJECT_ID:
reef-block-index
FIREBASE_DB_URL:
https://reef-block-index-default-rtdb.firebaseio.com/
EMITTER_IO_ENABLED:
true
EMITTER_IO_URL:
https://events.reefscan.info:443
PUSHER_ENABLED:
false
PUSHER_APP_ID:
1629403
PUSHER_KEY:
fc5ad78eb31981de6c67
PUSHER_CLUSTER:
eu
PUSHER_CHANNEL:
reef-chain
PUSHER_EVENT:
block-finalised
cmd: [ "node", "lib/processor" ]
api:
env:
NETWORK:
mainnet
SQUID_NAME:
reef-explorer
FIREBASE_EMITTER_ENABLED:
false
FIREBASE_PROJECT_ID:
reef-block-index
FIREBASE_DB_URL:
https://reef-block-index-default-rtdb.firebaseio.com/
EMITTER_IO_ENABLED:
true
EMITTER_IO_URL:
https://events.reefscan.info:443
PUSHER_ENABLED:
false
PUSHER_APP_ID:
1629403
PUSHER_KEY:
fc5ad78eb31981de6c67
PUSHER_CLUSTER:
eu
PUSHER_CHANNEL:
reef-chain
PUSHER_EVENT:
block-finalised
UPDATE_FINALIZED_MAX_SIZE:
1000
cmd: [ "npx", "squid-graphql-server", "--subscriptions", "--max-root-fields", "15", "--max-response-size", "1000"]
secrets:
- NODE_RPC_WS_MAINNET
- NODE_RPC_WS_TESTNET
- ARCHIVE_LOOKUP_NAME_MAINNET
- ARCHIVE_LOOKUP_NAME_TESTNET
- JWT_SECRET
- INFURA_IPFS_PROJECT_ID
- INFURA_IPFS_KEY
- APIKEY_REEF_BRIDGE
- FIREBASE_CLIENT_EMAIL
- FIREBASE_PK
- PUSHER_SECRET
- FIREBASE_CLIENT_EMAIL
- FIREBASE_PK
- EMITTER_IO_KEY

scale:
dedicated: false
addons:
postgres:
profile: small
# processor:
# profile: medium