New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abstractionkit

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstractionkit - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/account/Safe/modules/AllowanceModule.d.ts

9

dist/abstractionkit.d.ts
export { SmartAccount } from "./account/SmartAccount";
export { SocialRecoveryModule, RecoveryRequest, SocialRecoveryModuleGracePeriodSelector, RecoverySignaturePair } from "./account/Safe/modules/SocialRecoveryModule";
export { SocialRecoveryModule, RecoveryRequest, SocialRecoveryModuleGracePeriodSelector, RecoverySignaturePair, } from "./account/Safe/modules/SocialRecoveryModule";
export { AllowanceModule, Allowance, } from "./account/Safe/modules/AllowanceModule";
export { SafeAccountV0_2_0 } from "./account/Safe/SafeAccountV0_2_0";

@@ -10,8 +11,8 @@ export { SafeAccountV0_3_0 } from "./account/Safe/SafeAccountV0_3_0";

export { CandidePaymaster } from "./paymaster/CandidePaymaster";
export { createUserOperationHash, createCallData, getFunctionSelector, fetchAccountNonce, calculateUserOperationMaxGasCost, sendJsonRpcRequest, } from "./utils";
export { CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, InitCodeOverrides, SafeModuleExecutorFunctionSelector, SafeUserOperationTypedDataDomain, WebauthnPublicKey, EOADummySignature, WebauthnDummySignerSignaturePair, WebauthnSignatureData, SignerSignaturePair, } from "./account/Safe/types";
export { createUserOperationHash, createCallData, getFunctionSelector, fetchAccountNonce, calculateUserOperationMaxGasCost, sendJsonRpcRequest, fetchGasPrice } from "./utils";
export { CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, InitCodeOverrides, SafeModuleExecutorFunctionSelector, SafeUserOperationTypedDataDomain, WebauthnPublicKey, EOADummySignerSignaturePair, WebauthnDummySignerSignaturePair, WebauthnSignatureData, SignerSignaturePair, } from "./account/Safe/types";
export { CandidePaymasterContext, PrependTokenPaymasterApproveAccount, } from "./paymaster/types";
export { UserOperationV6, UserOperationV7, AbiInputValue, JsonRpcParam, JsonRpcResponse, JsonRpcResult, GasEstimationResult, UserOperationByHashResult, UserOperationReceipt, UserOperationReceiptResult, JsonRpcError, StateOverrideSet, Operation, MetaTransaction, } from "./types";
export { UserOperationV6, UserOperationV7, AbiInputValue, JsonRpcParam, JsonRpcResponse, JsonRpcResult, GasEstimationResult, UserOperationByHashResult, UserOperationReceipt, UserOperationReceiptResult, JsonRpcError, StateOverrideSet, Operation, MetaTransaction, GasOption, SponsorMetadata } from "./types";
export { ZeroAddress, BaseUserOperationDummyValues, EIP712_SAFE_OPERATION_V7_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, } from "./constants";
export { AbstractionKitError } from "./errors";
//# sourceMappingURL=abstractionkit.d.ts.map

@@ -80,3 +80,3 @@ import { SmartAccount } from "../SmartAccount";

stateOverrideSet?: StateOverrideSet;
dummySignatures?: SignerSignaturePair[];
dummySignerSignaturePairs?: SignerSignaturePair[];
}): Promise<[bigint, bigint, bigint]>;

@@ -122,3 +122,4 @@ protected createBaseUserOperationAndFactoryAddressAndFactoryData(transactions: MetaTransaction[], isV06: boolean, providerRpc?: string, bundlerRpc?: string, overrides?: CreateBaseUserOperationOverrides): Promise<[BaseUserOperation, string | null, string | null]>;

getOwners(nodeRpcUrl: string): Promise<string[]>;
isModuleEnabled(nodeRpcUrl: string, moduleAddress: string): Promise<boolean>;
}
//# sourceMappingURL=SafeAccount.d.ts.map

@@ -1,2 +0,2 @@

import type { StateOverrideSet } from "../../types";
import type { GasOption, StateOverrideSet } from "../../types";
export interface CreateBaseUserOperationOverrides {

@@ -16,3 +16,3 @@ nonce?: bigint;

state_override_set?: StateOverrideSet;
dummySignatures?: SignerSignaturePair[];
dummySignerSignaturePairs?: SignerSignaturePair[];
webAuthnSharedSigner?: string;

@@ -25,2 +25,3 @@ webAuthnSignerFactory?: string;

multisendContractAddress?: string;
gasLevel?: GasOption;
}

