@inversealtruism/cairn-sdk 0.5.0 → 0.6.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/dist/{chunk-OSPAN7GX.js → chunk-2A4AJBO5.js} +1 -1
- package/dist/{chunk-BL6VFALH.js → chunk-67QBDZPW.js} +1 -1
- package/dist/{chunk-5RGFC2JR.js → chunk-BMH2MACB.js} +1 -1
- package/dist/{chunk-OE5BEEQY.js → chunk-MLNW2RQB.js} +1 -1
- package/dist/{chunk-CZAQNZZG.js → chunk-QEYBWBXC.js} +1 -1
- package/dist/connect.cjs +1 -1
- package/dist/connect.js +2 -2
- package/dist/content.cjs +1 -1
- package/dist/content.js +2 -2
- package/dist/controller.cjs +1 -1
- package/dist/controller.js +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -5
- package/dist/react.cjs +1 -1
- package/dist/react.js +3 -3
- package/dist/registry.cjs +1 -1
- package/dist/registry.js +2 -2
- package/package.json +9 -9
package/dist/connect.cjs
CHANGED
|
@@ -30,7 +30,7 @@ __export(connect_exports, {
|
|
|
30
30
|
module.exports = __toCommonJS(connect_exports);
|
|
31
31
|
|
|
32
32
|
// src/errors.ts
|
|
33
|
-
var SDK_VERSION = "0.
|
|
33
|
+
var SDK_VERSION = "0.6.0";
|
|
34
34
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
35
35
|
var CairnError = class extends Error {
|
|
36
36
|
/** Stable machine code for programmatic branching. */
|
package/dist/connect.js
CHANGED
package/dist/content.cjs
CHANGED
|
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(content_exports);
|
|
|
26
26
|
var import_csd_codec = require("@inversealtruism/csd-codec");
|
|
27
27
|
|
|
28
28
|
// src/errors.ts
|
|
29
|
-
var SDK_VERSION = "0.
|
|
29
|
+
var SDK_VERSION = "0.6.0";
|
|
30
30
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
31
31
|
var CairnError = class extends Error {
|
|
32
32
|
/** Stable machine code for programmatic branching. */
|
package/dist/content.js
CHANGED
package/dist/controller.cjs
CHANGED
|
@@ -25,7 +25,7 @@ __export(controller_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(controller_exports);
|
|
26
26
|
|
|
27
27
|
// src/errors.ts
|
|
28
|
-
var SDK_VERSION = "0.
|
|
28
|
+
var SDK_VERSION = "0.6.0";
|
|
29
29
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
30
30
|
var CairnError = class extends Error {
|
|
31
31
|
/** Stable machine code for programmatic branching. */
|
package/dist/controller.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -59,7 +59,7 @@ __export(index_exports, {
|
|
|
59
59
|
module.exports = __toCommonJS(index_exports);
|
|
60
60
|
|
|
61
61
|
// src/errors.ts
|
|
62
|
-
var SDK_VERSION = "0.
|
|
62
|
+
var SDK_VERSION = "0.6.0";
|
|
63
63
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
64
64
|
var CairnError = class extends Error {
|
|
65
65
|
/** Stable machine code for programmatic branching. */
|
package/dist/index.d.cts
CHANGED
|
@@ -6,8 +6,8 @@ export { InclusionResult, IndexEvent, MerkleProof, StreamHandle, StreamHandlers,
|
|
|
6
6
|
import { ContentClient } from './content.cjs';
|
|
7
7
|
export { ContentClientOptions, PreparedContent } from './content.cjs';
|
|
8
8
|
import { RegistryClient } from './registry.cjs';
|
|
9
|
-
import { NameState,
|
|
10
|
-
export { FillEndorsement, FillOutputPlan, FillPreview, FillSafety, ProvenOfferTerms, bindOfferTerms, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, previewFill, requiredFillOutputs } from '@inversealtruism/cairnx-core';
|
|
9
|
+
import { NameState, MintedProvenOfferTerms } from '@inversealtruism/cairnx-core';
|
|
10
|
+
export { FillEndorsement, FillOutputPlan, FillPreview, FillSafety, MintedProvenOfferTerms, ProvenOfferTerms, bindOfferTerms, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, previewFill, requiredFillOutputs } from '@inversealtruism/cairnx-core';
|
|
11
11
|
import { WalletConnection, DetectOptions } from './connect.cjs';
|
|
12
12
|
export { AttestParams, CairnProvider, ConnectResult, FillParams, ProposeParams, ProviderDetail, ProviderInfo, SealClaimParams, SendParams, SignInResult, SiwcParams, SiwcResult, TxResult, WalletCapabilities, WalletPermission, connect, detectProvider, discoverProviders, getWallet, isInstalled } from './connect.cjs';
|
|
13
13
|
import { InclusionResult } from '@inversealtruism/csd-light';
|
|
@@ -139,7 +139,8 @@ interface OfferFillCheck {
|
|
|
139
139
|
transient?: boolean;
|
|
140
140
|
payto?: string;
|
|
141
141
|
seller?: string;
|
|
142
|
-
|
|
142
|
+
/** Minted by cairnx-core's `provenOfferTerms`, so it can be passed back to `bindOfferTerms` without the opt-out. */
|
|
143
|
+
terms?: MintedProvenOfferTerms;
|
|
143
144
|
blockHeight?: number;
|
|
144
145
|
/** B7b (REBIND W3/M1): the PROVEN CSD outputs to build for `pay` (a WHOLE fill of a non-partial offer),
|
|
145
146
|
* sized from the merkle-proven offer by the single-sourced `fillOutputPlan`. Present only when `pay` was
|
|
@@ -190,7 +191,7 @@ declare function preverifyOffer(opts: {
|
|
|
190
191
|
|
|
191
192
|
/** Stable machine-readable error codes (branch on these, not the message text). */
|
|
192
193
|
type CairnErrorCode = "NOT_INSTALLED" | "USER_REJECTED" | "WALLET_LOCKED" | "UNSUPPORTED_METHOD" | "HTTP_ERROR" | "CONTENT_VERIFICATION" | "CONTENT_NOT_JSON" | "ACCOUNT_CHANGED" | "FIRST_PARTY_ONLY" | "RATE_LIMITED" | "APPROVAL_CLOSED" | "FORBIDDEN" | "INTERNAL" | "GHOST_INPUTS_SKIPPED" | "VERIFY_UNAVAILABLE" | "VERIFY_TAMPER" | "INSUFFICIENT" | "TOO_MANY_INPUTS" | "FEE_TOO_LOW" | "FEE_CAP" | "BAD_FEE" | "ZERO_ADDR_REFUSED" | "BAD_OUTPUTS" | "NO_OUTPUTS" | "BAD_REQUEST" | "OFFER_UNKNOWN" | "FILL_UNSAFE" | "FILL_WRONG_TARGET" | "SOURCE_DIVERGENCE" | "SUBMIT_REJECTED" | "SUBMIT_MAYBE_INFLIGHT" | "SUBMIT_DUPLICATE" | "NOTHING_TO_CONSOLIDATE" | "OFFER_SOURCE_CONFLICT" | "FILL_LEGACY_SUNSET" | "VERIFY_HORIZON" | "VERIFY_UNREPRESENTABLE" | "WALLET_UNAVAILABLE" | "REVIEW_REQUIRED" | "UNKNOWN";
|
|
193
|
-
declare const SDK_VERSION = "0.
|
|
194
|
+
declare const SDK_VERSION = "0.6.0";
|
|
194
195
|
interface CairnErrorOptions {
|
|
195
196
|
code?: CairnErrorCode;
|
|
196
197
|
docsPath?: string;
|
|
@@ -210,7 +211,7 @@ declare class CairnError extends Error {
|
|
|
210
211
|
/** Relative docs path (under the SDK docs base), if any. */
|
|
211
212
|
readonly docsPath?: string;
|
|
212
213
|
/** The cairn-sdk version that produced this error. */
|
|
213
|
-
readonly version = "0.
|
|
214
|
+
readonly version = "0.6.0";
|
|
214
215
|
/**
|
|
215
216
|
* Whether a dApp may safely AUTO-retry this failure. `false` for fund-safety refusals and user-intent
|
|
216
217
|
* declines (the default); `true` only for provably transient infra faults where nothing was signed.
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { InclusionResult, IndexEvent, MerkleProof, StreamHandle, StreamHandlers,
|
|
|
6
6
|
import { ContentClient } from './content.js';
|
|
7
7
|
export { ContentClientOptions, PreparedContent } from './content.js';
|
|
8
8
|
import { RegistryClient } from './registry.js';
|
|
9
|
-
import { NameState,
|
|
10
|
-
export { FillEndorsement, FillOutputPlan, FillPreview, FillSafety, ProvenOfferTerms, bindOfferTerms, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, previewFill, requiredFillOutputs } from '@inversealtruism/cairnx-core';
|
|
9
|
+
import { NameState, MintedProvenOfferTerms } from '@inversealtruism/cairnx-core';
|
|
10
|
+
export { FillEndorsement, FillOutputPlan, FillPreview, FillSafety, MintedProvenOfferTerms, ProvenOfferTerms, bindOfferTerms, feeBpsAt, fillEndorsement, fillIsSafe, fillOutputPlan, previewFill, requiredFillOutputs } from '@inversealtruism/cairnx-core';
|
|
11
11
|
import { WalletConnection, DetectOptions } from './connect.js';
|
|
12
12
|
export { AttestParams, CairnProvider, ConnectResult, FillParams, ProposeParams, ProviderDetail, ProviderInfo, SealClaimParams, SendParams, SignInResult, SiwcParams, SiwcResult, TxResult, WalletCapabilities, WalletPermission, connect, detectProvider, discoverProviders, getWallet, isInstalled } from './connect.js';
|
|
13
13
|
import { InclusionResult } from '@inversealtruism/csd-light';
|
|
@@ -139,7 +139,8 @@ interface OfferFillCheck {
|
|
|
139
139
|
transient?: boolean;
|
|
140
140
|
payto?: string;
|
|
141
141
|
seller?: string;
|
|
142
|
-
|
|
142
|
+
/** Minted by cairnx-core's `provenOfferTerms`, so it can be passed back to `bindOfferTerms` without the opt-out. */
|
|
143
|
+
terms?: MintedProvenOfferTerms;
|
|
143
144
|
blockHeight?: number;
|
|
144
145
|
/** B7b (REBIND W3/M1): the PROVEN CSD outputs to build for `pay` (a WHOLE fill of a non-partial offer),
|
|
145
146
|
* sized from the merkle-proven offer by the single-sourced `fillOutputPlan`. Present only when `pay` was
|
|
@@ -190,7 +191,7 @@ declare function preverifyOffer(opts: {
|
|
|
190
191
|
|
|
191
192
|
/** Stable machine-readable error codes (branch on these, not the message text). */
|
|
192
193
|
type CairnErrorCode = "NOT_INSTALLED" | "USER_REJECTED" | "WALLET_LOCKED" | "UNSUPPORTED_METHOD" | "HTTP_ERROR" | "CONTENT_VERIFICATION" | "CONTENT_NOT_JSON" | "ACCOUNT_CHANGED" | "FIRST_PARTY_ONLY" | "RATE_LIMITED" | "APPROVAL_CLOSED" | "FORBIDDEN" | "INTERNAL" | "GHOST_INPUTS_SKIPPED" | "VERIFY_UNAVAILABLE" | "VERIFY_TAMPER" | "INSUFFICIENT" | "TOO_MANY_INPUTS" | "FEE_TOO_LOW" | "FEE_CAP" | "BAD_FEE" | "ZERO_ADDR_REFUSED" | "BAD_OUTPUTS" | "NO_OUTPUTS" | "BAD_REQUEST" | "OFFER_UNKNOWN" | "FILL_UNSAFE" | "FILL_WRONG_TARGET" | "SOURCE_DIVERGENCE" | "SUBMIT_REJECTED" | "SUBMIT_MAYBE_INFLIGHT" | "SUBMIT_DUPLICATE" | "NOTHING_TO_CONSOLIDATE" | "OFFER_SOURCE_CONFLICT" | "FILL_LEGACY_SUNSET" | "VERIFY_HORIZON" | "VERIFY_UNREPRESENTABLE" | "WALLET_UNAVAILABLE" | "REVIEW_REQUIRED" | "UNKNOWN";
|
|
193
|
-
declare const SDK_VERSION = "0.
|
|
194
|
+
declare const SDK_VERSION = "0.6.0";
|
|
194
195
|
interface CairnErrorOptions {
|
|
195
196
|
code?: CairnErrorCode;
|
|
196
197
|
docsPath?: string;
|
|
@@ -210,7 +211,7 @@ declare class CairnError extends Error {
|
|
|
210
211
|
/** Relative docs path (under the SDK docs base), if any. */
|
|
211
212
|
readonly docsPath?: string;
|
|
212
213
|
/** The cairn-sdk version that produced this error. */
|
|
213
|
-
readonly version = "0.
|
|
214
|
+
readonly version = "0.6.0";
|
|
214
215
|
/**
|
|
215
216
|
* Whether a dApp may safely AUTO-retry this failure. `false` for fund-safety refusals and user-intent
|
|
216
217
|
* declines (the default); `true` only for provably transient infra faults where nothing was signed.
|
package/dist/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-C452UODV.js";
|
|
5
5
|
import {
|
|
6
6
|
ContentClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QEYBWBXC.js";
|
|
8
8
|
import {
|
|
9
9
|
IndexerClient
|
|
10
10
|
} from "./chunk-K5MGEYEU.js";
|
|
11
11
|
import {
|
|
12
12
|
CairnController
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MLNW2RQB.js";
|
|
14
14
|
import {
|
|
15
15
|
WalletConnection,
|
|
16
16
|
connect,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
discoverProviders,
|
|
19
19
|
getWallet,
|
|
20
20
|
isInstalled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BMH2MACB.js";
|
|
22
22
|
import {
|
|
23
23
|
Http,
|
|
24
24
|
RegistryClient,
|
|
25
25
|
RetryWaitBudget,
|
|
26
26
|
readCapped,
|
|
27
27
|
retryAfterMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-67QBDZPW.js";
|
|
29
29
|
import {
|
|
30
30
|
CairnError,
|
|
31
31
|
ContentVerificationError,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
errorCode,
|
|
40
40
|
mapProviderError,
|
|
41
41
|
mapSubmitResultError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2A4AJBO5.js";
|
|
43
43
|
|
|
44
44
|
// src/names.ts
|
|
45
45
|
import { NAME_RE, RESERVED_NAMES, TICKER_RE, AMOUNT_RE, HASH_RE } from "@inversealtruism/cairnx-core";
|
package/dist/react.cjs
CHANGED
|
@@ -26,7 +26,7 @@ __export(react_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(react_exports);
|
|
27
27
|
|
|
28
28
|
// src/errors.ts
|
|
29
|
-
var SDK_VERSION = "0.
|
|
29
|
+
var SDK_VERSION = "0.6.0";
|
|
30
30
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
31
31
|
var CairnError = class extends Error {
|
|
32
32
|
/** Stable machine code for programmatic branching. */
|
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CairnController
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-MLNW2RQB.js";
|
|
4
|
+
import "./chunk-BMH2MACB.js";
|
|
5
|
+
import "./chunk-2A4AJBO5.js";
|
|
6
6
|
|
|
7
7
|
// src/react.ts
|
|
8
8
|
function createCairnHooks(React, controllerOrOpts) {
|
package/dist/registry.cjs
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(registry_exports);
|
|
|
36
36
|
var import_csd_registry = require("@inversealtruism/csd-registry");
|
|
37
37
|
|
|
38
38
|
// src/errors.ts
|
|
39
|
-
var SDK_VERSION = "0.
|
|
39
|
+
var SDK_VERSION = "0.6.0";
|
|
40
40
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
41
41
|
var CairnError = class extends Error {
|
|
42
42
|
/** Stable machine code for programmatic branching. */
|
package/dist/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inversealtruism/cairn-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The Compute Substrate dApp kit: one cohesive toolkit to connect the Cairn Wallet, read the chain, the indexer and .csd names, verify self-certifying content, and resolve registries. Composes the published csd-* primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"README.md"
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@inversealtruism/cairnx-core": "0.
|
|
58
|
-
"@inversealtruism/csd-client": "0.1.
|
|
59
|
-
"@inversealtruism/csd-codec": "0.1.
|
|
60
|
-
"@inversealtruism/csd-crypto": "0.1.
|
|
61
|
-
"@inversealtruism/csd-light": "0.1.
|
|
62
|
-
"@inversealtruism/csd-registry": "0.1.
|
|
63
|
-
"@inversealtruism/csd-tx": "0.1.
|
|
57
|
+
"@inversealtruism/cairnx-core": "0.2.0",
|
|
58
|
+
"@inversealtruism/csd-client": "0.1.18",
|
|
59
|
+
"@inversealtruism/csd-codec": "0.1.18",
|
|
60
|
+
"@inversealtruism/csd-crypto": "0.1.18",
|
|
61
|
+
"@inversealtruism/csd-light": "0.1.23",
|
|
62
|
+
"@inversealtruism/csd-registry": "0.1.20",
|
|
63
|
+
"@inversealtruism/csd-tx": "0.1.21"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@inversealtruism/csd-siwc": "0.1.
|
|
66
|
+
"@inversealtruism/csd-siwc": "0.1.19",
|
|
67
67
|
"esbuild": "^0.27.0",
|
|
68
68
|
"playwright-core": "^1.49.0",
|
|
69
69
|
"tsup": "^8.5.1",
|