@biconomy/sdk
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
49 lines • 3.23 kB
JavaScript
import { getSpendingLimitsPolicy, getTimeFramePolicy, getUniversalActionPolicy, getUsageLimitPolicy, getValueLimitPolicy } from "@rhinestone/module-sdk";
import { toBytes, toHex } from "viem";
import { ParamCondition } from "../modules/smartSessionsValidator/Types.js";
export * from "./abi/index.js";
export * from "./tokens/index.js";
export const ENTRY_POINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
export const ENTRYPOINT_SIMULATIONS_ADDRESS = "0x74Cb5e4eE81b86e70f9045036a1C5477de69eE87";
export const NEXUS_BOOTSTRAP_ADDRESS = "0x000000F5b753Fdd20C5CA2D7c1210b3Ab1EA5903";
export const TEST_ADDRESS_K1_VALIDATOR_FACTORY_ADDRESS = "0x704C800D313c6B184228B5b733bBd6BC3EA9832c";
export const TEST_ADDRESS_K1_VALIDATOR_ADDRESS = "0xCfa6175DDC2eF918e527b2972D9AB8B149f151b7";
export const MAINNET_ADDRESS_K1_VALIDATOR_FACTORY_ADDRESS = "0x00000024115AA990F0bAE0B6b0D5B8F68b684cd6";
export const MAINNET_ADDRESS_K1_VALIDATOR_ADDRESS = "0x0000002D6DB27c52E3C11c1Cf24072004AC75cBa";
export const BICONOMY_ATTESTER_ADDRESS = "0xDE8FD2dBcC0CA847d11599AF5964fe2AEa153699";
export const NEXUS_ACCOUNT_FACTORY = "0x000000226cada0d8b36034F5D5c06855F59F6F3A";
export const MEE_VALIDATOR_ADDRESS = "0x068EA3E30788ABaFDC6fD0b38d20BD38a40a2B3D";
export const TEMP_MEE_ATTESTER_ADDR = "0x000000333034E9f539ce08819E12c1b8Cb29084d";
// Rhinestone constants
export { SMART_SESSIONS_ADDRESS, OWNABLE_VALIDATOR_ADDRESS, OWNABLE_EXECUTOR_ADDRESS, RHINESTONE_ATTESTER_ADDRESS, REGISTRY_ADDRESS, SmartSessionMode, encodeSmartSessionSignature, getAddOwnableExecutorOwnerAction, getExecuteOnOwnedAccountAction, getAccount, getOwnableValidatorMockSignature, getOwnableValidatorThreshold, isModuleInstalled as isRhinestoneModuleInstalled, findTrustedAttesters, getTrustAttestersAction, getOwnableValidatorSignature, getAddOwnableValidatorOwnerAction, getOwnableValidatorOwners, getRemoveOwnableValidatorOwnerAction, getSetOwnableValidatorThresholdAction, decodeSmartSessionSignature, encodeValidationData, getEnableSessionDetails, getSmartSessionsValidator, getSudoPolicy, getSpendingLimitsPolicy, getUsageLimitPolicy, getValueLimitPolicy, getOwnableValidator, getUniversalActionPolicy } from "@rhinestone/module-sdk";
// Rhinestone doesn't export the universal action policy address, so we need to get it from the policies
export const UNIVERSAL_ACTION_POLICY_ADDRESS = getUniversalActionPolicy({
valueLimitPerUse: 0n,
paramRules: {
length: 16,
rules: new Array(16).fill({
condition: ParamCondition.EQUAL,
isLimited: false,
offset: 0,
ref: toHex(toBytes("0x", { size: 32 })),
usage: { limit: BigInt(0), used: BigInt(0) }
})
}
}).address;
export const TIME_FRAME_POLICY_ADDRESS = getTimeFramePolicy({
validUntil: 0,
validAfter: 0
}).address;
export const VALUE_LIMIT_POLICY_ADDRESS = getValueLimitPolicy({
limit: 0n
}).address;
export const USAGE_LIMIT_POLICY_ADDRESS = getUsageLimitPolicy({
limit: 0n
}).address;
export const SPENDING_LIMITS_POLICY_ADDRESS = getSpendingLimitsPolicy([
{
token: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
limit: 0n
}
]).address;
//# sourceMappingURL=index.js.map