@airgap/cosmos 0.13.14-beta.0 → 0.13.14-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/cosmos",
|
|
3
|
-
"version": "0.13.14-beta.
|
|
3
|
+
"version": "0.13.14-beta.1",
|
|
4
4
|
"description": "The @airgap/cosmos is a Cosmos implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@airgap/coinlib-core": "
|
|
34
|
-
"@airgap/cosmos-core": "
|
|
35
|
-
"@airgap/crypto": "
|
|
36
|
-
"@airgap/module-kit": "
|
|
37
|
-
"@airgap/serializer": "
|
|
33
|
+
"@airgap/coinlib-core": "*",
|
|
34
|
+
"@airgap/cosmos-core": "*",
|
|
35
|
+
"@airgap/crypto": "*",
|
|
36
|
+
"@airgap/module-kit": "*",
|
|
37
|
+
"@airgap/serializer": "*"
|
|
38
38
|
},
|
|
39
39
|
"localDependencies": {},
|
|
40
40
|
"nyc": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeeDefaults, ProtocolMetadata, PublicKey, RecursivePartial, TransactionDetails } from '@airgap/module-kit';
|
|
1
|
+
import { FeeDefaults, ProtocolMetadata, PublicKey, RecursivePartial, TransactionDetails, TransactionSimpleConfiguration } from '@airgap/module-kit';
|
|
2
2
|
import { CosmosBaseProtocolImpl, CosmosProtocolNetwork, CosmosProtocolOptions, CosmosBaseStakingProtocol } from '@airgap/cosmos-core';
|
|
3
3
|
export declare type CosmosDenom = 'atom' | 'uatom';
|
|
4
4
|
export interface CosmosProtocol extends CosmosBaseStakingProtocol<CosmosDenom> {
|
|
@@ -9,7 +9,7 @@ export declare class CosmosProtocolImpl extends CosmosBaseProtocolImpl<CosmosDen
|
|
|
9
9
|
private readonly feeDefaults;
|
|
10
10
|
private readonly metadata;
|
|
11
11
|
getMetadata(): Promise<ProtocolMetadata<CosmosDenom>>;
|
|
12
|
-
getTransactionFeeWithPublicKey(_publicKey: PublicKey, _details: TransactionDetails<CosmosDenom>[]): Promise<FeeDefaults<CosmosDenom>>;
|
|
12
|
+
getTransactionFeeWithPublicKey(_publicKey: PublicKey, _details: TransactionDetails<CosmosDenom>[], _configuration?: TransactionSimpleConfiguration): Promise<FeeDefaults<CosmosDenom>>;
|
|
13
13
|
}
|
|
14
14
|
export declare function createCosmosProtocol(options?: RecursivePartial<CosmosProtocolOptions<CosmosDenom>>): CosmosProtocol;
|
|
15
15
|
export declare const COSMOS_MAINNET_PROTOCOL_NETWORK: CosmosProtocolNetwork;
|
|
@@ -122,7 +122,7 @@ var CosmosProtocolImpl = /** @class */ (function (_super) {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
|
-
CosmosProtocolImpl.prototype.getTransactionFeeWithPublicKey = function (_publicKey, _details) {
|
|
125
|
+
CosmosProtocolImpl.prototype.getTransactionFeeWithPublicKey = function (_publicKey, _details, _configuration) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function () {
|
|
127
127
|
return __generator(this, function (_a) {
|
|
128
128
|
return [2 /*return*/, this.feeDefaults];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/CosmosProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"CosmosProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/CosmosProtocol.ts"],"names":[],"mappings":";;;;;;;;;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