Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iotexproject/kit

Package Overview
Dependencies
Maintainers
0
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iotexproject/kit - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

1173

dist/index.d.ts

@@ -1,1172 +0,1 @@

// Generated by dts-bundle-generator v9.5.1
declare class IoID {
create(args: {
_type: string;
_verifier: `0x${string}`;
_projectName: string;
_name: string;
_symbol: string;
_amount: string;
}): Promise<{
totalPrice: string;
data: any;
error?: undefined;
} | {
error: unknown;
totalPrice?: undefined;
data?: undefined;
}>;
}
declare class ERC20Entity {
address: `0x${string}`;
chainId: "1";
abi: readonly [
{
readonly inputs: readonly [
{
readonly internalType: "string";
readonly name: "name";
readonly type: "string";
},
{
readonly internalType: "string";
readonly name: "symbol";
readonly type: "string";
},
{
readonly internalType: "uint256";
readonly name: "initialSupply";
readonly type: "uint256";
},
{
readonly internalType: "address";
readonly name: "owner";
readonly type: "address";
}
];
readonly stateMutability: "nonpayable";
readonly type: "constructor";
},
{
readonly anonymous: false;
readonly inputs: readonly [
{
readonly indexed: true;
readonly internalType: "address";
readonly name: "owner";
readonly type: "address";
},
{
readonly indexed: true;
readonly internalType: "address";
readonly name: "spender";
readonly type: "address";
},
{
readonly indexed: false;
readonly internalType: "uint256";
readonly name: "value";
readonly type: "uint256";
}
];
readonly name: "Approval";
readonly type: "event";
},
{
readonly anonymous: false;
readonly inputs: readonly [
{
readonly indexed: true;
readonly internalType: "address";
readonly name: "from";
readonly type: "address";
},
{
readonly indexed: true;
readonly internalType: "address";
readonly name: "to";
readonly type: "address";
},
{
readonly indexed: false;
readonly internalType: "uint256";
readonly name: "value";
readonly type: "uint256";
}
];
readonly name: "Transfer";
readonly type: "event";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "owner";
readonly type: "address";
},
{
readonly internalType: "address";
readonly name: "spender";
readonly type: "address";
}
];
readonly name: "allowance";
readonly outputs: readonly [
{
readonly internalType: "uint256";
readonly name: "";
readonly type: "uint256";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "spender";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "amount";
readonly type: "uint256";
}
];
readonly name: "approve";
readonly outputs: readonly [
{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "account";
readonly type: "address";
}
];
readonly name: "balanceOf";
readonly outputs: readonly [
{
readonly internalType: "uint256";
readonly name: "";
readonly type: "uint256";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "uint256";
readonly name: "amount";
readonly type: "uint256";
}
];
readonly name: "burn";
readonly outputs: readonly [
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "account";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "amount";
readonly type: "uint256";
}
];
readonly name: "burnFrom";
readonly outputs: readonly [
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
];
readonly name: "decimals";
readonly outputs: readonly [
{
readonly internalType: "uint8";
readonly name: "";
readonly type: "uint8";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "spender";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "subtractedValue";
readonly type: "uint256";
}
];
readonly name: "decreaseAllowance";
readonly outputs: readonly [
{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "spender";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "addedValue";
readonly type: "uint256";
}
];
readonly name: "increaseAllowance";
readonly outputs: readonly [
{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
];
readonly name: "name";
readonly outputs: readonly [
{
readonly internalType: "string";
readonly name: "";
readonly type: "string";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
];
readonly name: "symbol";
readonly outputs: readonly [
{
readonly internalType: "string";
readonly name: "";
readonly type: "string";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
];
readonly name: "totalSupply";
readonly outputs: readonly [
{
readonly internalType: "uint256";
readonly name: "";
readonly type: "uint256";
}
];
readonly stateMutability: "view";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "recipient";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "amount";
readonly type: "uint256";
}
];
readonly name: "transfer";
readonly outputs: readonly [
{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}
];
readonly stateMutability: "nonpayable";
readonly type: "function";
},
{
readonly inputs: readonly [
{
readonly internalType: "address";
readonly name: "sender";
readonly type: "address";
},
{
readonly internalType: "address";
readonly name: "recipient";
readonly type: "address";
},
{
readonly internalType: "uint256";
readonly name: "amount";
readonly type: "uint256";
}
];
readonly name: "transferFrom";
readonly outputs: readonly [
{
readonly internalType: "bool";
readonly name: "";
readonly type: "bool";
}
];
readonly stateMutability: "nonpayable";
readonly type: "function";
}
];
totalSupply: number;
}
declare class UniswapV2LPEntity {
address: `0x${string}`;
chainId: "1";
abi: readonly [
{
readonly type: "constructor";
readonly inputs: readonly [
];
readonly payable: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "Approval";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "owner";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "spender";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
}
];
readonly anonymous: false;
},
{
readonly name: "Burn";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "sender";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "amount0";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "amount1";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "to";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
}
];
readonly anonymous: false;
},
{
readonly name: "Mint";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "sender";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "amount0";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "amount1";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
}
];
readonly anonymous: false;
},
{
readonly name: "Swap";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "sender";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "amount0In";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "amount1In";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "amount0Out";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "amount1Out";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
},
{
readonly name: "to";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
}
];
readonly anonymous: false;
},
{
readonly name: "Sync";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "reserve0";
readonly type: "uint112";
readonly indexed: false;
readonly internalType: "uint112";
},
{
readonly name: "reserve1";
readonly type: "uint112";
readonly indexed: false;
readonly internalType: "uint112";
}
];
readonly anonymous: false;
},
{
readonly name: "Transfer";
readonly type: "event";
readonly inputs: readonly [
{
readonly name: "from";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "to";
readonly type: "address";
readonly indexed: true;
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly indexed: false;
readonly internalType: "uint256";
}
];
readonly anonymous: false;
},
{
readonly name: "DOMAIN_SEPARATOR";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "bytes32";
readonly internalType: "bytes32";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "MINIMUM_LIQUIDITY";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "PERMIT_TYPEHASH";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "bytes32";
readonly internalType: "bytes32";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "allowance";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "approve";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "spender";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "bool";
readonly internalType: "bool";
}
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "balanceOf";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "burn";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
{
readonly name: "amount0";
readonly type: "uint256";
readonly internalType: "uint256";
},
{
readonly name: "amount1";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "decimals";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint8";
readonly internalType: "uint8";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "factory";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "getReserves";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "_reserve0";
readonly type: "uint112";
readonly internalType: "uint112";
},
{
readonly name: "_reserve1";
readonly type: "uint112";
readonly internalType: "uint112";
},
{
readonly name: "_blockTimestampLast";
readonly type: "uint32";
readonly internalType: "uint32";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "initialize";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "_token0";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "_token1";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "kLast";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "mint";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
{
readonly name: "liquidity";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "name";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "string";
readonly internalType: "string";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "nonces";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "permit";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "owner";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "spender";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly internalType: "uint256";
},
{
readonly name: "deadline";
readonly type: "uint256";
readonly internalType: "uint256";
},
{
readonly name: "v";
readonly type: "uint8";
readonly internalType: "uint8";
},
{
readonly name: "r";
readonly type: "bytes32";
readonly internalType: "bytes32";
},
{
readonly name: "s";
readonly type: "bytes32";
readonly internalType: "bytes32";
}
];
readonly outputs: readonly [
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "price0CumulativeLast";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "price1CumulativeLast";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "skim";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
}
];
readonly outputs: readonly [
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "swap";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "amount0Out";
readonly type: "uint256";
readonly internalType: "uint256";
},
{
readonly name: "amount1Out";
readonly type: "uint256";
readonly internalType: "uint256";
},
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "data";
readonly type: "bytes";
readonly internalType: "bytes";
}
];
readonly outputs: readonly [
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "symbol";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "string";
readonly internalType: "string";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "sync";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "token0";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "token1";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "address";
readonly internalType: "address";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "totalSupply";
readonly type: "function";
readonly inputs: readonly [
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly payable: false;
readonly constant: true;
readonly stateMutability: "view";
},
{
readonly name: "transfer";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "bool";
readonly internalType: "bool";
}
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
},
{
readonly name: "transferFrom";
readonly type: "function";
readonly inputs: readonly [
{
readonly name: "from";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "to";
readonly type: "address";
readonly internalType: "address";
},
{
readonly name: "value";
readonly type: "uint256";
readonly internalType: "uint256";
}
];
readonly outputs: readonly [
{
readonly name: "";
readonly type: "bool";
readonly internalType: "bool";
}
];
readonly payable: false;
readonly constant: false;
readonly stateMutability: "nonpayable";
}
];
totalSupply: number;
token0: string;
Token0: ERC20Entity;
totalSupplyUSD(): Promise<number>;
}
declare class Mimo {
getLpList(args: {
address: string;
}): Promise<import("@dappworks/kit/aiem").QueryReturnType<UniswapV2LPEntity, {
totalSupply: true;
totalSupplyUSD: true;
Token0: {
address: true;
totalSupply: true;
};
}>>;
}
export interface Bucket {
index: bigint;
candidateAddress: string;
stakedAmount: bigint;
stakedDuration: number;
createTime: bigint;
stakeStartTime: bigint;
unstakeStartTime: bigint;
autoStake: boolean;
owner: string;
contractAddress: string;
stakedDurationBlockNumber: bigint;
createBlockHeight: bigint;
stakeStartBlockHeight: bigint;
unstakeStartBlockHeight: bigint;
}
declare class Staking {
compositeBucketsByVoter(args: {
address: `0x${string}`;
count?: string;
}): Promise<Bucket[] | {
error: any;
}>;
changeCandidate(args: {
candName: string;
bucketIndex: string;
}): Promise<any>;
depositToStake(args: {
bucketIndex: string;
amount: string;
}): Promise<any>;
restake(args: {
bucketIndex: string;
duration: string;
autoStake: boolean;
}): Promise<any>;
unstake(args: {
bucketIndex: string;
}): Promise<any>;
withdrawStake(args: {
bucketIndex: string;
}): Promise<any>;
transferStake(args: {
voterAddress: `0x${string}`;
bucketIndex: string;
}): Promise<any>;
}
declare const modules: {
mimo: Mimo;
staking: Staking;
ioid: IoID;
};
export type ModuleType = typeof modules;
export declare const createClient: ({ url }?: {
url?: string;
}) => ModuleType;
export {};
export * from "./lib/client";

13

package.json

@@ -5,3 +5,3 @@ {

"type": "module",
"version": "v0.0.8",
"version": "v0.0.9",
"main": "dist/index.js",

@@ -19,3 +19,10 @@ "types": "dist/index.d.ts",

"dependencies": {
"@iotexproject/iotex-address-ts": "^1.0.4",
"axios": "^1.7.2",
"bech32": "^2.0.0",
"bentocache": "^1.0.0-beta.9",
"bignumber.js": "^9.1.2",
"dataloader": "^2.2.2",
"dayjs": "^1.11.12",
"lru-cache": "^11.0.0",
"reflect-metadata": "^0.2.2",

@@ -28,4 +35,6 @@ "viem": "^2.17.5"

"bun-plugin-dts": "^0.2.3",
"bun-plugin-isolated-decl": "^0.1.1",
"hono": "^4.4.11",
"typescript": "^5.0.0"
"oxc-transform": "^0.22.0",
"typescript": "^5.5.4"
},

@@ -32,0 +41,0 @@ "publishConfig": {

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