@dynamic-labs-wallet/core 0.0.354 → 0.1.0-request-signing
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/index.cjs +2632 -367
- package/index.esm.js +2550 -332
- package/package.json +21 -8
- package/src/api/api.d.ts +550 -121
- package/src/api/api.d.ts.map +1 -1
- package/src/api/client.d.ts +33 -1
- package/src/api/client.d.ts.map +1 -1
- package/src/api/index.d.ts +3 -0
- package/src/api/index.d.ts.map +1 -1
- package/src/api/requestSigner.d.ts +19 -0
- package/src/api/requestSigner.d.ts.map +1 -0
- package/src/api/signAndBroadcastRequestTooLargeError.d.ts +8 -0
- package/src/api/signAndBroadcastRequestTooLargeError.d.ts.map +1 -0
- package/src/api/types.d.ts +26 -0
- package/src/api/types.d.ts.map +1 -0
- package/src/businessAccounts/businessAccountClient.d.ts +128 -0
- package/src/businessAccounts/businessAccountClient.d.ts.map +1 -0
- package/src/businessAccounts/index.d.ts +3 -0
- package/src/businessAccounts/index.d.ts.map +1 -0
- package/src/businessAccounts/types.d.ts +121 -0
- package/src/businessAccounts/types.d.ts.map +1 -0
- package/src/constants.d.ts +29 -15
- package/src/constants.d.ts.map +1 -1
- package/src/earn/earnClient.d.ts +79 -0
- package/src/earn/earnClient.d.ts.map +1 -0
- package/src/earn/index.d.ts +3 -0
- package/src/earn/index.d.ts.map +1 -0
- package/src/earn/types.d.ts +23 -0
- package/src/earn/types.d.ts.map +1 -0
- package/src/eventStream/signingConsentRequiredError.d.ts +33 -0
- package/src/eventStream/signingConsentRequiredError.d.ts.map +1 -0
- package/src/eventStream/utils.d.ts +89 -5
- package/src/eventStream/utils.d.ts.map +1 -1
- package/src/exportIntent.d.ts +13 -0
- package/src/exportIntent.d.ts.map +1 -0
- package/src/index.d.ts +8 -0
- package/src/index.d.ts.map +1 -1
- package/src/internal/sdk-api-core/index.d.ts +2 -0
- package/src/internal/sdk-api-core/index.d.ts.map +1 -0
- package/src/mpc/constants.d.ts +17 -0
- package/src/mpc/constants.d.ts.map +1 -1
- package/src/mpc/index.d.ts +1 -0
- package/src/mpc/index.d.ts.map +1 -1
- package/src/mpc/privateKey.d.ts +20 -0
- package/src/mpc/privateKey.d.ts.map +1 -0
- package/src/mpc/utils.d.ts +1 -0
- package/src/mpc/utils.d.ts.map +1 -1
- package/src/reshareIntent.d.ts +14 -0
- package/src/reshareIntent.d.ts.map +1 -0
- package/src/services/axiosErrorResponse.d.ts +18 -3
- package/src/services/axiosErrorResponse.d.ts.map +1 -1
- package/src/signingIntent.d.ts +28 -0
- package/src/signingIntent.d.ts.map +1 -0
- package/src/types.d.ts +960 -91
- package/src/types.d.ts.map +1 -1
- package/src/utils/attachRequestIds.d.ts +8 -0
- package/src/utils/attachRequestIds.d.ts.map +1 -0
- package/src/utils/forwardMpcEnclaveUrl.d.ts +9 -0
- package/src/utils/forwardMpcEnclaveUrl.d.ts.map +1 -0
- package/src/utils/forwardMpcErrorHandling.d.ts +44 -1
- package/src/utils/forwardMpcErrorHandling.d.ts.map +1 -1
- package/src/utils/forwardMpcFallback.d.ts +33 -0
- package/src/utils/forwardMpcFallback.d.ts.map +1 -0
- package/src/utils/index.d.ts +9 -0
- package/src/utils/index.d.ts.map +1 -1
- package/src/utils/isEvmCompatibleChain/index.d.ts +2 -0
- package/src/utils/isEvmCompatibleChain/index.d.ts.map +1 -0
- package/src/utils/isEvmCompatibleChain/isEvmCompatibleChain.d.ts +28 -0
- package/src/utils/isEvmCompatibleChain/isEvmCompatibleChain.d.ts.map +1 -0
- package/src/utils/keyShare.d.ts +8 -0
- package/src/utils/keyShare.d.ts.map +1 -1
- package/src/utils/messageSerialization.d.ts.map +1 -1
- package/src/utils/rawMessage.d.ts +4 -0
- package/src/utils/rawMessage.d.ts.map +1 -0
- package/src/utils/serializeError.d.ts +16 -0
- package/src/utils/serializeError.d.ts.map +1 -0
- package/src/utils/toJsonSafeContext.d.ts +4 -0
- package/src/utils/toJsonSafeContext.d.ts.map +1 -0
- package/src/utils/uuid.d.ts +2 -0
- package/src/utils/uuid.d.ts.map +1 -0
- package/src/utils/withTraceId.d.ts +7 -0
- package/src/utils/withTraceId.d.ts.map +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { DynamicApiClient } from '../api/api.js';
|
|
2
|
+
import type { TraceContext } from '../types.js';
|
|
3
|
+
import type { EarnChainName, EarnEarnings, EarnSigningPayload, EarnVaultDetails, EarnVaultPosition, EarnVaultPositionPerformance, EarnVaultReward, EarnVaultSummary } from './types.js';
|
|
4
|
+
export interface EarnClientDeps {
|
|
5
|
+
/**
|
|
6
|
+
* Resolved per call rather than captured, because the node client rebuilds its
|
|
7
|
+
* API client on every authentication.
|
|
8
|
+
*/
|
|
9
|
+
getApiClient: () => DynamicApiClient;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Earn (yield vault) reads and unsigned-transaction builders. Lives in core so
|
|
13
|
+
* the browser and node clients can compose it. The `prepare*` methods only ask
|
|
14
|
+
* the API for a payload — executing it on-chain is the chain client's job.
|
|
15
|
+
*/
|
|
16
|
+
export declare class EarnClient {
|
|
17
|
+
private readonly getApiClient;
|
|
18
|
+
constructor({ getApiClient }: EarnClientDeps);
|
|
19
|
+
/** Vaults enabled for the environment. */
|
|
20
|
+
listVaults(options?: {
|
|
21
|
+
traceContext?: TraceContext;
|
|
22
|
+
}): Promise<EarnVaultSummary[]>;
|
|
23
|
+
/** Full detail for a single vault, including the addresses needed to deposit. */
|
|
24
|
+
getVaultDetails(vaultId: string, options?: {
|
|
25
|
+
traceContext?: TraceContext;
|
|
26
|
+
}): Promise<EarnVaultDetails>;
|
|
27
|
+
/** An owner's shares and underlying assets in a vault. */
|
|
28
|
+
getPosition({ vaultId, ownerAddress, traceContext, }: {
|
|
29
|
+
vaultId: string;
|
|
30
|
+
ownerAddress: string;
|
|
31
|
+
traceContext?: TraceContext;
|
|
32
|
+
}): Promise<EarnVaultPosition>;
|
|
33
|
+
/** Indexed performance of an owner's position in a vault (trails the chain head). */
|
|
34
|
+
getPerformance({ vaultId, ownerAddress, traceContext, }: {
|
|
35
|
+
vaultId: string;
|
|
36
|
+
ownerAddress: string;
|
|
37
|
+
traceContext?: TraceContext;
|
|
38
|
+
}): Promise<EarnVaultPositionPerformance>;
|
|
39
|
+
/** An owner's earnings across every vault on a chain, with USD totals and a per-vault breakdown. */
|
|
40
|
+
getEarnings({ ownerAddress, chainId, chainName, traceContext, }: {
|
|
41
|
+
ownerAddress: string;
|
|
42
|
+
chainId: number;
|
|
43
|
+
chainName?: EarnChainName;
|
|
44
|
+
traceContext?: TraceContext;
|
|
45
|
+
}): Promise<EarnEarnings>;
|
|
46
|
+
/** Rewards accrued by an owner in a vault. */
|
|
47
|
+
getRewards({ vaultId, ownerAddress, traceContext, }: {
|
|
48
|
+
vaultId: string;
|
|
49
|
+
ownerAddress: string;
|
|
50
|
+
traceContext?: TraceContext;
|
|
51
|
+
}): Promise<EarnVaultReward[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Unsigned deposit transaction, plus an ERC-20 approval when the vault's
|
|
54
|
+
* allowance is short. Shares are credited to `receiverAddress` when given,
|
|
55
|
+
* otherwise to `ownerAddress`.
|
|
56
|
+
*/
|
|
57
|
+
prepareDeposit({ vaultId, ownerAddress, amount, receiverAddress, traceContext, }: {
|
|
58
|
+
vaultId: string;
|
|
59
|
+
ownerAddress: string;
|
|
60
|
+
amount: string;
|
|
61
|
+
receiverAddress?: string;
|
|
62
|
+
traceContext?: TraceContext;
|
|
63
|
+
}): Promise<EarnSigningPayload>;
|
|
64
|
+
/** Unsigned withdrawal transaction. `amount` is in the vault asset's raw units. */
|
|
65
|
+
prepareWithdrawal({ vaultId, ownerAddress, amount, receiverAddress, traceContext, }: {
|
|
66
|
+
vaultId: string;
|
|
67
|
+
ownerAddress: string;
|
|
68
|
+
amount: string;
|
|
69
|
+
receiverAddress?: string;
|
|
70
|
+
traceContext?: TraceContext;
|
|
71
|
+
}): Promise<EarnSigningPayload>;
|
|
72
|
+
/** Unsigned transaction that claims every reward accrued by `ownerAddress`. */
|
|
73
|
+
prepareClaimRewards({ vaultId, ownerAddress, traceContext, }: {
|
|
74
|
+
vaultId: string;
|
|
75
|
+
ownerAddress: string;
|
|
76
|
+
traceContext?: TraceContext;
|
|
77
|
+
}): Promise<EarnSigningPayload>;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=earnClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"earnClient.d.ts","sourceRoot":"","sources":["../../src/earn/earnClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,eAAe,EACf,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,YAAY,EAAE,MAAM,gBAAgB,CAAC;CACtC;AAED;;;;GAIG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyB;gBAE1C,EAAE,YAAY,EAAE,EAAE,cAAc;IAI5C,0CAA0C;IACpC,UAAU,CAAC,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAKxF,iFAAiF;IAC3E,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI5G,0DAA0D;IACpD,WAAW,CAAC,EAChB,OAAO,EACP,YAAY,EACZ,YAAY,GACb,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAA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AE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,YAAY,CAAC,EAAE,YAAY,CAAC;KAC7B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAW/B,+EAA+E;IACzE,mBAAmB,CAAC,EACxB,OAAO,EACP,YAAY,EACZ,YAAY,GACb,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,YAAY,CAAC;KAC7B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/earn/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ChainEnum, YieldEarnings, YieldSigningPayload, YieldTransactionStep, YieldVaultActionResponse, YieldVaultDetails, YieldVaultEarnings, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultReward, YieldVaultRewardsResponse, YieldVaultSummary } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
export type EarnVaultSummary = YieldVaultSummary;
|
|
3
|
+
export type EarnVaultDetails = YieldVaultDetails;
|
|
4
|
+
export type EarnVaultPosition = YieldVaultPosition;
|
|
5
|
+
export type EarnVaultPositionPerformance = YieldVaultPositionPerformance;
|
|
6
|
+
export type EarnEarnings = YieldEarnings;
|
|
7
|
+
export type EarnVaultEarnings = YieldVaultEarnings;
|
|
8
|
+
export type EarnVaultReward = YieldVaultReward;
|
|
9
|
+
/** Chain family for earnings lookups (e.g. `ChainEnum.Evm`, `ChainEnum.Sol`); defaults to EVM. */
|
|
10
|
+
export type EarnChainName = ChainEnum;
|
|
11
|
+
export type EarnVaultListResponse = YieldVaultListResponse;
|
|
12
|
+
export type EarnVaultRewardsResponse = YieldVaultRewardsResponse;
|
|
13
|
+
/** Unsigned transaction (plus optional ERC-20 approval) that the caller executes on-chain. */
|
|
14
|
+
export type EarnSigningPayload = YieldSigningPayload;
|
|
15
|
+
export type EarnVaultActionResponse = YieldVaultActionResponse;
|
|
16
|
+
/** A single ordered transaction in a multi-step signing payload (Solana vaults). */
|
|
17
|
+
export type EarnTransactionStep = YieldTransactionStep;
|
|
18
|
+
/** Step reported while an Earn write action is executed on-chain. */
|
|
19
|
+
export type EarnExecutionStep = 'approval' | 'transaction';
|
|
20
|
+
export type EarnTransactionResult = {
|
|
21
|
+
transactionHash: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/earn/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAKpC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAE/C,kGAAkG;AAClG,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC;AAEtC,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAC;AAEjE,8FAA8F;AAC9F,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,oFAAoF;AACpF,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReshareRecoveryEncryptionKey, SigningIntent, SigningQuorumActionRequired } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Thrown when a signMessage/signTransaction SSE stream ends with `consent_required` instead of
|
|
4
|
+
* completing — the wallet belongs to a business account with an unmet signing-quorum requirement.
|
|
5
|
+
* Mirrors `BusinessAccountActionRequired`: `reason` tells the caller whether to sign `intent`
|
|
6
|
+
* (`INTENT_REQUIRED`) or wait for approvals on `proposalId` (`APPROVALS_REQUIRED`).
|
|
7
|
+
*
|
|
8
|
+
* A governed offline-recovery reshare's `INTENT_REQUIRED` also carries
|
|
9
|
+
* `offlineRecoveryEncryptionKey`, the key the server will encrypt the recovery
|
|
10
|
+
* share to; the reshare Intent must echo it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SigningConsentRequiredError extends Error implements SigningQuorumActionRequired {
|
|
13
|
+
reason: 'INTENT_REQUIRED' | 'APPROVALS_REQUIRED';
|
|
14
|
+
intent?: SigningIntent;
|
|
15
|
+
proposalId?: string;
|
|
16
|
+
approvalRequirements?: unknown[];
|
|
17
|
+
offlineRecoveryEncryptionKey?: ReshareRecoveryEncryptionKey;
|
|
18
|
+
constructor(actionRequired: SigningQuorumActionRequired & {
|
|
19
|
+
offlineRecoveryEncryptionKey?: ReshareRecoveryEncryptionKey;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The consent error for a server's action-required payload, also handed to the caller's `onError`.
|
|
24
|
+
* Every transport reports it this way: the browser's cached-room sign ignores the request's
|
|
25
|
+
* rejection and only reacts to `onError`, so skipping it leaves the sign waiting for a timeout.
|
|
26
|
+
*/
|
|
27
|
+
export declare const reportConsentRequired: (actionRequired: SigningQuorumActionRequired, onError?: (error: Error) => void) => SigningConsentRequiredError;
|
|
28
|
+
/**
|
|
29
|
+
* The `202 { code: 'consent_required', reason, ... }` body the HTTP ceremony transport answers with
|
|
30
|
+
* where the SSE stream would send a `consent_required` event. `undefined` for any other body.
|
|
31
|
+
*/
|
|
32
|
+
export declare const asConsentRequiredFrom202Body: (body: unknown) => SigningQuorumActionRequired | undefined;
|
|
33
|
+
//# sourceMappingURL=signingConsentRequiredError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signingConsentRequiredError.d.ts","sourceRoot":"","sources":["../../src/eventStream/signingConsentRequiredError.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE5G;;;;;;;;;GASG;AACH,qBAAa,2BAA4B,SAAQ,KAAM,YAAW,2BAA2B;IAC3F,MAAM,EAAE,iBAAiB,GAAG,oBAAoB,CAAC;IACjD,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC;IACjC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;gBAG1D,cAAc,EAAE,2BAA2B,GAAG;QAAE,4BAA4B,CAAC,EAAE,4BAA4B,CAAA;KAAE;CAYhH;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,mBAChB,2BAA2B,YACjC,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,KAC/B,2BAIF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,SAAU,OAAO,KAAG,2BAA2B,GAAG,SAI5E,CAAC"}
|
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import {
|
|
2
|
+
import { type BusinessAccountActionRequired } from '../businessAccounts/types.js';
|
|
3
|
+
import { SuccessEventType, type TraceContext } from '../types.js';
|
|
4
|
+
import type { BusinessAccountAddSignerCeremonyComplete, BusinessAccountAddSignerTargetType, WaasCreateCeremonyComplete, WaasShareSetCeremonyComplete, WaasWalletShareSetType } from '#internal/sdk-api-core';
|
|
5
|
+
/**
|
|
6
|
+
* `shareSetType` and `targetType` as plain strings: `#internal/sdk-api-core` is
|
|
7
|
+
* type-only, so its generated enums can't be compared by value.
|
|
8
|
+
*/
|
|
9
|
+
type EnumValues = {
|
|
10
|
+
shareSetType: `${WaasWalletShareSetType}`;
|
|
11
|
+
targetType: `${BusinessAccountAddSignerTargetType}`;
|
|
12
|
+
};
|
|
13
|
+
type WireOf<T> = {
|
|
14
|
+
[K in keyof T]: K extends keyof EnumValues ? EnumValues[K] : T[K];
|
|
15
|
+
};
|
|
16
|
+
/** `ceremony_complete` payload of create and import. */
|
|
17
|
+
export type CreateCeremonyComplete = WireOf<WaasCreateCeremonyComplete>;
|
|
18
|
+
/** Create completion over either transport: an HTTP poll only guarantees the wallet identity. */
|
|
19
|
+
export type KeygenCeremonyComplete = Pick<CreateCeremonyComplete, 'accountAddress' | 'walletId'> & Partial<CreateCeremonyComplete>;
|
|
20
|
+
/** `ceremony_complete` payload of refresh and reshare. */
|
|
21
|
+
export type ShareSetCeremonyComplete = WireOf<WaasShareSetCeremonyComplete>;
|
|
22
|
+
/** `ceremony_complete` payload of addSigner. */
|
|
23
|
+
export type AddSignerCeremonyComplete = WireOf<BusinessAccountAddSignerCeremonyComplete>;
|
|
24
|
+
export type CeremonyTargetType = AddSignerCeremonyComplete['targetType'];
|
|
3
25
|
export declare const getElapsedTime: (startTime?: number) => string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* A promise that can be rejected from outside. Paired with the SSE stream's
|
|
28
|
+
* onError callback it lets a caller race a ceremony (relay join, MPC
|
|
29
|
+
* operation) against server-side failures that arrive AFTER the success event
|
|
30
|
+
* (e.g. room_created) already resolved the handshake — a policy denial
|
|
31
|
+
* otherwise only surfaces as the ceremony's own timeout.
|
|
32
|
+
* The internal catch swallows a rejection that never wins a race so it can't
|
|
33
|
+
* surface as an unhandled rejection.
|
|
34
|
+
*/
|
|
35
|
+
export declare const createRejectablePromise: () => {
|
|
36
|
+
promise: Promise<never>;
|
|
37
|
+
reject: (error: Error) => void;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Redcoast's 422 intent_required envelope (`{ code, payload: { intent } }`),
|
|
41
|
+
* normalized to the same `{ reason, intent }` shape a 202 consent-pending
|
|
42
|
+
* body already carries. `undefined` for any other 422 body.
|
|
43
|
+
*/
|
|
44
|
+
export declare const asIntentRequiredFrom422Body: (parsed: unknown) => BusinessAccountActionRequired | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Diagnostic payload passed to onSlowDelivery when the success event has not
|
|
47
|
+
* arrived within the watchdog window. `headersReceived: true` with
|
|
48
|
+
* `eventsSeen: 0` is the proxy-buffering signature (stream open, bytes held in
|
|
49
|
+
* transit); `eventsSeen > 0` means the stream is alive but the server is slow
|
|
50
|
+
* producing the success event.
|
|
51
|
+
*/
|
|
52
|
+
export type SlowDeliveryMeta = {
|
|
53
|
+
elapsedMs: number;
|
|
54
|
+
endpoint: string;
|
|
55
|
+
eventsSeen: number;
|
|
56
|
+
headersReceived: boolean;
|
|
57
|
+
watchdogMs: number;
|
|
58
|
+
};
|
|
4
59
|
/**
|
|
5
60
|
* Creates a promise that resolves when a specific event is received from an event stream.
|
|
6
61
|
* Adds a timeout to prevent hanging and races the two promises.
|
|
@@ -10,7 +65,7 @@ export declare const getElapsedTime: (startTime?: number) => string | undefined;
|
|
|
10
65
|
* @param options The configuration options
|
|
11
66
|
* @returns A promise that resolves with the event data or rejects on timeout
|
|
12
67
|
*/
|
|
13
|
-
export declare const createEventStreamPromise: <T>({ apiClient, dynamicRequestId, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, onCeremonyComplete, mfaToken, elevatedAccessToken, forwardMPCClientEnabled, traceContext, }: {
|
|
68
|
+
export declare const createEventStreamPromise: <T, C = never>({ apiClient, dynamicRequestId, endpoint, body, successEventType, timeoutMs, timeoutMessage, onError, onCeremonyComplete, onSlowDelivery, slowDeliveryWatchdogMs, mfaToken, elevatedAccessToken, forwardMPCClientEnabled, traceContext, }: {
|
|
14
69
|
apiClient: AxiosInstance;
|
|
15
70
|
dynamicRequestId?: string;
|
|
16
71
|
endpoint: string;
|
|
@@ -19,7 +74,14 @@ export declare const createEventStreamPromise: <T>({ apiClient, dynamicRequestId
|
|
|
19
74
|
timeoutMs?: number;
|
|
20
75
|
timeoutMessage: string;
|
|
21
76
|
onError?: (error: Error) => void;
|
|
22
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Fires once if the success event has not arrived within
|
|
79
|
+
* slowDeliveryWatchdogMs. Diagnostic only — never aborts or alters the
|
|
80
|
+
* request; the main timeoutMs race still governs failure.
|
|
81
|
+
*/
|
|
82
|
+
onSlowDelivery?: (meta: SlowDeliveryMeta) => void;
|
|
83
|
+
slowDeliveryWatchdogMs?: number;
|
|
84
|
+
onCeremonyComplete?: (completion: C) => void;
|
|
23
85
|
mfaToken?: string;
|
|
24
86
|
elevatedAccessToken?: string;
|
|
25
87
|
forwardMPCClientEnabled?: boolean;
|
|
@@ -37,12 +99,14 @@ export declare const createEventStreamPromise: <T>({ apiClient, dynamicRequestId
|
|
|
37
99
|
* @param {function} [onError] - Optional callback for error handling, allowing custom error processing
|
|
38
100
|
* @returns {function} A response handler function that processes the event stream
|
|
39
101
|
*/
|
|
40
|
-
export declare const createSuccessErrorEventStreamHandler: <T>({ resolve, reject, successEventType, onError, onCeremonyComplete, }: {
|
|
102
|
+
export declare const createSuccessErrorEventStreamHandler: <T, C = never>({ resolve, reject, successEventType, onError, onCeremonyComplete, onEvent, }: {
|
|
41
103
|
resolve: (data: T) => void;
|
|
42
104
|
reject: (error: Error) => void;
|
|
43
105
|
successEventType: string;
|
|
44
106
|
onError?: (error: Error) => void;
|
|
45
|
-
|
|
107
|
+
/** Called for every parsed SSE event with its type. Used for delivery-lag diagnostics. */
|
|
108
|
+
onEvent?: (eventType: string) => void;
|
|
109
|
+
onCeremonyComplete?: (completion: C) => void;
|
|
46
110
|
}) => (response: {
|
|
47
111
|
status?: number;
|
|
48
112
|
data: {
|
|
@@ -54,4 +118,24 @@ export declare const createSuccessErrorEventStreamHandler: <T>({ resolve, reject
|
|
|
54
118
|
};
|
|
55
119
|
};
|
|
56
120
|
}) => void;
|
|
121
|
+
/**
|
|
122
|
+
* Sends a plain JSON POST and resolves with the parsed response body.
|
|
123
|
+
* A lightweight alternative to createEventStreamPromise for endpoints that
|
|
124
|
+
* return a single JSON object instead of an SSE stream.
|
|
125
|
+
*/
|
|
126
|
+
export declare const requestJson: <T>({ apiClient, dynamicRequestId, endpoint, body, idempotencyKey, timeoutMs, timeoutMessage, mfaToken, elevatedAccessToken, forwardMPCClientEnabled, onError, traceContext, }: {
|
|
127
|
+
apiClient: AxiosInstance;
|
|
128
|
+
dynamicRequestId?: string;
|
|
129
|
+
endpoint: string;
|
|
130
|
+
body: Record<string, unknown> | undefined;
|
|
131
|
+
idempotencyKey?: string;
|
|
132
|
+
timeoutMs?: number;
|
|
133
|
+
timeoutMessage: string;
|
|
134
|
+
mfaToken?: string;
|
|
135
|
+
elevatedAccessToken?: string;
|
|
136
|
+
forwardMPCClientEnabled?: boolean;
|
|
137
|
+
onError?: (error: Error) => void;
|
|
138
|
+
traceContext?: TraceContext;
|
|
139
|
+
}) => Promise<T>;
|
|
140
|
+
export {};
|
|
57
141
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/eventStream/ut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O,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,KAAG,OAAO,CAAC,CAAC,CAyBZ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExportIntent, ExportIntentParams } from './types.js';
|
|
2
|
+
/** Must match redcoast's and wallet-service's `WAAS_EXPORT_INTENT_ACTION`. */
|
|
3
|
+
export declare const WAAS_EXPORT_INTENT_ACTION = "waasExportQuorumApprove";
|
|
4
|
+
/**
|
|
5
|
+
* Builds the export Intent the initiator signs. It binds one `exportId`, so a
|
|
6
|
+
* set of approvals can't be replayed onto a different export. The server
|
|
7
|
+
* clamps `completeBy` to the policy rule's own window; it can only tighten it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createExportIntent: (request: ExportIntentParams, options?: {
|
|
10
|
+
now?: Date;
|
|
11
|
+
intentId?: string;
|
|
12
|
+
}) => ExportIntent;
|
|
13
|
+
//# sourceMappingURL=exportIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportIntent.d.ts","sourceRoot":"","sources":["../../packages/src/exportIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEnE,8EAA8E;AAC9E,eAAO,MAAM,yBAAyB,4BAA4B,CAAC;AAiCnE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YACpB,kBAAkB,YAClB;IAAE,GAAG,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KACzC,YAoBF,CAAC"}
|
package/src/index.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export * from './constants.js';
|
|
2
2
|
export * from './mpc/index.js';
|
|
3
3
|
export * from './api/index.js';
|
|
4
|
+
export * from './businessAccounts/index.js';
|
|
5
|
+
export * from './earn/index.js';
|
|
4
6
|
export * from './types.js';
|
|
7
|
+
export { createSigningIntent } from './signingIntent.js';
|
|
8
|
+
export { createExportIntent, WAAS_EXPORT_INTENT_ACTION } from './exportIntent.js';
|
|
9
|
+
export { createReshareIntent, WAAS_RESHARE_INTENT_ACTION } from './reshareIntent.js';
|
|
5
10
|
export * from './utils/index.js';
|
|
6
11
|
export * from './services/axiosErrorResponse.js';
|
|
7
12
|
export { Logger } from './services/logger.js';
|
|
13
|
+
export { SigningConsentRequiredError } from './eventStream/signingConsentRequiredError.js';
|
|
14
|
+
export { createRejectablePromise, type AddSignerCeremonyComplete, type CeremonyTargetType, type CreateCeremonyComplete, type KeygenCeremonyComplete, type ShareSetCeremonyComplete, } from './eventStream/utils.js';
|
|
15
|
+
export type { CreateWalletAccountApiRequest } from './api/api.js';
|
|
8
16
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrF,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsRequestLocations, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountAddSignerCeremonyComplete, BusinessAccountAddSignerTargetType, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountProposal, BusinessAccountProposalApprovalRecord, BusinessAccountSigner, BusinessAccountSigningProposalQuorum, BusinessAccountWallet, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsWithoutWalletIdRequest, CreateWaasAccountRequest, DelegatedShareDeliveryRequestEncryptedDelegatedShare, EncryptedWalletApiKey, EIP7702Authorization, Ed25519Variant, EmailVerificationCreateResponse, ExportAleoViewKeyRequest, ExportWaasWalletPrivateKeyRequest, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetEVMSponsoredTransactionStatusResponseStatusEnum, GetSVMSponsorAddressResponse, ImportWaasPrivateKeyRequest, InlineObject1, InlineObject2, InlineObject4, InlineResponse2001AllowedPrograms, InlineResponse2003, InlineResponse2004, InlineResponse2005, JwtVerifiedCredential, LinkBusinessAccountWalletSdkRequest, NonceResponse, NoncesResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, ProjectSettings, ProjectSettingsSdkWaasFireblocksMigration, ProjectSettingsSdkWaasICloud, RefreshKeySharesResponse, ReshareKind, ReshareRequest, RoomTypeEnum, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses, SdkUser, SignMessageApprovalQuorum, SignMessageApprovalQuorumIntent, SignMessageContext, SignMessageEvmTransaction, SignMessageEvmTypedData, SignMessageEvmUserOperation, SignMessageRawSign, SignMessageSvmTransaction, SignMessageWithWaasRequest, SmsCountryCode, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, UserIdentifierTypeEnum, VerifyResponse, WaasCreateCeremonyComplete, WaasPolicyArgumentConstraint, WaasPolicyRule, WaasPolicyRuleOperationRestrictions, WaasPolicyRuleValueLimit, WaasShareSet, WaasShareSetCeremonyComplete, WaasWalletProperties, WaasWalletSettings, WaasWalletShareSetType, WalletKeyShareInfo, ZerodevBundlerProvider, } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/internal/sdk-api-core/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iCAAiC,EACjC,0CAA0C,EAC1C,kCAAkC,EAClC,eAAe,EACf,wCAAwC,EACxC,kCAAkC,EAClC,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,qCAAqC,EACrC,qBAAqB,EACrB,oCAAoC,EACpC,qBAAqB,EACrB,+BAA+B,EAC/B,kBAAkB,EAClB,iCAAiC,EACjC,wBAAwB,EACxB,oDAAoD,EACpD,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,+BAA+B,EAC/B,wBAAwB,EACxB,iCAAiC,EACjC,qCAAqC,EACrC,wCAAwC,EACxC,kDAAkD,EAClD,4BAA4B,EAC5B,2BAA2B,EAC3B,aAAa,EACb,aAAa,EACb,aAAa,EACb,iCAAiC,EACjC,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,mCAAmC,EACnC,aAAa,EACb,cAAc,EACd,0BAA0B,EAC1B,mCAAmC,EACnC,eAAe,EACf,yCAAyC,EACzC,4BAA4B,EAC5B,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,kEAAkE,EAClE,OAAO,EACP,yBAAyB,EACzB,+BAA+B,EAC/B,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB,EACtB,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,cAAc,EACd,mCAAmC,EACnC,wBAAwB,EACxB,YAAY,EACZ,4BAA4B,EAC5B,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,4BAA4B,CAAC"}
|
package/src/mpc/constants.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Ed25519Variant as ApiEd25519Variant } from '#internal/sdk-api-core';
|
|
1
2
|
import { SigningAlgorithm } from '@dynamic-labs-wallet/primitives';
|
|
2
3
|
/**
|
|
3
4
|
* @deprecated Import from '@dynamic-labs-wallet/primitives' instead.
|
|
@@ -10,6 +11,22 @@ import { SigningAlgorithm } from '@dynamic-labs-wallet/primitives';
|
|
|
10
11
|
* @dynamic-labs-wallet/primitives.
|
|
11
12
|
*/
|
|
12
13
|
export { SigningAlgorithm };
|
|
14
|
+
/**
|
|
15
|
+
* Which ed25519 MPC protocol a wallet uses across its whole lifecycle.
|
|
16
|
+
*
|
|
17
|
+
* - `'ed25519Exportable'` (default): `ExportableEd25519` — treats the imported key as an
|
|
18
|
+
* RFC-8032 seed (SHA-512-expanded) and supports standard, interoperable RFC-8032
|
|
19
|
+
* private-key export. Every keygen'd ed25519 wallet (SVM/TON/SUI/...) uses this.
|
|
20
|
+
* - `'ed25519Standard'`: the non-exportable `Ed25519` protocol, which can import a **raw
|
|
21
|
+
* 32-byte signing scalar** (e.g. one exported from another MPC system such as
|
|
22
|
+
* Fireblocks Embedded Wallets, where no seed exists). `exportKey` on such a wallet
|
|
23
|
+
* returns exactly the raw scalar that was imported.
|
|
24
|
+
*
|
|
25
|
+
* The two protocols produce **incompatible key shares**, so a wallet must use the same
|
|
26
|
+
* variant for keygen/import and for every subsequent sign/reshare/refresh/export.
|
|
27
|
+
*/
|
|
28
|
+
export type Ed25519Variant = `${ApiEd25519Variant}`;
|
|
29
|
+
export declare const DEFAULT_ED25519_VARIANT: Ed25519Variant;
|
|
13
30
|
export declare const BITCOIN_DERIVATION_PATHS: {
|
|
14
31
|
NATIVE_SEGWIT: number[];
|
|
15
32
|
TAPROOT: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE;;;;;;;;;GASG;AACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CAUjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/mpc/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE;;;;;;;;;GASG;AACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GAAG,GAAG,iBAAiB,EAAE,CAAC;AAEpD,eAAO,MAAM,uBAAuB,EAAE,cAAoC,CAAC;AAE3E,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;CAIrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,MAAM,EACN;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CAUjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAAE,CA6D7G,CAAC;AAEF,oBAAY,wBAAwB;IAClC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AAEF,oBAAY,wBAAwB;IAClC,SAAS,cAAc;IACvB,IAAI,SAAS;CACd"}
|
package/src/mpc/index.d.ts
CHANGED
package/src/mpc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mpc/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BitcoinConfig } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Validates a private key for `importPrivateKey` before any API call or MPC
|
|
4
|
+
* ceremony starts, and returns it normalized for the MPC importer (surrounding
|
|
5
|
+
* whitespace trimmed, optional `0x` prefix stripped).
|
|
6
|
+
*
|
|
7
|
+
* Every chain expects a 32-byte hex key at this layer — chain-specific input
|
|
8
|
+
* formats (WIF, base58, bech32, Stellar seed) are converted to hex by the chain
|
|
9
|
+
* clients beforehand. For secp256k1 chains (ECDSA, BIP340) the key is also
|
|
10
|
+
* range-checked against the curve order.
|
|
11
|
+
*
|
|
12
|
+
* Error messages report only the key's length and character class — never the
|
|
13
|
+
* key material itself.
|
|
14
|
+
*/
|
|
15
|
+
export declare const normalizeAndValidatePrivateKey: ({ privateKey, chainName, bitcoinConfig, }: {
|
|
16
|
+
privateKey: string;
|
|
17
|
+
chainName: string;
|
|
18
|
+
bitcoinConfig?: BitcoinConfig;
|
|
19
|
+
}) => string;
|
|
20
|
+
//# sourceMappingURL=privateKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateKey.d.ts","sourceRoot":"","sources":["../../src/mpc/privateKey.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAgBjD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,8BAA8B,8CAIxC;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,KAAG,MAwCH,CAAC"}
|
package/src/mpc/utils.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const getDynamicServerThreshold: (thresholdSignatureScheme: Thres
|
|
|
41
41
|
export declare const getReshareConfig: ({ oldThresholdSignatureScheme, newThresholdSignatureScheme, }: {
|
|
42
42
|
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
43
43
|
newThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
44
|
+
delegateToProjectEnvironment?: boolean;
|
|
44
45
|
}) => {
|
|
45
46
|
existingClientShareCount: number;
|
|
46
47
|
newClientShareCount: number;
|
package/src/mpc/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mpc/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,wBAAwB,EAA+B,MAAM,gBAAgB,CAAC;AACrH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,gBACnB,kBAAkB,KAC9B;IAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAAC,gBAAgB,EAAE,gBAAgB,CAAA;CAQhE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,cAAe,MAAM,kBAAkB,aAAa;oBAhB7D,MAAM,EAAE;sBAAoB,gBAAgB;CA+BhE,CAAC;AAEF,eAAO,MAAM,YAAY,6BAA8B,wBAAwB;;;CAG9E,CAAC;AAEF,eAAO,MAAM,kBAAkB,6BAA8B,wBAAwB,WAEpF,CAAC;AAEF,eAAO,MAAM,yBAAyB,6BAA8B,wBAAwB,WAE3F,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,kEAG1B;IACD,2BAA2B,EAAE,wBAAwB,CAAC;IACtD,2BAA2B,EAAE,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file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AA2B,EAAE,MAAM,CAAC;IACpC,+BAA+B,EAAE,MAAM,CAAC;IACxC,0BAA0B,EAAE,MAAM,CAAC;CAwEpC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAWpE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReshareIntent, ReshareIntentParams } from './types.js';
|
|
2
|
+
/** Must match redcoast's and wallet-service's `WAAS_RESHARE_INTENT_ACTION`. */
|
|
3
|
+
export declare const WAAS_RESHARE_INTENT_ACTION = "waasReshareQuorumApprove";
|
|
4
|
+
/**
|
|
5
|
+
* Builds the reshare Intent the initiator signs. Its `operation` names the
|
|
6
|
+
* reshare and the fields that define it, so a set of approvals can't be
|
|
7
|
+
* replayed onto a different reshare. The server clamps `completeBy` to the policy rule's own
|
|
8
|
+
* window; it can only tighten it.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createReshareIntent: (request: ReshareIntentParams, options?: {
|
|
11
|
+
now?: Date;
|
|
12
|
+
intentId?: string;
|
|
13
|
+
}) => ReshareIntent;
|
|
14
|
+
//# sourceMappingURL=reshareIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reshareIntent.d.ts","sourceRoot":"","sources":["../../packages/src/reshareIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAErE,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,6BAA6B,CAAC;AA2BrE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YACrB,mBAAmB,YACnB;IAAE,GAAG,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KACzC,aA2BF,CAAC"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import type { AxiosError } from 'axios';
|
|
2
2
|
export declare class WalletApiError extends Error {
|
|
3
3
|
status: number;
|
|
4
|
-
|
|
4
|
+
code?: string;
|
|
5
|
+
constructor(status: number, message: string, code?: string);
|
|
5
6
|
}
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
7
|
+
export declare const extractServerErrorCode: (error: AxiosError) => string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* `status` for a request that never received an HTTP response at all — the
|
|
10
|
+
* client lost connectivity, the request was aborted, DNS/TLS failed, or CORS
|
|
11
|
+
* blocked it. 0 matches the XHR/`fetch` convention for "no response".
|
|
12
|
+
*
|
|
13
|
+
* This used to be reported as `500 Internal server error`, which made a
|
|
14
|
+
* client-side network failure indistinguishable from a backend fault: the
|
|
15
|
+
* "Backend 500s" monitor counted 1,395 events on a day when the API returned
|
|
16
|
+
* only 33 real 5xx responses.
|
|
17
|
+
*/
|
|
18
|
+
export declare const NETWORK_ERROR_STATUS = 0;
|
|
19
|
+
export declare const NETWORK_ERROR_CODE = "NETWORK_ERROR";
|
|
20
|
+
export declare const handleAxiosError: (error: AxiosError, message: string, context: Record<string, unknown>, options?: {
|
|
21
|
+
level?: "warn" | "error";
|
|
22
|
+
}) => never;
|
|
8
23
|
export type { AxiosError } from 'axios';
|
|
9
24
|
export { isAxiosError } from 'axios';
|
|
10
25
|
//# sourceMappingURL=axiosErrorResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axiosErrorResponse.d.ts","sourceRoot":"","sources":["../../src/services/axiosErrorResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"axiosErrorResponse.d.ts","sourceRoot":"","sources":["../../src/services/axiosErrorResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,qBAAa,cAAe,SAAQ,KAAK;IACvC,MAAM,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAM3D;AASD,eAAO,MAAM,sBAAsB,UAAW,UAAU,KAAG,MAAM,GAAG,SAInE,CAAC;AAIF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAqDlD,eAAO,MAAM,gBAAgB,UACpB,UAAU,WACR,MAAM,WACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAUtB;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,UAyCvC,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type Eip7702AuthOperation, type PreparedTransactionSigningIntent, type PrepareSigningIntentRequest, type SigningIntent } from './types.js';
|
|
2
|
+
type PreparedOperation = {
|
|
3
|
+
operation: {
|
|
4
|
+
kind: 'message';
|
|
5
|
+
chainName: string;
|
|
6
|
+
payload: string;
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
operation: {
|
|
10
|
+
kind: 'typedData';
|
|
11
|
+
chainName: 'EVM';
|
|
12
|
+
payload: string;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
operation: {
|
|
16
|
+
kind: 'raw';
|
|
17
|
+
chainName: string;
|
|
18
|
+
payload: string;
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
operation: Eip7702AuthOperation;
|
|
22
|
+
} | PreparedTransactionSigningIntent;
|
|
23
|
+
export declare const createSigningIntent: (request: PrepareSigningIntentRequest, prepared: PreparedOperation, options?: {
|
|
24
|
+
now?: Date;
|
|
25
|
+
intentId?: string;
|
|
26
|
+
}) => SigningIntent;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=signingIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signingIntent.d.ts","sourceRoot":"","sources":["../../packages/src/signingIntent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAMzB,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,aAAa,EAEnB,MAAM,YAAY,CAAC;AAGpB,KAAK,iBAAiB,GAClB;IAAE,SAAS,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACtE;IAAE,SAAS,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;QAAC,SAAS,EAAE,KAAK,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACvE;IAAE,SAAS,EAAE;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAClE;IAAE,SAAS,EAAE,oBAAoB,CAAA;CAAE,GACnC,gCAAgC,CAAC;AAwLrC,eAAO,MAAM,mBAAmB,YACrB,2BAA2B,YAC1B,iBAAiB,YAClB;IAAE,GAAG,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KACzC,aAKF,CAAC"}
|