Skip to content

Commit

Permalink
Flowgen update
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Sep 19, 2021
1 parent 4021d2d commit f98f2b2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions rust/pkg/cardano_serialization_lib.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ declare export function hash_transaction(
tx_body: TransactionBody
): TransactionHash;

/**
* @param {PlutusData} plutus_data
* @returns {DataHash}
*/
declare export function hash_plutus_data(plutus_data: PlutusData): DataHash;

/**
* @param {Redeemers} redeemers
* @param {Costmdls} cost_models
* @param {PlutusList | void} datums
* @returns {ScriptDataHash}
*/
declare export function hash_script_data(
redeemers: Redeemers,
cost_models: Costmdls,
datums?: PlutusList
): ScriptDataHash;

/**
* @param {TransactionBody} txbody
* @param {BigNum} pool_deposit
Expand Down Expand Up @@ -2891,6 +2909,17 @@ declare export class PlutusData {
declare export class PlutusList {
free(): void;

/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;

/**
* @param {Uint8Array} bytes
* @returns {PlutusList}
*/
static from_bytes(bytes: Uint8Array): PlutusList;

/**
* @returns {PlutusList}
*/
Expand Down Expand Up @@ -3864,6 +3893,17 @@ declare export class RedeemerTag {
declare export class Redeemers {
free(): void;

/**
* @returns {Uint8Array}
*/
to_bytes(): Uint8Array;

/**
* @param {Uint8Array} bytes
* @returns {Redeemers}
*/
static from_bytes(bytes: Uint8Array): Redeemers;

/**
* @returns {Redeemers}
*/
Expand Down

0 comments on commit f98f2b2

Please sign in to comment.