opnet 1.3.16 → 1.3.18
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/browser/_version.d.ts +1 -1
- package/browser/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +15 -0
- package/browser/block/Block.d.ts +3 -1
- package/browser/block/interfaces/IBlock.d.ts +1 -0
- package/browser/contracts/CallResult.d.ts +1 -0
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +15 -0
- package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.js +1 -0
- package/build/block/Block.d.ts +3 -1
- package/build/block/Block.js +7 -0
- package/build/block/interfaces/IBlock.d.ts +1 -0
- package/build/contracts/CallResult.d.ts +1 -0
- package/build/contracts/CallResult.js +13 -1
- package/package.json +110 -110
- package/src/_version.ts +1 -1
- package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +31 -0
- package/src/abi/shared/json/motoswap/NATIVE_SWAP_ABI.ts +1 -0
- package/src/block/Block.ts +10 -2
- package/src/block/interfaces/IBlock.ts +1 -0
- package/src/contracts/CallResult.ts +19 -2
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.3.
|
|
1
|
+
export declare const version = "1.3.18";
|
|
@@ -90,6 +90,7 @@ export type GetQuote = CallResult<{
|
|
|
90
90
|
export type GetProviderDetails = CallResult<{
|
|
91
91
|
liquidity: bigint;
|
|
92
92
|
reserved: bigint;
|
|
93
|
+
lpShares: bigint;
|
|
93
94
|
btcReceiver: string;
|
|
94
95
|
}, [
|
|
95
96
|
]>;
|
|
@@ -97,6 +98,15 @@ export type GetPriorityQueueCost = CallResult<{
|
|
|
97
98
|
cost: bigint;
|
|
98
99
|
}, [
|
|
99
100
|
]>;
|
|
101
|
+
export type AntiBotSettings = CallResult<{
|
|
102
|
+
antibotEnabledFor: number;
|
|
103
|
+
antibotMaximumTokensPerReservation: bigint;
|
|
104
|
+
maxReservesIn5BlocksPercent: number;
|
|
105
|
+
}, [
|
|
106
|
+
]>;
|
|
107
|
+
export type StakingAddressResult = CallResult<{
|
|
108
|
+
stakingContractAddress: Address;
|
|
109
|
+
}, []>;
|
|
100
110
|
export interface INativeSwapContract extends IOP_NETContract {
|
|
101
111
|
reserve(token: Address, maximumAmountIn: bigint, minimumAmountOut: bigint, forLP: boolean, activationDelay: number): Promise<ReserveNativeSwap>;
|
|
102
112
|
listLiquidity(token: Address, receiver: string, amountIn: bigint, priority: boolean): Promise<ListLiquidity>;
|
|
@@ -112,4 +122,9 @@ export interface INativeSwapContract extends IOP_NETContract {
|
|
|
112
122
|
getQuote(token: Address, satoshisIn: bigint): Promise<GetQuote>;
|
|
113
123
|
getProviderDetails(token: Address): Promise<GetProviderDetails>;
|
|
114
124
|
getPriorityQueueCost(token: Address): Promise<GetPriorityQueueCost>;
|
|
125
|
+
getAntibotSettings(token: Address): Promise<AntiBotSettings>;
|
|
126
|
+
setStakingContractAddress(stakingContractAddress: Address): Promise<CallResult<{
|
|
127
|
+
ok: boolean;
|
|
128
|
+
}, []>>;
|
|
129
|
+
getStakingContractAddress(): Promise<StakingAddressResult>;
|
|
115
130
|
}
|
package/browser/block/Block.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Network } from '@btc-vision/bitcoin';
|
|
2
|
+
import { Address } from '@btc-vision/transaction';
|
|
2
3
|
import { BigNumberish } from '../common/CommonTypes.js';
|
|
3
4
|
import { OPNetTransactionTypes } from '../interfaces/opnet/OPNetTransactionTypes.js';
|
|
4
5
|
import { TransactionBase } from '../transactions/Transaction.js';
|
|
5
6
|
import { BlockHeaderChecksumProof, IBlock } from './interfaces/IBlock.js';
|
|
6
|
-
export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas'> {
|
|
7
|
+
export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas' | 'deployedContracts'> {
|
|
7
8
|
readonly height: BigNumberish;
|
|
8
9
|
readonly hash: string;
|
|
9
10
|
readonly previousBlockHash: string;
|
|
@@ -26,5 +27,6 @@ export declare class Block implements Omit<IBlock, 'gasUsed' | 'ema' | 'baseGas'
|
|
|
26
27
|
readonly gasUsed: bigint;
|
|
27
28
|
readonly checksumProofs: BlockHeaderChecksumProof;
|
|
28
29
|
readonly transactions: TransactionBase<OPNetTransactionTypes>[];
|
|
30
|
+
readonly deployedContracts: Address[];
|
|
29
31
|
constructor(block: IBlock, network: Network);
|
|
30
32
|
}
|
|
@@ -16,6 +16,7 @@ export interface TransactionParameters {
|
|
|
16
16
|
readonly network: Network;
|
|
17
17
|
readonly extraInputs?: UTXO[];
|
|
18
18
|
readonly extraOutputs?: PsbtOutputExtended[];
|
|
19
|
+
readonly dontIncludeAccessList?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface InteractionTransactionReceipt {
|
|
21
22
|
readonly transactionId: string;
|