@chainvue/verus-sdk 0.13.0 → 0.14.0
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 +21 -8
- package/dist/VerusSDK.d.ts +34 -1
- package/dist/VerusSDK.d.ts.map +1 -1
- package/dist/VerusSDK.js +38 -1
- package/dist/VerusSDK.js.map +1 -1
- package/dist/bundle.js +1009 -122
- package/dist/currency/definition.d.ts +181 -0
- package/dist/currency/definition.d.ts.map +1 -0
- package/dist/currency/definition.js +396 -0
- package/dist/currency/definition.js.map +1 -0
- package/dist/currency/index.d.ts +17 -7
- package/dist/currency/index.d.ts.map +1 -1
- package/dist/currency/index.js +32 -9
- package/dist/currency/index.js.map +1 -1
- package/dist/currency/launch.d.ts +43 -0
- package/dist/currency/launch.d.ts.map +1 -0
- package/dist/currency/launch.js +96 -0
- package/dist/currency/launch.js.map +1 -0
- package/dist/currency/outputs.d.ts +40 -0
- package/dist/currency/outputs.d.ts.map +1 -0
- package/dist/currency/outputs.js +296 -0
- package/dist/currency/outputs.js.map +1 -0
- package/dist/currency/reserveTransfer.d.ts +36 -0
- package/dist/currency/reserveTransfer.d.ts.map +1 -0
- package/dist/currency/reserveTransfer.js +104 -0
- package/dist/currency/reserveTransfer.js.map +1 -0
- package/dist/currency/wire.d.ts +76 -0
- package/dist/currency/wire.d.ts.map +1 -0
- package/dist/currency/wire.js +252 -0
- package/dist/currency/wire.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/transfer/index.d.ts.map +1 -1
- package/dist/transfer/index.js +38 -14
- package/dist/transfer/index.js.map +1 -1
- package/dist/types/index.d.ts +27 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Offline Verus transaction signing. Bring UTXOs and a WIF; get back signed
|
|
4
4
|
transaction hex — no daemon, no network. Native transfers, token/currency
|
|
5
|
-
transfers, conversions,
|
|
6
|
-
VerusCoin's own primitives, so the wire
|
|
5
|
+
transfers, conversions, currency creation (token / basket / NFT), and the full
|
|
6
|
+
VerusID lifecycle. Serialization uses VerusCoin's own primitives, so the wire
|
|
7
|
+
format is the daemon's, not a reimpl.
|
|
7
8
|
|
|
8
9
|
```bash
|
|
9
10
|
npm i @chainvue/verus-sdk
|
|
@@ -31,7 +32,8 @@ const { signedTx, txid, fee } = sdk.transfer({
|
|
|
31
32
|
## What it does
|
|
32
33
|
|
|
33
34
|
- **Transfers** — `transfer`, `transferToken`, `convert`, and `sendCurrency`
|
|
34
|
-
(
|
|
35
|
+
(multi-output / cross-chain sends, conversions, pre-convert, and mint / burn of
|
|
36
|
+
a centralized currency).
|
|
35
37
|
- **VerusID** — `createCommitment` → `registerIdentity` (incl. sub-IDs), then
|
|
36
38
|
`updateIdentity` / `lockIdentity` / `unlockIdentity` / `revokeIdentity` /
|
|
37
39
|
`recoverIdentity`, plus `signMessage` / `verifyMessage`. Multisig (m-of-n)
|
|
@@ -41,10 +43,20 @@ const { signedTx, txid, fee } = sdk.transfer({
|
|
|
41
43
|
VerusID sell / buy / swap (`build*IdentityOffer` / `complete*IdentityOffer`).
|
|
42
44
|
Native coin, tokens, and identities, in every combination — plus
|
|
43
45
|
`buildReclaimOffer` to cancel an unaccepted offer and reclaim the funds.
|
|
44
|
-
- **
|
|
45
|
-
`
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
- **Currencies** — build and sign a full currency launch offline:
|
|
47
|
+
`buildCurrencyDefinitionScript` for the definition output (token,
|
|
48
|
+
fractional basket, or NFT), `buildCurrencyLaunchTransaction` for the complete
|
|
49
|
+
broadcastable transaction (all seven outputs, byte-equivalent to the daemon's
|
|
50
|
+
`definecurrency`), and `buildReserveTransferOutput` to pre-convert / invest in
|
|
51
|
+
a launching currency. See [docs/currency.md](./docs/currency.md).
|
|
52
|
+
- **Helpers** — `VerusSDK.generateWif()`, `await deriveAddress(wif)` (async),
|
|
53
|
+
`deriveIdentityAddress(name, parent?)`, `validateAddress` / `validateWif`
|
|
54
|
+
(→ `{ valid, error? }`); `utils.summarizeSignedTransaction(hex, network)`
|
|
55
|
+
decodes a signed tx (txid, spent outpoints, addressed outputs) for your ledger.
|
|
56
|
+
- **Typed errors** — every boundary failure is a `VerusError` subclass
|
|
57
|
+
(`InsufficientFundsError`, `InvalidWifError`, `InvalidAddressError`,
|
|
58
|
+
`InvalidNameError`, `InvalidAmountError`, `TransactionBuildError`), so you can
|
|
59
|
+
branch on the error type instead of parsing messages.
|
|
48
60
|
|
|
49
61
|
Every built transfer is re-validated against its intent — per-currency value
|
|
50
62
|
conservation, change to the declared address — before the hex is returned. A
|
|
@@ -69,9 +81,10 @@ Per-area guides, plus runnable offline examples in [`examples/`](./examples):
|
|
|
69
81
|
| Guide | What's in it |
|
|
70
82
|
|---|---|
|
|
71
83
|
| [amounts](./docs/amounts.md) | the money model — `bigint` satoshis, `parseSats`/`toCoins`, the one float64 boundary |
|
|
72
|
-
| [transfers](./docs/transfers.md) | `transfer` / `transferToken` / `convert` / `sendCurrency`, UTXOs, change, re-validation |
|
|
84
|
+
| [transfers](./docs/transfers.md) | `transfer` / `transferToken` / `convert` / `sendCurrency`, conversions, pre-convert, mint / burn, UTXOs, change, re-validation |
|
|
73
85
|
| [VerusID lifecycle](./docs/identity.md) | commit → register, update, lock/unlock, revoke/recover, sign/verify messages |
|
|
74
86
|
| [marketplace offers](./docs/offers.md) | atomic-swap model, the maker/taker halves, currency↔currency and VerusID sell/buy/swap |
|
|
87
|
+
| [currencies](./docs/currency.md) | define + launch a currency offline (token / fractional basket / NFT), the full seven-output launch transaction, and pre-converting into a launching currency |
|
|
75
88
|
| [signing & wire format](./docs/signing-and-wire.md) | why the bytes are the daemon's, the self-contained bundle, the proof rings |
|
|
76
89
|
| [architecture](./docs/architecture.md) | the fork boundary, the two assemblers, what's unrepresentable vs checked, the differential harness |
|
|
77
90
|
| [testing](./docs/testing.md) | the gate, the plain-`node` rule, the live-proof ring model |
|
package/dist/VerusSDK.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import type { Network } from './constants/index.js';
|
|
8
8
|
import type { VerusSDKConfig, TransferParams, TransferTokenParams, ConvertParams, SendCurrencyParams, SendCurrencyResult, BuildAndSignParams, SignedTxResult, CreateCommitmentParams, CreateCommitmentResult, RegisterIdentityParams, RegisterIdentityResult, UpdateIdentityParams, UpdateIdentityResult, LockIdentityParams, UnlockIdentityParams, RevokeIdentityParams, RecoverIdentityParams, DefineCurrencyParams, DefineCurrencyResult, SignMessageParams, SignMessageResult, VerifyMessageParams, VerifyMessageResult } from './types/index.js';
|
|
9
9
|
import type { BuildOfferFundingParams, BuildOfferFundingResult, BuildOfferParams, BuildOfferResult, CompleteOfferParams, CompleteOfferResult, ReclaimOfferParams, ReclaimOfferResult, BuildSellIdentityOfferParams, CompleteSellIdentityOfferParams, CompleteSellIdentityOfferResult, BuildBuyIdentityOfferParams, CompleteBuyIdentityOfferParams, CompleteBuyIdentityOfferResult, BuildSwapIdentityOfferParams, CompleteSwapIdentityOfferParams, CompleteSwapIdentityOfferResult } from './offers/public.js';
|
|
10
|
+
import * as currencyModule from './currency/index.js';
|
|
11
|
+
import type { CurrencyDefinitionInput } from './currency/definition.js';
|
|
10
12
|
import type { MultisigIdentityUpdateParams, MultisigIdentityUpdateResult, AddIdentitySignatureParams, AddIdentitySignatureResult } from './identity/multisig.js';
|
|
11
13
|
export declare class VerusSDK {
|
|
12
14
|
readonly network: Network;
|
|
@@ -46,8 +48,39 @@ export declare class VerusSDK {
|
|
|
46
48
|
addIdentitySignature(params: AddIdentitySignatureParams): AddIdentitySignatureResult;
|
|
47
49
|
/** Recover an identity (requires recovery authority key) */
|
|
48
50
|
recoverIdentity(params: RecoverIdentityParams): UpdateIdentityResult;
|
|
49
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* Assemble the identity-spend + currency-definition output for a currency.
|
|
53
|
+
*
|
|
54
|
+
* A partial helper — NOT a full launch. For a complete, broadcastable launch
|
|
55
|
+
* built entirely offline (all seven outputs), use
|
|
56
|
+
* {@link VerusSDK.buildCurrencyLaunchTransaction}. To build only the definition
|
|
57
|
+
* output script, use {@link VerusSDK.buildCurrencyDefinitionScript}.
|
|
58
|
+
*/
|
|
50
59
|
defineCurrency(params: DefineCurrencyParams): DefineCurrencyResult;
|
|
60
|
+
/**
|
|
61
|
+
* Serialize a currency definition (token or fractional basket) to its
|
|
62
|
+
* EVAL_CURRENCY_DEFINITION output script — offline, byte-equivalent to the
|
|
63
|
+
* daemon's `definecurrency`. For building/inspecting/verifying the definition
|
|
64
|
+
* script; a full on-chain launch is a daemon operation (see `defineCurrency`).
|
|
65
|
+
*/
|
|
66
|
+
buildCurrencyDefinitionScript(input: CurrencyDefinitionInput): string;
|
|
67
|
+
/**
|
|
68
|
+
* Build all seven output scripts of a currency-definition transaction offline,
|
|
69
|
+
* byte-equivalent to `definecurrency` — identity update, currency definition,
|
|
70
|
+
* import, notarization (with currency state), export, reserve deposit, and
|
|
71
|
+
* change. Needs the defining identity (from a lite node's `getidentity`), the
|
|
72
|
+
* current chain tip height, and the chain's currency launch fee. Produces the
|
|
73
|
+
* output scripts; funding, the identity input, and signing are assembled
|
|
74
|
+
* separately (see `CurrencyLaunchContext`).
|
|
75
|
+
*/
|
|
76
|
+
buildCurrencyLaunchOutputs(input: CurrencyDefinitionInput, context: currencyModule.CurrencyLaunchContext): currencyModule.CurrencyLaunchOutputs;
|
|
77
|
+
/**
|
|
78
|
+
* Build and sign a full, broadcastable currency-definition transaction offline:
|
|
79
|
+
* the seven byte-locked outputs, funded from the supplied UTXOs, with the
|
|
80
|
+
* defining identity spent under primary authority. Hand the signed hex to any
|
|
81
|
+
* node to launch the currency. See `CurrencyLaunchTxParams`.
|
|
82
|
+
*/
|
|
83
|
+
buildCurrencyLaunchTransaction(params: currencyModule.CurrencyLaunchTxParams): currencyModule.CurrencyLaunchTxResult;
|
|
51
84
|
/** Sign a message with a VerusID identity signature */
|
|
52
85
|
signMessage(params: SignMessageParams): SignMessageResult;
|
|
53
86
|
/** Verify a VerusID message signature */
|
package/dist/VerusSDK.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerusSDK.d.ts","sourceRoot":"","sources":["../src/VerusSDK.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"VerusSDK.d.ts","sourceRoot":"","sources":["../src/VerusSDK.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EACV,cAAc,EACd,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+149,47 @@ class VerusSDK {
|
|
|
149
149
|
}, this.network, 'recover');
|
|
150
150
|
}
|
|
151
151
|
// ─── Currency ──────────────────────────────────────
|
|
152
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Assemble the identity-spend + currency-definition output for a currency.
|
|
154
|
+
*
|
|
155
|
+
* A partial helper — NOT a full launch. For a complete, broadcastable launch
|
|
156
|
+
* built entirely offline (all seven outputs), use
|
|
157
|
+
* {@link VerusSDK.buildCurrencyLaunchTransaction}. To build only the definition
|
|
158
|
+
* output script, use {@link VerusSDK.buildCurrencyDefinitionScript}.
|
|
159
|
+
*/
|
|
153
160
|
defineCurrency(params) {
|
|
154
161
|
return currencyModule.defineCurrency(params, this.network);
|
|
155
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Serialize a currency definition (token or fractional basket) to its
|
|
165
|
+
* EVAL_CURRENCY_DEFINITION output script — offline, byte-equivalent to the
|
|
166
|
+
* daemon's `definecurrency`. For building/inspecting/verifying the definition
|
|
167
|
+
* script; a full on-chain launch is a daemon operation (see `defineCurrency`).
|
|
168
|
+
*/
|
|
169
|
+
buildCurrencyDefinitionScript(input) {
|
|
170
|
+
return currencyModule.buildCurrencyDefinitionScript(input);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Build all seven output scripts of a currency-definition transaction offline,
|
|
174
|
+
* byte-equivalent to `definecurrency` — identity update, currency definition,
|
|
175
|
+
* import, notarization (with currency state), export, reserve deposit, and
|
|
176
|
+
* change. Needs the defining identity (from a lite node's `getidentity`), the
|
|
177
|
+
* current chain tip height, and the chain's currency launch fee. Produces the
|
|
178
|
+
* output scripts; funding, the identity input, and signing are assembled
|
|
179
|
+
* separately (see `CurrencyLaunchContext`).
|
|
180
|
+
*/
|
|
181
|
+
buildCurrencyLaunchOutputs(input, context) {
|
|
182
|
+
return currencyModule.buildCurrencyLaunchOutputs(input, context);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Build and sign a full, broadcastable currency-definition transaction offline:
|
|
186
|
+
* the seven byte-locked outputs, funded from the supplied UTXOs, with the
|
|
187
|
+
* defining identity spent under primary authority. Hand the signed hex to any
|
|
188
|
+
* node to launch the currency. See `CurrencyLaunchTxParams`.
|
|
189
|
+
*/
|
|
190
|
+
buildCurrencyLaunchTransaction(params) {
|
|
191
|
+
return currencyModule.buildCurrencyLaunchTransaction(params, this.network);
|
|
192
|
+
}
|
|
156
193
|
// ─── Message Signing ───────────────────────────────
|
|
157
194
|
/** Sign a message with a VerusID identity signature */
|
|
158
195
|
signMessage(params) {
|
package/dist/VerusSDK.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerusSDK.js","sourceRoot":"","sources":["../src/VerusSDK.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,oEAAsD;AACtD,oEAAsD;AACtD,kEAAoD;AACpD,oEAAsD;
|
|
1
|
+
{"version":3,"file":"VerusSDK.js","sourceRoot":"","sources":["../src/VerusSDK.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,oEAAsD;AACtD,oEAAsD;AACtD,kEAAoD;AACpD,oEAAsD;AAEtD,4DAA8C;AAC9C,iEAAmD;AACnD,uEAAyD;AAQzD,MAAa,QAAQ;IAGnB,YAAY,MAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAChC,CAAC;IAED,sDAAsD;IAEtD,kDAAkD;IAClD,QAAQ,CAAC,MAAsB;QAC7B,OAAO,cAAc,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACvD,CAAC;IAED,8BAA8B;IAC9B,aAAa,CAAC,MAA2B;QACvC,OAAO,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;I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