@meshsdk/transaction 1.7.4 → 1.7.5
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/index.cjs +17 -0
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +17 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -905,6 +905,23 @@ var MeshTxBuilderCore = class {
|
|
|
905
905
|
});
|
|
906
906
|
return this;
|
|
907
907
|
};
|
|
908
|
+
/**
|
|
909
|
+
* Dregister DRep certificate, and adds it to the transaction
|
|
910
|
+
* @param drepId The bech32 drep id (i.e. starts with `drep1xxxxx`)
|
|
911
|
+
* @param rewardAddress The bech32 reward address (i.e. start with `stake_xxxxx`)
|
|
912
|
+
* @returns The MeshTxBuilder instance
|
|
913
|
+
*/
|
|
914
|
+
voteDelegationCertificate = (drep, rewardAddress) => {
|
|
915
|
+
this.meshTxBuilderBody.certificates.push({
|
|
916
|
+
type: "BasicCertificate",
|
|
917
|
+
certType: {
|
|
918
|
+
type: "VoteDelegation",
|
|
919
|
+
drep,
|
|
920
|
+
stakeKeyAddress: rewardAddress
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
return this;
|
|
924
|
+
};
|
|
908
925
|
/**
|
|
909
926
|
* Adds a script witness to the certificate
|
|
910
927
|
* @param scriptCbor The CborHex of the script
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Protocol, MintItem, TxIn, Withdrawal, PubKeyTxIn, RefTxIn, MeshTxBuilderBody, Asset, BuilderData, LanguageVersion, PoolParams, Anchor, UTxO, UtxoSelectionStrategy, Network, Redeemer, Action, IFetcher, ISubmitter, IEvaluator, IMeshTxSerializer, ScriptSource, SimpleScriptSourceInfo, NativeScript, IInitiator, Recipient, Token, PlutusScript, Budget, Data, Mint } from '@meshsdk/common';
|
|
1
|
+
import { Protocol, MintItem, TxIn, Withdrawal, PubKeyTxIn, RefTxIn, MeshTxBuilderBody, Asset, BuilderData, LanguageVersion, PoolParams, Anchor, DRep, UTxO, UtxoSelectionStrategy, Network, Redeemer, Action, IFetcher, ISubmitter, IEvaluator, IMeshTxSerializer, ScriptSource, SimpleScriptSourceInfo, NativeScript, IInitiator, Recipient, Token, PlutusScript, Budget, Data, Mint } from '@meshsdk/common';
|
|
2
2
|
|
|
3
3
|
declare class MeshTxBuilderCore {
|
|
4
4
|
txEvaluationMultiplier: number;
|
|
@@ -336,6 +336,13 @@ declare class MeshTxBuilderCore {
|
|
|
336
336
|
* @returns The MeshTxBuilder instance
|
|
337
337
|
*/
|
|
338
338
|
drepDeregistrationCertificate: (drepId: string, coin?: string) => this;
|
|
339
|
+
/**
|
|
340
|
+
* Dregister DRep certificate, and adds it to the transaction
|
|
341
|
+
* @param drepId The bech32 drep id (i.e. starts with `drep1xxxxx`)
|
|
342
|
+
* @param rewardAddress The bech32 reward address (i.e. start with `stake_xxxxx`)
|
|
343
|
+
* @returns The MeshTxBuilder instance
|
|
344
|
+
*/
|
|
345
|
+
voteDelegationCertificate: (drep: DRep, rewardAddress: string) => this;
|
|
339
346
|
/**
|
|
340
347
|
* Adds a script witness to the certificate
|
|
341
348
|
* @param scriptCbor The CborHex of the script
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Protocol, MintItem, TxIn, Withdrawal, PubKeyTxIn, RefTxIn, MeshTxBuilderBody, Asset, BuilderData, LanguageVersion, PoolParams, Anchor, UTxO, UtxoSelectionStrategy, Network, Redeemer, Action, IFetcher, ISubmitter, IEvaluator, IMeshTxSerializer, ScriptSource, SimpleScriptSourceInfo, NativeScript, IInitiator, Recipient, Token, PlutusScript, Budget, Data, Mint } from '@meshsdk/common';
|
|
1
|
+
import { Protocol, MintItem, TxIn, Withdrawal, PubKeyTxIn, RefTxIn, MeshTxBuilderBody, Asset, BuilderData, LanguageVersion, PoolParams, Anchor, DRep, UTxO, UtxoSelectionStrategy, Network, Redeemer, Action, IFetcher, ISubmitter, IEvaluator, IMeshTxSerializer, ScriptSource, SimpleScriptSourceInfo, NativeScript, IInitiator, Recipient, Token, PlutusScript, Budget, Data, Mint } from '@meshsdk/common';
|
|
2
2
|
|
|
3
3
|
declare class MeshTxBuilderCore {
|
|
4
4
|
txEvaluationMultiplier: number;
|
|
@@ -336,6 +336,13 @@ declare class MeshTxBuilderCore {
|
|
|
336
336
|
* @returns The MeshTxBuilder instance
|
|
337
337
|
*/
|
|
338
338
|
drepDeregistrationCertificate: (drepId: string, coin?: string) => this;
|
|
339
|
+
/**
|
|
340
|
+
* Dregister DRep certificate, and adds it to the transaction
|
|
341
|
+
* @param drepId The bech32 drep id (i.e. starts with `drep1xxxxx`)
|
|
342
|
+
* @param rewardAddress The bech32 reward address (i.e. start with `stake_xxxxx`)
|
|
343
|
+
* @returns The MeshTxBuilder instance
|
|
344
|
+
*/
|
|
345
|
+
voteDelegationCertificate: (drep: DRep, rewardAddress: string) => this;
|
|
339
346
|
/**
|
|
340
347
|
* Adds a script witness to the certificate
|
|
341
348
|
* @param scriptCbor The CborHex of the script
|
package/dist/index.js
CHANGED
|
@@ -872,6 +872,23 @@ var MeshTxBuilderCore = class {
|
|
|
872
872
|
});
|
|
873
873
|
return this;
|
|
874
874
|
};
|
|
875
|
+
/**
|
|
876
|
+
* Dregister DRep certificate, and adds it to the transaction
|
|
877
|
+
* @param drepId The bech32 drep id (i.e. starts with `drep1xxxxx`)
|
|
878
|
+
* @param rewardAddress The bech32 reward address (i.e. start with `stake_xxxxx`)
|
|
879
|
+
* @returns The MeshTxBuilder instance
|
|
880
|
+
*/
|
|
881
|
+
voteDelegationCertificate = (drep, rewardAddress) => {
|
|
882
|
+
this.meshTxBuilderBody.certificates.push({
|
|
883
|
+
type: "BasicCertificate",
|
|
884
|
+
certType: {
|
|
885
|
+
type: "VoteDelegation",
|
|
886
|
+
drep,
|
|
887
|
+
stakeKeyAddress: rewardAddress
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
return this;
|
|
891
|
+
};
|
|
875
892
|
/**
|
|
876
893
|
* Adds a script witness to the certificate
|
|
877
894
|
* @param scriptCbor The CborHex of the script
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/transaction",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"typescript": "^5.3.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@meshsdk/common": "1.7.
|
|
38
|
-
"@meshsdk/core-csl": "1.7.
|
|
39
|
-
"@meshsdk/core-cst": "1.7.
|
|
37
|
+
"@meshsdk/common": "1.7.5",
|
|
38
|
+
"@meshsdk/core-csl": "1.7.5",
|
|
39
|
+
"@meshsdk/core-cst": "1.7.5",
|
|
40
40
|
"json-bigint": "^1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"prettier": "@meshsdk/configs/prettier",
|