Add Ponder indexer queries payment config (#586)
* Add support to pass ratesFile in config * Change branch for ponder to laconic-esm * Fix repo name for ponder --------- Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
This commit is contained in:
parent
f9b102f5fa
commit
e26a05f2c7
@ -20,6 +20,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../config/ponder/ponder-start.sh:/app/examples/token-erc20/ponder-start.sh
|
- ../config/ponder/ponder-start.sh:/app/examples/token-erc20/ponder-start.sh
|
||||||
- ../config/ponder/ponder.indexer.config.ts:/app/examples/token-erc20/ponder.config.ts
|
- ../config/ponder/ponder.indexer.config.ts:/app/examples/token-erc20/ponder.config.ts
|
||||||
|
- ../config/ponder/base-rates-config.json:/app/examples/token-erc20/base-rates-config.json
|
||||||
- peers_ids:/peers
|
- peers_ids:/peers
|
||||||
- nitro_deployment:/nitro
|
- nitro_deployment:/nitro
|
||||||
- ponder_indexer_nitro_data:/app/examples/token-erc20/.ponder/nitro-db
|
- ponder_indexer_nitro_data:/app/examples/token-erc20/.ponder/nitro-db
|
||||||
@ -48,6 +49,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../config/ponder/ponder-start.sh:/app/examples/token-erc20/ponder-start.sh
|
- ../config/ponder/ponder-start.sh:/app/examples/token-erc20/ponder-start.sh
|
||||||
- ../config/ponder/ponder.watcher.config.ts:/app/examples/token-erc20/ponder.config.ts
|
- ../config/ponder/ponder.watcher.config.ts:/app/examples/token-erc20/ponder.config.ts
|
||||||
|
- ../config/ponder/base-rates-config.json:/app/examples/token-erc20/base-rates-config.json
|
||||||
- peers_ids:/peers
|
- peers_ids:/peers
|
||||||
- nitro_deployment:/nitro
|
- nitro_deployment:/nitro
|
||||||
- ponder_watcher_nitro_data:/app/examples/token-erc20/.ponder/nitro-db
|
- ponder_watcher_nitro_data:/app/examples/token-erc20/.ponder/nitro-db
|
||||||
|
8
app/data/config/ponder/base-rates-config.json
Normal file
8
app/data/config/ponder/base-rates-config.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"freeQueriesLimit": 10,
|
||||||
|
"freeQueriesList": [],
|
||||||
|
"queries": {
|
||||||
|
"getLogEvents": "50"
|
||||||
|
},
|
||||||
|
"mutations": {}
|
||||||
|
}
|
@ -49,5 +49,17 @@ export const config: Config = {
|
|||||||
contractAddresses,
|
contractAddresses,
|
||||||
relayMultiAddr: process.env.RELAY_MULTIADDR!,
|
relayMultiAddr: process.env.RELAY_MULTIADDR!,
|
||||||
store: "./.ponder/nitro-db",
|
store: "./.ponder/nitro-db",
|
||||||
|
payments: {
|
||||||
|
cache: {
|
||||||
|
maxAccounts: 1000,
|
||||||
|
accountTTLInSecs: 1800,
|
||||||
|
maxVouchersPerAccount: 1000,
|
||||||
|
voucherTTLInSecs: 300,
|
||||||
|
maxPaymentChannels: 10000,
|
||||||
|
paymentChannelTTLInSecs: 1800,
|
||||||
|
},
|
||||||
|
ratesFile: "./base-rates-config.json",
|
||||||
|
requestTimeoutInSecs: 10,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -42,5 +42,17 @@ export const config: Config = {
|
|||||||
contractAddresses,
|
contractAddresses,
|
||||||
relayMultiAddr: process.env.RELAY_MULTIADDR!,
|
relayMultiAddr: process.env.RELAY_MULTIADDR!,
|
||||||
store: "./.ponder/nitro-db",
|
store: "./.ponder/nitro-db",
|
||||||
|
payments: {
|
||||||
|
cache: {
|
||||||
|
maxAccounts: 1000,
|
||||||
|
accountTTLInSecs: 1800,
|
||||||
|
maxVouchersPerAccount: 1000,
|
||||||
|
voucherTTLInSecs: 300,
|
||||||
|
maxPaymentChannels: 10000,
|
||||||
|
paymentChannelTTLInSecs: 1800,
|
||||||
|
},
|
||||||
|
ratesFile: "./base-rates-config.json",
|
||||||
|
requestTimeoutInSecs: 10,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user