aleph-sdk-ts
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -8,2 +8,3 @@ import * as base from "./account"; | ||
import * as substrate from "./substrate"; | ||
export { avalanche, base, cosmos, ethereum, nuls2, solana, substrate }; | ||
import * as tezos from "./tezos"; | ||
export { base, avalanche, cosmos, ethereum, solana, substrate, nuls2, tezos }; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.substrate = exports.solana = exports.nuls2 = exports.ethereum = exports.cosmos = exports.base = exports.avalanche = void 0; | ||
exports.tezos = exports.nuls2 = exports.substrate = exports.solana = exports.ethereum = exports.cosmos = exports.avalanche = exports.base = void 0; | ||
const base = __importStar(require("./account")); | ||
@@ -42,1 +42,3 @@ exports.base = base; | ||
exports.substrate = substrate; | ||
const tezos = __importStar(require("./tezos")); | ||
exports.tezos = tezos; |
@@ -40,2 +40,3 @@ "use strict"; | ||
if (!configuration.inlineRequested) { | ||
configuration.message.item_content = undefined; | ||
configuration.message.item_type = configuration.storageEngine; | ||
@@ -42,0 +43,0 @@ configuration.message.item_hash = yield PushToStorageEngine({ |
@@ -27,9 +27,14 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
yield axios_1.default.post(`${(0, url_1.stripTrailingSlash)(configuration.APIServer)}/api/v0/ipfs/pubsub/pub`, { | ||
topic: "ALEPH-TEST", | ||
data: JSON.stringify(configuration.message), | ||
}, { | ||
socketPath: (0, url_1.getSocketPath)(), | ||
}); | ||
try { | ||
yield axios_1.default.post(`${(0, url_1.stripTrailingSlash)(configuration.APIServer)}/api/v0/ipfs/pubsub/pub`, { | ||
topic: "ALEPH-TEST", | ||
data: JSON.stringify(configuration.message), | ||
}, { | ||
socketPath: (0, url_1.getSocketPath)(), | ||
}); | ||
} | ||
catch (err) { | ||
console.warn(err); | ||
} | ||
}); | ||
} |
@@ -16,3 +16,4 @@ /** | ||
CSDK = "CSDK", | ||
NEO = "NEO" | ||
NEO = "NEO", | ||
TEZOS = "TEZOS" | ||
} | ||
@@ -110,3 +111,3 @@ /** | ||
item_type: ItemType; | ||
item_content: string; | ||
item_content?: string; | ||
hash_type?: HashType; | ||
@@ -113,0 +114,0 @@ item_hash: string; |
@@ -14,2 +14,3 @@ "use strict"; | ||
Chain["NEO"] = "NEO"; | ||
Chain["TEZOS"] = "TEZOS"; | ||
})(Chain = exports.Chain || (exports.Chain = {})); | ||
@@ -16,0 +17,0 @@ /** |
{ | ||
"name": "aleph-sdk-ts", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Aleph.im Typescript SDK", | ||
@@ -9,2 +9,5 @@ "main": "dist/index.js", | ||
], | ||
"publishConfig": { | ||
"@aleph-im:registry": "https://npm.pkg.github.com" | ||
}, | ||
"scripts": { | ||
@@ -23,3 +26,7 @@ "build": "rm -rf dist/ && tsc", | ||
"license": "MIT", | ||
"engines": { | ||
"node": "<18.0.0" | ||
}, | ||
"devDependencies": { | ||
"@airgap/beacon-types": "^3.2.0", | ||
"@types/bs58": "^4.0.1", | ||
@@ -54,2 +61,4 @@ "@types/elliptic": "^6.4.13", | ||
"@solana/web3.js": "^1.39.1", | ||
"@taquito/beacon-wallet": "^14.0.0", | ||
"@taquito/signer": "^13.0.1", | ||
"avalanche": "^3.15.3", | ||
@@ -56,0 +65,0 @@ "axios": "^0.21.4", |
# aleph-sdk-ts | ||
## Description | ||
aleph-sdk-ts is the Typescript SDK you can use to interact with the Aleph decentralized network, about which you can find more information [here](https://aleph.im/). | ||
When I started this project, it was just for adding TS support to the [Aleph-JS](https://github.com/aleph-im/aleph-js) project. | ||
This project is still under development, please consider this if you are using it. | ||
This SDK offers binding to interact with the [Aleph decentralized network](https://aleph.im/). | ||
Written in Typescript it is meant as a drop in replacement for the [aleph-js library](). | ||
## Quick Start | ||
- An API reference is available in the `/docs` directory, [and online](https://aleph-im.github.io/aleph-sdk-ts/index.html) | ||
- For guides and use-cases check the [Aleph TS SDK Gitbook](https://aleph-im.gitbook.io/ts-sdk/) | ||
## Installation | ||
### Use it in your project | ||
Run the following command: | ||
```shell | ||
@@ -23,52 +15,28 @@ npm install aleph-sdk-ts | ||
## Play with this repository | ||
- An API reference [on the repository github pages](https://aleph-im.github.io/aleph-sdk-ts/index.html) | ||
- For guides and use-cases check the [Aleph TS SDK Gitbook](https://aleph-im.gitbook.io/ts-sdk/) | ||
- Some examples are available in the `/examples` directory. | ||
First and foremost, clone the repository: | ||
```shell | ||
git clone https://github.com/aleph-im/aleph-sdk-ts | ||
``` | ||
## Running from source | ||
### Run the tests | ||
If you wish to use feature which are not (yet) released, feel free to clone this repository on your local machine. | ||
- Run the tests manually: | ||
```shell | ||
Make sure to install the dependencies first by running: | ||
``` | ||
npm install | ||
npm run test | ||
``` | ||
- Or use [act](https://github.com/nektos/act): | ||
```shell | ||
act | ||
You can run the test suite, using: | ||
``` | ||
npm run test | ||
``` | ||
### Build the project | ||
Just run: | ||
```shell | ||
npm run build | ||
``` | ||
## Contribution | ||
Your contributions are always welcome, [here's a guide to get started](./contributing.md). | ||
## Features | ||
## License | ||
- [X] Aggregate message | ||
- [X] Post message | ||
- [X] Store message | ||
- [X] Forget object | ||
- [X] Program object | ||
- [X] Messages retrieving | ||
- [X] Ethereum account | ||
- [X] Avalanche account | ||
- [X] NULS account | ||
- [X] NULS2 account | ||
- [X] Solana account | ||
- [X] Substrate account | ||
- [ ] Cosmos account | ||
- [ ] Tezos account (inProgress) | ||
- [ ] Encryption methods | ||
This software is released under [The MIT License](./LICENSE). | ||
## Authors | ||
- [Luca Georges Francois](https://github.com/PtitLuca) | ||
- [Roman Gascoin](https://github.com/Rgascoin) | ||
- [Jonathan Schemoul](https://github.com/moshemalawach) for writing the [aleph-js](https://github.com/aleph-im/aleph-js) client |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
120703
67
2923
0
18
22
42
+ Added@taquito/signer@^13.0.1
+ Added@airgap/beacon-core@3.3.4(transitive)
+ Added@airgap/beacon-dapp@3.3.4(transitive)
+ Added@airgap/beacon-transport-matrix@3.3.4(transitive)
+ Added@airgap/beacon-transport-postmessage@3.3.4(transitive)
+ Added@airgap/beacon-types@3.3.4(transitive)
+ Added@airgap/beacon-ui@3.3.4(transitive)
+ Added@airgap/beacon-utils@3.3.4(transitive)
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/blake2b@1.0.1(transitive)
+ Added@stablelib/bytes@1.0.1(transitive)
+ Added@stablelib/constant-time@1.0.1(transitive)
+ Added@stablelib/ed25519@1.0.3(transitive)
+ Added@stablelib/hash@1.0.1(transitive)
+ Added@stablelib/int@1.0.1(transitive)
+ Added@stablelib/keyagreement@1.0.1(transitive)
+ Added@stablelib/nacl@1.0.4(transitive)
+ Added@stablelib/poly1305@1.0.1(transitive)
+ Added@stablelib/random@1.0.2(transitive)
+ Added@stablelib/salsa20@1.0.2(transitive)
+ Added@stablelib/sha512@1.0.1(transitive)
+ Added@stablelib/utf8@1.0.2(transitive)
+ Added@stablelib/wipe@1.0.1(transitive)
+ Added@stablelib/x25519@1.0.3(transitive)
+ Added@stablelib/x25519-session@1.0.4(transitive)
+ Added@stablelib/xsalsa20@1.0.2(transitive)
+ Added@taquito/beacon-wallet@14.2.0(transitive)
+ Added@taquito/core@20.0.1(transitive)
+ Added@taquito/http-utils@13.0.120.0.1(transitive)
+ Added@taquito/local-forging@13.0.120.0.1(transitive)
+ Added@taquito/michel-codec@13.0.120.0.1(transitive)
+ Added@taquito/michelson-encoder@13.0.120.0.1(transitive)
+ Added@taquito/rpc@13.0.120.0.1(transitive)
+ Added@taquito/signer@13.0.1(transitive)
+ Added@taquito/taquito@13.0.120.0.1(transitive)
+ Added@taquito/utils@13.0.120.0.1(transitive)
+ Added@types/bs58check@2.1.2(transitive)
+ Added@types/chrome@0.0.163(transitive)
+ Added@types/filesystem@0.0.36(transitive)
+ Added@types/filewriter@0.0.33(transitive)
+ Added@types/har-format@1.2.15(transitive)
+ Addedaxios@0.24.00.26.1(transitive)
+ Addedbase-x@4.0.0(transitive)
+ Addedbignumber.js@9.1.2(transitive)
+ Addedbs58@5.0.0(transitive)
+ Addedbs58check@3.0.1(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedqrcode-generator@1.4.4(transitive)
+ Addedrxjs@6.6.77.8.1(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtypedarray-to-buffer@4.0.0(transitive)