@cmts-dev/carmentis-sdk-core 1.2.27 → 1.2.28
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/dist/blockchain/feesCalculator/FeesCalculationFormulaFactory.d.ts +0 -1
- package/dist/blockchain/feesCalculator/FeesCalculationFormulaFactory.d.ts.map +1 -1
- package/dist/blockchain/feesCalculator/IFeesFormula.d.ts.map +1 -1
- package/dist/carmentis-sdk-core.cjs +2 -2
- package/dist/carmentis-sdk-core.d.ts +0 -1
- package/dist/carmentis-sdk-core.d.ts.map +1 -1
- package/dist/carmentis-sdk-core.js +687 -729
- package/package.json +1 -1
- package/dist/blockchain/feesCalculator/SecondFeesFormula.d.ts +0 -27
- package/dist/blockchain/feesCalculator/SecondFeesFormula.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IFeesFormula } from './IFeesFormula';
|
|
2
|
-
import { Microblock } from '../microblock/Microblock';
|
|
3
|
-
import { CMTSToken } from '../../economics/currencies/token';
|
|
4
|
-
import { SignatureSchemeId } from '../../crypto/signature/SignatureSchemeId';
|
|
5
|
-
import { IProvider } from '../../providers/IProvider';
|
|
6
|
-
/**
|
|
7
|
-
* SecondFeesFormula is similar to FirstFeesFormula, with the fixed gas cost ignored.
|
|
8
|
-
* It was created solely for testing a protocol update.
|
|
9
|
-
*/
|
|
10
|
-
export declare class SecondFeesFormula implements IFeesFormula {
|
|
11
|
-
private provider;
|
|
12
|
-
private static DEFAULT_GAS_PRICE;
|
|
13
|
-
constructor(provider: IProvider);
|
|
14
|
-
computeFees(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<CMTSToken>;
|
|
15
|
-
computeGas(signatureSchemeId: SignatureSchemeId, microblock: Microblock, expirationDay: number, referenceTimestampInSeconds?: number): Promise<number>;
|
|
16
|
-
private getAdditionalCosts;
|
|
17
|
-
/**
|
|
18
|
-
* Computes the total size in bytes of the provided microblock, excluding the last section
|
|
19
|
-
* if it is a SIGNATURE type section.
|
|
20
|
-
*
|
|
21
|
-
* @param {Microblock} microblock - The microblock object whose size needs to be computed.
|
|
22
|
-
* @return {number} The total size in bytes of the microblock, excluding any SIGNATURE type section at the end.
|
|
23
|
-
*/
|
|
24
|
-
private computeSizeInBytesOfMicroblock;
|
|
25
|
-
private getSizeOfListOfSections;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=SecondFeesFormula.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SecondFeesFormula.d.ts","sourceRoot":"","sources":["../../../src/blockchain/feesCalculator/SecondFeesFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAG3D,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAG3E,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAIpD;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,YAAY;IAGtC,OAAO,CAAC,QAAQ;IAF5B,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAA6B;gBAEzC,QAAQ,EAAE,SAAS;IAGjC,WAAW,CACb,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,MAAM,EACrB,2BAA2B,SAAgC,GAC5D,OAAO,CAAC,SAAS,CAAC;IAkBf,UAAU,CACZ,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,MAAM,EACrB,2BAA2B,SAAgC;IAqB/D,OAAO,CAAC,kBAAkB;IAoB1B;;;;;;OAMG;IACH,OAAO,CAAC,8BAA8B;IAatC,OAAO,CAAC,uBAAuB;CASlC"}
|