ci / gate (push) Failing after 1m25s
Every open wallet with a phrase now shows its NEAR Intents account. Its NEP-649 key is derived from the seed on each look and dropped; only the public side leaves Rust. The account's name is a function of that key, b<base32 of the handle's first 10 bytes>.blackbeard-observer.near, so the sponsor (#81) creates it there, a restored phrase finds it again with nothing stored, and the leading b sorts it onto shard 8, which our nodes serve. The panel says whether the account exists and whether this wallet's key is on it, and shows its NEAR for gas and every token it holds inside Intents (one mt_batch_balance_of over the registry's Intents ids). The logic is wallet_core::near::account_summary, written against the NearRpc port and tested with a fake. The command is a shim, and the app now holds the shard-routed client from #73 and near.toml, which a file in the data directory can replace. Corrected on the way: the asset registry said no post-quantum asset is on Intents. QTC has been, as nep141:qtc.omft.near, since early October. Quantus's native QTC now maps to it, the token-list fixture gains 1Click's QTC entry, and the "unmapped asset" tests use Planck's token instead. The readme no longer says the swap module waits for Quantus's MPC fork. Verified in a dev run with the dev-phrase fixture: the panel showed bffbod6n6ey7jdk4j.blackbeard-observer.near as not created yet. Refs #74 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NUx7SPonBnB3ofU4mH41WT
42 lines
1.3 KiB
TypeScript
42 lines
1.3 KiB
TypeScript
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { Amount } from "./Amount";
|
|
import type { IntentsBalance } from "./IntentsBalance";
|
|
|
|
/**
|
|
* The open wallet's NEAR Intents account (blackbeard/wallet #74): the
|
|
* NEAR account its phrase's ML-DSA-65 key (NEP-649) controls, named by the
|
|
* sponsor from that key (#81), and what it holds. No secret: the key is
|
|
* public, and the account is derived again from the phrase on every look.
|
|
*/
|
|
export type NearAccountSummary = { wallet: string,
|
|
/**
|
|
* `b<…>.blackbeard-observer.near`, whether or not it exists yet.
|
|
*/
|
|
account_id: string,
|
|
/**
|
|
* `ml-dsa-65:<base58>`: the key that controls it.
|
|
*/
|
|
public_key: string,
|
|
/**
|
|
* The NEP-649 path the key is derived at.
|
|
*/
|
|
derivation_path: string,
|
|
/**
|
|
* Whether the account exists on NEAR.
|
|
*/
|
|
exists: boolean,
|
|
/**
|
|
* Whether this wallet's key is one of the account's access keys. False
|
|
* for an existing account means it is not this wallet's to use.
|
|
*/
|
|
key_on_account: boolean,
|
|
/**
|
|
* Native NEAR, which pays the account's gas. `None` until it exists.
|
|
*/
|
|
gas: Amount | null,
|
|
/**
|
|
* What the account holds inside NEAR Intents, by the assets the wallet
|
|
* knows; nonzero balances only.
|
|
*/
|
|
intents: Array<IntentsBalance>, };
|