@airgap/coreum 0.13.11-beta.20 → 0.13.11-beta.22
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,5 +1,5 @@
|
|
|
1
|
+
import { CosmosBaseProtocolImpl, CosmosBaseStakingProtocol, CosmosProtocolNetwork, CosmosProtocolOptions } from '@airgap/cosmos-core';
|
|
1
2
|
import { FeeDefaults, ProtocolMetadata, PublicKey, RecursivePartial, TransactionDetails } from '@airgap/module-kit';
|
|
2
|
-
import { CosmosBaseProtocolImpl, CosmosProtocolNetwork, CosmosProtocolOptions, CosmosBaseStakingProtocol } from '@airgap/cosmos-core';
|
|
3
3
|
export declare type CoreumDenom = 'testcore' | 'utestcore';
|
|
4
4
|
export interface CoreumProtocol extends CosmosBaseStakingProtocol<CoreumDenom> {
|
|
5
5
|
}
|
|
@@ -63,9 +63,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
65
|
exports.createCoreumProtocolOptions = exports.COREUM_PROTOCOL_NETWORK = exports.createCoreumProtocol = exports.CoreumProtocolImpl = void 0;
|
|
66
|
-
var module_kit_1 = require("@airgap/module-kit");
|
|
67
|
-
var cosmos_core_1 = require("@airgap/cosmos-core");
|
|
68
66
|
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
67
|
+
var cosmos_core_1 = require("@airgap/cosmos-core");
|
|
68
|
+
var module_kit_1 = require("@airgap/module-kit");
|
|
69
69
|
var DEFAULT_GAS = (0, module_kit_1.newAmount)('200000', 'blockchain');
|
|
70
70
|
var CoreumProtocolImpl = /** @class */ (function (_super) {
|
|
71
71
|
__extends(CoreumProtocolImpl, _super);
|
|
@@ -85,9 +85,9 @@ var CoreumProtocolImpl = /** @class */ (function (_super) {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
_this.feeDefaults = {
|
|
88
|
-
low: (0, module_kit_1.newAmount)(0.
|
|
89
|
-
medium: (0, module_kit_1.newAmount)(0.
|
|
90
|
-
high: (0, module_kit_1.newAmount)(0.
|
|
88
|
+
low: (0, module_kit_1.newAmount)(0.007, 'testcore').blockchain(_this.units),
|
|
89
|
+
medium: (0, module_kit_1.newAmount)(0.0085, 'testcore').blockchain(_this.units),
|
|
90
|
+
high: (0, module_kit_1.newAmount)(0.01, 'testcore').blockchain(_this.units)
|
|
91
91
|
};
|
|
92
92
|
_this.metadata = {
|
|
93
93
|
identifier: coinlib_core_1.MainProtocolSymbols.COREUM,
|
|
@@ -144,13 +144,16 @@ exports.COREUM_PROTOCOL_NETWORK = {
|
|
|
144
144
|
};
|
|
145
145
|
var DEFAULT_COREUM_PROTOCOL_NETWORK = exports.COREUM_PROTOCOL_NETWORK;
|
|
146
146
|
function createCoreumProtocolOptions(partialOptions) {
|
|
147
|
-
var _a, _b;
|
|
147
|
+
var _a, _b, _c, _d, _e, _f;
|
|
148
148
|
if (partialOptions === void 0) { partialOptions = {}; }
|
|
149
149
|
return {
|
|
150
150
|
network: __assign(__assign({}, DEFAULT_COREUM_PROTOCOL_NETWORK), partialOptions.network),
|
|
151
151
|
addressPrefix: (_a = partialOptions.addressPrefix) !== null && _a !== void 0 ? _a : 'testcore',
|
|
152
152
|
baseUnit: (_b = partialOptions.baseUnit) !== null && _b !== void 0 ? _b : 'utestcore',
|
|
153
|
-
defaultGas:
|
|
153
|
+
defaultGas: {
|
|
154
|
+
value: (_d = (_c = partialOptions.defaultGas) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : DEFAULT_GAS.value,
|
|
155
|
+
unit: (_f = (_e = partialOptions.defaultGas) === null || _e === void 0 ? void 0 : _e.unit) !== null && _f !== void 0 ? _f : DEFAULT_GAS.unit
|
|
156
|
+
}
|
|
154
157
|
};
|
|
155
158
|
}
|
|
156
159
|
exports.createCoreumProtocolOptions = createCoreumProtocolOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreumProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/CoreumProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"CoreumProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/CoreumProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0D;AAC1D,mDAAqI;AACrI,iDAS2B;AAI3B,IAAM,WAAW,GAAwB,IAAA,sBAAS,EAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;AAI1E;IAAwC,sCAAmC;IACzE,4BAAmB,OAAkE;QAAlE,wBAAA,EAAA,YAAkE;QAArF,iBAIC;QAHC,IAAM,WAAW,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAA;gBAExD,kBAAM,WAAW,CAAC;QAGH,WAAK,GAAuC;YAC3D,QAAQ,EAAE;gBACR,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;gBACjD,QAAQ,EAAE,CAAC;aACZ;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;gBAC9B,QAAQ,EAAE,CAAC;aACZ;SACF,CAAA;QAEgB,iBAAW,GAA6B;YACvD,GAAG,EAAE,IAAA,sBAAS,EAAC,KAAK,EAAE,UAAU,CAAC,CAAC,UAAU,CAAC,KAAI,CAAC,KAAK,CAAC;YACxD,MAAM,EAAE,IAAA,sBAAS,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,UAAU,CAAC,KAAI,CAAC,KAAK,CAAC;YAC5D,IAAI,EAAE,IAAA,sBAAS,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC,UAAU,CAAC,KAAI,CAAC,KAAK,CAAC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