@meshsdk/core-csl 1.7.12 → 1.7.13
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 +12 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +12 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1130,6 +1130,17 @@ var withdrawalToObj = (withdrawal) => {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
|
|
1133
|
+
// src/core/adaptor/network.ts
|
|
1134
|
+
var networkToObj = (network) => {
|
|
1135
|
+
if (typeof network === "string") {
|
|
1136
|
+
return network;
|
|
1137
|
+
} else {
|
|
1138
|
+
return {
|
|
1139
|
+
custom: network
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
1143
|
+
|
|
1133
1144
|
// src/core/adaptor/utxo.ts
|
|
1134
1145
|
var utxoToObj = ({
|
|
1135
1146
|
input: { outputIndex, txHash },
|
|
@@ -1182,7 +1193,7 @@ var meshTxBuilderBodyToObj = ({
|
|
|
1182
1193
|
signingKey,
|
|
1183
1194
|
withdrawals: withdrawals.map(withdrawalToObj),
|
|
1184
1195
|
votes: votes.map(voteToObj),
|
|
1185
|
-
network
|
|
1196
|
+
network: networkToObj(network)
|
|
1186
1197
|
};
|
|
1187
1198
|
};
|
|
1188
1199
|
|
package/dist/index.d.cts
CHANGED
|
@@ -109,7 +109,9 @@ declare const meshTxBuilderBodyToObj: ({ inputs, outputs, collaterals, requiredS
|
|
|
109
109
|
signingKey: string[];
|
|
110
110
|
withdrawals: object[];
|
|
111
111
|
votes: object[];
|
|
112
|
-
network:
|
|
112
|
+
network: "testnet" | "preview" | "preprod" | "mainnet" | number[][] | {
|
|
113
|
+
custom: "testnet" | "preview" | "preprod" | "mainnet" | number[][];
|
|
114
|
+
};
|
|
113
115
|
};
|
|
114
116
|
|
|
115
117
|
declare const deserializeAddress: (address: string) => csl.Address;
|
package/dist/index.d.ts
CHANGED
|
@@ -109,7 +109,9 @@ declare const meshTxBuilderBodyToObj: ({ inputs, outputs, collaterals, requiredS
|
|
|
109
109
|
signingKey: string[];
|
|
110
110
|
withdrawals: object[];
|
|
111
111
|
votes: object[];
|
|
112
|
-
network:
|
|
112
|
+
network: "testnet" | "preview" | "preprod" | "mainnet" | number[][] | {
|
|
113
|
+
custom: "testnet" | "preview" | "preprod" | "mainnet" | number[][];
|
|
114
|
+
};
|
|
113
115
|
};
|
|
114
116
|
|
|
115
117
|
declare const deserializeAddress: (address: string) => csl.Address;
|
package/dist/index.js
CHANGED
|
@@ -1010,6 +1010,17 @@ var withdrawalToObj = (withdrawal) => {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
};
|
|
1012
1012
|
|
|
1013
|
+
// src/core/adaptor/network.ts
|
|
1014
|
+
var networkToObj = (network) => {
|
|
1015
|
+
if (typeof network === "string") {
|
|
1016
|
+
return network;
|
|
1017
|
+
} else {
|
|
1018
|
+
return {
|
|
1019
|
+
custom: network
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1013
1024
|
// src/core/adaptor/utxo.ts
|
|
1014
1025
|
var utxoToObj = ({
|
|
1015
1026
|
input: { outputIndex, txHash },
|
|
@@ -1062,7 +1073,7 @@ var meshTxBuilderBodyToObj = ({
|
|
|
1062
1073
|
signingKey,
|
|
1063
1074
|
withdrawals: withdrawals.map(withdrawalToObj),
|
|
1064
1075
|
votes: votes.map(voteToObj),
|
|
1065
|
-
network
|
|
1076
|
+
network: networkToObj(network)
|
|
1066
1077
|
};
|
|
1067
1078
|
};
|
|
1068
1079
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core-csl",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"typescript": "^5.3.3"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@meshsdk/common": "1.7.
|
|
42
|
-
"@sidan-lab/sidan-csl-rs-browser": "0.9.
|
|
43
|
-
"@sidan-lab/sidan-csl-rs-nodejs": "0.9.
|
|
41
|
+
"@meshsdk/common": "1.7.13",
|
|
42
|
+
"@sidan-lab/sidan-csl-rs-browser": "0.9.5",
|
|
43
|
+
"@sidan-lab/sidan-csl-rs-nodejs": "0.9.5",
|
|
44
44
|
"json-bigint": "^1.0.0"
|
|
45
45
|
},
|
|
46
46
|
"prettier": "@meshsdk/configs/prettier",
|