mainnet-js 1.1.7 → 1.1.8

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.
@@ -1,623 +0,0 @@
1
- /**
2
- * A mapping of identifiers to URIs associated with an entity. URI identifiers
3
- * may be widely-standardized or registry-specific. Values must be valid URIs,
4
- * including a protocol prefix – e.g. `https://` or `ipfs://`., Clients are only
5
- * required to support `https` and `ipfs` URIs, but any scheme may be specified.
6
- */
7
- export declare type URIs = {
8
- [identifier: string]: string;
9
- };
10
- /**
11
- * A mapping of extension identifiers to extension definitions. Extensions may
12
- * be widely standardized or registry-specific, and extension definitions may
13
- * be values of any type.
14
- */
15
- export declare type Extensions = {
16
- [identifier: string]: unknown;
17
- };
18
- /**
19
- * Tags allow registries to classify and group identities by a variety of
20
- * characteristics. Tags are standardized within a registry and may represent
21
- * either labels applied by that registry or designations by external
22
- * authorities (certification, membership, ownership, etc.) that are tracked by
23
- * that registry.
24
- *
25
- * Examples of possible tags include: `individual`, `organization`, `token`,
26
- * `wallet`, `exchange`, `staking`, `utility-token`, `security-token`,
27
- * `stablecoin`, `wrapped`, `collectable`, `deflationary`, `governance`,
28
- * `decentralized-exchange`, `liquidity-provider`, `sidechain`,
29
- * `sidechain-bridge`, `acme-audited`, `acme-endorsed`, etc.
30
- *
31
- * Tags may be used by clients in search, discovery, and filtering of
32
- * identities, and they can also convey information like accreditation from
33
- * investor protection organizations, public certifications by security or
34
- * financial auditors, and other designations that signal integrity and value
35
- * to users.
36
- */
37
- export declare type Tag = {
38
- /**
39
- * The name of this tag for use in interfaces. Names longer than `20`
40
- * characters may be elided in some interfaces.
41
- *
42
- * E.g. `Individual`, `Token`, `Audited by ACME, Inc.`, etc.
43
- */
44
- name: string;
45
- /**
46
- * A string describing this tag for use in user interfaces. Descriptions
47
- * longer than `160` characters may be elided in some interfaces.
48
- *
49
- * E.g. `An identity maintained by a single individual.`; `An identity
50
- * representing a type of token.`; `An on-chain application that has passed
51
- * security audits by ACME, Inc.`; etc.
52
- */
53
- description?: string;
54
- /**
55
- * A mapping of identifiers to URIs associated with this tag. URI identifiers
56
- * may be widely-standardized or registry-specific. Values must be valid URIs,
57
- * including a protocol prefix (e.g. `https://` or `ipfs://`). Clients are
58
- * only required to support `https` and `ipfs` URIs, but any scheme may
59
- * be specified.
60
- *
61
- * The following identifiers are recommended for all tags:
62
- * - `icon`
63
- * - `web`
64
- *
65
- * The following optional identifiers are standardized:
66
- * - `blog`
67
- * - `chat`
68
- * - `forum`
69
- * - `icon-intro`
70
- * - `registry`
71
- * - `support`
72
- *
73
- * For details on these standard identifiers, see:
74
- * https://github.com/bitjson/chip-bcmr#uri-identifiers
75
- *
76
- * Custom URI identifiers allow for sharing social networking profiles, p2p
77
- * connection information, and other application-specific URIs. Identifiers
78
- * must be lowercase, alphanumeric strings, with no whitespace or special
79
- * characters other than dashes (as a regular expression: `/^[-a-z0-9]+$/`).
80
- *
81
- * For example, some common identifiers include: `discord`, `docker`,
82
- * `facebook`, `git`, `github`, `gitter`, `instagram`, `linkedin`, `matrix`,
83
- * `npm`, `reddit`, `slack`, `substack`, `telegram`, `twitter`, `wechat`,
84
- * `youtube`.
85
- */
86
- uris?: URIs;
87
- /**
88
- * A mapping of `Tag` extension identifiers to extension definitions.
89
- * Extensions may be widely standardized or registry-specific, and extension
90
- * definitions may be values of any type.
91
- */
92
- extensions?: Extensions;
93
- };
94
- /**
95
- * A Bitcoin Cash Metadata Registry is an authenticated JSON file containing
96
- * metadata about tokens, identities, contract applications, and other on-chain
97
- * artifacts. BCMRs conform to the Bitcoin Cash Metadata Registry JSON Schema,
98
- * and they can be published and maintained by any entity or individual.
99
- */
100
- export declare type Registry = {
101
- /**
102
- * The schema used by this registry. Many JSON editors can automatically
103
- * provide inline documentation and autocomplete support using the `$schema`
104
- * property, so it is recommended that registries include it. E.g.:
105
- * `https://raw.githubusercontent.com/bitjson/chip-bcmr/master/registry-v1.schema.json`
106
- */
107
- $schema?: string;
108
- /**
109
- * The version of this registry. Versioning adheres to Semantic Versioning
110
- * (https://semver.org/).
111
- */
112
- version: {
113
- /**
114
- * The major version is incremented when an identity is removed.
115
- */
116
- major: number;
117
- /**
118
- * The minor version is incremented when an identity is added or a new
119
- * identity snapshot is added.
120
- */
121
- minor: number;
122
- /**
123
- * The patch version is incremented when an existing identity or identity
124
- * snapshot is modified (e.g. to correct an error or add a missing piece of
125
- * information) or when other registry properties (e.g. registry `name`,
126
- * `description`, `uris`, etc.) are modified.
127
- *
128
- * Generally, substantive changes to an existing identity should be made
129
- * using a new identity snapshot in a minor version upgrade – this allows
130
- * clients to provide a better user experience by noting the change in
131
- * relevant user interfaces.
132
- *
133
- * For example, patch upgrades might include spelling corrections in an
134
- * existing snapshot or the addition of an `icon-svg` containing a
135
- * higher-resolution version of an existing `icon` image. On the other hand,
136
- * a rebranding in which the icon is substantially changed may warrant a new
137
- * identity snapshot to be added in a minor version upgrade.
138
- */
139
- patch: number;
140
- };
141
- /**
142
- * The timestamp of the latest revision made to this registry version. The
143
- * timestamp must be provided in simplified extended ISO 8601 format, a
144
- * 24-character string of format `YYYY-MM-DDTHH:mm:ss.sssZ` where timezone is
145
- * zero UTC (denoted by `Z`). Note, this is the format returned by ECMAScript
146
- * `Date.toISOString()`.
147
- */
148
- latestRevision: string;
149
- /**
150
- * The identity information of this particular registry, provided as either an
151
- * authbase (recommended) or an `IdentitySnapshot`.
152
- *
153
- * An authbase is a 32-byte, hex-encoded transaction hash (A.K.A. TXID) for
154
- * which the zeroth-descendant transaction chain (ZDTC) authenticates and
155
- * publishes all registry updates. If an authbase is provided, the registry's
156
- * identity information can be found in `identities[authbase]`, and clients
157
- * should immediately attempt to verify the registry's identity on-chain.
158
- * (See https://github.com/bitjson/chip-bcmr#chain-resolved-registries)
159
- *
160
- * If an `IdentitySnapshot` is provided directly, this registry does not
161
- * support on-chain resolution/authentication, and the contained
162
- * `IdentitySnapshot` can only be authenticated via DNS/HTTPS.
163
- */
164
- registryIdentity: string | IdentitySnapshot;
165
- /**
166
- * A mapping of authbases to the `IdentityHistory` for that identity.
167
- *
168
- * An authbase is a 32-byte, hex-encoded transaction hash (A.K.A. TXID) for
169
- * which the zeroth-descendant transaction chain (ZDTC) authenticates and
170
- * publishes an identity's claimed metadata.
171
- *
172
- * Identities may represent metadata registries, specific types of tokens,
173
- * companies, organizations, individuals, or other on-chain entities.
174
- */
175
- identities?: {
176
- [authbase: string]: IdentityHistory;
177
- };
178
- /**
179
- * A map of registry-specific `Tag`s used by this registry to convey
180
- * information about identities it tracks.
181
- *
182
- * Tags allow registries to group identities into collections of related
183
- * identities, marking characteristics or those identities. Tags are
184
- * standardized within a registry and may represent either labels applied by
185
- * that registry (e.g. `individual`, `organization`, `token`, `wallet`,
186
- * `exchange`, `staking`, `utility-token`, `security-token`, `stablecoin`,
187
- * `wrapped`, `collectable`, `deflationary`, `governance`,
188
- * `decentralized-exchange`, `liquidity-provider`, `sidechain`,
189
- * `sidechain-bridge`, etc.) or designations by external authorities
190
- * (certification, membership, ownership, etc.) that are tracked by
191
- * that registry.
192
- *
193
- * Tags may be used by clients in search, discover, and filtering of
194
- * identities, and they can also convey information like accreditation from
195
- * investor protection organizations, public certifications by security or
196
- * financial auditors, and other designations that signal legitimacy and value
197
- * to users.
198
- */
199
- tags?: {
200
- [identifier: string]: Tag;
201
- };
202
- /**
203
- * A mapping of `Registry` extension identifiers to extension definitions.
204
- * Extensions may be widely standardized or registry-specific, and extension
205
- * definitions may be values of any type.
206
- *
207
- * Standardized extensions for `Registry`s include the `locale` extension. See
208
- * https://github.com/bitjson/chip-bcmr#locales-extension for details.
209
- */
210
- extensions?: Extensions;
211
- /**
212
- * The license under which this registry is published. This may be specified
213
- * as either a SPDX short identifier (https://spdx.org/licenses/) or by
214
- * including the full text of the license.
215
- *
216
- * Common values include:
217
- * - `CC0-1.0`: https://creativecommons.org/publicdomain/zero/1.0/
218
- * - `MIT`: https://opensource.org/licenses/MIT
219
- */
220
- license?: string;
221
- };
222
- /**
223
- * A snapshot of the metadata for a particular identity at a specific time.
224
- *
225
- */
226
- export declare type IdentitySnapshot = {
227
- /**
228
- * The name of this identity for use in interfaces. Names longer than
229
- * `20` characters may be elided in some interfaces.
230
- *
231
- * E.g. `ACME Class A Shares`, `ACME Registry`, `Satoshi Nakamoto`, etc.
232
- */
233
- name: string;
234
- /**
235
- * A string describing this identity for use in user interfaces.
236
- * Descriptions longer than `160` characters may be elided in some interfaces.
237
- *
238
- * E.g. `The common stock issued by ACME, Inc.`, `A metadata
239
- * registry maintained by Company Name, the embedded registry for Wallet
240
- * Name.`; `Software developer and lead maintainer of Wallet Name.`; etc.
241
- */
242
- description?: string;
243
- /**
244
- * An array of `Tag` identifiers marking the `Tag`s associated with this
245
- * identity. All specified tag identifiers must be defined in the registry's
246
- * `tags` mapping.
247
- */
248
- tags?: string[];
249
- /**
250
- * The timing information for the introduction of this identity snapshot.
251
- * Each timestamps may be provided as either an ISO string (simplified
252
- * extended ISO 8601 format) or as a locktime value: an integer from `0` to
253
- * `4294967295` (inclusive) where values less than `500000000` are understood
254
- * to be a block height (the current block number in the chain, beginning from
255
- * block `0`), and values greater than or equal to `500000000` are understood
256
- * to be a Median Time Past (BIP113) UNIX timestamp.
257
- *
258
- * Generally, timestamps should be provided as an ISO string unless on-chain
259
- * artifacts require the locktime value (e.g. an on-chain migration that is
260
- * set to complete at a particular locktime value).
261
- */
262
- time: {
263
- /**
264
- * The timestamp at which this identity snapshot begins to be active. If
265
- * `complete` isn't specified, this is a precise time at which this
266
- * snapshot takes effect and clients should begin using the new information.
267
- */
268
- begin: string | number;
269
- /**
270
- * The timestamp at which this identity snapshot is fully in effect. This
271
- * value should only be provided if the snapshot takes effect over a period
272
- * of time (e.g. an in-circulation token identity is gradually migrating to
273
- * a new category). In these cases, clients should gradually migrate to
274
- * using the new information beginning after the `begin` time and completing
275
- * at the `complete` time.
276
- */
277
- complete?: string | number;
278
- };
279
- /**
280
- * If this identity is a type of token, a data structure indicating how tokens
281
- * should be displayed in user interfaces. Omitted for non-token identities.
282
- */
283
- token?: {
284
- /**
285
- * The current token category used by this identity. Often, this will be
286
- * equal to the identities authbase, but some token identities must migrate
287
- * to new categories for technical reasons.
288
- */
289
- category: string;
290
- /**
291
- * An abbreviation used to uniquely identity this token category.
292
- *
293
- * Symbols must be comprised only of capital letters, numbers, and dashes
294
- * (`-`). This can be validated with the regular expression:
295
- * `/^[-A-Z0-9]+$/`.
296
- */
297
- symbol: string;
298
- /**
299
- * An integer between `0` and `18` (inclusive) indicating the divisibility
300
- * of the primary unit of this token category.
301
- *
302
- * This is the number of digits that can appear after the decimal separator
303
- * in fungible token amounts. For a token category with a `symbol` of
304
- * `SYMBOL` and a `decimals` of `2`, a fungible token amount of `12345`
305
- * should be displayed as `123.45 SYMBOL`.
306
- *
307
- * If omitted, defaults to `0`.
308
- */
309
- decimals?: number;
310
- /**
311
- * Display information for non-fungible tokens (NFTs) of this identity.
312
- * Omitted for token categories without NFTs.
313
- */
314
- nfts?: {
315
- /**
316
- * A string describing how this identity uses NFTs (for use in user
317
- * interfaces). Descriptions longer than `160` characters may be elided in
318
- * some interfaces.
319
- *
320
- * E.g. `ACME DEX NFT order receipts are issued when you place orders on
321
- * the decentralized exchange. After orders are processed, order receipts
322
- * can be redeemed for purchased tokens or sales proceeds.`; `ACME Game
323
- * collectable NFTs unlock unique playable content, user avatars, and item
324
- * skins in ACME Game Online.`; etc.
325
- */
326
- description?: string;
327
- /**
328
- * A mapping of field identifier to field definitions for the data fields
329
- * that can appear in NFT commitments of this category.
330
- */
331
- fields: {
332
- [identifier: string]: {
333
- /**
334
- * The name of this field for use in interfaces. Names longer than
335
- * `20` characters may be elided in some interfaces.
336
- *
337
- * E.g. `BCH Pledged`, `Tokens Sold`, `Seat Number`,
338
- * `IPFS Content Identifier`, `HTTPS URL` etc.
339
- */
340
- name?: string;
341
- /**
342
- * A string describing how this identity uses NFTs (for use in user
343
- * interfaces). Descriptions longer than `160` characters may be
344
- * elided in some interfaces.
345
- *
346
- * E.g. `The BCH value pledged at the time this receipt was issued.`;
347
- * `The number of tokens sold in this order.`; `The seat number
348
- * associated with this ticket.`; `The IPFS`
349
- * collectable NFTs unlock unique playable content, user avatars, and item
350
- * skins in ACME Game Online.`; etc.
351
- */
352
- description?: string;
353
- /**
354
- * The expected encoding of this field when read from the parsing
355
- * altstack (see `token.nft.parse`). All encoding definitions must
356
- * have a `type`, and some encoding definitions allow for additional
357
- * hinting about display strategies in clients.
358
- *
359
- * Encoding types may be set to `binary`, `boolean`, `hex`, `number`,
360
- * or `utf8`:
361
- *
362
- * - `binary` types should be displayed as binary literals (e.g.
363
- * `0b0101`)
364
- * - `boolean` types should be displayed as `true` if exactly `0x01`
365
- * or `false` if exactly `0x00`. If a boolean value does not match one
366
- * of these values, clients should represent the NFT as unable to be
367
- * parsed (e.g. simply display the full `commitment`).
368
- * - `hex` types should be displayed as hex literals (e.g.`0xabcd`).
369
- * - `https-url` types are percent encoded with the `https://` prefix
370
- * omitted; they may be displayed as URIs or as activatable links.
371
- * - `ipfs-cid` types are binary-encoded IPFS Content Identifiers;
372
- * they may be displayed as URIs or as activatable links.
373
- * - `locktime` types are `OP_TXLOCKTIME` results: integers from `0`
374
- * to `4294967295` (inclusive) where values less than `500000000` are
375
- * understood to be a block height (the current block number in the
376
- * chain, beginning from block `0`), and values greater than or equal
377
- * to `500000000` are understood to be a Median Time Past (BIP113)
378
- * UNIX timestamp. (Note, sequence age is not currently supported.)
379
- * - `number` types should be displayed according the their configured
380
- * `decimals` and `unit` values.
381
- * - `utf8` types should be displayed as utf8 strings.
382
- */
383
- encoding: {
384
- type: "binary" | "boolean" | "hex" | "https-url" | "ipfs-cid" | `locktime` | "utf8";
385
- } | {
386
- type: "number";
387
- /**
388
- * The `aggregate` property indicates that aggregating this
389
- * field from multiple NFTs is desirable in user interfaces. For
390
- * example, for a field named `BCH Pledged` where `aggregate` is
391
- * `add`, the client can display a `Total BCH Pledged` in any
392
- * user interface listing more than one NFT.
393
- *
394
- * If specified, clients should aggregate the field from all
395
- * NFTs within a view (e.g. NFTs held by a single wallet, NFTs
396
- * existing in a single transaction's outputs, etc.) using the
397
- * specified operation. Note, while aggregation could be
398
- * performed using any commutative operation – multiplication,
399
- * bitwise AND, bitwise OR, and bitwise XOR, etc. – only `add`
400
- * is currently supported.
401
- */
402
- aggregate?: "add";
403
- /**
404
- * An integer between `0` and `18` (inclusive) indicating the
405
- * divisibility of the primary unit of this token field.
406
- *
407
- * This is the number of digits that can appear after the
408
- * decimal separator in amounts. For a field with a `decimals`
409
- * of `2`, a value of `123456` should be displayed as `1234.56`.
410
- *
411
- * If omitted, defaults to `0`.
412
- */
413
- decimals?: number;
414
- /**
415
- * The unit in which this field is denominated, taking the
416
- * `decimals` value into account. If representing fungible token
417
- * amount, this will often be the symbol of the represented
418
- * token category.
419
- *
420
- * E.g. `BCH`, `sats`, `AcmeUSD`, etc.
421
- *
422
- * If not provided, clients should not represent this field as
423
- * having a unit beyond the field's `name`.
424
- */
425
- unit?: string;
426
- };
427
- /**
428
- * A mapping of identifiers to URIs associated with this NFT field.
429
- * URI identifiers may be widely-standardized or registry-specific.
430
- * Values must be valid URIs, including a protocol prefix (e.g.
431
- * `https://` or `ipfs://`). Clients are only required to support
432
- * `https` and `ipfs` URIs, but any scheme may be specified.
433
- */
434
- uris?: URIs;
435
- /**
436
- * A mapping of NFT field extension identifiers to extension
437
- * definitions. Extensions may be widely standardized or
438
- * registry-specific, and extension definitions may be values of
439
- * any type.
440
- */
441
- extensions?: Extensions;
442
- };
443
- };
444
- /**
445
- * Parsing and interpretation information for all NFTs of this category.
446
- *
447
- * Parsing instructions are provided in the `bytecode` property, and the
448
- * results are interpreted using the `types` property.
449
- */
450
- parse: {
451
- /**
452
- * A segment of hex-encoded Bitcoin Cash VM bytecode that parses NFT
453
- * commitments of this category and returns a list of NFT field values
454
- * via the altstack. The `bytecode` is taken as locking bytecode
455
- * evaluated after pushing the full NFT commitment to the stack (as if
456
- * pushed in a single-operation unlocking bytecode).
457
- *
458
- * If the resulting stack is not valid (a single "truthy" element
459
- * remaining on the stack) – or if the altstack is empty – parsing has
460
- * failed and clients should represent the NFT as unable to be parsed
461
- * (e.g. simply display the full `commitment`).
462
- *
463
- * On successful parsing evaluations, the bottom item on the altstack
464
- * indicates the type of the NFT according to the matching definition in
465
- * `types`. If no match is found, clients should represent the NFT as
466
- * unable to be parsed.
467
- */
468
- bytecode: string;
469
- /**
470
- * A mapping of hex-encoded values to definitions of possible NFT types
471
- * in this category.
472
- */
473
- types: {
474
- /**
475
- * A definition for one type of NFT within a token category. NFT types
476
- * are indexed by the expected hex-encoded value of the bottom
477
- * altstack item following evaluation of `token.nft.parse.bytecode`.
478
- * The remaining altstack items are mapped to NFT fields according to
479
- * the `fields` property of the matching NFT type.
480
- */
481
- [bottomAltStackItemHex: string]: {
482
- /**
483
- * The name of this NFT type for use in interfaces. Names longer than
484
- * `20` characters may be elided in some interfaces.
485
- *
486
- * E.g. `Market Order Buys`, `Limit Order Sales`, `Pledge Receipts`,
487
- * `ACME Stadium Tickets`, `Sealed Votes`, etc.
488
- */
489
- name: string;
490
- /**
491
- * A string describing this NFT type for use in user interfaces.
492
- * Descriptions longer than `160` characters may be elided in
493
- * some interfaces.
494
- *
495
- * E.g. `Receipts issued by the exchange to record details about
496
- * purchases. After settlement, these receipts are redeemed for the
497
- * purchased tokens.`; `Receipts issued by the crowdfunding campaign
498
- * to document the value of funds pledged. If the user decides to
499
- * cancel their pledge before the campaign completes, these receipts
500
- * can be redeemed for a full refund.`; `Tickets issued for events
501
- * at ACME Stadium.`; `Sealed ballots certified by ACME
502
- * decentralized organization during the voting period. After the
503
- * voting period ends, these ballots must be revealed to reclaim the
504
- * tokens used for voting.`; etc.
505
- */
506
- description?: string;
507
- /**
508
- * A list of identifiers for fields contained in NFTs of this type.
509
- * On successful parsing evaluations, the bottom item on the
510
- * altstack indicates the matched NFT type, and the remaining
511
- * altstack items represent NFT field contents in the order listed
512
- * (where `fields[0]` is the second-to-bottom item, and the final
513
- * item in `fields` is the top of the altstack).
514
- *
515
- * Fields should be ordered by recommended importance from most
516
- * important to least important; in user interfaces, clients should
517
- * display fields at lower indexes more prominently than those at
518
- * higher indexes, e.g. if some fields cannot be displayed in
519
- * minimized interfaces, higher-importance fields can still be
520
- * represented. (Note, this ordering is controlled by the bytecode
521
- * specified in `token.nft.parse.bytecode`.)
522
- */
523
- fields: string[];
524
- /**
525
- * A mapping of identifiers to URIs associated with this NFT type.
526
- * URI identifiers may be widely-standardized or registry-specific.
527
- * Values must be valid URIs, including a protocol prefix (e.g.
528
- * `https://` or `ipfs://`). Clients are only required to support
529
- * `https` and `ipfs` URIs, but any scheme may be specified.
530
- */
531
- uris?: URIs;
532
- /**
533
- * A mapping of NFT type extension identifiers to extension
534
- * definitions. Extensions may be widely standardized or
535
- * registry-specific, and extension definitions may be values of
536
- * any type.
537
- */
538
- extensions?: Extensions;
539
- };
540
- };
541
- };
542
- };
543
- };
544
- /**
545
- * The status of this identity, must be `active`, `inactive`, or `burned`. If
546
- * omitted, defaults to `active`.
547
- * - Identities with an `active` status should be actively tracked by clients.
548
- * - Identities with an `inactive` status may be considered for archival by
549
- * clients and may be removed in future registry versions.
550
- * - Identities with a `burned` status have been destroyed by setting the
551
- * latest identity output to a data-carrier output (`OP_RETURN`), permanently
552
- * terminating the authchain. Clients should archive burned identities and –
553
- * if the burned identity represented a token type – consider burning any
554
- * remaining tokens of that category to reclaim funds from those outputs.
555
- */
556
- status?: "active" | "inactive" | "burned";
557
- /**
558
- * A mapping of identifiers to URIs associated with this identity. URI
559
- * identifiers may be widely-standardized or registry-specific. Values must be
560
- * valid URIs, including a protocol prefix (e.g. `https://` or `ipfs://`).
561
- * Clients are only required to support `https` and `ipfs` URIs, but any
562
- * scheme may be specified.
563
- *
564
- * The following identifiers are recommended for all identities:
565
- * - `icon`
566
- * - `web`
567
- *
568
- * The following optional identifiers are standardized:
569
- * - `blog`
570
- * - `chat`
571
- * - `forum`
572
- * - `icon-intro`
573
- * - `registry`
574
- * - `support`
575
- *
576
- * For details on these standard identifiers, see:
577
- * https://github.com/bitjson/chip-bcmr#uri-identifiers
578
- *
579
- * Custom URI identifiers allow for sharing social networking profiles, p2p
580
- * connection information, and other application-specific URIs. Identifiers
581
- * must be lowercase, alphanumeric strings, with no whitespace or special
582
- * characters other than dashes (as a regular expression: `/^[-a-z0-9]+$/`).
583
- *
584
- * For example, some common identifiers include: `discord`, `docker`,
585
- * `facebook`, `git`, `github`, `gitter`, `instagram`, `linkedin`, `matrix`,
586
- * `npm`, `reddit`, `slack`, `substack`, `telegram`, `twitter`, `wechat`,
587
- * `youtube`.
588
- */
589
- uris?: URIs;
590
- /**
591
- * A mapping of `IdentitySnapshot` extension identifiers to extension
592
- * definitions. Extensions may be widely standardized or registry-specific,
593
- * and extension definitions may be values of any type.
594
- *
595
- * Standardized extensions for `IdentitySnapshot`s include the `authchain`
596
- * extension. See
597
- * https://github.com/bitjson/chip-bcmr#authchain-extension for details.
598
- */
599
- extensions?: Extensions;
600
- };
601
- /**
602
- * An array of `IdentitySnapshot`s, ordered from newest to oldest documenting
603
- * the evolution of a particular identity. Typically, the current identity
604
- * information is the record at index `0`, but in cases where a planned
605
- * migration has not yet begun (the snapshot's `time.begin` has not been
606
- * reached), the record at index `1` is considered the current identity.
607
- *
608
- * This strategy allows wallets and other user interfaces to offer better
609
- * experiences when an identity is rebranded, a token redenominated, or other
610
- * important metadata is modified in a coordinated update. For example, a wallet
611
- * may warn token holders of a forthcoming rebranding of fungible tokens they
612
- * hold; after the change, the wallet may continue to offer prominent interface
613
- * hints that the rebranded tokens was recently updated.
614
- *
615
- * Note, only the `IdentitySnapshot`s at index `0` and `1` can be considered
616
- * part of an identities "current" information (based on their `time` settings
617
- * in relation to current time). E.g. even if two snapshots have active,
618
- * overlapping migration periods (i.e. the snapshot at `2` is still relevant for
619
- * the snapshot at `1`), clients should only attempt to display the migration
620
- * from the snapshot at index `1` to that at index `0`.
621
- */
622
- export declare type IdentityHistory = IdentitySnapshot[];
623
- //# sourceMappingURL=bcmr-v1.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bcmr-v1.schema.d.ts","sourceRoot":"","sources":["../../../src/wallet/bcmr-v1.schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,IAAI,GAAG;IACjB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,oBAAY,UAAU,GAAG;IACvB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,GAAG,GAAG;IAChB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,oBAAY,QAAQ,GAAG;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;;;;;;;;;;;;;;;WAgBG;QACH,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF;;;;;;OAMG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC5C;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE;QACX,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAC;KACrC,CAAC;IACF;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,CAAC,EAAE;QACL,CAAC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mr-v1.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bcmr-v1.schema.js","sourceRoot":"","sources":["../../../src/wallet/bcmr-v1.schema.ts"],"names":[],"mappings":""}