Skip to content

Commit

Permalink
(#106) multiple function call key support
Browse files Browse the repository at this point in the history
  • Loading branch information
akeyder committed Aug 8, 2023
1 parent ac2f9a2 commit 8cf55e8
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 54 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ for detailed explanation and flags of each command see help
| db.badger.core.scanRangeThreshold | BADGER_CORE_SCANRANGETHRESHOLD | `2000` || max allowed block range for log requests |
| db.badger.core.maxScanIterators | BADGER_CORE_MAXSCANITERATORS | `10000` || max logs returned if the scanRangeThreshold exceeded |
| db.badger.core.filterTtlMinutes | BADGER_CORE_FILTERTTLMINUTES | `15` || retention time for stored filters (not used) |
| db.badger.core.options | | | | see [BadgerDB] for more options |
| db.badger.core.options | | | | see [BadgerDB] for more options |
| db.badger.core.options.Dir | BADGER_CORE_OPTIONS_DIR | `/tmp/relayer/data` || see [BadgerDB] for details |
| db.badger.core.options.ValueDir | BADGER_CORE_OPTIONS_VALUEDIR | `/tmp/relayer/data` || see [BadgerDB] for details |
| db.badger.core.options.InMemory | BADGER_CORE_OPTIONS_INMEMORY | `false` || see [BadgerDB] for details |
Expand All @@ -96,6 +96,8 @@ for detailed explanation and flags of each command see help
| endpoint.engine.nearNodeURL | ENDPOINT_ENGINE_NEARNODEURL | user should specify :heavy_exclamation_mark: || URL of a Near Node to communicate |
| endpoint.engine.signer | ENDPOINT_ENGINE_SIGNER | user should specify :heavy_exclamation_mark: || to be able to communicate with Near Node, user must have a Near account |
| endpoint.engine.signerKey | ENDPOINT_ENGINE_SIGNERKEY | user should specify :heavy_exclamation_mark: || path to JSON file containing the Near Credentials. To be able to communicate with Near Node, user must have a Near signer key associated to account |
| endpoint.engine.functionKeyPrefixPattern | ENDPOINT_ENGINE_FUNCTIONKEYPREFIXPATTERN | `fk*.` || prefix pattern to search for key pair files of Function Call Keys |
| endpoint.engine.functionKeyMapper | ENDPOINT_ENGINE_FUNCTIONKEYMAPPER | `CRC32` || hashing algorithm used to map Eth senders to Function Call Keys |
| endpoint.engine.asyncSendRawTxs | ENDPOINT_ENGINE_ASYNCSENDRAWTXS | `true` || if true, transaction calls to Near Node are made in async. fashion |
| endpoint.engine.minGasPrice | ENDPOINT_ENGINE_MINGASPRICE | `0` || |
| endpoint.engine.minGasLimit | ENDPOINT_ENGINE_MINGASLIMIT | `21000` || |
Expand Down
2 changes: 2 additions & 0 deletions config/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ endpoint:
nearNodeURL: https://archival-rpc.mainnet.near.org
signer:
signerKey:
functionKeyPrefixPattern: "fk*."
functionKeyMapper: "CRC32" # can take values; CRC32, RoundRobin. Default CRC32
asyncSendRawTxs: true
minGasPrice: 0
minGasLimit: 21000
Expand Down
2 changes: 2 additions & 0 deletions config/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ endpoint:
nearNodeURL: https://archival-rpc.testnet.near.org
signer:
signerKey:
functionKeyPrefixPattern: "fk*."
functionKeyMapper: "CRC32" # can take values; CRC32, RoundRobin. Default CRC32
asyncSendRawTxs: false
minGasPrice: 0
minGasLimit: 21000
Expand Down
Loading

0 comments on commit 8cf55e8

Please sign in to comment.