Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 committed Oct 9, 2023
1 parent 1dd8378 commit fef18f1
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 31 deletions.
4 changes: 3 additions & 1 deletion packages/earn-subql/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ services:
- --workers=4
- --batch-size=30
- --unfinalized-blocks=true
- --network-dictionary=''
- ----dictionary-resolver=''
healthcheck:
test: ["CMD", "curl", "-f", "http://subquery-node:3000/ready"]
interval: 3s
Expand All @@ -46,7 +48,7 @@ services:
graphql-engine:
image: onfinality/subql-query:latest
ports:
- 3000:3000
- 3001:3000
depends_on:
"postgres":
condition: service_healthy
Expand Down
45 changes: 22 additions & 23 deletions packages/earn-subql/karura-project.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,49 @@
specVersion: 1.0.0
name: karura-liquid-staking
name: karura-staking
repository: 'https://github.com/AcalaNetwork/acala-subql-services'
version: 1.0.0
description: 'liquid protocal statistics'
runner:
node:
name: "@subql/node"
version: "1.21.1"
version: "2.12.6"
query:
name: "@subql/query"
version: "1.1.1"
schema:
version: "2.3.0"
schema:
file: ./schema.graphql
network:
chainId: '0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b'
dictionary: https://api.subquery.network/sq/subquery/karura-dictionary
endpoint: wss://karura.api.onfinality.io/public-ws
endpoint: wss://crosschain-dev.polkawallet.io:9905
chaintypes:
file: './dist/chain-types.js'
dataSources:
- kind: substrate/Runtime
startBlock: 3800000
startBlock: 5370000
mapping:
file: "./dist/index.js"
handlers:
- handler: sync
- handler: handleClaimRewards
kind: substrate/EventHandler
filter:
module: homa
method: Minted
- handler: sync
module: incentives
method: ClaimRewards
- handler: handleUnbonded
kind: substrate/EventHandler
filter:
module: homa
method: RedeemedByFastMatch
- handler: sync
module: earning
method: Unbonded
- handler: handleBonded
kind: substrate/EventHandler
filter:
module: homa
method: RedeemedByUnbond
- handler: sync
module: earning
method: Bonded
- handler: handleWithdrawn
kind: substrate/EventHandler
filter:
module: homa
method: CurrentEraBumped
- handler: sync
module: earning
method: Withdrawn
- handler: handleRebonded
kind: substrate/EventHandler
filter:
module: homa
method: LedgerBondedReset
module: earning
method: Rebonded
13 changes: 6 additions & 7 deletions packages/earn-subql/project.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
specVersion: 1.0.0
name: acala-earn-subql
version: 1.0.0
description: 'Acala Earn Subquery'
name: karura-staking
repository: 'https://github.com/AcalaNetwork/acala-subql-services'
version: 1.0.0
runner:
node:
name: "@subql/node"
version: "2.12.6"
query:
name: "@subql/query"
version: "2.3.0"
schema:
schema:
file: ./schema.graphql
network:
chainId: "0x3035b88c212be330a1a724c675d56d53a5016ec32af1790738832db0227ac54c"
endpoint: wss://mandala-tc9-rpc.aca-staging.network
chainId: '0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b'
endpoint: wss://crosschain-dev.polkawallet.io:9905
chaintypes:
file: './dist/chain-types.js'
dataSources:
- kind: substrate/Runtime
startBlock: 529663
startBlock: 5370000
mapping:
file: "./dist/index.js"
handlers:
Expand Down
2 changes: 2 additions & 0 deletions packages/histories-subql/src/utils/getPoolId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const getPoolId = (data: any) => {
return `loans-${forceToCurrencyName(data.asLoans)}`;
} else if(data?.isLoansIncentive) {
return `loans-${forceToCurrencyName(data.asLoansIncentive)}`;
} else if (data?.isEarning){
return 'acala-staking';
} else {
return data.toString();
}
Expand Down
2 changes: 2 additions & 0 deletions packages/lsd-staking/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ services:
depends_on:
"postgres":
condition: service_healthy
"subquery-node":
condition: service_healthy
restart: always
environment:
DB_USER: postgres
Expand Down

0 comments on commit fef18f1

Please sign in to comment.