@iotexproject/kit
Advanced tools
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"; |
@@ -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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1525
10
7
2
4
+ Addedaxios@^1.7.2
+ Addedbech32@^2.0.0
+ Addedbignumber.js@^9.1.2
+ Addeddataloader@^2.2.2
+ Addeddayjs@^1.11.12
+ Addedlru-cache@^11.0.0
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@iotexproject/iotex-address-ts@1.0.4(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbech32@2.0.0(transitive)
+ Addedbignumber.js@9.1.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuiltin-modules@1.1.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddataloader@2.2.2(transitive)
+ Addeddayjs@1.11.13(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@4.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtslint@6.1.3(transitive)
+ Addedtsutils@2.29.0(transitive)
+ Addedtypescript@5.7.2(transitive)
+ Addedviem@2.21.50(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedviem@2.21.52(transitive)