@lucid-evolution/wallet 0.1.46 → 0.1.48
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 +70 -0
- package/dist/index.js +70 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -152,6 +152,76 @@ function discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, ownUtxos) {
|
|
|
152
152
|
}
|
|
153
153
|
break;
|
|
154
154
|
}
|
|
155
|
+
case 7: {
|
|
156
|
+
const credential = cert.as_vote_deleg_cert()?.stake_credential();
|
|
157
|
+
if (credential) {
|
|
158
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
case 8: {
|
|
163
|
+
const credential = cert.as_stake_vote_deleg_cert()?.stake_credential();
|
|
164
|
+
if (credential) {
|
|
165
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
166
|
+
}
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
case 9: {
|
|
170
|
+
const credential = cert.as_stake_reg_deleg_cert()?.stake_credential();
|
|
171
|
+
if (credential) {
|
|
172
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
case 10: {
|
|
177
|
+
const credential = cert.as_vote_reg_deleg_cert()?.stake_credential();
|
|
178
|
+
if (credential) {
|
|
179
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
180
|
+
}
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
case 11: {
|
|
184
|
+
const credential = cert.as_stake_vote_reg_deleg_cert()?.stake_credential();
|
|
185
|
+
if (credential) {
|
|
186
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
case 12: {
|
|
191
|
+
const credential = cert.as_auth_committee_hot_cert()?.committee_cold_credential();
|
|
192
|
+
if (credential) {
|
|
193
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
case 13: {
|
|
198
|
+
const credential = cert.as_resign_committee_cold_cert()?.committee_cold_credential();
|
|
199
|
+
if (credential) {
|
|
200
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
case 14: {
|
|
205
|
+
const credential = cert.as_reg_drep_cert()?.drep_credential();
|
|
206
|
+
if (credential) {
|
|
207
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
208
|
+
}
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
case 15: {
|
|
212
|
+
const credential = cert.as_unreg_drep_cert()?.drep_credential();
|
|
213
|
+
if (credential) {
|
|
214
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
case 16: {
|
|
219
|
+
const credential = cert.as_update_drep_cert()?.drep_credential();
|
|
220
|
+
if (credential) {
|
|
221
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
222
|
+
}
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
155
225
|
default:
|
|
156
226
|
break;
|
|
157
227
|
}
|
package/dist/index.js
CHANGED
|
@@ -111,6 +111,76 @@ function discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, ownUtxos) {
|
|
|
111
111
|
}
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
+
case 7: {
|
|
115
|
+
const credential = cert.as_vote_deleg_cert()?.stake_credential();
|
|
116
|
+
if (credential) {
|
|
117
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
case 8: {
|
|
122
|
+
const credential = cert.as_stake_vote_deleg_cert()?.stake_credential();
|
|
123
|
+
if (credential) {
|
|
124
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case 9: {
|
|
129
|
+
const credential = cert.as_stake_reg_deleg_cert()?.stake_credential();
|
|
130
|
+
if (credential) {
|
|
131
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
case 10: {
|
|
136
|
+
const credential = cert.as_vote_reg_deleg_cert()?.stake_credential();
|
|
137
|
+
if (credential) {
|
|
138
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
case 11: {
|
|
143
|
+
const credential = cert.as_stake_vote_reg_deleg_cert()?.stake_credential();
|
|
144
|
+
if (credential) {
|
|
145
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
case 12: {
|
|
150
|
+
const credential = cert.as_auth_committee_hot_cert()?.committee_cold_credential();
|
|
151
|
+
if (credential) {
|
|
152
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
case 13: {
|
|
157
|
+
const credential = cert.as_resign_committee_cold_cert()?.committee_cold_credential();
|
|
158
|
+
if (credential) {
|
|
159
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
160
|
+
}
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
case 14: {
|
|
164
|
+
const credential = cert.as_reg_drep_cert()?.drep_credential();
|
|
165
|
+
if (credential) {
|
|
166
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
case 15: {
|
|
171
|
+
const credential = cert.as_unreg_drep_cert()?.drep_credential();
|
|
172
|
+
if (credential) {
|
|
173
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
174
|
+
}
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
case 16: {
|
|
178
|
+
const credential = cert.as_update_drep_cert()?.drep_credential();
|
|
179
|
+
if (credential) {
|
|
180
|
+
usedKeyHashes.push(credential.as_pub_key()?.to_hex());
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
114
184
|
default:
|
|
115
185
|
break;
|
|
116
186
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@anastasia-labs/cardano-multiplatform-lib-browser": "6.0.2-1",
|
|
29
29
|
"@anastasia-labs/cardano-multiplatform-lib-nodejs": "6.0.2-1",
|
|
30
30
|
"bip39": "^3.1.0",
|
|
31
|
-
"@lucid-evolution/core-types": "0.1.17",
|
|
32
31
|
"@lucid-evolution/core-utils": "0.1.15",
|
|
33
|
-
"@lucid-evolution/sign_data": "0.1.
|
|
34
|
-
"@lucid-evolution/utils": "0.1.
|
|
32
|
+
"@lucid-evolution/sign_data": "0.1.21",
|
|
33
|
+
"@lucid-evolution/utils": "0.1.42",
|
|
34
|
+
"@lucid-evolution/core-types": "0.1.18"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.12.8",
|