@rhinestone/sdk 2.3.0 → 2.4.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/src/actions/mfa.d.ts +11 -6
- package/dist/src/actions/mfa.d.ts.map +1 -1
- package/dist/src/actions/mfa.js +19 -12
- package/dist/src/clients/orchestrator/client.js +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/modules/validators/multi-factor.d.ts +1 -0
- package/dist/src/modules/validators/multi-factor.d.ts.map +1 -1
- package/dist/src/modules/validators/multi-factor.js +1 -0
- package/package.json +1 -1
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import { type Hex } from 'viem';
|
|
1
|
+
import { type Address, type Hex } from 'viem';
|
|
2
2
|
import type { CalldataInput, LazyCallInput, OwnableValidatorConfig, WebauthnValidatorConfig } from '../config/account.js';
|
|
3
3
|
/**
|
|
4
4
|
* Enable multi-factor authentication
|
|
5
5
|
* @param validators List of validators to use
|
|
6
6
|
* @param threshold Threshold for the validators
|
|
7
|
+
* @param moduleAddress Multi-factor module to install. Defaults to the legacy module.
|
|
7
8
|
* @returns Calls to enable multi-factor authentication
|
|
8
9
|
*/
|
|
9
|
-
declare function enable(validators: (OwnableValidatorConfig | WebauthnValidatorConfig | null)[], threshold?: number): LazyCallInput;
|
|
10
|
+
declare function enable(validators: (OwnableValidatorConfig | WebauthnValidatorConfig | null)[], threshold?: number, moduleAddress?: Address): LazyCallInput;
|
|
10
11
|
/**
|
|
11
12
|
* Change the multi-factor threshold
|
|
12
13
|
* @param newThreshold New threshold
|
|
14
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
13
15
|
* @returns Call to change the threshold
|
|
14
16
|
*/
|
|
15
|
-
declare function changeThreshold(newThreshold: number): CalldataInput;
|
|
17
|
+
declare function changeThreshold(newThreshold: number, moduleAddress?: Address): CalldataInput;
|
|
16
18
|
/**
|
|
17
19
|
* Disable multi-factor authentication
|
|
20
|
+
* @param moduleAddress Multi-factor module to uninstall. Defaults to the legacy module.
|
|
18
21
|
* @returns Calls to disable multi-factor authentication
|
|
19
22
|
*/
|
|
20
|
-
declare function disable(): LazyCallInput;
|
|
23
|
+
declare function disable(moduleAddress?: Address): LazyCallInput;
|
|
21
24
|
/**
|
|
22
25
|
* Set a sub-validator (multi-factor)
|
|
23
26
|
* @param id Validator ID
|
|
24
27
|
* @param validator Validator module
|
|
28
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
25
29
|
* @returns Call to set the sub-validator
|
|
26
30
|
*/
|
|
27
|
-
declare function setSubValidator(id: Hex | number, validator: OwnableValidatorConfig | WebauthnValidatorConfig): CalldataInput;
|
|
31
|
+
declare function setSubValidator(id: Hex | number, validator: OwnableValidatorConfig | WebauthnValidatorConfig, moduleAddress?: Address): CalldataInput;
|
|
28
32
|
/**
|
|
29
33
|
* Remove a sub-validator (multi-factor)
|
|
30
34
|
* @param id Validator ID
|
|
31
35
|
* @param validator Validator module
|
|
36
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
32
37
|
* @returns Call to remove the sub-validator
|
|
33
38
|
*/
|
|
34
|
-
declare function removeSubValidator(id: Hex | number, validator: OwnableValidatorConfig | WebauthnValidatorConfig): CalldataInput;
|
|
39
|
+
declare function removeSubValidator(id: Hex | number, validator: OwnableValidatorConfig | WebauthnValidatorConfig, moduleAddress?: Address): CalldataInput;
|
|
35
40
|
export { enable, changeThreshold, disable, setSubValidator, removeSubValidator };
|
|
36
41
|
//# sourceMappingURL=mfa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa.d.ts","sourceRoot":"","sources":["../../../actions/mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,GAAG,EAAiB,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"mfa.d.ts","sourceRoot":"","sources":["../../../actions/mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAsB,KAAK,GAAG,EAAiB,MAAM,MAAM,CAAA;AAChF,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,mBAAmB,CAAA;AAgD1B;;;;;;GAMG;AACH,iBAAS,MAAM,CACb,UAAU,EAAE,CAAC,sBAAsB,GAAG,uBAAuB,GAAG,IAAI,CAAC,EAAE,EACvE,SAAS,SAAI,EACb,aAAa,CAAC,EAAE,OAAO,GACtB,aAAa,CAOf;AAED;;;;;GAKG;AACH,iBAAS,eAAe,CACtB,YAAY,EAAE,MAAM,EACpB,aAAa,GAAE,OAAwC,GACtD,aAAa,CAkBf;AAED;;;;GAIG;AACH,iBAAS,OAAO,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,aAAa,CAOvD;AAED;;;;;;GAMG;AACH,iBAAS,eAAe,CACtB,EAAE,EAAE,GAAG,GAAG,MAAM,EAChB,SAAS,EAAE,sBAAsB,GAAG,uBAAuB,EAC3D,aAAa,GAAE,OAAwC,GACtD,aAAa,CA+Bf;AAED;;;;;;GAMG;AACH,iBAAS,kBAAkB,CACzB,EAAE,EAAE,GAAG,GAAG,MAAM,EAChB,SAAS,EAAE,sBAAsB,GAAG,uBAAuB,EAC3D,aAAa,GAAE,OAAwC,GACtD,aAAa,CA2Bf;AAED,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,CAAA"}
|
package/dist/src/actions/mfa.js
CHANGED
|
@@ -6,12 +6,14 @@ import { resolveModuleInstallation, resolveModuleUninstallation, } from './runti
|
|
|
6
6
|
function factorModule(validator) {
|
|
7
7
|
return resolveValidator(defineValidator(validator));
|
|
8
8
|
}
|
|
9
|
-
function multiFactorModule(validators, threshold) {
|
|
9
|
+
function multiFactorModule(validators, threshold, moduleAddress) {
|
|
10
10
|
const definition = {
|
|
11
11
|
kind: 'multi-factor',
|
|
12
12
|
id: 'action/multi-factor',
|
|
13
13
|
publicId: 0,
|
|
14
|
-
module:
|
|
14
|
+
module: moduleAddress
|
|
15
|
+
? { source: 'explicit', address: moduleAddress }
|
|
16
|
+
: { source: 'default', profile: 'multi-factor' },
|
|
15
17
|
validators: validators.flatMap((validator, index) => validator
|
|
16
18
|
? [
|
|
17
19
|
defineValidator(validator, `action/multi-factor/${index}`, index),
|
|
@@ -25,10 +27,11 @@ function multiFactorModule(validators, threshold) {
|
|
|
25
27
|
* Enable multi-factor authentication
|
|
26
28
|
* @param validators List of validators to use
|
|
27
29
|
* @param threshold Threshold for the validators
|
|
30
|
+
* @param moduleAddress Multi-factor module to install. Defaults to the legacy module.
|
|
28
31
|
* @returns Calls to enable multi-factor authentication
|
|
29
32
|
*/
|
|
30
|
-
function enable(validators, threshold = 1) {
|
|
31
|
-
const module = multiFactorModule(validators, threshold);
|
|
33
|
+
function enable(validators, threshold = 1, moduleAddress) {
|
|
34
|
+
const module = multiFactorModule(validators, threshold, moduleAddress);
|
|
32
35
|
return {
|
|
33
36
|
async resolve(context) {
|
|
34
37
|
return resolveModuleInstallation(context, module);
|
|
@@ -38,11 +41,12 @@ function enable(validators, threshold = 1) {
|
|
|
38
41
|
/**
|
|
39
42
|
* Change the multi-factor threshold
|
|
40
43
|
* @param newThreshold New threshold
|
|
44
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
41
45
|
* @returns Call to change the threshold
|
|
42
46
|
*/
|
|
43
|
-
function changeThreshold(newThreshold) {
|
|
47
|
+
function changeThreshold(newThreshold, moduleAddress = MULTI_FACTOR_VALIDATOR_ADDRESS) {
|
|
44
48
|
return {
|
|
45
|
-
to:
|
|
49
|
+
to: moduleAddress,
|
|
46
50
|
value: 0n,
|
|
47
51
|
data: encodeFunctionData({
|
|
48
52
|
abi: [
|
|
@@ -61,10 +65,11 @@ function changeThreshold(newThreshold) {
|
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* Disable multi-factor authentication
|
|
68
|
+
* @param moduleAddress Multi-factor module to uninstall. Defaults to the legacy module.
|
|
64
69
|
* @returns Calls to disable multi-factor authentication
|
|
65
70
|
*/
|
|
66
|
-
function disable() {
|
|
67
|
-
const module = multiFactorModule([], 1);
|
|
71
|
+
function disable(moduleAddress) {
|
|
72
|
+
const module = multiFactorModule([], 1, moduleAddress);
|
|
68
73
|
return {
|
|
69
74
|
async resolve(context) {
|
|
70
75
|
return resolveModuleUninstallation(context, module);
|
|
@@ -75,13 +80,14 @@ function disable() {
|
|
|
75
80
|
* Set a sub-validator (multi-factor)
|
|
76
81
|
* @param id Validator ID
|
|
77
82
|
* @param validator Validator module
|
|
83
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
78
84
|
* @returns Call to set the sub-validator
|
|
79
85
|
*/
|
|
80
|
-
function setSubValidator(id, validator) {
|
|
86
|
+
function setSubValidator(id, validator, moduleAddress = MULTI_FACTOR_VALIDATOR_ADDRESS) {
|
|
81
87
|
const validatorId = padHex(toHex(id), { size: 12 });
|
|
82
88
|
const validatorModule = factorModule(validator);
|
|
83
89
|
return {
|
|
84
|
-
to:
|
|
90
|
+
to: moduleAddress,
|
|
85
91
|
value: 0n,
|
|
86
92
|
data: encodeFunctionData({
|
|
87
93
|
abi: [
|
|
@@ -113,13 +119,14 @@ function setSubValidator(id, validator) {
|
|
|
113
119
|
* Remove a sub-validator (multi-factor)
|
|
114
120
|
* @param id Validator ID
|
|
115
121
|
* @param validator Validator module
|
|
122
|
+
* @param moduleAddress Multi-factor module to update. Defaults to the legacy module.
|
|
116
123
|
* @returns Call to remove the sub-validator
|
|
117
124
|
*/
|
|
118
|
-
function removeSubValidator(id, validator) {
|
|
125
|
+
function removeSubValidator(id, validator, moduleAddress = MULTI_FACTOR_VALIDATOR_ADDRESS) {
|
|
119
126
|
const validatorId = padHex(toHex(id), { size: 12 });
|
|
120
127
|
const validatorModule = factorModule(validator);
|
|
121
128
|
return {
|
|
122
|
-
to:
|
|
129
|
+
to: moduleAddress,
|
|
123
130
|
value: 0n,
|
|
124
131
|
data: encodeFunctionData({
|
|
125
132
|
abi: [
|
|
@@ -3,7 +3,7 @@ import { createOrchestratorAuth } from './auth.js';
|
|
|
3
3
|
import { ChainCatalog, parseChains } from './chain-catalog.js';
|
|
4
4
|
import { fetchOrchestratorJson } from './fetch.js';
|
|
5
5
|
import { mapIntentRequestToWire, mapIntentStatusFromWire, mapPortfolioFromWire, mapQuoteResponseFromWire, mapSignedIntentToWire, mapSplitRequestToWire, mapSplitResultFromWire, } from './mappers.js';
|
|
6
|
-
const SDK_VERSION = '2.
|
|
6
|
+
const SDK_VERSION = '2.4.0';
|
|
7
7
|
const API_VERSION = '2026-04.blanc';
|
|
8
8
|
export function createOrchestratorClient(options) {
|
|
9
9
|
const fetchPort = options.fetch ?? globalThis.fetch;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RhinestoneSDK } from './api/sdk.js';
|
|
2
2
|
import { hyperCorePerp, hyperCoreSpot, solanaMainnet, tronMainnet } from './chains/non-evm.js';
|
|
3
|
-
import { MULTI_FACTOR_VALIDATOR_ADDRESS } from './modules/validators/multi-factor.js';
|
|
3
|
+
import { MULTI_FACTOR_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_V2_ADDRESS } from './modules/validators/multi-factor.js';
|
|
4
4
|
import { OWNABLE_VALIDATOR_ADDRESS } from './modules/validators/ownable.js';
|
|
5
5
|
import { SMART_SESSION_EMISSARY_ADDRESS } from './modules/validators/smart-sessions/module.js';
|
|
6
6
|
import { WEBAUTHN_VALIDATOR_ADDRESS } from './modules/validators/webauthn.js';
|
|
7
|
-
export { RhinestoneSDK, hyperCorePerp, hyperCoreSpot, solanaMainnet, tronMainnet, OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_ADDRESS, SMART_SESSION_EMISSARY_ADDRESS, };
|
|
7
|
+
export { RhinestoneSDK, hyperCorePerp, hyperCoreSpot, solanaMainnet, tronMainnet, OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_V2_ADDRESS, SMART_SESSION_EMISSARY_ADDRESS, };
|
|
8
8
|
export type { RhinestoneAccount, SignedIntentData } from './api/account.js';
|
|
9
9
|
export type { DestinationChain, NonEvmAddress, NonEvmChain, } from './chains/non-evm.js';
|
|
10
10
|
export type { AppFeeBalances, AppFeeRate, ApprovalRequired, AuxiliaryFunds, BridgeFill, ChainOperation, FailureReason, IntentInput, IntentOpStatus, OperationStatus, OriginSignature, Portfolio, ProtocolFeeRate, Quote, SerializedIntentInput, SettlementLayer, SettlementLayerFilter, SignData, SplitIntentsInput, SplitIntentsResult, TokenRequirements, WrapRequired, } from './clients/orchestrator/public.js';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EACL,aAAa,EACb,aAAa,EACb,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAA;AAC3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,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,8BAA8B,CAAA;AACrC,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,sCAAsC,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RhinestoneSDK } from './api/sdk.js';
|
|
2
2
|
import { hyperCorePerp, hyperCoreSpot, solanaMainnet, tronMainnet, } from './chains/non-evm.js';
|
|
3
|
-
import { MULTI_FACTOR_VALIDATOR_ADDRESS } from './modules/validators/multi-factor.js';
|
|
3
|
+
import { MULTI_FACTOR_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_V2_ADDRESS, } from './modules/validators/multi-factor.js';
|
|
4
4
|
import { OWNABLE_VALIDATOR_ADDRESS } from './modules/validators/ownable.js';
|
|
5
5
|
import { SMART_SESSION_EMISSARY_ADDRESS } from './modules/validators/smart-sessions/module.js';
|
|
6
6
|
import { WEBAUTHN_VALIDATOR_ADDRESS } from './modules/validators/webauthn.js';
|
|
@@ -8,4 +8,4 @@ export { RhinestoneSDK,
|
|
|
8
8
|
// Non-viem destination chain descriptors (Solana, Tron, HyperCore)
|
|
9
9
|
hyperCorePerp, hyperCoreSpot, solanaMainnet, tronMainnet,
|
|
10
10
|
// Validator addresses
|
|
11
|
-
OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_ADDRESS, SMART_SESSION_EMISSARY_ADDRESS, };
|
|
11
|
+
OWNABLE_VALIDATOR_ADDRESS, WEBAUTHN_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_ADDRESS, MULTI_FACTOR_VALIDATOR_V2_ADDRESS, SMART_SESSION_EMISSARY_ADDRESS, };
|
|
@@ -2,6 +2,7 @@ import { type Address, type Hex } from 'viem';
|
|
|
2
2
|
import type { ResolvedModule } from '../types.js';
|
|
3
3
|
import type { MultiFactorValidatorDefinition } from './types.js';
|
|
4
4
|
export declare const MULTI_FACTOR_VALIDATOR_ADDRESS: Address;
|
|
5
|
+
export declare const MULTI_FACTOR_VALIDATOR_V2_ADDRESS: Address;
|
|
5
6
|
export type AtomicValidatorResolver = (definition: MultiFactorValidatorDefinition['validators'][number]) => ResolvedModule;
|
|
6
7
|
export declare function encodeValidatorId(id: number | Hex): Hex;
|
|
7
8
|
export declare function resolveMultiFactorValidator(definition: MultiFactorValidatorDefinition, resolveAtomic: AtomicValidatorResolver): ResolvedModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-factor.d.ts","sourceRoot":"","sources":["../../../../modules/validators/multi-factor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAIZ,KAAK,GAAG,EAGT,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAA;AAE7D,eAAO,MAAM,8BAA8B,EAAE,OACC,CAAA;AAE9C,MAAM,MAAM,uBAAuB,GAAG,CACpC,UAAU,EAAE,8BAA8B,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,KAC7D,cAAc,CAAA;AAEnB,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAEvD;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,8BAA8B,EAC1C,aAAa,EAAE,uBAAuB,GACrC,cAAc,CAuChB;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,aAAa,EAAE,SAAS;QAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM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AG,CAAA;KAC3B,EAAE,CAAA;CACJ,GAAG,GAAG,CA6CN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { concat, encodeAbiParameters, encodePacked, pad, toHex, } from 'viem';
|
|
2
2
|
export const MULTI_FACTOR_VALIDATOR_ADDRESS = '0xf6bdf42c9be18ceca5c06c42a43daf7fbbe7896b';
|
|
3
|
+
export const MULTI_FACTOR_VALIDATOR_V2_ADDRESS = '0x0000007261E4E2F1a892A58fd0708c9321e76020';
|
|
3
4
|
export function encodeValidatorId(id) {
|
|
4
5
|
return pad(typeof id === 'number' ? toHex(id) : id, { size: 12 });
|
|
5
6
|
}
|