@anywalletkit/wallet-near 0.1.3 → 0.1.4
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 +11 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
# @anywalletkit/wallet-near
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@anywalletkit/wallet-near)
|
|
4
|
+
|
|
3
5
|
NEAR accounts at `m/44'/397'/i'` (SLIP-10 ed25519 — the NEAR Wallet / `near-seed-phrase`
|
|
4
6
|
path; index 0 is what every NEAR wallet derives), pinned by golden vectors in
|
|
5
7
|
`@anywalletkit/conformance`. No near-api-js: borsh is hand-written against the nearcore
|
|
6
8
|
schema (byte-for-byte checked against `@near-js/transactions`), the node answers JSON-RPC,
|
|
7
9
|
the account signs `sha256(borsh(tx))` with noble ed25519 and broadcasts with `send_tx`.
|
|
8
10
|
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @anywalletkit/wallet-near
|
|
15
|
+
# or: pnpm add @anywalletkit/wallet-near · yarn add @anywalletkit/wallet-near
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
On npm: [@anywalletkit/wallet-near](https://www.npmjs.com/package/@anywalletkit/wallet-near), published from the [release workflow](https://github.com/ultratestbro/anywalletkit/blob/main/RELEASING.md) with provenance.
|
|
19
|
+
|
|
9
20
|
```ts
|
|
10
21
|
import WalletManagerNear from '@anywalletkit/wallet-near'
|
|
11
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anywalletkit/wallet-near",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "NEAR wallet for Any Wallet Kit: SLIP-10 m/44'/397'/i' accounts (NEAR Wallet path), implicit and named accounts, NEAR and NEP-141 transfers over JSON-RPC, hand-written borsh, NEP-413 message signing.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.anywallet.tech",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"@noble/curves": "^2.4.0",
|
|
48
48
|
"@noble/hashes": "^2.4.0",
|
|
49
49
|
"@scure/base": "^2.4.0",
|
|
50
|
-
"@anywalletkit/core": "0.3.
|
|
50
|
+
"@anywalletkit/core": "0.3.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"vitest": "^5.0.3",
|
|
54
|
-
"@anywalletkit/
|
|
55
|
-
"@anywalletkit/
|
|
54
|
+
"@anywalletkit/protocol-swap2-near-intents": "0.1.4",
|
|
55
|
+
"@anywalletkit/conformance": "0.3.2"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public",
|