@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
168 lines • 13.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PERMIT_TYPEHASH = exports.SUDO_POLICY_ADDRESS = exports.SPENDING_LIMITS_POLICY_ADDRESS = exports.USAGE_LIMIT_POLICY_ADDRESS = exports.VALUE_LIMIT_POLICY_ADDRESS = exports.TIME_FRAME_POLICY_ADDRESS = exports.UNIVERSAL_ACTION_POLICY_ADDRESS = exports.getTimeFramePolicy = exports.getUniversalActionPolicy = exports.getOwnableValidator = exports.getValueLimitPolicy = exports.getUsageLimitPolicy = exports.getSpendingLimitsPolicy = exports.getSudoPolicy = exports.getSmartSessionsValidator = exports.getEnableSessionDetails = exports.getPermissionId = exports.encodeValidationData = exports.decodeSmartSessionSignature = exports.getSetOwnableValidatorThresholdAction = exports.getRemoveOwnableValidatorOwnerAction = exports.getOwnableValidatorOwners = exports.getAddOwnableValidatorOwnerAction = exports.getOwnableValidatorSignature = exports.getTrustAttestersAction = exports.findTrustedAttesters = exports.isRhinestoneModuleInstalled = exports.getOwnableValidatorThreshold = exports.getOwnableValidatorMockSignature = exports.getAccount = exports.getExecuteOnOwnedAccountAction = exports.getAddOwnableExecutorOwnerAction = exports.encodeSmartSessionSignature = exports.SmartSessionMode = exports.REGISTRY_ADDRESS = exports.RHINESTONE_ATTESTER_ADDRESS = exports.OWNABLE_EXECUTOR_ADDRESS = exports.OWNABLE_VALIDATOR_ADDRESS = exports.SMART_SESSIONS_ADDRESS = exports.DEFAULT_CONFIGURATIONS_BY_MEE_VERSION = exports.ENTRYPOINT_SIMULATIONS_ADDRESS = exports.ENTRY_POINT_ADDRESS = exports.DEFAULT_MEE_VERSION = exports.ComposabilityVersion = exports.MEEVersion = void 0;
const tslib_1 = require("tslib");
const module_sdk_1 = require("@rhinestone/module-sdk");
const viem_1 = require("viem");
tslib_1.__exportStar(require("./abi/index.js"), exports);
tslib_1.__exportStar(require("./tokens/index.js"), exports);
tslib_1.__exportStar(require("./protocols/index.js"), exports);
var MEEVersion;
(function (MEEVersion) {
MEEVersion["V3_0_0"] = "3.0.0";
MEEVersion["V2_3_0"] = "2.3.0";
MEEVersion["V2_2_1"] = "2.2.1";
MEEVersion["V2_1_0"] = "2.1.0";
MEEVersion["V2_0_0"] = "2.0.0";
MEEVersion["V1_1_0"] = "1.1.0";
MEEVersion["V1_0_0"] = "1.0.0";
})(MEEVersion || (exports.MEEVersion = MEEVersion = {}));
var ComposabilityVersion;
(function (ComposabilityVersion) {
ComposabilityVersion["V1_1_0"] = "1.1.0";
ComposabilityVersion["V1_0_0"] = "1.0.0";
})(ComposabilityVersion || (exports.ComposabilityVersion = ComposabilityVersion = {}));
exports.DEFAULT_MEE_VERSION = MEEVersion.V2_0_0;
exports.ENTRY_POINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
exports.ENTRYPOINT_SIMULATIONS_ADDRESS = "0x74Cb5e4eE81b86e70f9045036a1C5477de69eE87";
exports.DEFAULT_CONFIGURATIONS_BY_MEE_VERSION = {
[MEEVersion.V3_0_0]: {
version: MEEVersion.V3_0_0,
accountId: "biconomy.nexus.1.3.1",
factoryAddress: "0x75Eb8D1621D193010425D34b4Ae81835E2409660",
bootStrapAddress: "0x33A8F72F236e02eD62B0312f48105AcBD651Cd17",
implementationAddress: "0x37DF3014c8B72372F2783aAF517bcdC6B516c8Df",
validatorAddress: "0x5e2181ccC1550f5e86F14298A12a7a9A04536F58",
defaultValidatorAddress: viem_1.zeroAddress,
ethForwarderAddress: "0x000000C48Cdf2b46bEc062483dBD27046dfE3b8d",
composabilityVersion: ComposabilityVersion.V1_1_0,
submodules: {
noStxModeVerifier: "0x03043fA2956d7729708E5871006E4D60f077BF9C",
SimpleModeSubmodule: "0x3dE6bd76AB8B77fc9E4b79168EaF2253Ff1F0410",
PermitSubmodule: "0x2eb293D700dEeaF923f6ff32741921C270Ff339b",
TxSubmodule: "0xBFf2aE0e9B523E8192A77c0Dd610b490eC45A08c",
SafeAccountSubmodule: "0xa35a716E8e1Df5Fb441bCDdC2357cf9b256AC566",
EoaStatelessValidator: "0xdD900Cd95f072eAe396bE0487C2546Bf81d01B48",
P256StatelessValidator: "0xa7B97e8152aCee107a098F95f691Cd24Cf2f9835"
}
},
[MEEVersion.V2_3_0]: {
version: MEEVersion.V2_3_0,
accountId: "biconomy.nexus.1.3.1",
factoryAddress: "0x5836Bdb35913c7CBA6ef40675354445121449917",
bootStrapAddress: "0xCa8f48912A3a33fE694c318a1d097AD394CFAB76",
implementationAddress: "0x54F220e4f0DEAb58Be26153df5a674668B9d7Fb2",
validatorAddress: "0x1Cdae7dcc3f32551865EfE3d77AC2b88Ee2905B4",
defaultValidatorAddress: viem_1.zeroAddress,
ethForwarderAddress: "0x000000C48Cdf2b46bEc062483dBD27046dfE3b8d",
composabilityVersion: ComposabilityVersion.V1_1_0
},
[MEEVersion.V2_2_1]: {
version: MEEVersion.V2_2_1,
accountId: "biconomy.nexus.1.3.1",
factoryAddress: "0x000000002c9A405a196f2dc766F2476B731693c3",
bootStrapAddress: "0x000000007BfEdA33ac982cb38eAaEf5D7bCC954c",
implementationAddress: "0x0000000020fe2F30453074aD916eDeB653eC7E9D",
validatorAddress: "0x0000000002d3cC5642A748B6783F32C032616E03",
defaultValidatorAddress: viem_1.zeroAddress,
ethForwarderAddress: "0x000000C48Cdf2b46bEc062483dBD27046dfE3b8d",
composabilityVersion: ComposabilityVersion.V1_1_0
},
[MEEVersion.V2_1_0]: {
version: MEEVersion.V2_1_0,
accountId: "biconomy.nexus.1.2.0",
factoryAddress: "0x0000006648ED9B2B842552BE63Af870bC74af837",
bootStrapAddress: "0x0000003eDf18913c01cBc482C978bBD3D6E8ffA3",
implementationAddress: "0x00000000383e8cBe298514674Ea60Ee1d1de50ac",
validatorAddress: "0x0000000031ef4155C978d48a8A7d4EDba03b04fE",
defaultValidatorAddress: viem_1.zeroAddress,
ethForwarderAddress: "0x000000Afe527A978Ecb761008Af475cfF04132a1",
composabilityVersion: ComposabilityVersion.V1_0_0
},
[MEEVersion.V2_0_0]: {
version: MEEVersion.V2_0_0,
accountId: "biconomy.nexus.1.2.0",
factoryAddress: "0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",
bootStrapAddress: "0x00000000D3254452a909E4eeD47455Af7E27C289",
implementationAddress: "0x000000004F43C49e93C970E84001853a70923B03",
validatorAddress: "0x00000000d12897DDAdC2044614A9677B191A2d95",
defaultValidatorAddress: viem_1.zeroAddress,
ethForwarderAddress: "0x000000Afe527A978Ecb761008Af475cfF04132a1",
composabilityVersion: ComposabilityVersion.V1_0_0
},
[MEEVersion.V1_1_0]: {
version: MEEVersion.V1_1_0,
accountId: "biconomy.nexus.1.0.2",
factoryAddress: "0x0000000C8B6b3329cEa5d15C9d8C15F1f254ec3C",
bootStrapAddress: "0x000000c4781Be3349F81d341027fd7A4EdFa4Dd2",
implementationAddress: "0x000000001964d23C59962Fc7A912872EE8fB3b6A",
validatorAddress: "0x00000000E894100bEcFc7c934Ab7aC8FBA08A44c",
defaultValidatorAddress: "0x00000000E894100bEcFc7c934Ab7aC8FBA08A44c",
moduleRegistry: {
registryAddress: viem_1.zeroAddress,
attesters: [],
attesterThreshold: 0
},
composableModuleAddress: "0x000000eff5C221A6bdB12381868307c9Db5eB462",
ethForwarderAddress: "0x000000001f1c68bD5bF69aa1cCc1d429700D41Da",
composabilityVersion: ComposabilityVersion.V1_0_0
},
[MEEVersion.V1_0_0]: {
version: MEEVersion.V1_0_0,
accountId: "biconomy.nexus.1.0.2",
factoryAddress: "0x000000c3A93d2c5E02Cb053AC675665b1c4217F9",
bootStrapAddress: "0x879fa30248eeb693dcCE3eA94a743622170a3658",
implementationAddress: "0x000000aC74357BFEa72BBD0781833631F732cf19",
validatorAddress: "0x00000000d12897DDAdC2044614A9677B191A2d95",
defaultValidatorAddress: "0x00000000d12897DDAdC2044614A9677B191A2d95",
moduleRegistry: {
registryAddress: viem_1.zeroAddress,
attesters: [],
attesterThreshold: 0
},
composableModuleAddress: "0x00000004430bB055dB66eBef6Fe5Ee1DA9668B10",
ethForwarderAddress: "0x000000Afe527A978Ecb761008Af475cfF04132a1",
composabilityVersion: ComposabilityVersion.V1_0_0
}
};
var module_sdk_2 = require("@rhinestone/module-sdk");
Object.defineProperty(exports, "SMART_SESSIONS_ADDRESS", { enumerable: true, get: function () { return module_sdk_2.SMART_SESSIONS_ADDRESS; } });
Object.defineProperty(exports, "OWNABLE_VALIDATOR_ADDRESS", { enumerable: true, get: function () { return module_sdk_2.OWNABLE_VALIDATOR_ADDRESS; } });
Object.defineProperty(exports, "OWNABLE_EXECUTOR_ADDRESS", { enumerable: true, get: function () { return module_sdk_2.OWNABLE_EXECUTOR_ADDRESS; } });
Object.defineProperty(exports, "RHINESTONE_ATTESTER_ADDRESS", { enumerable: true, get: function () { return module_sdk_2.RHINESTONE_ATTESTER_ADDRESS; } });
Object.defineProperty(exports, "REGISTRY_ADDRESS", { enumerable: true, get: function () { return module_sdk_2.REGISTRY_ADDRESS; } });
Object.defineProperty(exports, "SmartSessionMode", { enumerable: true, get: function () { return module_sdk_2.SmartSessionMode; } });
Object.defineProperty(exports, "encodeSmartSessionSignature", { enumerable: true, get: function () { return module_sdk_2.encodeSmartSessionSignature; } });
Object.defineProperty(exports, "getAddOwnableExecutorOwnerAction", { enumerable: true, get: function () { return module_sdk_2.getAddOwnableExecutorOwnerAction; } });
Object.defineProperty(exports, "getExecuteOnOwnedAccountAction", { enumerable: true, get: function () { return module_sdk_2.getExecuteOnOwnedAccountAction; } });
Object.defineProperty(exports, "getAccount", { enumerable: true, get: function () { return module_sdk_2.getAccount; } });
Object.defineProperty(exports, "getOwnableValidatorMockSignature", { enumerable: true, get: function () { return module_sdk_2.getOwnableValidatorMockSignature; } });
Object.defineProperty(exports, "getOwnableValidatorThreshold", { enumerable: true, get: function () { return module_sdk_2.getOwnableValidatorThreshold; } });
Object.defineProperty(exports, "isRhinestoneModuleInstalled", { enumerable: true, get: function () { return module_sdk_2.isModuleInstalled; } });
Object.defineProperty(exports, "findTrustedAttesters", { enumerable: true, get: function () { return module_sdk_2.findTrustedAttesters; } });
Object.defineProperty(exports, "getTrustAttestersAction", { enumerable: true, get: function () { return module_sdk_2.getTrustAttestersAction; } });
Object.defineProperty(exports, "getOwnableValidatorSignature", { enumerable: true, get: function () { return module_sdk_2.getOwnableValidatorSignature; } });
Object.defineProperty(exports, "getAddOwnableValidatorOwnerAction", { enumerable: true, get: function () { return module_sdk_2.getAddOwnableValidatorOwnerAction; } });
Object.defineProperty(exports, "getOwnableValidatorOwners", { enumerable: true, get: function () { return module_sdk_2.getOwnableValidatorOwners; } });
Object.defineProperty(exports, "getRemoveOwnableValidatorOwnerAction", { enumerable: true, get: function () { return module_sdk_2.getRemoveOwnableValidatorOwnerAction; } });
Object.defineProperty(exports, "getSetOwnableValidatorThresholdAction", { enumerable: true, get: function () { return module_sdk_2.getSetOwnableValidatorThresholdAction; } });
Object.defineProperty(exports, "decodeSmartSessionSignature", { enumerable: true, get: function () { return module_sdk_2.decodeSmartSessionSignature; } });
Object.defineProperty(exports, "encodeValidationData", { enumerable: true, get: function () { return module_sdk_2.encodeValidationData; } });
Object.defineProperty(exports, "getPermissionId", { enumerable: true, get: function () { return module_sdk_2.getPermissionId; } });
Object.defineProperty(exports, "getEnableSessionDetails", { enumerable: true, get: function () { return module_sdk_2.getEnableSessionDetails; } });
Object.defineProperty(exports, "getSmartSessionsValidator", { enumerable: true, get: function () { return module_sdk_2.getSmartSessionsValidator; } });
Object.defineProperty(exports, "getSudoPolicy", { enumerable: true, get: function () { return module_sdk_2.getSudoPolicy; } });
Object.defineProperty(exports, "getSpendingLimitsPolicy", { enumerable: true, get: function () { return module_sdk_2.getSpendingLimitsPolicy; } });
Object.defineProperty(exports, "getUsageLimitPolicy", { enumerable: true, get: function () { return module_sdk_2.getUsageLimitPolicy; } });
Object.defineProperty(exports, "getValueLimitPolicy", { enumerable: true, get: function () { return module_sdk_2.getValueLimitPolicy; } });
Object.defineProperty(exports, "getOwnableValidator", { enumerable: true, get: function () { return module_sdk_2.getOwnableValidator; } });
Object.defineProperty(exports, "getUniversalActionPolicy", { enumerable: true, get: function () { return module_sdk_2.getUniversalActionPolicy; } });
Object.defineProperty(exports, "getTimeFramePolicy", { enumerable: true, get: function () { return module_sdk_2.getTimeFramePolicy; } });
exports.UNIVERSAL_ACTION_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.UNIVERSAL_ACTION_POLICY_ADDRESS;
exports.TIME_FRAME_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.TIME_FRAME_POLICY_ADDRESS;
exports.VALUE_LIMIT_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.VALUE_LIMIT_POLICY_ADDRESS;
exports.USAGE_LIMIT_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.USAGE_LIMIT_POLICY_ADDRESS;
exports.SPENDING_LIMITS_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.SPENDING_LIMITS_POLICY_ADDRESS;
exports.SUDO_POLICY_ADDRESS = module_sdk_1.GLOBAL_CONSTANTS.SUDO_POLICY_ADDRESS;
exports.PERMIT_TYPEHASH = "0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9";
//# sourceMappingURL=index.js.map