Skip to content

Commit

Permalink
shovel-config-ts: expose urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotsmith committed Jun 10, 2024
1 parent 3339f96 commit 0c428bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shovel-config-ts/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@indexsupply/shovel-config",
"description": "Types and functions for building a Shovel config file.",
"version": "0.0.16",
"version": "0.0.17",
"exports": "./src/index.ts"
}
2 changes: 1 addition & 1 deletion shovel-config-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.16",
"version": "0.0.17",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Types and functions for building a Shovel config file.",
Expand Down
10 changes: 10 additions & 0 deletions shovel-config-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,19 @@ export type Event = {
readonly inputs: readonly EventInput[];
};

/**
* Source represents an Ethereum HTTP JSON RPC API Provider.
*/
export type Source = {
name: string;
url: string;
/**
* Shovel will round-robin requests to these urls.
* This may be helpful for reducing downtime.
*
* url is added to urls
*/
urls: string[];
chain_id: EnvRef | number;
poll_duration?: EnvRef | string;
concurrency?: EnvRef | number;
Expand Down

0 comments on commit 0c428bb

Please sign in to comment.