Skip to content

Commit 625da85

Browse files
committed
update flow types
1 parent 627c35f commit 625da85

File tree

1 file changed

+35
-15
lines changed

1 file changed

+35
-15
lines changed

rust/pkg/cardano_serialization_lib.js.flow

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,13 @@ declare export function decode_metadatum_to_json_str(
165165
schema: number
166166
): string;
167167

168+
/**
169+
* @param {Transaction} tx
170+
* @param {LinearFee} linear_fee
171+
* @returns {BigNum}
172+
*/
173+
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
174+
168175
/**
169176
* @param {string} password
170177
* @param {string} salt
@@ -189,13 +196,6 @@ declare export function decrypt_with_password(
189196
data: string
190197
): string;
191198

192-
/**
193-
* @param {Transaction} tx
194-
* @param {LinearFee} linear_fee
195-
* @returns {BigNum}
196-
*/
197-
declare export function min_fee(tx: Transaction, linear_fee: LinearFee): BigNum;
198-
199199
/**
200200
*/
201201

@@ -265,14 +265,6 @@ declare export var NetworkIdKind: {|
265265
+Mainnet: 1, // 1
266266
|};
267267

268-
/**
269-
*/
270-
271-
declare export var StakeCredKind: {|
272-
+Key: 0, // 0
273-
+Script: 1, // 1
274-
|};
275-
276268
/**
277269
*/
278270

@@ -330,6 +322,14 @@ declare export var MetadataJsonSchema: {|
330322
+DetailedSchema: 2, // 2
331323
|};
332324

325+
/**
326+
*/
327+
328+
declare export var StakeCredKind: {|
329+
+Key: 0, // 0
330+
+Script: 1, // 1
331+
|};
332+
333333
/**
334334
*/
335335

@@ -3780,6 +3780,26 @@ declare export class ProtocolParamUpdate {
37803780
*/
37813781
max_value_size(): number | void;
37823782

3783+
/**
3784+
* @param {number} collateral_percentage
3785+
*/
3786+
set_collateral_percentage(collateral_percentage: number): void;
3787+
3788+
/**
3789+
* @returns {number | void}
3790+
*/
3791+
collateral_percentage(): number | void;
3792+
3793+
/**
3794+
* @param {number} max_collateral_inputs
3795+
*/
3796+
set_max_collateral_inputs(max_collateral_inputs: number): void;
3797+
3798+
/**
3799+
* @returns {number | void}
3800+
*/
3801+
max_collateral_inputs(): number | void;
3802+
37833803
/**
37843804
* @returns {ProtocolParamUpdate}
37853805
*/

0 commit comments

Comments
 (0)