@capxul/sdk 4.20.0-beta.5 → 4.20.0-beta.7
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 +57 -26
- package/dist/{OAuthBearerAuthClient-BAxoi3SD.d.mts → OAuthBearerAuthClient-DOPDDSPs.d.mts} +9 -4
- package/dist/{OAuthBearerAuthClient-BqQz-bnO.mjs → OAuthBearerAuthClient-DdKYPHE0.mjs} +94 -102
- package/dist/index.d.mts +65 -17
- package/dist/index.mjs +3 -3
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/{production-q0kwUWcj.mjs → production-B63Xm_fl.mjs} +3588 -2153
- package/dist/{production-DAhaxUik.d.mts → production-UMTDZSTH.d.mts} +804 -177
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +6 -6
- package/package.json +5 -5
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as CapxulResult } from "../OAuthBearerAuthClient-
|
|
2
|
-
import {
|
|
1
|
+
import { h as CapxulResult } from "../OAuthBearerAuthClient-DOPDDSPs.mjs";
|
|
2
|
+
import { Fr as TelemetryIdentifyInput, Kr as IdentityTransition, Nr as TelemetryEvent, Pr as TelemetryGroupInput, g as CapxulClient, i as ObservationAdapter, n as ProductionSignerControls, t as CapxulClientInput } from "../production-UMTDZSTH.mjs";
|
|
3
3
|
import { Effect, Layer } from "effect";
|
|
4
4
|
//#region src/testing/production-client.d.ts
|
|
5
5
|
/** Create the one production client with per-client controls at its signing boundaries. */
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as accountFromAccountPositions, N as redactTelemetryEvent, V as assetAmountFromRaw, a as smartAccountErrorFromCapxul, c as identityErrorFromCapxul, i as assembleCapxulClient, l as convexCallErrorFromCapxul, n as createCapxulClientWithSignerControls, o as accountReadErrorFromCapxul, s as wireChainId, u as bootstrapErrorFromCapxul
|
|
2
|
-
import {
|
|
1
|
+
import { K as toRaw, L as accountFromAccountPositions, N as redactTelemetryEvent, V as assetAmountFromRaw, a as smartAccountErrorFromCapxul, c as identityErrorFromCapxul, i as assembleCapxulClient, l as convexCallErrorFromCapxul, n as createCapxulClientWithSignerControls, o as accountReadErrorFromCapxul, s as wireChainId, u as bootstrapErrorFromCapxul } from "../production-B63Xm_fl.mjs";
|
|
2
|
+
import { $ as toKycTier, B as toAppId, G as toCountryCode, H as toAuthUserId, J as toEmail, L as toAccountId, Q as toJwtToken, R as toAddress, W as toChainId, X as toEpochSeconds, Y as toEpochMs, Z as toHandle, ct as toSessionToken, d as authClientPortFromPromiseAdapter, dt as toWeiAmount, ft as validateHandle, gt as CapxulError, n as readClockNow, ot as toPublishableKey, q as toDurationMs, r as InMemoryAuthCacheAdapter, v as deriveCapxulSafeAddress, vt as Errors, y as CONFIGURED_MONEY_ASSETS, z as toAllowedOrigin } from "../OAuthBearerAuthClient-DdKYPHE0.mjs";
|
|
3
3
|
import { keccak256 } from "viem";
|
|
4
4
|
import { Effect, Result, Semaphore } from "effect";
|
|
5
5
|
import { getFunctionName } from "convex/server";
|
|
@@ -134,8 +134,8 @@ var InMemoryAccountReadAdapter = class {
|
|
|
134
134
|
const scriptedFailure = this.#deps.failures?.fundFromFaucet;
|
|
135
135
|
if (scriptedFailure !== void 0) return Effect.fail(accountReadErrorFromCapxul("fundFromFaucet", scriptedFailure));
|
|
136
136
|
const asset = this.#asset();
|
|
137
|
-
if (input.amount.
|
|
138
|
-
const minted =
|
|
137
|
+
if (input.amount.asset !== asset.assetId) return Effect.fail(accountReadErrorFromCapxul("fundFromFaucet", Errors.invalidInput("amount.asset", "must match adapter config")));
|
|
138
|
+
const minted = toRaw(input.amount, asset);
|
|
139
139
|
this.#rawBalance = (BigInt(this.#rawBalance) + minted).toString();
|
|
140
140
|
return Effect.succeed({ txHash: "0x" + "f".repeat(64) });
|
|
141
141
|
}
|
|
@@ -144,8 +144,8 @@ function cloneAccount(account) {
|
|
|
144
144
|
return {
|
|
145
145
|
id: account.id,
|
|
146
146
|
balances: account.balances.map((position) => ({ ...position })),
|
|
147
|
-
balance: { ...account.balance },
|
|
148
|
-
available: { ...account.available }
|
|
147
|
+
balance: account.balance === null ? null : { ...account.balance },
|
|
148
|
+
available: account.available === null ? null : { ...account.available }
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capxul/sdk",
|
|
3
|
-
"version": "4.20.0-beta.
|
|
3
|
+
"version": "4.20.0-beta.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/Xelmar-tech/infrastructure.git",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.0",
|
|
50
50
|
"vite-plus": "0.3.0",
|
|
51
51
|
"vitest": "4.1.11",
|
|
52
|
-
"@capxul/config": "0.
|
|
52
|
+
"@capxul/config": "0.4.0-beta.0",
|
|
53
53
|
"@capxul/errors": "0.3.0",
|
|
54
|
+
"@capxul/types": "0.3.0",
|
|
54
55
|
"@capxul/typescript-config": "0.0.0",
|
|
55
|
-
"@capxul/observability": "4.20.0-beta.
|
|
56
|
-
"@capxul/wire": "0.8.0-beta.
|
|
57
|
-
"@capxul/types": "0.3.0"
|
|
56
|
+
"@capxul/observability": "4.20.0-beta.7",
|
|
57
|
+
"@capxul/wire": "0.8.0-beta.1"
|
|
58
58
|
},
|
|
59
59
|
"_permissionlessPinReason": "permissionless.toSafeSmartAccount is pinned to 0.3.4 for live Safe deployment E2E. Counterfactual address fixtures captured 2026-05-17 in packages/backend/convex/_shared/__tests__/counterfactual.test.ts and packages/config/tests/safe.test.ts must be re-verified before upgrading.",
|
|
60
60
|
"scripts": {
|