@@ -1900,10 +1900,18 @@ declare export class HeaderBody {
19001900 block_number(): number;
19011901
19021902 /**
1903+ * !!! DEPRECATED !!!
1904+ * Returns a Slot32 (u32) value in case the underlying original BigNum (u64) value is within the limits.
1905+ * Otherwise will just raise an error.
19031906 * @returns {number}
19041907 */
19051908 slot(): number;
19061909
1910+ /**
1911+ * @returns {BigNum}
1912+ */
1913+ slot_bignum(): BigNum;
1914+
19071915 /**
19081916 * @returns {BlockHash | void}
19091917 */
@@ -1950,6 +1958,9 @@ declare export class HeaderBody {
19501958 protocol_version(): ProtocolVersion;
19511959
19521960 /**
1961+ * !!! DEPRECATED !!!
1962+ * This constructor uses outdated slot number format.
1963+ * Use `.new_headerbody` instead
19531964 * @param {number} block_number
19541965 * @param {number} slot
19551966 * @param {BlockHash | void} prev_hash
@@ -1976,12 +1987,51 @@ declare export class HeaderBody {
19761987 operational_cert: OperationalCert,
19771988 protocol_version: ProtocolVersion
19781989 ): HeaderBody;
1990+
1991+ /**
1992+ * @param {number} block_number
1993+ * @param {BigNum} slot
1994+ * @param {BlockHash | void} prev_hash
1995+ * @param {Vkey} issuer_vkey
1996+ * @param {VRFVKey} vrf_vkey
1997+ * @param {VRFCert} nonce_vrf
1998+ * @param {VRFCert} leader_vrf
1999+ * @param {number} block_body_size
2000+ * @param {BlockHash} block_body_hash
2001+ * @param {OperationalCert} operational_cert
2002+ * @param {ProtocolVersion} protocol_version
2003+ * @returns {HeaderBody}
2004+ */
2005+ static new_headerbody(
2006+ block_number: number,
2007+ slot: BigNum,
2008+ prev_hash: BlockHash | void,
2009+ issuer_vkey: Vkey,
2010+ vrf_vkey: VRFVKey,
2011+ nonce_vrf: VRFCert,
2012+ leader_vrf: VRFCert,
2013+ block_body_size: number,
2014+ block_body_hash: BlockHash,
2015+ operational_cert: OperationalCert,
2016+ protocol_version: ProtocolVersion
2017+ ): HeaderBody;
19792018}
19802019/**
19812020 */
19822021declare export class Int {
19832022 free(): void;
19842023
2024+ /**
2025+ * @returns {Uint8Array}
2026+ */
2027+ to_bytes(): Uint8Array;
2028+
2029+ /**
2030+ * @param {Uint8Array} bytes
2031+ * @returns {Int}
2032+ */
2033+ static from_bytes(bytes: Uint8Array): Int;
2034+
19852035 /**
19862036 * @param {BigNum} x
19872037 * @returns {Int}
@@ -3212,13 +3262,28 @@ declare export class Pointer {
32123262 free(): void;
32133263
32143264 /**
3265+ * !!! DEPRECATED !!!
3266+ * This constructor uses outdated slot number format for the ttl value, tx_index and cert_index.
3267+ * Use `.new_pointer` instead
32153268 * @param {number} slot
32163269 * @param {number} tx_index
32173270 * @param {number} cert_index
32183271 * @returns {Pointer}
32193272 */
32203273 static new(slot: number, tx_index: number, cert_index: number): Pointer;
32213274
3275+ /**
3276+ * @param {BigNum} slot
3277+ * @param {BigNum} tx_index
3278+ * @param {BigNum} cert_index
3279+ * @returns {Pointer}
3280+ */
3281+ static new_pointer(
3282+ slot: BigNum,
3283+ tx_index: BigNum,
3284+ cert_index: BigNum
3285+ ): Pointer;
3286+
32223287 /**
32233288 * @returns {number}
32243289 */
@@ -3233,6 +3298,21 @@ declare export class Pointer {
32333298 * @returns {number}
32343299 */
32353300 cert_index(): number;
3301+
3302+ /**
3303+ * @returns {BigNum}
3304+ */
3305+ slot_bignum(): BigNum;
3306+
3307+ /**
3308+ * @returns {BigNum}
3309+ */
3310+ tx_index_bignum(): BigNum;
3311+
3312+ /**
3313+ * @returns {BigNum}
3314+ */
3315+ cert_index_bignum(): BigNum;
32363316}
32373317/**
32383318 */
@@ -4769,10 +4849,24 @@ declare export class TimelockExpiry {
47694849 slot(): number;
47704850
47714851 /**
4852+ * @returns {BigNum}
4853+ */
4854+ slot_bignum(): BigNum;
4855+
4856+ /**
4857+ * !!! DEPRECATED !!!
4858+ * This constructor uses outdated slot number format.
4859+ * Use `.new_timelockexpiry` instead
47724860 * @param {number} slot
47734861 * @returns {TimelockExpiry}
47744862 */
47754863 static new(slot: number): TimelockExpiry;
4864+
4865+ /**
4866+ * @param {BigNum} slot
4867+ * @returns {TimelockExpiry}
4868+ */
4869+ static new_timelockexpiry(slot: BigNum): TimelockExpiry;
47764870}
47774871/**
47784872 */
@@ -4791,15 +4885,33 @@ declare export class TimelockStart {
47914885 static from_bytes(bytes: Uint8Array): TimelockStart;
47924886
47934887 /**
4888+ * !!! DEPRECATED !!!
4889+ * Returns a Slot32 (u32) value in case the underlying original BigNum (u64) value is within the limits.
4890+ * Otherwise will just raise an error.
4891+ * Use `.slot_bignum` instead
47944892 * @returns {number}
47954893 */
47964894 slot(): number;
47974895
47984896 /**
4897+ * @returns {BigNum}
4898+ */
4899+ slot_bignum(): BigNum;
4900+
4901+ /**
4902+ * !!! DEPRECATED !!!
4903+ * This constructor uses outdated slot number format.
4904+ * Use `.new_timelockstart` instead.
47994905 * @param {number} slot
48004906 * @returns {TimelockStart}
48014907 */
48024908 static new(slot: number): TimelockStart;
4909+
4910+ /**
4911+ * @param {BigNum} slot
4912+ * @returns {TimelockStart}
4913+ */
4914+ static new_timelockstart(slot: BigNum): TimelockStart;
48034915}
48044916/**
48054917 */
@@ -4923,10 +5035,27 @@ declare export class TransactionBody {
49235035 fee(): BigNum;
49245036
49255037 /**
5038+ * !!! DEPRECATED !!!
5039+ * Returns a Slot32 (u32) value in case the underlying original BigNum (u64) value is within the limits.
5040+ * Otherwise will just raise an error.
49265041 * @returns {number | void}
49275042 */
49285043 ttl(): number | void;
49295044
5045+ /**
5046+ * @returns {BigNum | void}
5047+ */
5048+ ttl_bignum(): BigNum | void;
5049+
5050+ /**
5051+ * @param {BigNum} ttl
5052+ */
5053+ set_ttl(ttl: BigNum): void;
5054+
5055+ /**
5056+ */
5057+ remove_ttl(): void;
5058+
49305059 /**
49315060 * @param {Certificates} certs
49325061 */
@@ -4968,11 +5097,27 @@ declare export class TransactionBody {
49685097 auxiliary_data_hash(): AuxiliaryDataHash | void;
49695098
49705099 /**
5100+ * !!! DEPRECATED !!!
5101+ * Uses outdated slot number format.
49715102 * @param {number} validity_start_interval
49725103 */
49735104 set_validity_start_interval(validity_start_interval: number): void;
49745105
49755106 /**
5107+ * @param {BigNum} validity_start_interval
5108+ */
5109+ set_validity_start_interval_bignum(validity_start_interval: BigNum): void;
5110+
5111+ /**
5112+ * @returns {BigNum | void}
5113+ */
5114+ validity_start_interval_bignum(): BigNum | void;
5115+
5116+ /**
5117+ * !!! DEPRECATED !!!
5118+ * Returns a Option<Slot32> (u32) value in case the underlying original Option<BigNum> (u64) value is within the limits.
5119+ * Otherwise will just raise an error.
5120+ * Use `.validity_start_interval_bignum` instead.
49765121 * @returns {number | void}
49775122 */
49785123 validity_start_interval(): number | void;
@@ -5035,6 +5180,9 @@ declare export class TransactionBody {
50355180 network_id(): NetworkId | void;
50365181
50375182 /**
5183+ * !!! DEPRECATED !!!
5184+ * This constructor uses outdated slot number format for the ttl value.
5185+ * Use `.new_tx_body` and then `.set_ttl` instead
50385186 * @param {TransactionInputs} inputs
50395187 * @param {TransactionOutputs} outputs
50405188 * @param {BigNum} fee
@@ -5047,6 +5195,21 @@ declare export class TransactionBody {
50475195 fee: BigNum,
50485196 ttl?: number
50495197 ): TransactionBody;
5198+
5199+ /**
5200+ * Returns a new TransactionBody.
5201+ * In the new version of "new" we removed optional ttl for support it by wasm_bingen.
5202+ * Your can use "set_ttl" and "remove_ttl" to set a new value for ttl or set it as None.
5203+ * @param {TransactionInputs} inputs
5204+ * @param {TransactionOutputs} outputs
5205+ * @param {BigNum} fee
5206+ * @returns {TransactionBody}
5207+ */
5208+ static new_tx_body(
5209+ inputs: TransactionInputs,
5210+ outputs: TransactionOutputs,
5211+ fee: BigNum
5212+ ): TransactionBody;
50505213}
50515214/**
50525215 */
@@ -5141,15 +5304,29 @@ declare export class TransactionBuilder {
51415304 set_fee(fee: BigNum): void;
51425305
51435306 /**
5307+ * !!! DEPRECATED !!!
5308+ * Set ttl value.
51445309 * @param {number} ttl
51455310 */
51465311 set_ttl(ttl: number): void;
51475312
51485313 /**
5314+ * @param {BigNum} ttl
5315+ */
5316+ set_ttl_bignum(ttl: BigNum): void;
5317+
5318+ /**
5319+ * !!! DEPRECATED !!!
5320+ * Uses outdated slot number format.
51495321 * @param {number} validity_start_interval
51505322 */
51515323 set_validity_start_interval(validity_start_interval: number): void;
51525324
5325+ /**
5326+ * @param {BigNum} validity_start_interval
5327+ */
5328+ set_validity_start_interval_bignum(validity_start_interval: BigNum): void;
5329+
51535330 /**
51545331 * @param {Certificates} certs
51555332 */
0 commit comments