@@ -126,4 +127,4 @@ export interface CreateUserOperationV6Overrides extends CreateBaseUserOperationOverrides {

}
export declare const EOADummySignature: SignerSignaturePair;
export declare const EOADummySignerSignaturePair: SignerSignaturePair;
export declare const WebauthnDummySignerSignaturePair: SignerSignaturePair;
//# sourceMappingURL=types.d.ts.map
import { Paymaster } from "./Paymaster";
import { UserOperationV6, UserOperationV7, PaymasterMetadataV7, PaymasterMetadataV6, ERC20Token, SponsorMetadata } from "../types";
import { UserOperationV6, UserOperationV7, PaymasterMetadataV7, PaymasterMetadataV6, ERC20Token, SponsorMetadata, SupportedERC20TokensAndMetadataV7WithExchangeRate, SupportedERC20TokensAndMetadataV6WithExchangeRate } from "../types";
import { CandidePaymasterContext, PrependTokenPaymasterApproveAccount, CreatePaymasterUserOperationOverrides } from "./types";

@@ -20,8 +20,10 @@ export declare class CandidePaymaster extends Paymaster {

createPaymasterUserOperation(userOperationInput: UserOperationV6, bundlerRpc: string, context?: CandidePaymasterContext, overrides?: CreatePaymasterUserOperationOverrides): Promise<[UserOperationV6, SponsorMetadata | undefined]>;
createSponsorPaymasterUserOperation(userOperation: UserOperationV7, bundlerRpc: string, overrides?: CreatePaymasterUserOperationOverrides): Promise<[UserOperationV7, SponsorMetadata | undefined]>;
createSponsorPaymasterUserOperation(userOperation: UserOperationV6, bundlerRpc: string, overrides?: CreatePaymasterUserOperationOverrides): Promise<[UserOperationV6, SponsorMetadata | undefined]>;
createSponsorPaymasterUserOperation(userOperation: UserOperationV7, bundlerRpc: string, sponsorshipPolicyId?: string): Promise<[UserOperationV7, SponsorMetadata | undefined]>;
createSponsorPaymasterUserOperation(userOperation: UserOperationV6, bundlerRpc: string, sponsorshipPolicyId?: string): Promise<[UserOperationV6, SponsorMetadata | undefined]>;
createTokenPaymasterUserOperation(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: UserOperationV7, tokenAddress: string, bundlerRpc: string, overrides?: CreatePaymasterUserOperationOverrides): Promise<UserOperationV7>;
createTokenPaymasterUserOperation(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: UserOperationV6, tokenAddress: string, bundlerRpc: string, overrides?: CreatePaymasterUserOperationOverrides): Promise<UserOperationV6>;
calculateUserOperationErc20TokenMaxGasCost(userOperation: UserOperationV7 | UserOperationV6, erc20TokenAddress: string): Promise<bigint>;
fetchTokenPaymasterExchangeRate(erc20TokenAddress: string, entrypoint?: string): Promise<bigint>;
fetchSupportedERC20TokensAndPaymasterMetadata(entrypoint?: string): Promise<SupportedERC20TokensAndMetadataV7WithExchangeRate | SupportedERC20TokensAndMetadataV6WithExchangeRate>;
}
//# sourceMappingURL=CandidePaymaster.d.ts.map
import type { StateOverrideSet } from "../types";
export interface CandidePaymasterContext {
token?: string;
sponsorshipPolicyId?: string;
}

@@ -5,0 +6,0 @@ export interface PrependTokenPaymasterApproveAccount {

@@ -117,3 +117,5 @@ export interface BaseUserOperation {

address: string;
decimal: number;
decimals: number;
}
export interface ERC20TokenWithExchangeRate extends ERC20Token {
exchangeRate: bigint;

@@ -147,2 +149,10 @@ }

}
export interface SupportedERC20TokensAndMetadataV7WithExchangeRate {
paymasterMetadata: PaymasterMetadataV7;
tokens: ERC20TokenWithExchangeRate[];
}
export interface SupportedERC20TokensAndMetadataV6WithExchangeRate {
paymasterMetadata: PaymasterMetadataV6;
tokens: ERC20TokenWithExchangeRate[];
}
export interface Dictionary<T> {

@@ -149,0 +159,0 @@ [Key: string]: T;

@@ -7,3 +7,3 @@ {

},
"version": "0.2.0",
"version": "0.2.1",
"description": "Account Abstraction 4337 SDK by Candidelabs",

@@ -15,4 +15,4 @@ "main": "dist/index.js",

"scripts": {
"build": "rm -rf dist && microbundle --tsconfig tsconfig.json --no-sourcemap",
"clean": "rm -rf dist",
"build": "rimraf dist && microbundle --tsconfig tsconfig.json --no-sourcemap",
"clean": "rimraf dist",
"format": "prettier --write src/*.ts src/**/*.ts src/**/**/*.ts",

@@ -57,3 +57,4 @@ "lint": "eslint -f unix \"src/**/*.{ts,tsx}\"",

"prettier": "3.0.0",
"typescript": "^5.1.6"
"typescript": "^5.1.6",
"rimraf": "^6.0.1"
},

@@ -60,0 +61,0 @@ "lint-staged": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc