diff --git a/.changeset/config.json b/.changeset/config.json index c0e629c6..ea818753 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -15,7 +15,6 @@ "*/blockchain-providers" ] ], - "ignore": ["fleet-sdk"], "access": "public", "baseBranch": "master", "updateInternalDependencies": "patch" diff --git a/.changeset/giant-boxes-agree.md b/.changeset/giant-boxes-agree.md deleted file mode 100644 index f2c8b2c1..00000000 --- a/.changeset/giant-boxes-agree.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"fleet-sdk": minor ---- - -Introduce `fleet-sdk` main package diff --git a/README.md b/README.md index 36460788..181fd543 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,16 @@ Fleet (Fluent Ergo Toolset) is a put TypeScript SDK for Ergo Platform, offering This is a [monorepository](https://monorepo.tools/) which means this contains many sub-packages that composes full Fleet SDK implementation. -| Package | Description | | -| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | -| [`fleet-sdk`](/packages/fleet-sdk/) | Main Fleet SDK package. Wrapper around `common`, `core`, `serializer`, `crypto`, and `blockchain-providers` packages. | [Unpublished](https://github.com/fleet-sdk/fleet/issues/79) | -| [`core`](/packages/core/) | Core library with transaction builder and basic serialization. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/core)](https://www.npmjs.com/package/@fleet-sdk/core) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/core?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/core) | -| [`wallet`](/packages/wallet/) | Wallet related library, with mnemonic and keys management. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/wallet)](https://www.npmjs.com/package/@fleet-sdk/wallet) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/wallet?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/wallet) | -| [`common`](/packages/common/) | Internal types and utility functions shared across `@fleet-sdk` packages. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/common)](https://www.npmjs.com/package/@fleet-sdk/common) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/common?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/common) | -| [`crypto`](/packages/crypto/) | Ergo blockchain crypto primitives. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/crypto)](https://www.npmjs.com/package/@fleet-sdk/crypto) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/crypto?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/crypto) | -| [`serializer`](/packages/serializer/) | Ergo data serializer and parser. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/serializer)](https://www.npmjs.com/package/@fleet-sdk/serializer) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/serializer?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/serializer) | -| [`mock-chain`](/packages/mock-chain/) | Mock chain and testing utilities for Ergo Smart Contracts. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/mock-chain)](https://www.npmjs.com/package/@fleet-sdk/mock-chain) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/mock-chain?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/mock-chain) | -| [`compiler`](/packages/compiler/) | Sigma.JS powered ErgoScript compiler. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/compiler)](https://www.npmjs.com/package/@fleet-sdk/compiler) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/compiler?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/compiler) | -| [`blockchain-providers`](/packages/blockchain-providers/) | Blockchain data providers. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/blockchain-providers)](https://www.npmjs.com/package/@fleet-sdk/blockchain-providers) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/blockchain-providers?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/blockchain-providers) | +| Package | Description | | +| --------------------------------------------------------- | ------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | +| [`core`](/packages/core/) | Core library with transaction builder and basic serialization. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/core)](https://www.npmjs.com/package/@fleet-sdk/core) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/core?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/core) | +| [`wallet`](/packages/wallet/) | Wallet related library, with mnemonic and keys management. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/wallet)](https://www.npmjs.com/package/@fleet-sdk/wallet) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/wallet?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/wallet) | +| [`common`](/packages/common/) | Internal types and utility functions shared across `@fleet-sdk` packages. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/common)](https://www.npmjs.com/package/@fleet-sdk/common) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/common?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/common) | +| [`crypto`](/packages/crypto/) | Ergo blockchain crypto primitives. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/crypto)](https://www.npmjs.com/package/@fleet-sdk/crypto) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/crypto?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/crypto) | +| [`serializer`](/packages/serializer/) | Ergo data serializer and parser. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/serializer)](https://www.npmjs.com/package/@fleet-sdk/serializer) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/serializer?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/serializer) | +| [`mock-chain`](/packages/mock-chain/) | Mock chain and testing utilities for Ergo Smart Contracts. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/mock-chain)](https://www.npmjs.com/package/@fleet-sdk/mock-chain) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/mock-chain?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/mock-chain) | +| [`compiler`](/packages/compiler/) | Sigma.JS powered ErgoScript compiler. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/compiler)](https://www.npmjs.com/package/@fleet-sdk/compiler) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/compiler?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/compiler) | +| [`blockchain-providers`](/packages/blockchain-providers/) | Blockchain data providers. | [![npm](https://img.shields.io/npm/v/@fleet-sdk/blockchain-providers)](https://www.npmjs.com/package/@fleet-sdk/blockchain-providers) [![bundle size](https://img.shields.io/bundlephobia/minzip/@fleet-sdk/blockchain-providers?label=minzip)](https://bundlephobia.com/package/@fleet-sdk/blockchain-providers) | ## Plugins diff --git a/packages/fleet-sdk/CHANGELOG.md b/packages/fleet-sdk/CHANGELOG.md deleted file mode 100644 index 5dcaa150..00000000 --- a/packages/fleet-sdk/CHANGELOG.md +++ /dev/null @@ -1,19 +0,0 @@ -# fleet-sdk - -## 0.3.0 - -### Minor Changes - -- f32f6ae: Introduce `fleet-sdk` main package - -### Patch Changes - -- Updated dependencies [feb2109] -- Updated dependencies [d05b74d] -- Updated dependencies [c42ca0d] -- Updated dependencies [d08255c] - - @fleet-sdk/blockchain-providers@0.3.0 - - @fleet-sdk/common@0.3.0 - - @fleet-sdk/core@0.3.0 - - @fleet-sdk/crypto@0.3.0 - - @fleet-sdk/serializer@0.3.0 diff --git a/packages/fleet-sdk/LICENSE b/packages/fleet-sdk/LICENSE deleted file mode 100644 index f7419ae2..00000000 --- a/packages/fleet-sdk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Nautilus Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/fleet-sdk/README.md b/packages/fleet-sdk/README.md deleted file mode 100644 index dd127e27..00000000 --- a/packages/fleet-sdk/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# fleet-sdk [![License](https://badgen.net/github/license/fleet-sdk/fleet/)](https://github.com/fleet-sdk/fleet/blob/master/LICENSE) [![npm](https://badgen.net/npm/v/fleet-sdk)](https://www.npmjs.com/package/fleet-sdk) - -Front-end focused wrapper around `core`, `common`, `serializer` and `crypto` packages. diff --git a/packages/fleet-sdk/package.json b/packages/fleet-sdk/package.json deleted file mode 100644 index c5596b5e..00000000 --- a/packages/fleet-sdk/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "fleet-sdk", - "version": "0.0.0", - "description": "Simple, powerful, and extensible Ergo Blockchain SDK.", - "main": "./dist/index.cjs.js", - "module": "./dist/index.esm.js", - "types": "./dist/index.d.ts", - "exports": { - "types": "./dist/index.d.ts", - "require": "./dist/index.cjs.js", - "import": "./dist/index.esm.js" - }, - "sideEffects": true, - "repository": "fleet-sdk/fleet", - "license": "MIT", - "publishConfig": { - "access": "public", - "provenance": true - }, - "keywords": [ - "ergo", - "blockchain", - "crypto" - ], - "scripts": { - "build": "tsup --config ../../tsup.config.ts" - }, - "engines": { - "node": ">=14" - }, - "dependencies": { - "@fleet-sdk/common": "workspace:^", - "@fleet-sdk/core": "workspace:^", - "@fleet-sdk/serializer": "workspace:^", - "@fleet-sdk/crypto": "workspace:^", - "@fleet-sdk/blockchain-providers": "workspace:^" - }, - "files": [ - "dist", - "!**/*.spec.*", - "!**/*.json", - "!tests", - "CHANGELOG.md", - "LICENSE", - "README.md" - ] -} diff --git a/packages/fleet-sdk/src/index.ts b/packages/fleet-sdk/src/index.ts deleted file mode 100644 index 838d2f08..00000000 --- a/packages/fleet-sdk/src/index.ts +++ /dev/null @@ -1,107 +0,0 @@ -export * from "@fleet-sdk/common"; -export * from "@fleet-sdk/crypto"; -export * from "@fleet-sdk/serializer"; -export * from "@fleet-sdk/blockchain-providers"; - -// todo: export * after v1 -export { - AccumulativeSelectionStrategy, - AdditionalRegistersInput, - BOX_VALUE_PER_BYTE, - BoxSelector, - BoxValueEstimationCallback, - CherryPickSelectionStrategy, - CollectionLike, - ConfigureCallback, - ConstantInput, - CustomSelectionStrategy, - DuplicateInputError, - DuplicateInputSelectionError, - ErgoAddress, - ErgoBox, - ErgoTree, - ErgoUnsignedInput, - ErgoUnsignedTransaction, - FEE_CONTRACT, - FleetPlugin, - InputsCollection, - InsufficientInputs, - InsufficientTokenAmount, - InvalidAddress, - InvalidInput, - InvalidRegistersPacking, - MAX_TOKENS_PER_BOX, - MalformedTransaction, - MaxTokensOverflow, - NotAllowedTokenBurning, - NotFoundError, - OnlyR4Register, - OutputBuilder, - OutputsCollection, - R4ToR5Registers, - R4ToR6Registers, - R4ToR7Registers, - R4ToR8Registers, - R4ToR9Registers, - RECOMMENDED_MIN_FEE_VALUE, - SAFE_MIN_BOX_VALUE, - SelectorCallback, - SequentialNonMandatoryRegisters, - TokenAddOptions, - TokensCollection, - TransactionBuilder, - UndefinedCreationHeight, - UndefinedMintingContext, - estimateMinBoxValue -} from "@fleet-sdk/core"; - -export { - AddressType, - Amount, - AssertErrorMessageInput, - Base58String, - Block, - BlockHeader, - BlockHeaderId, - BlockTransactions, - Box, - BoxCandidate, - BoxId, - BoxSummary, - BuildOutputType, - Collection, - CollectionAddOptions, - ContextExtension, - DataInput, - EIP12UnsignedDataInput, - EIP12UnsignedInput, - EIP12UnsignedTransaction, - ErgoTreeHex, - HexString, - MinimalBoxAmountsArray, - Network, - NewToken, - NonMandatoryRegisters, - OneOrMore, - PoWSolution, - ProverResult, - SignedInput, - SignedTransaction, - SortingDirection, - SortingSelector, - TokenAmount, - TokenId, - TokenTargetAmount, - TransactionId, - UTxOFilterParams, - UnsignedInput, - UnsignedTransaction, - concatBytes, - decimalize, - ensureBigInt, - percent, - undecimalize, - utxoDiff, - utxoFilter, - utxoSum -} from "@fleet-sdk/common"; diff --git a/plugins/ageusd/package.json b/plugins/ageusd/package.json index b089b853..93321e04 100644 --- a/plugins/ageusd/package.json +++ b/plugins/ageusd/package.json @@ -1,6 +1,6 @@ { "name": "@fleet-sdk/ageusd-plugin", - "version": "0.1.4", + "version": "0.1.5", "description": "AgeUSD protocol plugin for Fleet SDK.", "main": "./dist/index.cjs.js", "module": "./dist/index.esm.js", diff --git a/plugins/babel-fees/package.json b/plugins/babel-fees/package.json index 1e57bdf0..11b8249f 100644 --- a/plugins/babel-fees/package.json +++ b/plugins/babel-fees/package.json @@ -1,6 +1,6 @@ { "name": "@fleet-sdk/babel-fees-plugin", - "version": "0.1.7", + "version": "0.1.8", "description": "Babel Fees plugin for Fleet SDK.", "main": "./dist/index.cjs.js", "module": "./dist/index.esm.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a89b2435..6e9c292f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -144,24 +144,6 @@ importers: specifier: ^1.1.3 version: 1.1.3 - packages/fleet-sdk: - dependencies: - '@fleet-sdk/blockchain-providers': - specifier: workspace:^ - version: link:../blockchain-providers - '@fleet-sdk/common': - specifier: workspace:^ - version: link:../common - '@fleet-sdk/core': - specifier: workspace:^ - version: link:../core - '@fleet-sdk/crypto': - specifier: workspace:^ - version: link:../crypto - '@fleet-sdk/serializer': - specifier: workspace:^ - version: link:../serializer - packages/mock-chain: dependencies: '@fleet-sdk/common':