@bananahq/banana-sdk
Version:
Smart contract wallet sdk package by Banana Wallet
78 lines (77 loc) • 1.86 kB
TypeScript
import { BigNumberish } from 'ethers';
export interface ClientConfig {
bundlerUrl: string;
entryPointAddress: string;
}
export interface PublicKey {
q0: string;
q1: string;
encodedId: string;
}
export interface UserCredentialObject {
q0: string;
q1: string;
walletAddress: string;
initcode: boolean;
encodedId: string;
username: string;
saltNonce: string;
}
export interface CookieObject {
q0: string;
q1: string;
scwAddress: string;
initContract: boolean;
}
export interface ChainConfig {
Elliptic: string;
TouchIdSafeWalletContractProxyFactoryAddress: string;
TouchIdSafeWalletContractSingletonAddress: string;
fallBackHandlerAddress: string;
}
export interface TransactionDetailsForUserOp {
target: string;
data: string;
value?: BigNumberish;
gasLimit?: BigNumberish;
maxFeePerGas?: BigNumberish;
maxPriorityFeePerGas?: BigNumberish;
}
export interface ChainSpecificConfig {
jsonRpcUrl: string;
}
export interface ConnectOptions {
networkId: string | number;
}
export interface PaymasterOptions {
chainId: string;
paymasterUrl: string;
paymasterProvider: string;
}
export declare enum RequestType {
POST = "POST",
GET = "GET",
PUT = "PUT",
DELETE = "DELETE"
}
export interface TransactionDetailsForUserOp {
target: string;
data: string;
value?: BigNumberish;
gasLimit?: BigNumberish;
maxFeePerGas?: BigNumberish;
maxPriorityFeePerGas?: BigNumberish;
}
export declare enum ChainId {
MAINNET = 1,
GOERLI = 5,
POLYGON_MUMBAI = 80001,
POLYGON_MAINNET = 137,
BSC_TESTNET = 97,
BSC_MAINNET = 56,
POLYGON_ZKEVM_TESTNET = 1442,
POLYGON_ZKEVM_MAINNET = 1101,
ARBITRUM_GOERLI_TESTNET = 421613,
ARBITRUM_ONE_MAINNET = 42161,
ARBITRUM_NOVA_MAINNET = 42170
}