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.
@@ -1 +1 @@
1
- export declare const version = "1.3.16";
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
  }
@@ -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
  }
@@ -28,4 +28,5 @@ export interface IBlockCommon {
28
28
  }
29
29
  export interface IBlock extends IBlockCommon {
30
30
  transactions?: ITransaction[] | TransactionBase<OPNetTransactionTypes>[];
31
+ deployedContracts?: string[];
31
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;