Skip to content

Commit 330d9f3

Browse files
8.1.0: Update Flow definitions (#196)
1 parent 58efd6f commit 330d9f3

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
* @flow
66
*/
77

8-
/**
9-
* @param {Transaction} tx
10-
* @param {LinearFee} linear_fee
11-
* @returns {BigNum}
12-
*/
13-
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
14-
158
/**
169
* @param {string} password
1710
* @param {string} salt
@@ -36,6 +29,13 @@ declare export function decrypt_with_password(
3629
data: string
3730
): string;
3831

32+
/**
33+
* @param {Transaction} tx
34+
* @param {LinearFee} linear_fee
35+
* @returns {BigNum}
36+
*/
37+
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
38+
3939
/**
4040
* @param {TransactionHash} tx_body_hash
4141
* @param {ByronAddress} addr
@@ -1242,27 +1242,17 @@ declare export class CostModel {
12421242
static new(): CostModel;
12431243

12441244
/**
1245-
* @returns {number}
1246-
*/
1247-
len(): number;
1248-
1249-
/**
1250-
* @param {string} key
1251-
* @param {BigInt} value
1252-
* @returns {BigInt | void}
1253-
*/
1254-
insert(key: string, value: BigInt): BigInt | void;
1255-
1256-
/**
1257-
* @param {string} key
1258-
* @returns {BigInt | void}
1245+
* @param {number} operation
1246+
* @param {Int} cost
1247+
* @returns {Int}
12591248
*/
1260-
get(key: string): BigInt | void;
1249+
set(operation: number, cost: Int): Int;
12611250

12621251
/**
1263-
* @returns {Strings}
1252+
* @param {number} operation
1253+
* @returns {Int}
12641254
*/
1265-
keys(): Strings;
1255+
get(operation: number): Int;
12661256
}
12671257
/**
12681258
*/

0 commit comments

Comments
 (0)