@inversealtruism/cairn-sdk 0.4.3 → 0.4.4
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/board.cjs +1 -1
- package/dist/board.js +2 -2
- package/dist/{chunk-V7C5GXQY.js → chunk-EAQAJ2JH.js} +1 -1
- package/dist/{chunk-WEVDLGKT.js → chunk-KLZ2MABC.js} +1 -1
- package/dist/{chunk-KCRJL5HD.js → chunk-OFB365FB.js} +1 -1
- package/dist/{chunk-EJENF4OP.js → chunk-PHX4NZCI.js} +1 -1
- package/dist/{chunk-XZGNVYH3.js → chunk-UTYGJZAX.js} +1 -1
- package/dist/{chunk-BFQVPITS.js → chunk-WIJJJEAK.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 +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- 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 +17 -25
package/dist/board.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var import_csd_codec = require("@inversealtruism/csd-codec");
|
|
|
27
27
|
var import_csd_codec2 = require("@inversealtruism/csd-codec");
|
|
28
28
|
|
|
29
29
|
// src/errors.ts
|
|
30
|
-
var SDK_VERSION = "0.4.
|
|
30
|
+
var SDK_VERSION = "0.4.4";
|
|
31
31
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
32
32
|
var CairnError = class extends Error {
|
|
33
33
|
/** Stable machine code for programmatic branching. */
|
package/dist/board.js
CHANGED
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.4.
|
|
33
|
+
var SDK_VERSION = "0.4.4";
|
|
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.4.
|
|
29
|
+
var SDK_VERSION = "0.4.4";
|
|
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.4.
|
|
28
|
+
var SDK_VERSION = "0.4.4";
|
|
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
|
@@ -60,7 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
module.exports = __toCommonJS(index_exports);
|
|
61
61
|
|
|
62
62
|
// src/errors.ts
|
|
63
|
-
var SDK_VERSION = "0.4.
|
|
63
|
+
var SDK_VERSION = "0.4.4";
|
|
64
64
|
var DOCS_BASE = "https://cairn-substrate.com/docs/sdk";
|
|
65
65
|
var CairnError = class extends Error {
|
|
66
66
|
/** Stable machine code for programmatic branching. */
|
|
@@ -1526,7 +1526,7 @@ var CairnController = class {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
|
|
1528
1528
|
// src/index.ts
|
|
1529
|
-
var DEFAULT_SPV_CHECKPOINT = { height:
|
|
1529
|
+
var DEFAULT_SPV_CHECKPOINT = { height: 101998, hash: "0x0000000000085295c9e13bbf276a11affb5470059235d1ea85d6334c8b43c49c" };
|
|
1530
1530
|
var DEFAULT_CAIRN = "https://cairn-substrate.com";
|
|
1531
1531
|
var SPV_HTTP_TIMEOUT_MS = 15e3;
|
|
1532
1532
|
var SPV_HTTP_MAX_RETRIES = 4;
|
package/dist/index.d.cts
CHANGED
|
@@ -160,7 +160,7 @@ declare function preverifyOffer(opts: {
|
|
|
160
160
|
|
|
161
161
|
/** Stable machine-readable error codes (branch on these, not the message text). */
|
|
162
162
|
type CairnErrorCode = "NOT_INSTALLED" | "USER_REJECTED" | "WALLET_LOCKED" | "UNSUPPORTED_METHOD" | "HTTP_ERROR" | "CONTENT_VERIFICATION" | "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" | "UNKNOWN";
|
|
163
|
-
declare const SDK_VERSION = "0.4.
|
|
163
|
+
declare const SDK_VERSION = "0.4.4";
|
|
164
164
|
interface CairnErrorOptions {
|
|
165
165
|
code?: CairnErrorCode;
|
|
166
166
|
docsPath?: string;
|
|
@@ -180,7 +180,7 @@ declare class CairnError extends Error {
|
|
|
180
180
|
/** Relative docs path (under the SDK docs base), if any. */
|
|
181
181
|
readonly docsPath?: string;
|
|
182
182
|
/** The cairn-sdk version that produced this error. */
|
|
183
|
-
readonly version = "0.4.
|
|
183
|
+
readonly version = "0.4.4";
|
|
184
184
|
/**
|
|
185
185
|
* Whether a dApp may safely AUTO-retry this failure. `false` for fund-safety refusals and user-intent
|
|
186
186
|
* declines (the default); `true` only for provably transient infra faults where nothing was signed.
|
package/dist/index.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ declare function preverifyOffer(opts: {
|
|
|
160
160
|
|
|
161
161
|
/** Stable machine-readable error codes (branch on these, not the message text). */
|
|
162
162
|
type CairnErrorCode = "NOT_INSTALLED" | "USER_REJECTED" | "WALLET_LOCKED" | "UNSUPPORTED_METHOD" | "HTTP_ERROR" | "CONTENT_VERIFICATION" | "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" | "UNKNOWN";
|
|
163
|
-
declare const SDK_VERSION = "0.4.
|
|
163
|
+
declare const SDK_VERSION = "0.4.4";
|
|
164
164
|
interface CairnErrorOptions {
|
|
165
165
|
code?: CairnErrorCode;
|
|
166
166
|
docsPath?: string;
|
|
@@ -180,7 +180,7 @@ declare class CairnError extends Error {
|
|
|
180
180
|
/** Relative docs path (under the SDK docs base), if any. */
|
|
181
181
|
readonly docsPath?: string;
|
|
182
182
|
/** The cairn-sdk version that produced this error. */
|
|
183
|
-
readonly version = "0.4.
|
|
183
|
+
readonly version = "0.4.4";
|
|
184
184
|
/**
|
|
185
185
|
* Whether a dApp may safely AUTO-retry this failure. `false` for fund-safety refusals and user-intent
|
|
186
186
|
* declines (the default); `true` only for provably transient infra faults where nothing was signed.
|
package/dist/index.js
CHANGED
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
Http,
|
|
3
3
|
RegistryClient,
|
|
4
4
|
readCapped
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OFB365FB.js";
|
|
6
6
|
import {
|
|
7
7
|
BoardClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KLZ2MABC.js";
|
|
9
9
|
import {
|
|
10
10
|
Chain,
|
|
11
11
|
LightClient
|
|
12
12
|
} from "./chunk-C452UODV.js";
|
|
13
13
|
import {
|
|
14
14
|
ContentClient
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EAQAJ2JH.js";
|
|
16
16
|
import {
|
|
17
17
|
IndexerClient
|
|
18
18
|
} from "./chunk-J5J4JEJ6.js";
|
|
19
19
|
import {
|
|
20
20
|
CairnController
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WIJJJEAK.js";
|
|
22
22
|
import {
|
|
23
23
|
WalletConnection,
|
|
24
24
|
connect,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
discoverProviders,
|
|
27
27
|
getWallet,
|
|
28
28
|
isInstalled
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UTYGJZAX.js";
|
|
30
30
|
import {
|
|
31
31
|
CairnError,
|
|
32
32
|
ContentVerificationError,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
errorCode,
|
|
41
41
|
mapProviderError,
|
|
42
42
|
mapSubmitResultError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-PHX4NZCI.js";
|
|
44
44
|
|
|
45
45
|
// src/names.ts
|
|
46
46
|
import { NAME_RE, RESERVED_NAMES } from "@inversealtruism/cairnx-core";
|
|
@@ -286,7 +286,7 @@ async function preverifyOffer(opts) {
|
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
// src/index.ts
|
|
289
|
-
var DEFAULT_SPV_CHECKPOINT = { height:
|
|
289
|
+
var DEFAULT_SPV_CHECKPOINT = { height: 101998, hash: "0x0000000000085295c9e13bbf276a11affb5470059235d1ea85d6334c8b43c49c" };
|
|
290
290
|
var DEFAULT_CAIRN = "https://cairn-substrate.com";
|
|
291
291
|
var SPV_HTTP_TIMEOUT_MS = 15e3;
|
|
292
292
|
var SPV_HTTP_MAX_RETRIES = 4;
|
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.4.
|
|
29
|
+
var SDK_VERSION = "0.4.4";
|
|
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-WIJJJEAK.js";
|
|
4
|
+
import "./chunk-UTYGJZAX.js";
|
|
5
|
+
import "./chunk-PHX4NZCI.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.4.
|
|
39
|
+
var SDK_VERSION = "0.4.4";
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inversealtruism/cairn-sdk",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "The Compute Substrate dApp kit
|
|
3
|
+
"version": "0.4.4",
|
|
4
|
+
"description": "The Compute Substrate dApp kit — one cohesive toolkit to connect the Cairn Wallet, read the chain/board, publish self-certifying content, and resolve registries. Composes the published csd-* primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -58,26 +58,12 @@
|
|
|
58
58
|
"LICENSE",
|
|
59
59
|
"README.md"
|
|
60
60
|
],
|
|
61
|
-
"scripts": {
|
|
62
|
-
"build": "tsup src/index.ts src/connect.ts src/board.ts src/indexer.ts src/content.ts src/registry.ts src/chain.ts src/controller.ts src/react.ts --format esm,cjs --dts --clean",
|
|
63
|
-
"test": "node test/run.mjs",
|
|
64
|
-
"test:live": "node examples/read-only.mjs",
|
|
65
|
-
"build:example": "node scripts/build-example.mjs",
|
|
66
|
-
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
67
|
-
"test:e2e:read": "node test/e2e/e2e-read.mjs",
|
|
68
|
-
"test:e2e:wallet": "xvfb-run -a node test/e2e/e2e-wallet-connect.mjs",
|
|
69
|
-
"test:e2e:write": "node test/e2e/e2e-write.mjs",
|
|
70
|
-
"test:e2e": "node test/e2e/e2e-read.mjs && xvfb-run -a node test/e2e/e2e-wallet-connect.mjs",
|
|
71
|
-
"test:all": "pnpm test && pnpm test:e2e",
|
|
72
|
-
"prepack": "pnpm build",
|
|
73
|
-
"prepublishOnly": "npm run build && npm test"
|
|
74
|
-
},
|
|
75
61
|
"dependencies": {
|
|
76
|
-
"@inversealtruism/cairnx-core": "0.1.
|
|
62
|
+
"@inversealtruism/cairnx-core": "0.1.42",
|
|
77
63
|
"@inversealtruism/csd-client": "0.1.16",
|
|
78
64
|
"@inversealtruism/csd-codec": "0.1.16",
|
|
79
65
|
"@inversealtruism/csd-crypto": "0.1.15",
|
|
80
|
-
"@inversealtruism/csd-light": "0.1.
|
|
66
|
+
"@inversealtruism/csd-light": "0.1.21",
|
|
81
67
|
"@inversealtruism/csd-registry": "0.1.17",
|
|
82
68
|
"@inversealtruism/csd-tx": "0.1.18"
|
|
83
69
|
},
|
|
@@ -90,12 +76,6 @@
|
|
|
90
76
|
"typescript": "^5.6.0"
|
|
91
77
|
},
|
|
92
78
|
"sideEffects": false,
|
|
93
|
-
"packageManager": "pnpm@10.32.1",
|
|
94
|
-
"pnpm": {
|
|
95
|
-
"onlyBuiltDependencies": [
|
|
96
|
-
"esbuild"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
79
|
"license": "MIT",
|
|
100
80
|
"publishConfig": {
|
|
101
81
|
"access": "public"
|
|
@@ -113,5 +93,17 @@
|
|
|
113
93
|
"dapp",
|
|
114
94
|
"sdk",
|
|
115
95
|
"blockchain"
|
|
116
|
-
]
|
|
96
|
+
],
|
|
97
|
+
"scripts": {
|
|
98
|
+
"build": "tsup src/index.ts src/connect.ts src/board.ts src/indexer.ts src/content.ts src/registry.ts src/chain.ts src/controller.ts src/react.ts --format esm,cjs --dts --clean",
|
|
99
|
+
"test": "node test/run.mjs",
|
|
100
|
+
"test:live": "node examples/read-only.mjs",
|
|
101
|
+
"build:example": "node scripts/build-example.mjs",
|
|
102
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
103
|
+
"test:e2e:read": "node test/e2e/e2e-read.mjs",
|
|
104
|
+
"test:e2e:wallet": "xvfb-run -a node test/e2e/e2e-wallet-connect.mjs",
|
|
105
|
+
"test:e2e:write": "node test/e2e/e2e-write.mjs",
|
|
106
|
+
"test:e2e": "node test/e2e/e2e-read.mjs && xvfb-run -a node test/e2e/e2e-wallet-connect.mjs",
|
|
107
|
+
"test:all": "pnpm test && pnpm test:e2e"
|
|
108
|
+
}
|
|
117
109
|
}
|