@stellar/typescript-wallet-sdk 1.4.0 → 1.4.1
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/README.md +51 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle_browser.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Stellar Typescript Wallet SDK [](https://badge.fury.io/js/@stellar%2Ftypescript-wallet-sdk)
|
|
2
|
+
|
|
3
|
+
Typescript Wallet SDK is a library that allows developers to build wallet
|
|
4
|
+
applications on the Stellar network faster. It utilizes
|
|
5
|
+
[Javascript Stellar SDK](https://github.com/stellar/js-stellar-sdk) to
|
|
6
|
+
communicate with a Stellar Horizon server.
|
|
7
|
+
It offers wide range of functionality to simplify integration with the Stellar
|
|
8
|
+
network, and connect to the anchors easily, utilizing various Stellar protocols
|
|
9
|
+
(SEPs)
|
|
10
|
+
|
|
11
|
+
## Dependency
|
|
12
|
+
|
|
13
|
+
The library is available via npm. To import `typescript-wallet-sdk` library you
|
|
14
|
+
need to add it as a dependency to your code:
|
|
15
|
+
|
|
16
|
+
yarn:
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
yarn add @stellar/typescript-wallet-sdk
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
npm:
|
|
23
|
+
|
|
24
|
+
```shell
|
|
25
|
+
npm install @stellar/typescript-wallet-sdk
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Introduction
|
|
29
|
+
|
|
30
|
+
Here's a small example creating main wallet class with default configuration
|
|
31
|
+
connected to testnet network:
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
let wallet = walletSdk.Wallet.TestNet();
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
It should later be re-used across the code, as it has access to various useful
|
|
38
|
+
children classes. For example, you can authenticate with the `testanchor` as
|
|
39
|
+
simple as:
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
const authKey = SigningKeypair.fromSecret("my secret key");
|
|
43
|
+
const anchor = wallet.anchor({ homeDomain: "testanchor.stellar.org" });
|
|
44
|
+
const sep10 = await anchor.sep10();
|
|
45
|
+
|
|
46
|
+
const authToken = await sep10.authenticate({ accountKp: authKey });
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Read
|
|
50
|
+
[full wallet guide](https://developers.stellar.org/docs/category/build-a-wallet-with-the-wallet-sdk)
|
|
51
|
+
for more info
|
package/lib/bundle.js
CHANGED
|
@@ -62612,7 +62612,7 @@ module.exports = axios;
|
|
|
62612
62612
|
/***/ ((module) => {
|
|
62613
62613
|
|
|
62614
62614
|
"use strict";
|
|
62615
|
-
module.exports = JSON.parse('{"name":"@stellar/typescript-wallet-sdk","version":"1.4.
|
|
62615
|
+
module.exports = JSON.parse('{"name":"@stellar/typescript-wallet-sdk","version":"1.4.1","engines":{"node":">=18"},"browser":"./lib/bundle_browser.js","main":"./lib/bundle.js","types":"./lib/index.d.ts","license":"Apache-2.0","private":false,"devDependencies":{"@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.23.3","@stellar/prettier-config":"^1.0.1","@stellar/tsconfig":"^1.0.2","@types/jest":"^29.4.0","@types/lodash":"^4.14.194","@types/sinon":"^10.0.15","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","babel-jest":"^29.4.1","crypto-browserify":"^3.12.0","dotenv":"^16.3.1","eslint":"^8.51.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsdoc":"^46.8.2","husky":"^8.0.0","jest":"^29.4.1","lint-staged":"^14.0.1","npm-run-all":"^4.1.5","prettier":"^2.0.5","pretty-quick":"^2.0.1","process":"^0.11.10","sinon":"^15.1.0","stream-browserify":"^3.0.0","ts-jest":"^29.0.5","ts-loader":"^9.4.2","ts-node":"^10.9.1","tslib":"^2.5.0","typescript":"^5.0.4","webpack":"^5.83.1","webpack-cli":"^5.1.1"},"dependencies":{"@stellar/stellar-sdk":"^11.1.0","axios":"^1.4.0","https-browserify":"^1.0.0","jws":"^4.0.0","lodash":"^4.17.21","query-string":"^7.1.3","stream-http":"^3.2.0","url":"^0.11.0","util":"^0.12.5","utility-types":"^3.10.0","vm-browserify":"^1.1.2"},"scripts":{"test":"jest --watchAll","test:ci":"jest --ci","test:recovery:ci":"jest --config jest.integration.config.js recovery.test.ts --ci","test:anchorplatform:ci":"yarn jest --config jest.integration.config.js anchorplatform.test.ts --ci","build:web":"webpack --config webpack.config.js","build:node":"webpack --env NODE=true --config webpack.config.js","build":"run-p build:web build:node","example:sep24":"ts-node examples/sep24/sep24.ts"}}');
|
|
62616
62616
|
|
|
62617
62617
|
/***/ }),
|
|
62618
62618
|
|
package/lib/bundle_browser.js
CHANGED
|
@@ -59549,7 +59549,7 @@ module.exports = axios;
|
|
|
59549
59549
|
/***/ ((module) => {
|
|
59550
59550
|
|
|
59551
59551
|
"use strict";
|
|
59552
|
-
module.exports = JSON.parse('{"name":"@stellar/typescript-wallet-sdk","version":"1.4.
|
|
59552
|
+
module.exports = JSON.parse('{"name":"@stellar/typescript-wallet-sdk","version":"1.4.1","engines":{"node":">=18"},"browser":"./lib/bundle_browser.js","main":"./lib/bundle.js","types":"./lib/index.d.ts","license":"Apache-2.0","private":false,"devDependencies":{"@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.23.3","@stellar/prettier-config":"^1.0.1","@stellar/tsconfig":"^1.0.2","@types/jest":"^29.4.0","@types/lodash":"^4.14.194","@types/sinon":"^10.0.15","@typescript-eslint/eslint-plugin":"^6.7.5","@typescript-eslint/parser":"^6.7.5","babel-jest":"^29.4.1","crypto-browserify":"^3.12.0","dotenv":"^16.3.1","eslint":"^8.51.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsdoc":"^46.8.2","husky":"^8.0.0","jest":"^29.4.1","lint-staged":"^14.0.1","npm-run-all":"^4.1.5","prettier":"^2.0.5","pretty-quick":"^2.0.1","process":"^0.11.10","sinon":"^15.1.0","stream-browserify":"^3.0.0","ts-jest":"^29.0.5","ts-loader":"^9.4.2","ts-node":"^10.9.1","tslib":"^2.5.0","typescript":"^5.0.4","webpack":"^5.83.1","webpack-cli":"^5.1.1"},"dependencies":{"@stellar/stellar-sdk":"^11.1.0","axios":"^1.4.0","https-browserify":"^1.0.0","jws":"^4.0.0","lodash":"^4.17.21","query-string":"^7.1.3","stream-http":"^3.2.0","url":"^0.11.0","util":"^0.12.5","utility-types":"^3.10.0","vm-browserify":"^1.1.2"},"scripts":{"test":"jest --watchAll","test:ci":"jest --ci","test:recovery:ci":"jest --config jest.integration.config.js recovery.test.ts --ci","test:anchorplatform:ci":"yarn jest --config jest.integration.config.js anchorplatform.test.ts --ci","build:web":"webpack --config webpack.config.js","build:node":"webpack --env NODE=true --config webpack.config.js","build":"run-p build:web build:node","example:sep24":"ts-node examples/sep24/sep24.ts"}}');
|
|
59553
59553
|
|
|
59554
59554
|
/***/ }),
|
|
59555
59555
|
|