Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40,957 changes: 11,035 additions & 29,922 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@
"dependencies": {
"@bitcoinerlab/coinselect": "^1.3.2",
"@bitcoinerlab/descriptors": "^2.3.1",
"@bitcoinerlab/secp256k1": "^1.2.0",
"npm": "^10.8.0"
"@bitcoinerlab/secp256k1": "^1.2.0"
},
"overrides": {
"ip": "npm:@webpod/ip@latest",
"libsodium-wrappers-sumo": "0.7.15"
"ip": "npm:@webpod/ip@latest"
}
}
2 changes: 1 addition & 1 deletion packages/mesh-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/common",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Contains constants, types and interfaces used across the SDK and different serialization libraries",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down
7 changes: 3 additions & 4 deletions packages/mesh-contract/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/contract",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -34,9 +34,8 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/core": "1.9.0-beta.99",
"libsodium-wrappers-sumo": "0.7.15"
"@meshsdk/common": "1.9.0-beta.100",
"@meshsdk/core": "1.9.0-beta.100"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/mesh-core-csl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-csl",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Types and utilities functions between Mesh and cardano-serialization-lib",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down Expand Up @@ -38,7 +38,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/common": "1.9.0-beta.100",
"@sidan-lab/whisky-js-browser": "^1.0.11",
"@sidan-lab/whisky-js-nodejs": "^1.0.11",
"@types/base32-encoding": "^1.0.2",
Expand Down
13 changes: 6 additions & 7 deletions packages/mesh-core-cst/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core-cst",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Types and utilities functions between Mesh and cardano-js-sdk",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -36,22 +36,21 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@cardano-sdk/core": "^0.46.11",
"@cardano-sdk/crypto": "^0.4.4",
"@cardano-sdk/input-selection": "^0.14.27",
"@cardano-sdk/util": "^0.17.1",
"@cardano-sdk/core": "0.46.12",
"@cardano-sdk/crypto": "0.4.5",
"@cardano-sdk/input-selection": "0.14.28",
"@cardano-sdk/util": "0.17.1",
"@harmoniclabs/cbor": "1.6.0",
"@harmoniclabs/pair": "^1.0.0",
"@harmoniclabs/plutus-data": "1.2.6",
"@harmoniclabs/uplc": "1.4.1",
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/common": "1.9.0-beta.100",
"@types/base32-encoding": "^1.0.2",
"base32-encoding": "^1.0.0",
"bech32": "^2.0.0",
"blakejs": "^1.2.1",
"bn.js": "^5.2.0",
"hash.js": "^1.1.7",
"libsodium-wrappers-sumo": "0.7.15",
"scalus": "^0.14.2"
},
"overrides": {
Expand Down
13 changes: 6 additions & 7 deletions packages/mesh-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/core",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Mesh SDK Core - https://meshjs.dev/",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -33,12 +33,11 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/core-cst": "1.9.0-beta.99",
"@meshsdk/provider": "1.9.0-beta.89",
"@meshsdk/transaction": "1.9.0-beta.99",
"@meshsdk/wallet": "1.9.0-beta.99",
"libsodium-wrappers-sumo": "0.7.15"
"@meshsdk/common": "1.9.0-beta.100",
"@meshsdk/core-cst": "1.9.0-beta.100",
"@meshsdk/provider": "1.9.0-beta.99",
"@meshsdk/transaction": "1.9.0-beta.100",
"@meshsdk/wallet": "1.9.0-beta.100"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
15 changes: 7 additions & 8 deletions packages/mesh-transaction/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/transaction",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Transactions - https://meshjs.dev/apis/transaction",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -35,13 +35,12 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/core-cst": "1.9.0-beta.99",
"@cardano-sdk/core": "^0.46.11",
"@cardano-sdk/util": "^0.17.1",
"@cardano-sdk/input-selection": "^0.14.27",
"json-bigint": "^1.0.0",
"libsodium-wrappers-sumo": "0.7.15"
"@meshsdk/common": "1.9.0-beta.100",
"@meshsdk/core-cst": "1.9.0-beta.100",
"@cardano-sdk/core": "0.46.12",
"@cardano-sdk/util": "0.17.1",
"@cardano-sdk/input-selection": "0.14.28",
"json-bigint": "^1.0.0"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Output, TxIn, TxOutput, UTxO, value } from "@meshsdk/common";
import { Output, TxIn, TxOutput, UTxO } from "@meshsdk/common";

import {
BuilderCallbacks,
Expand Down Expand Up @@ -154,14 +154,12 @@ export class LargestFirstInputSelector implements IInputSelector {
): { changeOutputs: TxOutput[]; valueFulfilled: boolean } => {
let lovelaceAvailable = remainingValue.get("lovelace") || 0n;
let valueFulfilled = true;
const valueAssets = remainingValue
.entries()
const valueAssets = Array.from(remainingValue.entries())
.filter(([_, quantity]) => quantity > 0n)
.map(([unit, quantity]) => ({
unit,
quantity: String(quantity),
}))
.toArray();
}));
const changeOutputs: TxOutput[] = [];
let currentBundle: { unit: string; quantity: string }[] = [
{
Expand Down Expand Up @@ -259,9 +257,11 @@ export class LargestFirstInputSelector implements IInputSelector {
const selectedUtxos = new Set<UTxO>();
while (remainingUtxos.length > 0) {
// We select per asset by UTxO with largest quantity of that asset
const assetToSelect = remainingValue.entries().find(([_, quantity]) => {
return quantity < 0n;
});
const assetToSelect = Array.from(remainingValue.entries()).find(
([_, quantity]) => {
return quantity < 0n;
},
);
if (!assetToSelect) {
break; // No more assets to select
}
Expand Down
11 changes: 5 additions & 6 deletions packages/mesh-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshsdk/wallet",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"description": "Wallets - https://meshjs.dev/apis/wallets",
"main": "./dist/index.cjs",
"browser": "./dist/index.js",
Expand Down Expand Up @@ -35,11 +35,10 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@meshsdk/common": "1.9.0-beta.99",
"@meshsdk/core-cst": "1.9.0-beta.99",
"@meshsdk/transaction": "1.9.0-beta.99",
"@simplewebauthn/browser": "^13.0.0",
"libsodium-wrappers-sumo": "0.7.15"
"@meshsdk/common": "1.9.0-beta.100",
"@meshsdk/core-cst": "1.9.0-beta.100",
"@meshsdk/transaction": "1.9.0-beta.100",
"@simplewebauthn/browser": "^13.0.0"
},
"prettier": "@meshsdk/configs/prettier",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/mesh-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A quick and easy way to bootstrap your Web3 app using Mesh.",
"homepage": "https://meshjs.dev",
"author": "MeshJS",
"version": "1.9.0-beta.99",
"version": "1.9.0-beta.100",
"license": "Apache-2.0",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
Loading