@cardano-sdk/e2e 0.55.23 → 0.55.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardano-sdk/e2e",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.25",
|
|
4
4
|
"description": "End to end tests for the cardano-js-sdk packages.",
|
|
5
5
|
"repository": "https://github.com/input-output-hk/cardano-js-sdk",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -76,20 +76,20 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@cardano-foundation/ledgerjs-hw-app-cardano": "^7.1.4",
|
|
78
78
|
"@cardano-ogmios/client": "6.9.0",
|
|
79
|
-
"@cardano-sdk/cardano-services": "~0.35.
|
|
80
|
-
"@cardano-sdk/cardano-services-client": "~0.26.
|
|
81
|
-
"@cardano-sdk/core": "~0.46.
|
|
82
|
-
"@cardano-sdk/crypto": "~0.4.
|
|
83
|
-
"@cardano-sdk/hardware-ledger": "~0.16.
|
|
84
|
-
"@cardano-sdk/hardware-trezor": "~0.7.
|
|
85
|
-
"@cardano-sdk/input-selection": "~0.14.
|
|
86
|
-
"@cardano-sdk/key-management": "~0.29.
|
|
87
|
-
"@cardano-sdk/ogmios": "~0.18.
|
|
88
|
-
"@cardano-sdk/tx-construction": "~0.28.
|
|
79
|
+
"@cardano-sdk/cardano-services": "~0.35.36",
|
|
80
|
+
"@cardano-sdk/cardano-services-client": "~0.26.34",
|
|
81
|
+
"@cardano-sdk/core": "~0.46.14",
|
|
82
|
+
"@cardano-sdk/crypto": "~0.4.6",
|
|
83
|
+
"@cardano-sdk/hardware-ledger": "~0.16.25",
|
|
84
|
+
"@cardano-sdk/hardware-trezor": "~0.7.35",
|
|
85
|
+
"@cardano-sdk/input-selection": "~0.14.31",
|
|
86
|
+
"@cardano-sdk/key-management": "~0.29.15",
|
|
87
|
+
"@cardano-sdk/ogmios": "~0.18.56",
|
|
88
|
+
"@cardano-sdk/tx-construction": "~0.28.13",
|
|
89
89
|
"@cardano-sdk/util": "~0.17.1",
|
|
90
|
-
"@cardano-sdk/util-dev": "~0.25.
|
|
91
|
-
"@cardano-sdk/util-rxjs": "~0.9.
|
|
92
|
-
"@cardano-sdk/wallet": "~0.54.
|
|
90
|
+
"@cardano-sdk/util-dev": "~0.25.34",
|
|
91
|
+
"@cardano-sdk/util-rxjs": "~0.9.33",
|
|
92
|
+
"@cardano-sdk/wallet": "~0.54.6",
|
|
93
93
|
"@dcspark/cardano-multiplatform-lib-nodejs": "^3.1.1",
|
|
94
94
|
"@emurgo/cardano-message-signing-nodejs": "^1.0.1",
|
|
95
95
|
"@shiroyasha9/axios-fetch-adapter": "1.0.3",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"bunyan": "^1.8.15",
|
|
98
98
|
"chalk": "4.1.2",
|
|
99
99
|
"cli-spinners": "^2.9.0",
|
|
100
|
-
"convict": "^6.2.
|
|
100
|
+
"convict": "^6.2.5",
|
|
101
101
|
"delay": "5.0.0",
|
|
102
102
|
"dotenv": "^16.0.1",
|
|
103
103
|
"envalid": "^7.3.1",
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
"@babel/core": "^7.18.2",
|
|
121
121
|
"@babel/preset-env": "^7.18.2",
|
|
122
122
|
"@babel/preset-typescript": "^7.17.12",
|
|
123
|
-
"@cardano-sdk/dapp-connector": "~0.13.
|
|
124
|
-
"@cardano-sdk/projection": "~0.13.
|
|
125
|
-
"@cardano-sdk/projection-typeorm": "~0.10.
|
|
126
|
-
"@cardano-sdk/web-extension": "~0.39.
|
|
123
|
+
"@cardano-sdk/dapp-connector": "~0.13.28",
|
|
124
|
+
"@cardano-sdk/projection": "~0.13.17",
|
|
125
|
+
"@cardano-sdk/projection-typeorm": "~0.10.17",
|
|
126
|
+
"@cardano-sdk/web-extension": "~0.39.42",
|
|
127
127
|
"@dcspark/cardano-multiplatform-lib-browser": "^3.1.1",
|
|
128
128
|
"@emurgo/cardano-message-signing-asmjs": "^1.0.1",
|
|
129
129
|
"@types/bunyan": "^1.8.8",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
"publishConfig": {
|
|
185
185
|
"access": "public"
|
|
186
186
|
},
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "8788405df909bf761664ed85d2666f5153cd0a36"
|
|
188
188
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BaseWallet
|
|
1
|
+
import { BaseWallet } from '@cardano-sdk/wallet';
|
|
2
2
|
import { Cardano, nativeScriptPolicyId } from '@cardano-sdk/core';
|
|
3
|
-
import { InitializeTxProps } from '@cardano-sdk/tx-construction';
|
|
4
3
|
import { KeyRole, util } from '@cardano-sdk/key-management';
|
|
5
4
|
import {
|
|
6
5
|
bip32Ed25519Factory,
|
|
@@ -66,38 +65,16 @@ describe('PersonalWallet/mint', () => {
|
|
|
66
65
|
|
|
67
66
|
const policyId = nativeScriptPolicyId(policyScript);
|
|
68
67
|
const assetId = Cardano.AssetId(`${policyId}`); // skip asset name
|
|
69
|
-
const tokens = new Map([[assetId, 1n]]);
|
|
70
68
|
|
|
71
|
-
|
|
69
|
+
// Mint through the fluent transaction builder. The minted asset is balanced into the wallet's
|
|
70
|
+
// change; the policy requires Alice's signature, supplied as an extra signer.
|
|
71
|
+
const { tx: signedTx } = await wallet
|
|
72
|
+
.createTxBuilder()
|
|
73
|
+
.addMint({ assets: new Map([[Cardano.AssetName(''), 1n]]), policy: policyScript })
|
|
74
|
+
.extraSigners([alicePolicySigner])
|
|
75
|
+
.build()
|
|
76
|
+
.sign();
|
|
72
77
|
|
|
73
|
-
const txProps: InitializeTxProps = {
|
|
74
|
-
mint: tokens,
|
|
75
|
-
outputs: new Set([
|
|
76
|
-
{
|
|
77
|
-
address: walletAddress,
|
|
78
|
-
value: {
|
|
79
|
-
assets: tokens,
|
|
80
|
-
coins
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]),
|
|
84
|
-
signingOptions: {
|
|
85
|
-
extraSigners: [alicePolicySigner]
|
|
86
|
-
},
|
|
87
|
-
witness: { scripts: [policyScript] }
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
const unsignedTx = await wallet.initializeTx(txProps);
|
|
91
|
-
|
|
92
|
-
const finalizeProps: FinalizeTxProps = {
|
|
93
|
-
signingOptions: {
|
|
94
|
-
extraSigners: [alicePolicySigner]
|
|
95
|
-
},
|
|
96
|
-
tx: unsignedTx,
|
|
97
|
-
witness: { scripts: [policyScript] }
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const signedTx = await wallet.finalizeTx(finalizeProps);
|
|
101
78
|
const [, txFoundInHistory] = await submitAndConfirm(wallet, signedTx, 1);
|
|
102
79
|
|
|
103
80
|
expect(txFoundInHistory.id).toEqual(signedTx.id);
|
|
@@ -128,7 +128,7 @@ describe('PersonalWallet/phase2validation', () => {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
]),
|
|
131
|
-
redeemersByType: {
|
|
131
|
+
redeemersByType: { mint: new Map([[policyId, scriptRedeemer]]) },
|
|
132
132
|
scriptIntegrityHash: scriptDataHash,
|
|
133
133
|
witness: { redeemers: [scriptRedeemer], scripts: [alwaysFailScript] }
|
|
134
134
|
};
|