@defdone/annon 0.1.0-alpha.0 → 0.1.0-alpha.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/CHANGELOG.md +7 -0
- package/README.md +18 -8
- package/dist/browser/login-bundle.js +112 -77
- package/dist/browser/login.js +45 -6
- package/dist/browser/purchase-bundle.js +45 -45
- package/dist/node/adapter.js +0 -1
- package/dist/node/browser-login.d.ts +7 -0
- package/dist/node/browser-login.js +9 -2
- package/dist/node/signer-wallet.js +3 -1
- package/dist/pay/base.js +36 -43
- package/dist/wallet/account-only.d.ts +1 -1
- package/dist/wallet/account-only.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @defdone/annon
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Search Base for a payment in eth_getLogs chunks of at most 10,000 blocks, so a purchase whose search window outgrows the common RPC range limit still reaches unlock instead of failing with a transport error on every retry.
|
|
8
|
+
- Browser login offers Meteor Wallet and HOT Wallet for NEAR instead of the retired MyNearWallet, which no longer connects to apps. HOT is offered for near:mainnet only, and unknown NEAR chains are refused. The login page CSP connects only to the page, the selector's NEAR RPC and HOT's relay, and frames only the HOT widget. Browser NEP-413 requests no longer include a callback URL, since both wallets return signatures to the page. The bundled Meteor SDK no longer logs its generated key pair, and Meteor sign-out removes that key.
|
|
9
|
+
|
|
3
10
|
## 0.1.0-alpha.0
|
|
4
11
|
|
|
5
12
|
First public alpha, published on the npm `alpha` tag.
|
package/README.md
CHANGED
|
@@ -308,7 +308,7 @@ in the wallet.
|
|
|
308
308
|
| Wallet | How | Signing supported |
|
|
309
309
|
| --- | --- | --- |
|
|
310
310
|
| EVM | Injected EIP-1193 wallet on Base | `personal_sign` for the SDK's authorization texts, `eth_signTypedData_v4` for the exact EIP-3009/x402 payload |
|
|
311
|
-
| NEAR |
|
|
311
|
+
| NEAR | Meteor Wallet (extension or web popup; mainnet and testnet) or HOT Wallet (mainnet only) through Wallet Selector, picked on the page; account-only sign-in (no `contractId`, no method list) | NEP-413 and `signAndSendTransaction`, including the required deposit `"1"` on `ft_transfer_call` |
|
|
312
312
|
|
|
313
313
|
Browser and remote EVM split-deployment transactions and browser and remote Solana signing are not
|
|
314
314
|
included; the local-key adapters remain available for those workflows.
|
|
@@ -322,7 +322,10 @@ chain on the page before approving in the wallet.
|
|
|
322
322
|
- In open mode, a same-origin POST bootstraps the capability once into the opened page, then the
|
|
323
323
|
bootstrap route closes. With `--no-open`, bootstrap is disabled and the capability exists only in
|
|
324
324
|
the printed URL fragment. It is never passed to the browser launcher in argv.
|
|
325
|
-
- Bundled scripts, a restrictive CSP, no framing, `no-store` and `no-referrer` are enforced.
|
|
325
|
+
- Bundled scripts, a restrictive CSP, no framing, `no-store` and `no-referrer` are enforced. The page
|
|
326
|
+
connects only to itself, the Wallet Selector's NEAR RPC (`free.rpc.fastnear.com` on mainnet,
|
|
327
|
+
`test.rpc.fastnear.com` on testnet, fixed in the page and independent of your configured RPC) and
|
|
328
|
+
HOT's relay `h4n.app`, and frames only `hot-labs.org`.
|
|
326
329
|
- Actions expire after two minutes and are verified once. Identical popup and opener result
|
|
327
330
|
submissions return the same outcome.
|
|
328
331
|
- Sessions close after the command or after five idle minutes. Active approvals keep their own
|
|
@@ -335,12 +338,19 @@ chain on the page before approving in the wallet.
|
|
|
335
338
|
the printed port with `ssh -L PORT:127.0.0.1:PORT host` and open that exact URL locally. Keep the
|
|
336
339
|
capability URL private.
|
|
337
340
|
|
|
338
|
-
**NEAR
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
**NEAR wallets.** MyNearWallet is retired and no longer connects to apps, so the page offers Meteor
|
|
342
|
+
Wallet and HOT Wallet. HOT's Wallet Selector module sends no network with its requests, so the page
|
|
343
|
+
offers it for `near:mainnet` only and refuses it, before loading it, for any other network; requests
|
|
344
|
+
for chains other than `near:mainnet` and `near:testnet` are refused. Both return results to the page itself: Meteor through its extension or a
|
|
345
|
+
popup on `wallet.meteorwallet.app`, HOT through its extension or the HOT widget, which the page
|
|
346
|
+
frames from `hot-labs.org` (the only `frame-src` the CSP allows) and which exchanges the request
|
|
347
|
+
through HOT's relay at `h4n.app`. The page removes the capability from browser history immediately,
|
|
348
|
+
and no capability is sent to a wallet. NEP-413 requests carry no callback URL, so the signed hash
|
|
349
|
+
covers the message, nonce and recipient, as [NEP-413](https://github.com/near/NEPs/blob/master/neps/nep-0413.md)
|
|
350
|
+
specifies. Meteor's SDK creates a local key pair during sign-in and sends its public key to the
|
|
351
|
+
wallet; the page never names a contract or methods. The secret stays in the localStorage of the
|
|
352
|
+
session's own `127.0.0.1` origin, is never logged (the bundled SDK's key-pair log is removed) and
|
|
353
|
+
is removed when the page signs out of Meteor before a new sign-in.
|
|
344
354
|
|
|
345
355
|
**What is saved.** Only public identity, network and configuration go into the config file. Login
|
|
346
356
|
works before you choose a contract; NEAR ownership checks use a public mainnet or testnet RPC by
|