punkkit-sdk 1.0.20 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +943 -241
- package/dist/index.mjs +943 -241
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Signer, Contract, providers, Wallet, BigNumber, BigNumberish, ContractTransaction } from 'ethers';
|
|
1
|
+
import { Signer, Contract, providers, Wallet, ethers, BigNumber, BigNumberish, ContractTransaction } from 'ethers';
|
|
2
2
|
|
|
3
3
|
interface PlaceBidParams {
|
|
4
4
|
auctionId: string;
|
|
@@ -107,7 +107,7 @@ declare function getAuctionLockInfo(lockId: string): Promise<{
|
|
|
107
107
|
}>;
|
|
108
108
|
declare function getActiveAuctionsCount(): Promise<bigint>;
|
|
109
109
|
|
|
110
|
-
declare function swap(wallet: Wallet, amountIn: bigint, zeroForOne: boolean, hookData: string): Promise<
|
|
110
|
+
declare function swap(wallet: Wallet, amountIn: bigint, zeroForOne: boolean, hookData: string): Promise<providers.TransactionReceipt>;
|
|
111
111
|
declare function main(): Promise<void>;
|
|
112
112
|
|
|
113
113
|
interface PoolKey {
|
|
@@ -129,11 +129,11 @@ interface ModifyPositionParams {
|
|
|
129
129
|
salt?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
declare function addLiq(wallet: Wallet, priceLower: number, priceUpper: number, amount0: bigint | number, amount1: bigint | number, poolKey: PoolKey): Promise<
|
|
132
|
+
declare function addLiq(wallet: Wallet, priceLower: number, priceUpper: number, amount0: bigint | number, amount1: bigint | number, poolKey: PoolKey): Promise<ethers.providers.TransactionReceipt>;
|
|
133
133
|
|
|
134
134
|
declare function getContract(wallet: Wallet, name: string): Promise<Contract>;
|
|
135
135
|
|
|
136
|
-
declare function modifyPosition(contract: Contract, modifyPositionParams: ModifyPositionParams, hookData: string): Promise<
|
|
136
|
+
declare function modifyPosition(contract: Contract, modifyPositionParams: ModifyPositionParams, hookData: string): Promise<any>;
|
|
137
137
|
declare function getPoolId(poolKey: PoolKey): string;
|
|
138
138
|
declare function getLiquidity(contract: Contract, poolKey: PoolKey): Promise<any>;
|
|
139
139
|
declare function getPoolSqrtPrice(liqPool: Contract): Promise<bigint>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Signer, Contract, providers, Wallet, BigNumber, BigNumberish, ContractTransaction } from 'ethers';
|
|
1
|
+
import { Signer, Contract, providers, Wallet, ethers, BigNumber, BigNumberish, ContractTransaction } from 'ethers';
|
|
2
2
|
|
|
3
3
|
interface PlaceBidParams {
|
|
4
4
|
auctionId: string;
|
|
@@ -107,7 +107,7 @@ declare function getAuctionLockInfo(lockId: string): Promise<{
|
|
|
107
107
|
}>;
|
|
108
108
|
declare function getActiveAuctionsCount(): Promise<bigint>;
|
|
109
109
|
|
|
110
|
-
declare function swap(wallet: Wallet, amountIn: bigint, zeroForOne: boolean, hookData: string): Promise<
|
|
110
|
+
declare function swap(wallet: Wallet, amountIn: bigint, zeroForOne: boolean, hookData: string): Promise<providers.TransactionReceipt>;
|
|
111
111
|
declare function main(): Promise<void>;
|
|
112
112
|
|
|
113
113
|
interface PoolKey {
|
|
@@ -129,11 +129,11 @@ interface ModifyPositionParams {
|
|
|
129
129
|
salt?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
declare function addLiq(wallet: Wallet, priceLower: number, priceUpper: number, amount0: bigint | number, amount1: bigint | number, poolKey: PoolKey): Promise<
|
|
132
|
+
declare function addLiq(wallet: Wallet, priceLower: number, priceUpper: number, amount0: bigint | number, amount1: bigint | number, poolKey: PoolKey): Promise<ethers.providers.TransactionReceipt>;
|
|
133
133
|
|
|
134
134
|
declare function getContract(wallet: Wallet, name: string): Promise<Contract>;
|
|
135
135
|
|
|
136
|
-
declare function modifyPosition(contract: Contract, modifyPositionParams: ModifyPositionParams, hookData: string): Promise<
|
|
136
|
+
declare function modifyPosition(contract: Contract, modifyPositionParams: ModifyPositionParams, hookData: string): Promise<any>;
|
|
137
137
|
declare function getPoolId(poolKey: PoolKey): string;
|
|
138
138
|
declare function getLiquidity(contract: Contract, poolKey: PoolKey): Promise<any>;
|
|
139
139
|
declare function getPoolSqrtPrice(liqPool: Contract): Promise<bigint>;
|