@rhinestone/sdk 2.0.0-beta.44 → 2.0.0-beta.45
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/accounts/adapter.d.ts +31 -0
- package/dist/src/accounts/adapter.d.ts.map +1 -0
- package/dist/src/accounts/adapters/eoa.d.ts +4 -0
- package/dist/src/accounts/adapters/eoa.d.ts.map +1 -0
- package/dist/src/accounts/adapters/eoa.js +45 -0
- package/dist/src/accounts/adapters/hca.d.ts +5 -0
- package/dist/src/accounts/adapters/hca.d.ts.map +1 -0
- package/dist/src/accounts/adapters/hca.js +118 -0
- package/dist/src/accounts/adapters/kernel.d.ts +9 -0
- package/dist/src/accounts/adapters/kernel.d.ts.map +1 -0
- package/dist/src/accounts/adapters/kernel.js +159 -0
- package/dist/src/accounts/adapters/nexus.d.ts +17 -0
- package/dist/src/accounts/adapters/nexus.d.ts.map +1 -0
- package/dist/src/accounts/adapters/nexus.js +227 -0
- package/dist/src/accounts/adapters/safe.d.ts +6 -0
- package/dist/src/accounts/adapters/safe.d.ts.map +1 -0
- package/dist/src/accounts/adapters/safe.js +194 -0
- package/dist/src/accounts/adapters/shared.d.ts +9 -0
- package/dist/src/accounts/adapters/shared.d.ts.map +1 -0
- package/dist/src/accounts/adapters/shared.js +62 -0
- package/dist/src/accounts/adapters/startale.d.ts +14 -0
- package/dist/src/accounts/adapters/startale.d.ts.map +1 -0
- package/dist/src/accounts/adapters/startale.js +165 -0
- package/dist/src/accounts/construction.d.ts +25 -0
- package/dist/src/accounts/construction.d.ts.map +1 -0
- package/dist/src/accounts/construction.js +34 -0
- package/dist/src/accounts/deployment.d.ts +12 -0
- package/dist/src/accounts/deployment.d.ts.map +1 -0
- package/dist/src/accounts/deployment.js +33 -0
- package/dist/src/accounts/erc7579-calls.d.ts +4 -0
- package/dist/src/accounts/erc7579-calls.d.ts.map +1 -0
- package/dist/src/accounts/erc7579-calls.js +57 -0
- package/dist/src/accounts/error.d.ts +1 -1
- package/dist/src/accounts/error.d.ts.map +1 -1
- package/dist/src/accounts/legacy.d.ts +14 -0
- package/dist/src/accounts/legacy.d.ts.map +1 -0
- package/dist/src/accounts/legacy.js +40 -0
- package/dist/src/accounts/registry.d.ts +4 -0
- package/dist/src/accounts/registry.d.ts.map +1 -0
- package/dist/src/accounts/registry.js +22 -0
- package/dist/src/accounts/types.d.ts +131 -0
- package/dist/src/accounts/types.d.ts.map +1 -0
- package/dist/src/accounts/wallet-account.d.ts +3 -0
- package/dist/src/accounts/wallet-account.d.ts.map +1 -0
- package/dist/src/accounts/wallet-account.js +12 -0
- package/dist/src/actions/deploy.d.ts +4 -0
- package/dist/src/actions/deploy.d.ts.map +1 -0
- package/dist/src/actions/deploy.js +8 -0
- package/dist/src/actions/ecdsa.d.ts +1 -1
- package/dist/src/actions/ecdsa.d.ts.map +1 -1
- package/dist/src/actions/ecdsa.js +8 -8
- package/dist/src/actions/index.d.ts +2 -16
- package/dist/src/actions/index.d.ts.map +1 -1
- package/dist/src/actions/index.js +3 -49
- package/dist/src/actions/mfa.d.ts +1 -1
- package/dist/src/actions/mfa.d.ts.map +1 -1
- package/dist/src/actions/mfa.js +30 -10
- package/dist/src/actions/modules.d.ts +4 -0
- package/dist/src/actions/modules.d.ts.map +1 -0
- package/dist/src/actions/modules.js +22 -0
- package/dist/src/actions/passkeys.d.ts +2 -2
- package/dist/src/actions/passkeys.d.ts.map +1 -1
- package/dist/src/actions/passkeys.js +19 -14
- package/dist/src/actions/runtime.d.ts +12 -0
- package/dist/src/actions/runtime.d.ts.map +1 -0
- package/dist/src/actions/runtime.js +161 -0
- package/dist/src/actions/smart-sessions.d.ts +2 -2
- package/dist/src/actions/smart-sessions.d.ts.map +1 -1
- package/dist/src/actions/smart-sessions.js +35 -12
- package/dist/src/api/account.d.ts +265 -0
- package/dist/src/api/account.d.ts.map +1 -0
- package/dist/src/api/account.js +635 -0
- package/dist/src/api/accounts.d.ts +12 -0
- package/dist/src/api/accounts.d.ts.map +1 -0
- package/dist/src/api/accounts.js +17 -0
- package/dist/src/api/compose-types.d.ts +147 -0
- package/dist/src/api/compose-types.d.ts.map +1 -0
- package/dist/src/api/compose.d.ts +6 -0
- package/dist/src/api/compose.d.ts.map +1 -0
- package/dist/src/api/compose.js +766 -0
- package/dist/src/api/direct-signing.d.ts +27 -0
- package/dist/src/api/direct-signing.d.ts.map +1 -0
- package/dist/src/api/direct-signing.js +191 -0
- package/dist/src/api/project-mappers.d.ts +7 -0
- package/dist/src/api/project-mappers.d.ts.map +1 -0
- package/dist/src/api/project-mappers.js +23 -0
- package/dist/src/api/queries/app-fees.d.ts +4 -0
- package/dist/src/api/queries/app-fees.d.ts.map +1 -0
- package/dist/src/api/queries/app-fees.js +3 -0
- package/dist/src/api/queries/portfolio.d.ts +9 -0
- package/dist/src/api/queries/portfolio.d.ts.map +1 -0
- package/dist/src/api/queries/portfolio.js +28 -0
- package/dist/src/api/queries/session.d.ts +8 -0
- package/dist/src/api/queries/session.d.ts.map +1 -0
- package/dist/src/api/queries/session.js +15 -0
- package/dist/src/api/sdk.d.ts +80 -0
- package/dist/src/api/sdk.d.ts.map +1 -0
- package/dist/src/api/sdk.js +103 -0
- package/dist/src/api/signer-selection.d.ts +7 -0
- package/dist/src/api/signer-selection.d.ts.map +1 -0
- package/dist/src/api/signer-selection.js +109 -0
- package/dist/src/calls/normalize.d.ts +9 -0
- package/dist/src/calls/normalize.d.ts.map +1 -0
- package/dist/src/calls/normalize.js +17 -0
- package/dist/src/calls/resolve.d.ts +3 -0
- package/dist/src/calls/resolve.d.ts.map +1 -0
- package/dist/src/calls/resolve.js +15 -0
- package/dist/src/calls/types.d.ts +25 -0
- package/dist/src/calls/types.d.ts.map +1 -0
- package/dist/src/calls/types.js +1 -0
- package/dist/src/chains/caip2.d.ts +10 -0
- package/dist/src/chains/caip2.d.ts.map +1 -0
- package/dist/src/chains/caip2.js +85 -0
- package/dist/src/chains/catalog.d.ts +5 -0
- package/dist/src/chains/catalog.d.ts.map +1 -0
- package/dist/src/chains/catalog.js +41 -0
- package/dist/src/chains/errors.d.ts +15 -0
- package/dist/src/chains/errors.d.ts.map +1 -0
- package/dist/src/chains/errors.js +21 -0
- package/dist/src/{orchestrator/destinations.d.ts → chains/non-evm.d.ts} +7 -5
- package/dist/src/chains/non-evm.d.ts.map +1 -0
- package/dist/src/chains/non-evm.js +30 -0
- package/dist/src/chains/tokens.d.ts +4 -0
- package/dist/src/chains/tokens.d.ts.map +1 -0
- package/dist/src/chains/tokens.js +22 -0
- package/dist/src/chains/types.d.ts +25 -0
- package/dist/src/chains/types.d.ts.map +1 -0
- package/dist/src/chains/types.js +1 -0
- package/dist/src/clients/bundler/client.d.ts +10 -0
- package/dist/src/clients/bundler/client.d.ts.map +1 -0
- package/dist/src/clients/bundler/client.js +85 -0
- package/dist/src/clients/bundler/endpoints.d.ts +3 -0
- package/dist/src/clients/bundler/endpoints.d.ts.map +1 -0
- package/dist/src/clients/bundler/endpoints.js +18 -0
- package/dist/src/clients/bundler/port.d.ts +22 -0
- package/dist/src/clients/bundler/port.d.ts.map +1 -0
- package/dist/src/clients/bundler/port.js +1 -0
- package/dist/src/clients/json-rpc.d.ts +20 -0
- package/dist/src/clients/json-rpc.d.ts.map +1 -0
- package/dist/src/clients/json-rpc.js +56 -0
- package/dist/src/clients/orchestrator/auth.d.ts +7 -0
- package/dist/src/clients/orchestrator/auth.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/auth.js +27 -0
- package/dist/src/{orchestrator → clients/orchestrator}/chain-catalog.d.ts +5 -3
- package/dist/src/clients/orchestrator/chain-catalog.d.ts.map +1 -0
- package/dist/src/{orchestrator → clients/orchestrator}/chain-catalog.js +24 -3
- package/dist/src/clients/orchestrator/client.d.ts +13 -0
- package/dist/src/clients/orchestrator/client.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/client.js +97 -0
- package/dist/src/{orchestrator/error.d.ts → clients/orchestrator/errors.d.ts} +2 -16
- package/dist/src/clients/orchestrator/errors.d.ts.map +1 -0
- package/dist/src/{orchestrator/error.js → clients/orchestrator/errors.js} +1 -22
- package/dist/src/clients/orchestrator/fetch.d.ts +7 -0
- package/dist/src/clients/orchestrator/fetch.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/fetch.js +37 -0
- package/dist/src/clients/orchestrator/mappers.d.ts +9 -0
- package/dist/src/clients/orchestrator/mappers.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/mappers.js +198 -0
- package/dist/src/clients/orchestrator/port.d.ts +26 -0
- package/dist/src/clients/orchestrator/port.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/port.js +1 -0
- package/dist/src/{orchestrator/types.d.ts → clients/orchestrator/public.d.ts} +4 -4
- package/dist/src/clients/orchestrator/public.d.ts.map +1 -0
- package/dist/src/{orchestrator/types.js → clients/orchestrator/public.js} +3 -0
- package/dist/src/clients/orchestrator/types.d.ts +140 -0
- package/dist/src/clients/orchestrator/types.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/types.js +1 -0
- package/dist/src/clients/orchestrator/wire.d.ts +19 -0
- package/dist/src/clients/orchestrator/wire.d.ts.map +1 -0
- package/dist/src/{orchestrator → clients/orchestrator}/wire.gen.d.ts +498 -498
- package/dist/src/clients/orchestrator/wire.gen.d.ts.map +1 -0
- package/dist/src/clients/orchestrator/wire.gen.js +1 -0
- package/dist/src/clients/orchestrator/wire.js +1 -0
- package/dist/src/clients/paymaster/client.d.ts +8 -0
- package/dist/src/clients/paymaster/client.d.ts.map +1 -0
- package/dist/src/clients/paymaster/client.js +38 -0
- package/dist/src/clients/paymaster/endpoints.d.ts +3 -0
- package/dist/src/clients/paymaster/endpoints.d.ts.map +1 -0
- package/dist/src/clients/paymaster/endpoints.js +16 -0
- package/dist/src/clients/paymaster/port.d.ts +17 -0
- package/dist/src/clients/paymaster/port.d.ts.map +1 -0
- package/dist/src/clients/paymaster/port.js +1 -0
- package/dist/src/clients/rpc/client.d.ts +6 -0
- package/dist/src/clients/rpc/client.d.ts.map +1 -0
- package/dist/src/clients/rpc/client.js +66 -0
- package/dist/src/clients/rpc/compatibility.d.ts +12 -0
- package/dist/src/clients/rpc/compatibility.d.ts.map +1 -0
- package/dist/src/clients/rpc/compatibility.js +16 -0
- package/dist/src/clients/rpc/port.d.ts +13 -0
- package/dist/src/clients/rpc/port.d.ts.map +1 -0
- package/dist/src/clients/rpc/port.js +1 -0
- package/dist/src/clients/rpc/providers.d.ts +3 -0
- package/dist/src/clients/rpc/providers.d.ts.map +1 -0
- package/dist/src/clients/rpc/providers.js +8 -0
- package/dist/src/clients/rpc/transport.d.ts +4 -0
- package/dist/src/clients/rpc/transport.d.ts.map +1 -0
- package/dist/src/clients/rpc/transport.js +5 -0
- package/dist/src/clients/rpc/types.d.ts +23 -0
- package/dist/src/clients/rpc/types.d.ts.map +1 -0
- package/dist/src/clients/rpc/types.js +1 -0
- package/dist/src/config/account-runtime.d.ts +7 -0
- package/dist/src/config/account-runtime.d.ts.map +1 -0
- package/dist/src/config/account-runtime.js +36 -0
- package/dist/src/{types.d.ts → config/account.d.ts} +23 -14
- package/dist/src/config/account.d.ts.map +1 -0
- package/dist/src/config/account.js +10 -0
- package/dist/src/config/defaults.d.ts +14 -0
- package/dist/src/config/defaults.d.ts.map +1 -0
- package/dist/src/config/defaults.js +26 -0
- package/dist/src/config/input.d.ts +54 -0
- package/dist/src/config/input.d.ts.map +1 -0
- package/dist/src/config/input.js +1 -0
- package/dist/src/config/legacy.d.ts +22 -0
- package/dist/src/config/legacy.d.ts.map +1 -0
- package/dist/src/config/legacy.js +23 -0
- package/dist/src/config/resolve.d.ts +13 -0
- package/dist/src/config/resolve.d.ts.map +1 -0
- package/dist/src/config/resolve.js +174 -0
- package/dist/src/config/resolved.d.ts +77 -0
- package/dist/src/config/resolved.d.ts.map +1 -0
- package/dist/src/config/resolved.js +1 -0
- package/dist/src/config/validate.d.ts +3 -0
- package/dist/src/config/validate.d.ts.map +1 -0
- package/dist/src/config/validate.js +6 -0
- package/dist/src/{execution/error.d.ts → errors/execution.d.ts} +2 -2
- package/dist/src/errors/execution.d.ts.map +1 -0
- package/dist/src/{execution/error.js → errors/execution.js} +1 -1
- package/dist/src/errors/index.d.ts +4 -4
- package/dist/src/errors/index.d.ts.map +1 -1
- package/dist/src/errors/index.js +4 -3
- package/dist/src/index.d.ts +13 -324
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -286
- package/dist/src/modules/erc7579-abi.d.ts +4 -0
- package/dist/src/modules/erc7579-abi.d.ts.map +1 -0
- package/dist/src/modules/erc7579-abi.js +12 -0
- package/dist/src/modules/intent-executor.d.ts +6 -0
- package/dist/src/modules/intent-executor.d.ts.map +1 -0
- package/dist/src/modules/intent-executor.js +13 -0
- package/dist/src/modules/legacy-core.d.ts +29 -0
- package/dist/src/modules/legacy-core.d.ts.map +1 -0
- package/dist/src/modules/legacy-core.js +80 -0
- package/dist/src/modules/normalize.d.ts +4 -0
- package/dist/src/modules/normalize.d.ts.map +1 -0
- package/dist/src/modules/normalize.js +15 -0
- package/dist/src/modules/plan.d.ts +16 -0
- package/dist/src/modules/plan.d.ts.map +1 -0
- package/dist/src/modules/plan.js +51 -0
- package/dist/src/modules/read-core.d.ts +39 -0
- package/dist/src/modules/read-core.d.ts.map +1 -0
- package/dist/src/modules/read-core.js +149 -0
- package/dist/src/modules/types.d.ts +46 -0
- package/dist/src/modules/types.d.ts.map +1 -0
- package/dist/src/modules/types.js +1 -0
- package/dist/src/modules/validators/capabilities.d.ts +4 -0
- package/dist/src/modules/validators/capabilities.d.ts.map +1 -0
- package/dist/src/modules/validators/capabilities.js +58 -0
- package/dist/src/modules/validators/contribution.d.ts +4 -0
- package/dist/src/modules/validators/contribution.d.ts.map +1 -0
- package/dist/src/modules/validators/contribution.js +64 -0
- package/dist/src/modules/validators/definition.d.ts +3 -0
- package/dist/src/modules/validators/definition.d.ts.map +1 -0
- package/dist/src/modules/validators/definition.js +68 -0
- package/dist/src/modules/validators/ens.d.ts +5 -0
- package/dist/src/modules/validators/ens.d.ts.map +1 -0
- package/dist/src/modules/validators/ens.js +34 -0
- package/dist/src/modules/validators/k1.d.ts +2 -0
- package/dist/src/modules/validators/k1.d.ts.map +1 -0
- package/dist/src/modules/validators/k1.js +1 -0
- package/dist/src/modules/validators/multi-factor.d.ts +18 -0
- package/dist/src/modules/validators/multi-factor.d.ts.map +1 -0
- package/dist/src/modules/validators/multi-factor.js +79 -0
- package/dist/src/modules/validators/ownable.d.ts +26 -0
- package/dist/src/modules/validators/ownable.d.ts.map +1 -0
- package/dist/src/modules/validators/ownable.js +84 -0
- package/dist/src/modules/validators/permissions.d.ts +1 -1
- package/dist/src/modules/validators/permissions.d.ts.map +1 -1
- package/dist/src/modules/validators/policies/claim/arbiters.d.ts +1 -1
- package/dist/src/modules/validators/policies/claim/arbiters.d.ts.map +1 -1
- package/dist/src/modules/validators/policies/claim/arbiters.js +3 -1
- package/dist/src/modules/validators/resolve.d.ts +5 -0
- package/dist/src/modules/validators/resolve.d.ts.map +1 -0
- package/dist/src/modules/validators/resolve.js +22 -0
- package/dist/src/modules/validators/signer-id.d.ts +5 -0
- package/dist/src/modules/validators/signer-id.d.ts.map +1 -0
- package/dist/src/modules/validators/signer-id.js +8 -0
- package/dist/src/modules/validators/smart-session-signature-types.d.ts +35 -0
- package/dist/src/modules/validators/smart-session-signature-types.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-session-signature-types.js +1 -0
- package/dist/src/modules/validators/smart-sessions/authorization.d.ts +99 -0
- package/dist/src/modules/validators/smart-sessions/authorization.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/authorization.js +101 -0
- package/dist/src/modules/validators/smart-sessions/calls.d.ts +19 -0
- package/dist/src/modules/validators/smart-sessions/calls.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/calls.js +85 -0
- package/dist/src/modules/validators/smart-sessions/cross-chain-permits.d.ts +4 -0
- package/dist/src/modules/validators/smart-sessions/cross-chain-permits.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/cross-chain-permits.js +77 -0
- package/dist/src/modules/validators/smart-sessions/digest.d.ts +5 -0
- package/dist/src/modules/validators/smart-sessions/digest.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/digest.js +30 -0
- package/dist/src/modules/validators/smart-sessions/mock-signature.d.ts +10 -0
- package/dist/src/modules/validators/smart-sessions/mock-signature.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/mock-signature.js +31 -0
- package/dist/src/modules/validators/smart-sessions/module.d.ts +11 -0
- package/dist/src/modules/validators/smart-sessions/module.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/module.js +18 -0
- package/dist/src/modules/validators/smart-sessions/policies/addresses.d.ts +23 -0
- package/dist/src/modules/validators/smart-sessions/policies/addresses.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/policies/addresses.js +29 -0
- package/dist/src/modules/validators/smart-sessions/policies/claim.d.ts +10 -0
- package/dist/src/modules/validators/smart-sessions/policies/claim.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/policies/claim.js +106 -0
- package/dist/src/modules/validators/smart-sessions/policies/encode.d.ts +4 -0
- package/dist/src/modules/validators/smart-sessions/policies/encode.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/policies/encode.js +197 -0
- package/dist/src/modules/validators/smart-sessions/resolve.d.ts +16 -0
- package/dist/src/modules/validators/smart-sessions/resolve.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/resolve.js +120 -0
- package/dist/src/modules/validators/smart-sessions/signature.d.ts +14 -0
- package/dist/src/modules/validators/smart-sessions/signature.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/signature.js +167 -0
- package/dist/src/modules/validators/smart-sessions/state.d.ts +19 -0
- package/dist/src/modules/validators/smart-sessions/state.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/state.js +42 -0
- package/dist/src/modules/validators/smart-sessions/types.d.ts +227 -0
- package/dist/src/modules/validators/smart-sessions/types.d.ts.map +1 -0
- package/dist/src/modules/validators/smart-sessions/types.js +1 -0
- package/dist/src/modules/validators/types.d.ts +143 -0
- package/dist/src/modules/validators/types.d.ts.map +1 -0
- package/dist/src/modules/validators/types.js +1 -0
- package/dist/src/modules/validators/webauthn.d.ts +54 -0
- package/dist/src/modules/validators/webauthn.d.ts.map +1 -0
- package/dist/src/modules/validators/webauthn.js +159 -0
- package/dist/src/signing/context.d.ts +25 -0
- package/dist/src/signing/context.d.ts.map +1 -0
- package/dist/src/signing/context.js +163 -0
- package/dist/src/signing/contribution.d.ts +13 -0
- package/dist/src/signing/contribution.d.ts.map +1 -0
- package/dist/src/signing/contribution.js +83 -0
- package/dist/src/signing/eip7702.d.ts +41 -0
- package/dist/src/signing/eip7702.d.ts.map +1 -0
- package/dist/src/signing/eip7702.js +215 -0
- package/dist/src/signing/error.d.ts +27 -0
- package/dist/src/signing/error.d.ts.map +1 -0
- package/dist/src/signing/error.js +25 -0
- package/dist/src/signing/execute.d.ts +17 -0
- package/dist/src/signing/execute.d.ts.map +1 -0
- package/dist/src/signing/execute.js +138 -0
- package/dist/src/signing/intent-plans/assemble.d.ts +15 -0
- package/dist/src/signing/intent-plans/assemble.d.ts.map +1 -0
- package/dist/src/signing/intent-plans/assemble.js +96 -0
- package/dist/src/signing/intent-plans/independent.d.ts +48 -0
- package/dist/src/signing/intent-plans/independent.d.ts.map +1 -0
- package/dist/src/signing/intent-plans/independent.js +150 -0
- package/dist/src/signing/intent-plans/plan.d.ts +14 -0
- package/dist/src/signing/intent-plans/plan.d.ts.map +1 -0
- package/dist/src/signing/intent-plans/plan.js +187 -0
- package/dist/src/signing/intent-plans/types.d.ts +63 -0
- package/dist/src/signing/intent-plans/types.d.ts.map +1 -0
- package/dist/src/signing/intent-plans/types.js +1 -0
- package/dist/src/signing/message.d.ts +28 -0
- package/dist/src/signing/message.d.ts.map +1 -0
- package/dist/src/signing/message.js +90 -0
- package/dist/src/signing/passkeys.d.ts +28 -0
- package/dist/src/signing/passkeys.d.ts.map +1 -0
- package/dist/src/signing/passkeys.js +17 -0
- package/dist/src/signing/plan.d.ts +35 -0
- package/dist/src/signing/plan.d.ts.map +1 -0
- package/dist/src/signing/plan.js +377 -0
- package/dist/src/signing/protocols/erc6492.d.ts +11 -0
- package/dist/src/signing/protocols/erc6492.d.ts.map +1 -0
- package/dist/src/signing/protocols/erc6492.js +24 -0
- package/dist/src/signing/protocols/erc7739.d.ts +17 -0
- package/dist/src/signing/protocols/erc7739.d.ts.map +1 -0
- package/dist/src/signing/protocols/erc7739.js +84 -0
- package/dist/src/signing/session-enable.d.ts +35 -0
- package/dist/src/signing/session-enable.d.ts.map +1 -0
- package/dist/src/signing/session-enable.js +62 -0
- package/dist/src/signing/signers/compatibility.d.ts +4 -0
- package/dist/src/signing/signers/compatibility.d.ts.map +1 -0
- package/dist/src/signing/signers/compatibility.js +51 -0
- package/dist/src/signing/signers/ecdsa.d.ts +14 -0
- package/dist/src/signing/signers/ecdsa.d.ts.map +1 -0
- package/dist/src/signing/signers/ecdsa.js +54 -0
- package/dist/src/signing/signers/registry.d.ts +7 -0
- package/dist/src/signing/signers/registry.d.ts.map +1 -0
- package/dist/src/signing/signers/registry.js +33 -0
- package/dist/src/signing/signers/types.d.ts +16 -0
- package/dist/src/signing/signers/types.d.ts.map +1 -0
- package/dist/src/signing/signers/types.js +1 -0
- package/dist/src/signing/signers/wallet-chain.d.ts +9 -0
- package/dist/src/signing/signers/wallet-chain.d.ts.map +1 -0
- package/dist/src/signing/signers/wallet-chain.js +15 -0
- package/dist/src/signing/signers/webauthn.d.ts +11 -0
- package/dist/src/signing/signers/webauthn.d.ts.map +1 -0
- package/dist/src/signing/signers/webauthn.js +14 -0
- package/dist/src/signing/typed-data.d.ts +39 -0
- package/dist/src/signing/typed-data.d.ts.map +1 -0
- package/dist/src/signing/typed-data.js +135 -0
- package/dist/src/signing/types.d.ts +346 -0
- package/dist/src/signing/types.d.ts.map +1 -0
- package/dist/src/signing/types.js +1 -0
- package/dist/src/signing/user-operation.d.ts +23 -0
- package/dist/src/signing/user-operation.d.ts.map +1 -0
- package/dist/src/signing/user-operation.js +61 -0
- package/dist/src/smart-sessions/index.d.ts +13 -3
- package/dist/src/smart-sessions/index.d.ts.map +1 -1
- package/dist/src/smart-sessions/index.js +44 -6
- package/dist/src/transactions/intents/account.d.ts +15 -0
- package/dist/src/transactions/intents/account.d.ts.map +1 -0
- package/dist/src/transactions/intents/account.js +48 -0
- package/dist/src/transactions/intents/compatibility.d.ts +4 -0
- package/dist/src/transactions/intents/compatibility.d.ts.map +1 -0
- package/dist/src/transactions/intents/compatibility.js +19 -0
- package/dist/src/transactions/intents/normalize.d.ts +5 -0
- package/dist/src/transactions/intents/normalize.d.ts.map +1 -0
- package/dist/src/transactions/intents/normalize.js +48 -0
- package/dist/src/transactions/intents/prepare.d.ts +7 -0
- package/dist/src/transactions/intents/prepare.d.ts.map +1 -0
- package/dist/src/transactions/intents/prepare.js +249 -0
- package/dist/src/transactions/intents/quotes.d.ts +3 -0
- package/dist/src/transactions/intents/quotes.d.ts.map +1 -0
- package/dist/src/transactions/intents/quotes.js +11 -0
- package/dist/src/transactions/intents/request.d.ts +11 -0
- package/dist/src/transactions/intents/request.d.ts.map +1 -0
- package/dist/src/transactions/intents/request.js +55 -0
- package/dist/src/transactions/intents/send.d.ts +3 -0
- package/dist/src/transactions/intents/send.d.ts.map +1 -0
- package/dist/src/transactions/intents/send.js +22 -0
- package/dist/src/transactions/intents/session-signing.d.ts +7 -0
- package/dist/src/transactions/intents/session-signing.d.ts.map +1 -0
- package/dist/src/transactions/intents/session-signing.js +363 -0
- package/dist/src/transactions/intents/sessions.d.ts +17 -0
- package/dist/src/transactions/intents/sessions.d.ts.map +1 -0
- package/dist/src/transactions/intents/sessions.js +85 -0
- package/dist/src/transactions/intents/sign-transaction.d.ts +10 -0
- package/dist/src/transactions/intents/sign-transaction.d.ts.map +1 -0
- package/dist/src/transactions/intents/sign-transaction.js +386 -0
- package/dist/src/transactions/intents/split.d.ts +13 -0
- package/dist/src/transactions/intents/split.d.ts.map +1 -0
- package/dist/src/transactions/intents/split.js +3 -0
- package/dist/src/transactions/intents/status-policy.d.ts +13 -0
- package/dist/src/transactions/intents/status-policy.d.ts.map +1 -0
- package/dist/src/transactions/intents/status-policy.js +39 -0
- package/dist/src/transactions/intents/status.d.ts +4 -0
- package/dist/src/transactions/intents/status.d.ts.map +1 -0
- package/dist/src/transactions/intents/status.js +50 -0
- package/dist/src/transactions/intents/submit.d.ts +3 -0
- package/dist/src/transactions/intents/submit.d.ts.map +1 -0
- package/dist/src/transactions/intents/submit.js +32 -0
- package/dist/src/transactions/intents/types.d.ts +136 -0
- package/dist/src/transactions/intents/types.d.ts.map +1 -0
- package/dist/src/transactions/intents/types.js +1 -0
- package/dist/src/transactions/user-operations/hash.d.ts +5 -0
- package/dist/src/transactions/user-operations/hash.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/hash.js +9 -0
- package/dist/src/transactions/user-operations/nonce.d.ts +18 -0
- package/dist/src/transactions/user-operations/nonce.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/nonce.js +43 -0
- package/dist/src/transactions/user-operations/prepare.d.ts +12 -0
- package/dist/src/transactions/user-operations/prepare.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/prepare.js +138 -0
- package/dist/src/transactions/user-operations/reconstruct.d.ts +28 -0
- package/dist/src/transactions/user-operations/reconstruct.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/reconstruct.js +52 -0
- package/dist/src/transactions/user-operations/send.d.ts +3 -0
- package/dist/src/transactions/user-operations/send.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/send.js +8 -0
- package/dist/src/transactions/user-operations/sign.d.ts +3 -0
- package/dist/src/transactions/user-operations/sign.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/sign.js +14 -0
- package/dist/src/transactions/user-operations/status.d.ts +4 -0
- package/dist/src/transactions/user-operations/status.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/status.js +37 -0
- package/dist/src/transactions/user-operations/submit.d.ts +3 -0
- package/dist/src/transactions/user-operations/submit.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/submit.js +8 -0
- package/dist/src/transactions/user-operations/types.d.ts +68 -0
- package/dist/src/transactions/user-operations/types.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/types.js +1 -0
- package/dist/src/transactions/user-operations/validator-account.d.ts +5 -0
- package/dist/src/transactions/user-operations/validator-account.d.ts.map +1 -0
- package/dist/src/transactions/user-operations/validator-account.js +26 -0
- package/dist/src/utils/index.d.ts +9 -4
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +54 -51
- package/package.json +3 -3
- package/dist/src/accounts/hca.d.ts +0 -25
- package/dist/src/accounts/hca.d.ts.map +0 -1
- package/dist/src/accounts/hca.js +0 -148
- package/dist/src/accounts/index.d.ts +0 -64
- package/dist/src/accounts/index.d.ts.map +0 -1
- package/dist/src/accounts/index.js +0 -680
- package/dist/src/accounts/json-rpc/index.d.ts +0 -5
- package/dist/src/accounts/json-rpc/index.d.ts.map +0 -1
- package/dist/src/accounts/json-rpc/index.js +0 -13
- package/dist/src/accounts/json-rpc/providers.d.ts +0 -3
- package/dist/src/accounts/json-rpc/providers.d.ts.map +0 -1
- package/dist/src/accounts/json-rpc/providers.js +0 -4
- package/dist/src/accounts/kernel.d.ts +0 -26
- package/dist/src/accounts/kernel.d.ts.map +0 -1
- package/dist/src/accounts/kernel.js +0 -265
- package/dist/src/accounts/nexus.d.ts +0 -34
- package/dist/src/accounts/nexus.d.ts.map +0 -1
- package/dist/src/accounts/nexus.js +0 -520
- package/dist/src/accounts/safe.d.ts +0 -32
- package/dist/src/accounts/safe.d.ts.map +0 -1
- package/dist/src/accounts/safe.js +0 -337
- package/dist/src/accounts/signing/common.d.ts +0 -38
- package/dist/src/accounts/signing/common.d.ts.map +0 -1
- package/dist/src/accounts/signing/common.js +0 -186
- package/dist/src/accounts/signing/message.d.ts +0 -7
- package/dist/src/accounts/signing/message.d.ts.map +0 -1
- package/dist/src/accounts/signing/message.js +0 -42
- package/dist/src/accounts/signing/passkeys.d.ts +0 -36
- package/dist/src/accounts/signing/passkeys.d.ts.map +0 -1
- package/dist/src/accounts/signing/passkeys.js +0 -119
- package/dist/src/accounts/signing/typedData.d.ts +0 -5
- package/dist/src/accounts/signing/typedData.d.ts.map +0 -1
- package/dist/src/accounts/signing/typedData.js +0 -30
- package/dist/src/accounts/startale.d.ts +0 -25
- package/dist/src/accounts/startale.d.ts.map +0 -1
- package/dist/src/accounts/startale.js +0 -188
- package/dist/src/accounts/utils.d.ts +0 -33
- package/dist/src/accounts/utils.d.ts.map +0 -1
- package/dist/src/accounts/utils.js +0 -202
- package/dist/src/auth/provider.d.ts +0 -7
- package/dist/src/auth/provider.d.ts.map +0 -1
- package/dist/src/auth/provider.js +0 -38
- package/dist/src/execution/compact.d.ts +0 -5
- package/dist/src/execution/compact.d.ts.map +0 -1
- package/dist/src/execution/compact.js +0 -4
- package/dist/src/execution/error.d.ts.map +0 -1
- package/dist/src/execution/index.d.ts +0 -42
- package/dist/src/execution/index.d.ts.map +0 -1
- package/dist/src/execution/index.js +0 -186
- package/dist/src/execution/utils.d.ts +0 -167
- package/dist/src/execution/utils.d.ts.map +0 -1
- package/dist/src/execution/utils.js +0 -1603
- package/dist/src/modules/abi/smart-sessions.d.ts +0 -104
- package/dist/src/modules/abi/smart-sessions.d.ts.map +0 -1
- package/dist/src/modules/abi/smart-sessions.js +0 -128
- package/dist/src/modules/chain-abstraction.d.ts +0 -5
- package/dist/src/modules/chain-abstraction.d.ts.map +0 -1
- package/dist/src/modules/chain-abstraction.js +0 -3
- package/dist/src/modules/common.d.ts +0 -30
- package/dist/src/modules/common.d.ts.map +0 -1
- package/dist/src/modules/common.js +0 -30
- package/dist/src/modules/index.d.ts +0 -11
- package/dist/src/modules/index.d.ts.map +0 -1
- package/dist/src/modules/index.js +0 -85
- package/dist/src/modules/legacy.d.ts +0 -10
- package/dist/src/modules/legacy.d.ts.map +0 -1
- package/dist/src/modules/legacy.js +0 -62
- package/dist/src/modules/read.d.ts +0 -11
- package/dist/src/modules/read.d.ts.map +0 -1
- package/dist/src/modules/read.js +0 -219
- package/dist/src/modules/validators/core.d.ts +0 -31
- package/dist/src/modules/validators/core.d.ts.map +0 -1
- package/dist/src/modules/validators/core.js +0 -269
- package/dist/src/modules/validators/cross-chain-permits.d.ts +0 -22
- package/dist/src/modules/validators/cross-chain-permits.d.ts.map +0 -1
- package/dist/src/modules/validators/cross-chain-permits.js +0 -107
- package/dist/src/modules/validators/index.d.ts +0 -4
- package/dist/src/modules/validators/index.d.ts.map +0 -1
- package/dist/src/modules/validators/index.js +0 -3
- package/dist/src/modules/validators/smart-sessions.d.ts +0 -226
- package/dist/src/modules/validators/smart-sessions.d.ts.map +0 -1
- package/dist/src/modules/validators/smart-sessions.js +0 -1197
- package/dist/src/orchestrator/caip2.d.ts +0 -18
- package/dist/src/orchestrator/caip2.d.ts.map +0 -1
- package/dist/src/orchestrator/caip2.js +0 -58
- package/dist/src/orchestrator/chain-catalog.d.ts.map +0 -1
- package/dist/src/orchestrator/client.d.ts +0 -43
- package/dist/src/orchestrator/client.d.ts.map +0 -1
- package/dist/src/orchestrator/client.js +0 -336
- package/dist/src/orchestrator/consts.d.ts +0 -6
- package/dist/src/orchestrator/consts.d.ts.map +0 -1
- package/dist/src/orchestrator/consts.js +0 -5
- package/dist/src/orchestrator/destinations.d.ts.map +0 -1
- package/dist/src/orchestrator/destinations.js +0 -59
- package/dist/src/orchestrator/error.d.ts.map +0 -1
- package/dist/src/orchestrator/index.d.ts +0 -12
- package/dist/src/orchestrator/index.d.ts.map +0 -1
- package/dist/src/orchestrator/index.js +0 -9
- package/dist/src/orchestrator/registry.d.ts +0 -7
- package/dist/src/orchestrator/registry.d.ts.map +0 -1
- package/dist/src/orchestrator/registry.js +0 -46
- package/dist/src/orchestrator/types.d.ts.map +0 -1
- package/dist/src/orchestrator/utils.d.ts +0 -3
- package/dist/src/orchestrator/utils.d.ts.map +0 -1
- package/dist/src/orchestrator/utils.js +0 -22
- package/dist/src/orchestrator/wire.d.ts +0 -31
- package/dist/src/orchestrator/wire.d.ts.map +0 -1
- package/dist/src/orchestrator/wire.gen.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils/walletClient.d.ts +0 -34
- package/dist/src/utils/walletClient.d.ts.map +0 -1
- package/dist/src/utils/walletClient.js +0 -117
- /package/dist/src/{orchestrator/wire.gen.js → accounts/adapter.js} +0 -0
- /package/dist/src/{types.js → accounts/types.js} +0 -0
- /package/dist/src/{orchestrator/wire.js → api/compose-types.js} +0 -0
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
import { concat, decodeFunctionData, encodeAbiParameters, encodeFunctionData, encodePacked, getContractAddress, keccak256, parseAbi, size, toHex, zeroAddress, zeroHash, } from 'viem';
|
|
2
|
-
import { entryPoint07Abi, entryPoint07Address, getUserOperationHash, toSmartAccount, } from 'viem/account-abstraction';
|
|
3
|
-
import { getSetup as getModuleSetup } from '../modules/index.js';
|
|
4
|
-
import { getMockSignature } from '../modules/validators/index.js';
|
|
5
|
-
import { OWNABLE_VALIDATOR_ADDRESS } from '../modules/validators/core.js';
|
|
6
|
-
import { AccountConfigurationNotSupportedError, Eip712DomainNotAvailableError, SigningNotSupportedForAccountError, } from './error.js';
|
|
7
|
-
import { encode7579Calls, getAccountNonce } from './utils.js';
|
|
8
|
-
const NEXUS_DEFAULT_VALIDATOR_ADDRESS = OWNABLE_VALIDATOR_ADDRESS;
|
|
9
|
-
const NEXUS_VERSION = '1.2.0';
|
|
10
|
-
// Previous (1.2.0) implementation + factory. Callers opt back into these with
|
|
11
|
-
// `account.version = '1.2.0'`; the default deploys 1.2.1 (see getNexusDeployment).
|
|
12
|
-
const NEXUS_IMPLEMENTATION_ADDRESS = '0x000000000032ddc454c3bdcba80484ad5a798705';
|
|
13
|
-
const NEXUS_FACTORY_ADDRESS = '0x0000000000679a258c64d2f20f310e12b64b7375';
|
|
14
|
-
const NEXUS_BOOTSTRAP_ADDRESS = '0x00000000006efb61d8c9546ff1b500de3f244ea7';
|
|
15
|
-
// Current default (1.2.1): new implementation + factory, same bootstrap and
|
|
16
|
-
// proxy creation code as 1.2.0.
|
|
17
|
-
const NEXUS_IMPLEMENTATION_1_2_1 = '0x000000000d41c0bf0063dba53343389cdb2c9c78';
|
|
18
|
-
const NEXUS_FACTORY_1_2_1 = '0x0000000099d5576c73a3b190dabeeaa0f128ce6b';
|
|
19
|
-
const NEXUS_IMPLEMENTATION_1_0_0 = '0x000000039dfcad030719b07296710f045f0558f7';
|
|
20
|
-
const NEXUS_BOOTSTRAP_1_0_0 = '0x00000008c901d8871b6f6942de0b5d9ccf3873d3';
|
|
21
|
-
const NEXUS_K1_VALIDATOR = '0x00000004171351c442b202678c48d8ab5b321e8f';
|
|
22
|
-
const NEXUS_CREATION_CODE = '0x60806040526102aa803803806100148161018c565b92833981016040828203126101885781516001600160a01b03811692909190838303610188576020810151906001600160401b03821161018857019281601f8501121561018857835161006e610069826101c5565b61018c565b9481865260208601936020838301011161018857815f926020809301865e8601015260017f90b772c2cb8a51aa7a8a65fc23543c6d022d5b3f8e2b92eed79fba7eef8293005d823b15610176577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561015e575f8091610146945190845af43d15610156573d91610137610069846101c5565b9283523d5f602085013e6101e0565b505b604051606b908161023f8239f35b6060916101e0565b50505034156101485763b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176101b157604052565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b0381116101b157601f01601f191660200190565b9061020457508051156101f557805190602001fd5b63d6bda27560e01b5f5260045ffd5b81511580610235575b610215575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b1561020d56fe60806040523615605c575f8073ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416368280378136915af43d5f803e156058573d5ff35b3d5ffd5b00fea164736f6c634300081b000a';
|
|
23
|
-
// Resolves the implementation + factory a fresh account deploys against. Only
|
|
24
|
-
// the default (unset) and an explicit '1.2.1' deploy the current contracts;
|
|
25
|
-
// '1.2.0' and the legacy pins keep the previous implementation + factory so
|
|
26
|
-
// their counterfactual addresses don't change.
|
|
27
|
-
function getNexusDeployment(version) {
|
|
28
|
-
const current = {
|
|
29
|
-
implementation: NEXUS_IMPLEMENTATION_1_2_1,
|
|
30
|
-
factory: NEXUS_FACTORY_1_2_1,
|
|
31
|
-
};
|
|
32
|
-
const previous = {
|
|
33
|
-
implementation: NEXUS_IMPLEMENTATION_ADDRESS,
|
|
34
|
-
factory: NEXUS_FACTORY_ADDRESS,
|
|
35
|
-
};
|
|
36
|
-
if (!version) {
|
|
37
|
-
return current;
|
|
38
|
-
}
|
|
39
|
-
switch (version) {
|
|
40
|
-
case '1.2.1':
|
|
41
|
-
return current;
|
|
42
|
-
case '1.2.0':
|
|
43
|
-
case '1.0.2':
|
|
44
|
-
case 'rhinestone-1.0.0-beta':
|
|
45
|
-
case 'rhinestone-1.0.0':
|
|
46
|
-
return previous;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// Whether the factory is one of the current Nexus factories (1.2.0 / 1.2.1),
|
|
50
|
-
// which share the same proxy creation code. Legacy (1.0.0) factories use a
|
|
51
|
-
// different proxy and account init encoding.
|
|
52
|
-
function isNexusV1Factory(factory) {
|
|
53
|
-
const normalized = factory.toLowerCase();
|
|
54
|
-
return (normalized === NEXUS_FACTORY_ADDRESS || normalized === NEXUS_FACTORY_1_2_1);
|
|
55
|
-
}
|
|
56
|
-
// Maps a current Nexus factory to the implementation it deploys, so a persisted
|
|
57
|
-
// `initData` payload recomputes against the right implementation (and the 7702
|
|
58
|
-
// init helpers sign/return it) instead of defaulting to one version.
|
|
59
|
-
function implementationForFactory(factory) {
|
|
60
|
-
return factory.toLowerCase() === NEXUS_FACTORY_1_2_1
|
|
61
|
-
? NEXUS_IMPLEMENTATION_1_2_1
|
|
62
|
-
: NEXUS_IMPLEMENTATION_ADDRESS;
|
|
63
|
-
}
|
|
64
|
-
function getDeployArgs(config) {
|
|
65
|
-
if (config.initData) {
|
|
66
|
-
if (!('factory' in config.initData)) {
|
|
67
|
-
return null;
|
|
68
|
-
}
|
|
69
|
-
const { factory, factoryData } = config.initData;
|
|
70
|
-
const v1Result = tryDecodeV1FactoryData(factory, factoryData);
|
|
71
|
-
if (v1Result) {
|
|
72
|
-
return v1Result;
|
|
73
|
-
}
|
|
74
|
-
const v0Result = tryDecodeV0FactoryData(factory, factoryData);
|
|
75
|
-
if (v0Result) {
|
|
76
|
-
return v0Result;
|
|
77
|
-
}
|
|
78
|
-
throw new AccountConfigurationNotSupportedError('Invalid factory data: unrecognized schema', 'nexus');
|
|
79
|
-
}
|
|
80
|
-
const account = config.account;
|
|
81
|
-
const defaultSalt = keccak256('0x');
|
|
82
|
-
const salt = account?.salt ?? defaultSalt;
|
|
83
|
-
const { implementation, factory } = getNexusDeployment(account?.version);
|
|
84
|
-
const moduleSetup = getModuleSetup(config);
|
|
85
|
-
// Filter out the default validator
|
|
86
|
-
const defaultValidator = moduleSetup.validators.find((v) => v.address === NEXUS_DEFAULT_VALIDATOR_ADDRESS);
|
|
87
|
-
const defaultValidatorInitData = defaultValidator
|
|
88
|
-
? defaultValidator.initData
|
|
89
|
-
: '0x';
|
|
90
|
-
const validators = moduleSetup.validators.filter((v) => v.address !== NEXUS_DEFAULT_VALIDATOR_ADDRESS);
|
|
91
|
-
const bootstrapData = size(defaultValidatorInitData)
|
|
92
|
-
? encodeFunctionData({
|
|
93
|
-
abi: parseAbi([
|
|
94
|
-
'struct BootstrapConfig {address module;bytes initData;}',
|
|
95
|
-
'struct BootstrapPreValidationHookConfig {uint256 hookType;address module;bytes data;}',
|
|
96
|
-
'function initNexusWithDefaultValidatorAndOtherModulesNoRegistry(bytes calldata defaultValidatorInitData,BootstrapConfig[] calldata validators,BootstrapConfig[] calldata executors,BootstrapConfig calldata hook,BootstrapConfig[] calldata fallbacks,BootstrapPreValidationHookConfig[] calldata preValidationHooks) external',
|
|
97
|
-
]),
|
|
98
|
-
functionName: 'initNexusWithDefaultValidatorAndOtherModulesNoRegistry',
|
|
99
|
-
args: [
|
|
100
|
-
defaultValidatorInitData,
|
|
101
|
-
validators.map((v) => ({
|
|
102
|
-
module: v.address,
|
|
103
|
-
initData: v.initData,
|
|
104
|
-
})),
|
|
105
|
-
moduleSetup.executors.map((e) => ({
|
|
106
|
-
module: e.address,
|
|
107
|
-
initData: e.initData,
|
|
108
|
-
})),
|
|
109
|
-
{
|
|
110
|
-
module: zeroAddress,
|
|
111
|
-
initData: '0x',
|
|
112
|
-
},
|
|
113
|
-
moduleSetup.fallbacks.map((f) => ({
|
|
114
|
-
module: f.address,
|
|
115
|
-
initData: f.initData,
|
|
116
|
-
})),
|
|
117
|
-
[],
|
|
118
|
-
],
|
|
119
|
-
})
|
|
120
|
-
: encodeFunctionData({
|
|
121
|
-
abi: parseAbi([
|
|
122
|
-
'struct BootstrapConfig {address module;bytes initData;}',
|
|
123
|
-
'struct BootstrapPreValidationHookConfig {uint256 hookType;address module;bytes data;}',
|
|
124
|
-
'function initNexusNoRegistry(BootstrapConfig[] calldata validators,BootstrapConfig[] calldata executors,BootstrapConfig calldata hook,BootstrapConfig[] calldata fallbacks,BootstrapPreValidationHookConfig[] calldata preValidationHooks) external',
|
|
125
|
-
]),
|
|
126
|
-
functionName: 'initNexusNoRegistry',
|
|
127
|
-
args: [
|
|
128
|
-
validators.map((v) => ({
|
|
129
|
-
module: v.address,
|
|
130
|
-
initData: v.initData,
|
|
131
|
-
})),
|
|
132
|
-
moduleSetup.executors.map((e) => ({
|
|
133
|
-
module: e.address,
|
|
134
|
-
initData: e.initData,
|
|
135
|
-
})),
|
|
136
|
-
{
|
|
137
|
-
module: zeroAddress,
|
|
138
|
-
initData: '0x',
|
|
139
|
-
},
|
|
140
|
-
moduleSetup.fallbacks.map((f) => ({
|
|
141
|
-
module: f.address,
|
|
142
|
-
initData: f.initData,
|
|
143
|
-
})),
|
|
144
|
-
[],
|
|
145
|
-
],
|
|
146
|
-
});
|
|
147
|
-
const initData = encodeAbiParameters([{ type: 'address' }, { type: 'bytes' }], [NEXUS_BOOTSTRAP_ADDRESS, bootstrapData]);
|
|
148
|
-
const factoryData = encodeFunctionData({
|
|
149
|
-
abi: parseAbi(['function createAccount(bytes,bytes32)']),
|
|
150
|
-
functionName: 'createAccount',
|
|
151
|
-
args: [initData, salt],
|
|
152
|
-
});
|
|
153
|
-
const initializationCallData = encodeFunctionData({
|
|
154
|
-
abi: parseAbi(['function initializeAccount(bytes)']),
|
|
155
|
-
functionName: 'initializeAccount',
|
|
156
|
-
args: [initData],
|
|
157
|
-
});
|
|
158
|
-
return {
|
|
159
|
-
factory,
|
|
160
|
-
factoryData,
|
|
161
|
-
salt,
|
|
162
|
-
implementation,
|
|
163
|
-
initializationCallData,
|
|
164
|
-
initData,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function getAddress(config) {
|
|
168
|
-
const deployArgs = getDeployArgs(config);
|
|
169
|
-
if (!deployArgs) {
|
|
170
|
-
if (config.initData?.address) {
|
|
171
|
-
return config.initData.address;
|
|
172
|
-
}
|
|
173
|
-
throw new Error('Cannot derive address: deploy args not available');
|
|
174
|
-
}
|
|
175
|
-
const { factory, salt, initializationCallData, implementation } = deployArgs;
|
|
176
|
-
const creationCode = isNexusV1Factory(factory)
|
|
177
|
-
? NEXUS_CREATION_CODE
|
|
178
|
-
: '0x603d3d8160223d3973000000039dfcad030719b07296710f045f0558f760095155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3';
|
|
179
|
-
const accountInitData = isNexusV1Factory(factory)
|
|
180
|
-
? encodeAbiParameters([
|
|
181
|
-
{
|
|
182
|
-
name: 'address',
|
|
183
|
-
type: 'address',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: 'calldata',
|
|
187
|
-
type: 'bytes',
|
|
188
|
-
},
|
|
189
|
-
], [implementation, initializationCallData])
|
|
190
|
-
: '0x';
|
|
191
|
-
const address = getContractAddress({
|
|
192
|
-
opcode: 'CREATE2',
|
|
193
|
-
from: factory,
|
|
194
|
-
salt,
|
|
195
|
-
bytecode: concat([creationCode, accountInitData]),
|
|
196
|
-
});
|
|
197
|
-
return address;
|
|
198
|
-
}
|
|
199
|
-
function getEip712Domain(config, chain) {
|
|
200
|
-
if (config.initData) {
|
|
201
|
-
throw new Eip712DomainNotAvailableError('Existing Nexus accounts are not yet supported');
|
|
202
|
-
}
|
|
203
|
-
return {
|
|
204
|
-
name: 'Nexus',
|
|
205
|
-
version: NEXUS_VERSION,
|
|
206
|
-
chainId: chain.id,
|
|
207
|
-
verifyingContract: getAddress(config),
|
|
208
|
-
salt: zeroHash,
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
function getInstallData(module) {
|
|
212
|
-
return encodeFunctionData({
|
|
213
|
-
abi: [
|
|
214
|
-
{
|
|
215
|
-
type: 'function',
|
|
216
|
-
name: 'installModule',
|
|
217
|
-
inputs: [
|
|
218
|
-
{
|
|
219
|
-
type: 'uint256',
|
|
220
|
-
name: 'moduleTypeId',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
type: 'address',
|
|
224
|
-
name: 'module',
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
type: 'bytes',
|
|
228
|
-
name: 'initData',
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
outputs: [],
|
|
232
|
-
stateMutability: 'nonpayable',
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
functionName: 'installModule',
|
|
236
|
-
args: [module.type, module.address, module.initData],
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
// On Nexus the OwnableValidator is the hardwired default validator. It cannot
|
|
240
|
-
// be added via `installModule` (reverts `DefaultValidatorAlreadyInstalled`), so
|
|
241
|
-
// it is initialized out-of-band by calling its `onInstall` directly with the
|
|
242
|
-
// same init data `installModule` would have passed (`abi.encode(threshold, owners)`).
|
|
243
|
-
function getDefaultValidatorInitData(module) {
|
|
244
|
-
return encodeFunctionData({
|
|
245
|
-
abi: [
|
|
246
|
-
{
|
|
247
|
-
type: 'function',
|
|
248
|
-
name: 'onInstall',
|
|
249
|
-
inputs: [{ type: 'bytes', name: 'data' }],
|
|
250
|
-
outputs: [],
|
|
251
|
-
stateMutability: 'nonpayable',
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
functionName: 'onInstall',
|
|
255
|
-
args: [module.initData],
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
// Whether the deploy bootstrap will initialize the default validator — i.e. the
|
|
259
|
-
// account is configured with an Ownable/ECDSA owner set. Mirrors the
|
|
260
|
-
// `defaultValidatorInitData` computation in `getDeployArgs`, so a counterfactual
|
|
261
|
-
// (not-yet-deployed) account whose deployment initializes the default validator
|
|
262
|
-
// is treated as already-initialized rather than emitting a second `onInstall`.
|
|
263
|
-
function isDefaultValidatorConfigured(config) {
|
|
264
|
-
if (config.initData) {
|
|
265
|
-
return false;
|
|
266
|
-
}
|
|
267
|
-
const moduleSetup = getModuleSetup(config);
|
|
268
|
-
const defaultValidator = moduleSetup.validators.find((v) => v.address === NEXUS_DEFAULT_VALIDATOR_ADDRESS);
|
|
269
|
-
return defaultValidator ? size(defaultValidator.initData) > 0 : false;
|
|
270
|
-
}
|
|
271
|
-
function getDefaultValidatorAddress(version) {
|
|
272
|
-
if (!version) {
|
|
273
|
-
return NEXUS_DEFAULT_VALIDATOR_ADDRESS;
|
|
274
|
-
}
|
|
275
|
-
switch (version) {
|
|
276
|
-
case '1.0.2':
|
|
277
|
-
return '0x0000002d6db27c52e3c11c1cf24072004ac75cba';
|
|
278
|
-
// 1.2.0 and 1.2.1 both hardwire the Ownable validator; they differ only in
|
|
279
|
-
// implementation + factory.
|
|
280
|
-
case '1.2.0':
|
|
281
|
-
case '1.2.1':
|
|
282
|
-
return NEXUS_DEFAULT_VALIDATOR_ADDRESS;
|
|
283
|
-
case 'rhinestone-1.0.0-beta':
|
|
284
|
-
return '0x0000000000e9e6e96bcaa3c113187cdb7e38aed9';
|
|
285
|
-
case 'rhinestone-1.0.0':
|
|
286
|
-
return NEXUS_DEFAULT_VALIDATOR_ADDRESS;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
async function packSignature(signature, validator, transformSignature = (signature) => signature, defaultValidatorAddress = NEXUS_DEFAULT_VALIDATOR_ADDRESS) {
|
|
290
|
-
const validatorAddress = validator.address === defaultValidatorAddress
|
|
291
|
-
? zeroAddress
|
|
292
|
-
: validator.address;
|
|
293
|
-
const packedSig = encodePacked(['address', 'bytes'], [validatorAddress, transformSignature(signature)]);
|
|
294
|
-
return packedSig;
|
|
295
|
-
}
|
|
296
|
-
async function getSmartAccount(client, address, owners, validatorAddress, sign, defaultValidatorAddress = NEXUS_DEFAULT_VALIDATOR_ADDRESS) {
|
|
297
|
-
return getBaseSmartAccount(address, client, validatorAddress, async () => {
|
|
298
|
-
return getMockSignature(owners);
|
|
299
|
-
}, sign, defaultValidatorAddress);
|
|
300
|
-
}
|
|
301
|
-
async function getBaseSmartAccount(address, client, nonceValidatorAddress, getStubSignature, signUserOperation, defaultValidatorAddress) {
|
|
302
|
-
return await toSmartAccount({
|
|
303
|
-
client,
|
|
304
|
-
entryPoint: {
|
|
305
|
-
abi: entryPoint07Abi,
|
|
306
|
-
address: entryPoint07Address,
|
|
307
|
-
version: '0.7',
|
|
308
|
-
},
|
|
309
|
-
async decodeCalls() {
|
|
310
|
-
throw new Error('Not implemented');
|
|
311
|
-
},
|
|
312
|
-
async encodeCalls(calls) {
|
|
313
|
-
return encode7579Calls({
|
|
314
|
-
mode: {
|
|
315
|
-
type: calls.length > 1 ? 'batchcall' : 'call',
|
|
316
|
-
revertOnError: false,
|
|
317
|
-
selector: '0x',
|
|
318
|
-
context: '0x',
|
|
319
|
-
},
|
|
320
|
-
callData: calls,
|
|
321
|
-
});
|
|
322
|
-
},
|
|
323
|
-
async getAddress() {
|
|
324
|
-
return address;
|
|
325
|
-
},
|
|
326
|
-
async getFactoryArgs() {
|
|
327
|
-
return {};
|
|
328
|
-
},
|
|
329
|
-
async getNonce(args) {
|
|
330
|
-
const validatorAddress = nonceValidatorAddress === defaultValidatorAddress
|
|
331
|
-
? zeroAddress
|
|
332
|
-
: nonceValidatorAddress;
|
|
333
|
-
const TIMESTAMP_ADJUSTMENT = 16777215n; // max value for size 3
|
|
334
|
-
const defaultedKey = (args?.key ?? 0n) % TIMESTAMP_ADJUSTMENT;
|
|
335
|
-
const defaultedValidationMode = '0x00';
|
|
336
|
-
const key = concat([
|
|
337
|
-
toHex(defaultedKey, { size: 3 }),
|
|
338
|
-
defaultedValidationMode,
|
|
339
|
-
validatorAddress,
|
|
340
|
-
]);
|
|
341
|
-
return getAccountNonce(client, {
|
|
342
|
-
address,
|
|
343
|
-
entryPointAddress: entryPoint07Address,
|
|
344
|
-
key: BigInt(key),
|
|
345
|
-
});
|
|
346
|
-
},
|
|
347
|
-
async getStubSignature() {
|
|
348
|
-
return getStubSignature();
|
|
349
|
-
},
|
|
350
|
-
async signMessage() {
|
|
351
|
-
throw new Error('Not implemented');
|
|
352
|
-
},
|
|
353
|
-
async signTypedData() {
|
|
354
|
-
throw new Error('Not implemented');
|
|
355
|
-
},
|
|
356
|
-
async signUserOperation(parameters) {
|
|
357
|
-
const { chainId = client.chain?.id, ...userOperation } = parameters;
|
|
358
|
-
if (!chainId)
|
|
359
|
-
throw new Error('Chain id not found');
|
|
360
|
-
const hash = getUserOperationHash({
|
|
361
|
-
userOperation: {
|
|
362
|
-
...userOperation,
|
|
363
|
-
sender: userOperation.sender ?? (await this.getAddress()),
|
|
364
|
-
signature: '0x',
|
|
365
|
-
},
|
|
366
|
-
entryPointAddress: entryPoint07Address,
|
|
367
|
-
entryPointVersion: '0.7',
|
|
368
|
-
chainId: chainId,
|
|
369
|
-
});
|
|
370
|
-
return await signUserOperation(hash);
|
|
371
|
-
},
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
async function signEip7702InitData(config, eoa) {
|
|
375
|
-
const deployArgs = getDeployArgs(config);
|
|
376
|
-
if (!deployArgs) {
|
|
377
|
-
throw new Error('Cannot sign EIP-7702 init data: deploy args not available');
|
|
378
|
-
}
|
|
379
|
-
const { initData, implementation } = deployArgs;
|
|
380
|
-
if (!eoa.signTypedData) {
|
|
381
|
-
throw new SigningNotSupportedForAccountError();
|
|
382
|
-
}
|
|
383
|
-
const signature = await eoa.signTypedData({
|
|
384
|
-
domain: {
|
|
385
|
-
name: 'Nexus',
|
|
386
|
-
version: NEXUS_VERSION,
|
|
387
|
-
},
|
|
388
|
-
types: {
|
|
389
|
-
Initialize: [
|
|
390
|
-
{ name: 'nexus', type: 'address' },
|
|
391
|
-
{ name: 'chainIds', type: 'uint256[]' },
|
|
392
|
-
{ name: 'initData', type: 'bytes' },
|
|
393
|
-
],
|
|
394
|
-
},
|
|
395
|
-
primaryType: 'Initialize',
|
|
396
|
-
message: {
|
|
397
|
-
nexus: implementation,
|
|
398
|
-
chainIds: [0n],
|
|
399
|
-
initData,
|
|
400
|
-
},
|
|
401
|
-
});
|
|
402
|
-
return signature;
|
|
403
|
-
}
|
|
404
|
-
function getEip7702InitCall(config, signature) {
|
|
405
|
-
function getEncodedData(initData) {
|
|
406
|
-
const chainIds = [0n];
|
|
407
|
-
const chainIdIndex = 0n;
|
|
408
|
-
const chainIdsLength = 1n;
|
|
409
|
-
const encodedData = encodePacked(['uint256', 'uint256', 'uint256', 'bytes'], [chainIdIndex, chainIdsLength, chainIds[0], initData]);
|
|
410
|
-
return encodedData;
|
|
411
|
-
}
|
|
412
|
-
const deployArgs = getDeployArgs(config);
|
|
413
|
-
if (!deployArgs) {
|
|
414
|
-
throw new Error('Cannot get EIP-7702 init call: deploy args not available');
|
|
415
|
-
}
|
|
416
|
-
const { initData, implementation } = deployArgs;
|
|
417
|
-
const encodedData = getEncodedData(initData);
|
|
418
|
-
const accountFullData = concat([signature, encodedData]);
|
|
419
|
-
const accountInitCallData = encodeFunctionData({
|
|
420
|
-
abi: [
|
|
421
|
-
{
|
|
422
|
-
type: 'function',
|
|
423
|
-
inputs: [
|
|
424
|
-
{
|
|
425
|
-
type: 'bytes',
|
|
426
|
-
name: 'initData',
|
|
427
|
-
},
|
|
428
|
-
],
|
|
429
|
-
outputs: [],
|
|
430
|
-
stateMutability: 'nonpayable',
|
|
431
|
-
name: 'initializeAccount',
|
|
432
|
-
},
|
|
433
|
-
],
|
|
434
|
-
functionName: 'initializeAccount',
|
|
435
|
-
args: [accountFullData],
|
|
436
|
-
});
|
|
437
|
-
return {
|
|
438
|
-
initData: accountInitCallData,
|
|
439
|
-
contract: implementation,
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
function tryDecodeV1FactoryData(factory, factoryData) {
|
|
443
|
-
try {
|
|
444
|
-
const decoded = decodeFunctionData({
|
|
445
|
-
abi: parseAbi(['function createAccount(bytes,bytes32)']),
|
|
446
|
-
data: factoryData,
|
|
447
|
-
});
|
|
448
|
-
const initData = decoded.args[0];
|
|
449
|
-
const salt = decoded.args[1];
|
|
450
|
-
const initializationCallData = encodeFunctionData({
|
|
451
|
-
abi: parseAbi(['function initializeAccount(bytes)']),
|
|
452
|
-
functionName: 'initializeAccount',
|
|
453
|
-
args: [initData],
|
|
454
|
-
});
|
|
455
|
-
return {
|
|
456
|
-
salt,
|
|
457
|
-
factory,
|
|
458
|
-
factoryData,
|
|
459
|
-
implementation: implementationForFactory(factory),
|
|
460
|
-
initData,
|
|
461
|
-
initializationCallData,
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
catch (error) {
|
|
465
|
-
if (isAbiDecodingError(error)) {
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
throw error;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
function tryDecodeV0FactoryData(factory, factoryData) {
|
|
472
|
-
try {
|
|
473
|
-
const decoded = decodeFunctionData({
|
|
474
|
-
abi: parseAbi([
|
|
475
|
-
'function createAccount(address eoaOwner,uint256 index,address[] attesters,uint8 threshold)',
|
|
476
|
-
]),
|
|
477
|
-
data: factoryData,
|
|
478
|
-
});
|
|
479
|
-
const owner = decoded.args[0];
|
|
480
|
-
const index = decoded.args[1];
|
|
481
|
-
const attesters = decoded.args[2];
|
|
482
|
-
const threshold = decoded.args[3];
|
|
483
|
-
const salt = keccak256(encodePacked(['address', 'uint256', 'address[]', 'uint8'], [owner, index, attesters, threshold]));
|
|
484
|
-
const implementation = factory.toLowerCase() === NEXUS_FACTORY_ADDRESS
|
|
485
|
-
? NEXUS_IMPLEMENTATION_ADDRESS
|
|
486
|
-
: NEXUS_IMPLEMENTATION_1_0_0;
|
|
487
|
-
const registry = zeroAddress;
|
|
488
|
-
const bootstrapData = encodeFunctionData({
|
|
489
|
-
abi: parseAbi([
|
|
490
|
-
'function initNexusWithSingleValidator(address validator,bytes data,address registry,address[] attesters,uint8 threshold)',
|
|
491
|
-
]),
|
|
492
|
-
functionName: 'initNexusWithSingleValidator',
|
|
493
|
-
args: [NEXUS_K1_VALIDATOR, owner, registry, attesters, threshold],
|
|
494
|
-
});
|
|
495
|
-
const initData = encodeAbiParameters([{ type: 'address' }, { type: 'bytes' }], [NEXUS_BOOTSTRAP_1_0_0, bootstrapData]);
|
|
496
|
-
const initializationCallData = encodeFunctionData({
|
|
497
|
-
abi: parseAbi(['function initializeAccount(bytes)']),
|
|
498
|
-
functionName: 'initializeAccount',
|
|
499
|
-
args: [initData],
|
|
500
|
-
});
|
|
501
|
-
return {
|
|
502
|
-
salt,
|
|
503
|
-
factory,
|
|
504
|
-
factoryData,
|
|
505
|
-
implementation,
|
|
506
|
-
initData,
|
|
507
|
-
initializationCallData,
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
catch (error) {
|
|
511
|
-
if (isAbiDecodingError(error)) {
|
|
512
|
-
return null;
|
|
513
|
-
}
|
|
514
|
-
throw error;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
function isAbiDecodingError(error) {
|
|
518
|
-
return (error instanceof Error && error.name === 'AbiFunctionSignatureNotFoundError');
|
|
519
|
-
}
|
|
520
|
-
export { getEip712Domain, getInstallData, getDefaultValidatorInitData, isDefaultValidatorConfigured, getAddress, getDefaultValidatorAddress, packSignature, getDeployArgs, getSmartAccount, signEip7702InitData, getEip7702InitCall, };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type Abi, type Address, type Chain, type Hex, type PublicClient } from 'viem';
|
|
2
|
-
import { type SmartAccount, type SmartAccountImplementation } from 'viem/account-abstraction';
|
|
3
|
-
import type { Module } from '../modules/common.js';
|
|
4
|
-
import type { OwnerSet, RhinestoneAccountConfig } from '../types.js';
|
|
5
|
-
import { type ValidatorConfig } from './utils.js';
|
|
6
|
-
declare function getDeployArgs(config: RhinestoneAccountConfig): {
|
|
7
|
-
factory: `0x${string}`;
|
|
8
|
-
factoryData: `0x${string}`;
|
|
9
|
-
salt: `0x${string}`;
|
|
10
|
-
implementation: `0x${string}`;
|
|
11
|
-
initializationCallData: null;
|
|
12
|
-
} | null;
|
|
13
|
-
declare function getV0DeployArgs(config: RhinestoneAccountConfig): {
|
|
14
|
-
factory: `0x${string}`;
|
|
15
|
-
factoryData: `0x${string}`;
|
|
16
|
-
salt: `0x${string}`;
|
|
17
|
-
implementation: `0x${string}`;
|
|
18
|
-
initializationCallData: null;
|
|
19
|
-
};
|
|
20
|
-
declare function getAddress(config: RhinestoneAccountConfig): `0x${string}`;
|
|
21
|
-
declare function getEip712Domain(config: RhinestoneAccountConfig, chain: Chain): {
|
|
22
|
-
name: string;
|
|
23
|
-
version: string;
|
|
24
|
-
chainId: number;
|
|
25
|
-
verifyingContract: `0x${string}`;
|
|
26
|
-
salt: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
27
|
-
};
|
|
28
|
-
declare function getInstallData(module: Module): `0x${string}`;
|
|
29
|
-
declare function packSignature(signature: Hex, validator: ValidatorConfig, transformSignature?: (signature: Hex) => Hex): Promise<`0x${string}`>;
|
|
30
|
-
declare function getSmartAccount(client: PublicClient, address: Address, owners: OwnerSet, validatorAddress: Address, sign: (hash: Hex) => Promise<Hex>): Promise<SmartAccount<SmartAccountImplementation<Abi, "0.7">>>;
|
|
31
|
-
export { getEip712Domain, getInstallData, getAddress, packSignature, getDeployArgs, getV0DeployArgs, getSmartAccount, };
|
|
32
|
-
//# sourceMappingURL=safe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["../../../accounts/safe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,KAAK,EAOV,KAAK,GAAG,EAER,KAAK,YAAY,EAKlB,MAAM,MAAM,CAAA;AACb,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAEhC,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAM/C,OAAO,KAAK,EAAE,QAAQ,EAAE,uBAAuB,EAAe,MAAM,UAAU,CAAA;AAM9E,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAoBhF,iBAAS,aAAa,CAAC,MAAM,EAAE,uBAAuB;;;;;;SAmGrD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,uBAAuB;;;;;;EAgFvD;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,uBAAuB,iBAoBlD;AAED,iBAAS,eAAe,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,KAAK;;;;;;EAarE;AAED,iBAAS,cAAc,CAAC,MAAM,EAAE,MAAM,iBA2BrC;AAED,iBAAe,aAAa,CAC1B,SAAS,EAAE,GAAG,EACd,SAAS,EAAE,eAAe,EAC1B,kBAAkB,GAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAA8B,0BAMvE;AAED,iBAAe,eAAe,CAC5B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,OAAO,EACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,iEAWlC;AA2GD,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,GAChB,CAAA"}
|