@lit-protocol/vincent-scaffold-sdk
Version:
Shared build configuration and utilities for Vincent abilities and policies
96 lines • 3.76 kB
TypeScript
import { yellowstoneConfig } from "./la-chain/yellowstone/yellowstoneConfig";
import { contractCall } from "./la-transactions/handlers/contractCall";
import { sponsoredGasContractCall } from "./la-transactions/handlers/sponsoredGas/sponsoredGasContractCall";
import { getAlchemyChainConfig } from "./la-helpers/getAlchemyChainConfig";
import { nativeSend } from "./la-transactions/handlers/nativeSend";
import { getNonce } from "./la-transactions/primitive/getNonce";
import { sendTx } from "./la-transactions/primitive/sendTx";
import { signTx } from "./la-transactions/primitive/signTx";
import { toEthAddress } from "./la-helpers/toEthAddress";
export { yellowstoneConfig, contractCall, sponsoredGasContractCall, nativeSend, getNonce, sendTx, signTx, toEthAddress, };
export declare const laUtils: {
chain: {
yellowstoneConfig: {
id: number;
name: string;
nativeCurrency: {
name: string;
symbol: string;
decimals: number;
};
rpcUrls: {
default: {
http: string[];
webSocket: never[];
};
public: {
http: string[];
webSocket: never[];
};
};
blockExplorers: {
default: {
name: string;
url: string;
};
};
};
};
transaction: {
handler: {
contractCall: ({ provider, pkpPublicKey, callerAddress, abi, contractAddress, functionName, args, overrides, chainId, gasBumpPercentage, }: {
provider: any;
pkpPublicKey: string;
callerAddress: string;
abi: any[];
contractAddress: string;
functionName: string;
args: any[];
overrides?: {
value?: string | number | bigint;
gasLimit?: number;
};
chainId?: number;
gasBumpPercentage?: number;
}) => Promise<string>;
sponsoredGasContractCall: ({ pkpPublicKey, abi, contractAddress, functionName, args, overrides, chainId, eip7702AlchemyApiKey, eip7702AlchemyPolicyId, }: {
pkpPublicKey: string;
abi: any[];
contractAddress: string;
functionName: string;
args: any[];
overrides?: {
value?: string | number | bigint;
gasLimit?: number;
};
chainId?: number;
eip7702AlchemyApiKey?: string;
eip7702AlchemyPolicyId?: string;
}) => Promise<string>;
nativeSend: ({ provider, pkpPublicKey, amount, to, }: {
provider: InstanceType<typeof ethers.providers.JsonRpcProvider>;
pkpPublicKey: string;
amount: string;
to: string;
}) => Promise<string>;
};
primitive: {
getNonce: ({ address, chain, }: {
address: string;
chain: string;
}) => Promise<string>;
sendTx: (provider: any, signedTx: string) => Promise<string>;
signTx: ({ sigName, pkpPublicKey, tx, }: {
sigName: string;
pkpPublicKey: string;
tx: any;
}) => Promise<string>;
};
};
helpers: {
toEthAddress: typeof toEthAddress;
getAlchemyChainConfig: typeof getAlchemyChainConfig;
};
};
export default laUtils;
//# sourceMappingURL=index.d.ts.map