Socket
Socket
Sign inDemoInstall

aleph-sdk-ts

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aleph-sdk-ts - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

dist/accounts/tezos.d.ts

3

dist/accounts/index.d.ts

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc