-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use nodeConfig for kyve cli integration, update kyve api, add storage…
… retriever
- Loading branch information
Showing
13 changed files
with
287 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
import { IConfig, NodeConfig } from '@subql/node-core'; | ||
|
||
export interface ICosmosConfig extends IConfig { | ||
kyve: string; | ||
} | ||
|
||
export class CosmosNodeConfig extends NodeConfig<ICosmosConfig> { | ||
/** | ||
* This is a wrapper around the core NodeConfig to get additional properties that are provided through args or node runner options | ||
* NOTE: This isn't injected anywhere so you need to wrap the injected node config | ||
* | ||
* @example | ||
* constructor( | ||
* nodeConfig: NodeConfig, | ||
* ) { | ||
* this.nodeConfig = new EthereumNodeConfig(nodeConfig); | ||
* } | ||
* */ | ||
constructor(config: NodeConfig) { | ||
// Rebuild with internal config | ||
super((config as any)._config, (config as any)._isTest); | ||
} | ||
|
||
get kyve(): string { | ||
return this._config.kyve; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.