@greenlandai/sdk 0.5.5 → 0.5.6
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/dist/index.cjs +8 -3
- package/package.json +1 -1
- package/src/joulepai.js +8 -3
package/dist/index.cjs
CHANGED
|
@@ -4313,7 +4313,10 @@ var JoulepaiSubmodule = class {
|
|
|
4313
4313
|
* top-level all_anchored (bool). status is the LEDGER state of the leg; txid is written at BROADCAST, not
|
|
4314
4314
|
* confirmation — a leg can be settled with txid null (not broadcast yet, OR the anchor dead-lettered) or
|
|
4315
4315
|
* carry a txid not yet on chain. anchor is the state to act on: queued | confirming | confirmed → poll
|
|
4316
|
-
* (~30 s; txid may be null while queued); anchored →
|
|
4316
|
+
* (~30 s; txid may be null while queued); anchored → the leg's txid IS the chain proof: check it yourself
|
|
4317
|
+
* on any BSV block explorer (e.g. WhatsOnChain, whatsonchain.com/tx/<txid>) or with the MCP `verify_proof`
|
|
4318
|
+
* tool (txid in → chain_status / chain_confirmed). The legs carry NO transfer id, so
|
|
4319
|
+
* /transfer/{transfer_id}/proof is not reachable from this view;
|
|
4317
4320
|
* failed | cancelled → the ledger leg settled but the anchor dead-lettered and will NOT reach the chain by
|
|
4318
4321
|
* itself (escalate); none → no anchor attempted; unknown → a queue status the view does not recognise. A null
|
|
4319
4322
|
* txid on a fresh read is NOT a missing or failed leg — read anchor. The trade-WIDE view — transferStatus()
|
|
@@ -4424,8 +4427,10 @@ var JoulepaiSubmodule = class {
|
|
|
4424
4427
|
* never a parameter). Read-only, free. Returns { usdc_live, scanner_cursor_block, minimum_usdc,
|
|
4425
4428
|
* deposits[], held_below_min_total_usdc, needed_to_credit_usdc, note }; each deposit carries { tx_hash,
|
|
4426
4429
|
* block_number, usdc_amount, status, joules_credited, fee_taken, created_at, meaning }. A deposit whose
|
|
4427
|
-
* block_number is ABOVE scanner_cursor_block has not been reached yet (normal lag), not lost.
|
|
4428
|
-
*
|
|
4430
|
+
* block_number is ABOVE scanner_cursor_block has not been reached yet (normal lag), not lost. status is one
|
|
4431
|
+
* of credited · held_below_min · held_above_max · swept · held_no_fund (the deposit reached the minimum but the platform's funding wallet could not cover the joules at that moment — held, nothing moved, nothing lost; credited AUTOMATICALLY once platform funding is restored — the scanner retries it every minute — no action needed from you).
|
|
4432
|
+
* Only credited has occurred on real funds so far. 503 when USDC-on-Base is not live. Parity with the MCP
|
|
4433
|
+
* `deposit_status` tool. */
|
|
4429
4434
|
depositStatus() {
|
|
4430
4435
|
return this._t.request(this._base, "GET", "/wallet/deposit-status", {});
|
|
4431
4436
|
}
|
package/package.json
CHANGED
package/src/joulepai.js
CHANGED
|
@@ -61,7 +61,10 @@ export class JoulepaiSubmodule {
|
|
|
61
61
|
* top-level all_anchored (bool). status is the LEDGER state of the leg; txid is written at BROADCAST, not
|
|
62
62
|
* confirmation — a leg can be settled with txid null (not broadcast yet, OR the anchor dead-lettered) or
|
|
63
63
|
* carry a txid not yet on chain. anchor is the state to act on: queued | confirming | confirmed → poll
|
|
64
|
-
* (~30 s; txid may be null while queued); anchored →
|
|
64
|
+
* (~30 s; txid may be null while queued); anchored → the leg's txid IS the chain proof: check it yourself
|
|
65
|
+
* on any BSV block explorer (e.g. WhatsOnChain, whatsonchain.com/tx/<txid>) or with the MCP `verify_proof`
|
|
66
|
+
* tool (txid in → chain_status / chain_confirmed). The legs carry NO transfer id, so
|
|
67
|
+
* /transfer/{transfer_id}/proof is not reachable from this view;
|
|
65
68
|
* failed | cancelled → the ledger leg settled but the anchor dead-lettered and will NOT reach the chain by
|
|
66
69
|
* itself (escalate); none → no anchor attempted; unknown → a queue status the view does not recognise. A null
|
|
67
70
|
* txid on a fresh read is NOT a missing or failed leg — read anchor. The trade-WIDE view — transferStatus()
|
|
@@ -152,8 +155,10 @@ export class JoulepaiSubmodule {
|
|
|
152
155
|
* never a parameter). Read-only, free. Returns { usdc_live, scanner_cursor_block, minimum_usdc,
|
|
153
156
|
* deposits[], held_below_min_total_usdc, needed_to_credit_usdc, note }; each deposit carries { tx_hash,
|
|
154
157
|
* block_number, usdc_amount, status, joules_credited, fee_taken, created_at, meaning }. A deposit whose
|
|
155
|
-
* block_number is ABOVE scanner_cursor_block has not been reached yet (normal lag), not lost.
|
|
156
|
-
*
|
|
158
|
+
* block_number is ABOVE scanner_cursor_block has not been reached yet (normal lag), not lost. status is one
|
|
159
|
+
* of credited · held_below_min · held_above_max · swept · held_no_fund (the deposit reached the minimum but the platform's funding wallet could not cover the joules at that moment — held, nothing moved, nothing lost; credited AUTOMATICALLY once platform funding is restored — the scanner retries it every minute — no action needed from you).
|
|
160
|
+
* Only credited has occurred on real funds so far. 503 when USDC-on-Base is not live. Parity with the MCP
|
|
161
|
+
* `deposit_status` tool. */
|
|
157
162
|
depositStatus() { return this._t.request(this._base, "GET", "/wallet/deposit-status", {}); }
|
|
158
163
|
|
|
159
164
|
/** The in-band funding step for a joule shortfall — NEVER a URL to visit (operator lock). USDC on Base is
|