@biglup/cometa 1.0.7001 → 1.0.7002
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/cjs/index.d.mts +36 -1
- package/dist/cjs/index.d.ts +36 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.d.mts +36 -1
- package/dist/esm/index.d.ts +36 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.mts
CHANGED
|
@@ -5877,6 +5877,7 @@ declare const writeVotingProcedure: (votingProcedure: VotingProcedure) => number
|
|
|
5877
5877
|
*/
|
|
5878
5878
|
declare const readVkeyWitnessSet: (setPtr: number) => VkeyWitnessSet;
|
|
5879
5879
|
/**
|
|
5880
|
+
* @hidden
|
|
5880
5881
|
* Serializes a JavaScript `VkeyWitnessSet` array into a native C `cardano_vkey_witness_set_t`.
|
|
5881
5882
|
*
|
|
5882
5883
|
* @param {VkeyWitnessSet} set - The array of `VkeyWitness` objects to serialize.
|
|
@@ -5893,6 +5894,13 @@ declare const writeVkeyWitnessSet: (set: VkeyWitnessSet) => number;
|
|
|
5893
5894
|
* The caller is responsible for freeing this memory using `module._free()`.
|
|
5894
5895
|
*/
|
|
5895
5896
|
declare const writeDerivationPaths: (paths: DerivationPath[]) => number;
|
|
5897
|
+
/**
|
|
5898
|
+
* @hidden
|
|
5899
|
+
* Serializes a JavaScript `AccountDerivationPath` object into a C-style struct
|
|
5900
|
+
* @param path - The `AccountDerivationPath` object to serialize.
|
|
5901
|
+
*
|
|
5902
|
+
* @return {number} A pointer to the start of the allocated memory block for the C struct.
|
|
5903
|
+
*/
|
|
5896
5904
|
declare const writeAccountDerivationPaths: (path: AccountDerivationPath) => number;
|
|
5897
5905
|
/**
|
|
5898
5906
|
* @hidden
|
|
@@ -7169,6 +7177,19 @@ interface Wallet {
|
|
|
7169
7177
|
* @remarks Collateral is required for transactions that interact with Plutus smart contracts to cover potential script execution failure fees.
|
|
7170
7178
|
*/
|
|
7171
7179
|
getCollateral(): Promise<UTxO[]>;
|
|
7180
|
+
/**
|
|
7181
|
+
* Creates and initializes a new transaction builder with the wallet's current state.
|
|
7182
|
+
*
|
|
7183
|
+
* @returns {Promise<TransactionBuilder>} A promise that resolves to a pre-configured `TransactionBuilder` instance.
|
|
7184
|
+
* @remarks
|
|
7185
|
+
* This method simplifies transaction construction by automatically pre-populating the builder with:
|
|
7186
|
+
* 1. The wallet's available UTxOs as inputs.
|
|
7187
|
+
* 2. The wallet's change address to receive any leftover funds.
|
|
7188
|
+
* 3. The network parameters from the wallet's provider.
|
|
7189
|
+
*
|
|
7190
|
+
* The returned builder is ready for you to add outputs and other transaction details.
|
|
7191
|
+
*/
|
|
7192
|
+
createTransactionBuilder(): Promise<TransactionBuilder>;
|
|
7172
7193
|
}
|
|
7173
7194
|
|
|
7174
7195
|
/**
|
|
@@ -7227,6 +7248,7 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7227
7248
|
private accountRootPublicKey;
|
|
7228
7249
|
private paymentAddress;
|
|
7229
7250
|
private rewardAddress;
|
|
7251
|
+
private protocolParams;
|
|
7230
7252
|
/**
|
|
7231
7253
|
* Constructs a new instance of the SingleAddressWallet.
|
|
7232
7254
|
* @param {SingleAddressWalletConfig} config - The configuration object for the wallet.
|
|
@@ -7286,7 +7308,7 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7286
7308
|
* @remarks
|
|
7287
7309
|
* For this type of wallet, we are going to hijack this flag and break the interface contract:
|
|
7288
7310
|
* - When `partialSign` is `true`, the transaction is signed **only** with the payment credential.
|
|
7289
|
-
* - When `partialSign` is `false`, the transaction is signed with **both** the payment and staking credentials
|
|
7311
|
+
* - When `partialSign` is `false`, the transaction is signed with **both** the payment and staking credentials.
|
|
7290
7312
|
*/
|
|
7291
7313
|
signTransaction(txCbor: string, partialSign: boolean): Promise<VkeyWitnessSet>;
|
|
7292
7314
|
/**
|
|
@@ -7311,6 +7333,19 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7311
7333
|
* @remarks Collateral is required for transactions involving Plutus smart contracts.
|
|
7312
7334
|
*/
|
|
7313
7335
|
getCollateral(): Promise<UTxO[]>;
|
|
7336
|
+
/**
|
|
7337
|
+
* Creates and initializes a new transaction builder with the wallet's current state.
|
|
7338
|
+
*
|
|
7339
|
+
* @returns {Promise<TransactionBuilder>} A promise that resolves to a pre-configured `TransactionBuilder` instance.
|
|
7340
|
+
* @remarks
|
|
7341
|
+
* This method simplifies transaction construction by automatically pre-populating the builder with:
|
|
7342
|
+
* 1. The wallet's available UTxOs as inputs.
|
|
7343
|
+
* 2. The wallet's change address to receive any leftover funds.
|
|
7344
|
+
* 3. The network parameters from the wallet's provider.
|
|
7345
|
+
*
|
|
7346
|
+
* The returned builder is ready for you to add outputs and other transaction details.
|
|
7347
|
+
*/
|
|
7348
|
+
createTransactionBuilder(): Promise<TransactionBuilder>;
|
|
7314
7349
|
/**
|
|
7315
7350
|
* Derives the payment address based on the wallet's configuration.
|
|
7316
7351
|
* @returns {Promise<Address>} A promise resolving to a BaseAddress (with staking) or an EnterpriseAddress (without staking).
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -5877,6 +5877,7 @@ declare const writeVotingProcedure: (votingProcedure: VotingProcedure) => number
|
|
|
5877
5877
|
*/
|
|
5878
5878
|
declare const readVkeyWitnessSet: (setPtr: number) => VkeyWitnessSet;
|
|
5879
5879
|
/**
|
|
5880
|
+
* @hidden
|
|
5880
5881
|
* Serializes a JavaScript `VkeyWitnessSet` array into a native C `cardano_vkey_witness_set_t`.
|
|
5881
5882
|
*
|
|
5882
5883
|
* @param {VkeyWitnessSet} set - The array of `VkeyWitness` objects to serialize.
|
|
@@ -5893,6 +5894,13 @@ declare const writeVkeyWitnessSet: (set: VkeyWitnessSet) => number;
|
|
|
5893
5894
|
* The caller is responsible for freeing this memory using `module._free()`.
|
|
5894
5895
|
*/
|
|
5895
5896
|
declare const writeDerivationPaths: (paths: DerivationPath[]) => number;
|
|
5897
|
+
/**
|
|
5898
|
+
* @hidden
|
|
5899
|
+
* Serializes a JavaScript `AccountDerivationPath` object into a C-style struct
|
|
5900
|
+
* @param path - The `AccountDerivationPath` object to serialize.
|
|
5901
|
+
*
|
|
5902
|
+
* @return {number} A pointer to the start of the allocated memory block for the C struct.
|
|
5903
|
+
*/
|
|
5896
5904
|
declare const writeAccountDerivationPaths: (path: AccountDerivationPath) => number;
|
|
5897
5905
|
/**
|
|
5898
5906
|
* @hidden
|
|
@@ -7169,6 +7177,19 @@ interface Wallet {
|
|
|
7169
7177
|
* @remarks Collateral is required for transactions that interact with Plutus smart contracts to cover potential script execution failure fees.
|
|
7170
7178
|
*/
|
|
7171
7179
|
getCollateral(): Promise<UTxO[]>;
|
|
7180
|
+
/**
|
|
7181
|
+
* Creates and initializes a new transaction builder with the wallet's current state.
|
|
7182
|
+
*
|
|
7183
|
+
* @returns {Promise<TransactionBuilder>} A promise that resolves to a pre-configured `TransactionBuilder` instance.
|
|
7184
|
+
* @remarks
|
|
7185
|
+
* This method simplifies transaction construction by automatically pre-populating the builder with:
|
|
7186
|
+
* 1. The wallet's available UTxOs as inputs.
|
|
7187
|
+
* 2. The wallet's change address to receive any leftover funds.
|
|
7188
|
+
* 3. The network parameters from the wallet's provider.
|
|
7189
|
+
*
|
|
7190
|
+
* The returned builder is ready for you to add outputs and other transaction details.
|
|
7191
|
+
*/
|
|
7192
|
+
createTransactionBuilder(): Promise<TransactionBuilder>;
|
|
7172
7193
|
}
|
|
7173
7194
|
|
|
7174
7195
|
/**
|
|
@@ -7227,6 +7248,7 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7227
7248
|
private accountRootPublicKey;
|
|
7228
7249
|
private paymentAddress;
|
|
7229
7250
|
private rewardAddress;
|
|
7251
|
+
private protocolParams;
|
|
7230
7252
|
/**
|
|
7231
7253
|
* Constructs a new instance of the SingleAddressWallet.
|
|
7232
7254
|
* @param {SingleAddressWalletConfig} config - The configuration object for the wallet.
|
|
@@ -7286,7 +7308,7 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7286
7308
|
* @remarks
|
|
7287
7309
|
* For this type of wallet, we are going to hijack this flag and break the interface contract:
|
|
7288
7310
|
* - When `partialSign` is `true`, the transaction is signed **only** with the payment credential.
|
|
7289
|
-
* - When `partialSign` is `false`, the transaction is signed with **both** the payment and staking credentials
|
|
7311
|
+
* - When `partialSign` is `false`, the transaction is signed with **both** the payment and staking credentials.
|
|
7290
7312
|
*/
|
|
7291
7313
|
signTransaction(txCbor: string, partialSign: boolean): Promise<VkeyWitnessSet>;
|
|
7292
7314
|
/**
|
|
@@ -7311,6 +7333,19 @@ declare class SingleAddressWallet implements Wallet {
|
|
|
7311
7333
|
* @remarks Collateral is required for transactions involving Plutus smart contracts.
|
|
7312
7334
|
*/
|
|
7313
7335
|
getCollateral(): Promise<UTxO[]>;
|
|
7336
|
+
/**
|
|
7337
|
+
* Creates and initializes a new transaction builder with the wallet's current state.
|
|
7338
|
+
*
|
|
7339
|
+
* @returns {Promise<TransactionBuilder>} A promise that resolves to a pre-configured `TransactionBuilder` instance.
|
|
7340
|
+
* @remarks
|
|
7341
|
+
* This method simplifies transaction construction by automatically pre-populating the builder with:
|
|
7342
|
+
* 1. The wallet's available UTxOs as inputs.
|
|
7343
|
+
* 2. The wallet's change address to receive any leftover funds.
|
|
7344
|
+
* 3. The network parameters from the wallet's provider.
|
|
7345
|
+
*
|
|
7346
|
+
* The returned builder is ready for you to add outputs and other transaction details.
|
|
7347
|
+
*/
|
|
7348
|
+
createTransactionBuilder(): Promise<TransactionBuilder>;
|
|
7314
7349
|
/**
|
|
7315
7350
|
* Derives the payment address based on the wallet's configuration.
|
|
7316
7351
|
* @returns {Promise<Address>} A promise resolving to a BaseAddress (with staking) or an EnterpriseAddress (without staking).
|