Skip to content

Commit 22abed6

Browse files
committed
feat(statics): implement common Cosmos blockchain infrastructure
TICKET: COIN-4863 - Add cosmos configuration to EnvironmentTemplate interface - Add CosmosNetwork interface with Cosmos-specific properties - Support for addressPrefix, validatorPrefix, denom, gasAmount, and gasLimit
1 parent b421ad3 commit 22abed6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ interface EnvironmentTemplate {
9393
apiToken?: string;
9494
};
9595
};
96+
// The key here is coinFamily and it will be same for both mainnet and testnet (eg: 'cronos')
97+
cosmos?: {
98+
[key: string]: {
99+
nodeUrl: string;
100+
};
101+
};
96102
}
97103

98104
export interface Environment extends EnvironmentTemplate {

modules/statics/src/networks.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ export interface AccountNetwork extends BaseNetwork {
7979
readonly blockExplorerUrl?: string;
8080
}
8181

82+
export interface CosmosNetwork extends AccountNetwork {
83+
readonly addressPrefix: string;
84+
readonly validatorPrefix: string;
85+
readonly denom: string;
86+
readonly gasAmount: string;
87+
readonly gasLimit: number;
88+
}
89+
8290
/**
8391
* Specification name type of the chain. Used in setting up the registry
8492
*/

0 commit comments

Comments
 (0)