opnet 1.3.20 → 1.3.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.
@@ -1 +1 @@
1
- export declare const version = "1.3.20";
1
+ export declare const version = "1.3.23";
@@ -1,12 +1,6 @@
1
1
  import { Address } from '@btc-vision/transaction';
2
- import { CallResult } from '../../../../opnet.js';
2
+ import { Admin, CallResult, ChangeAdmin } from '../../../../opnet.js';
3
3
  import { IOP_20Contract } from '../opnet/IOP_20Contract.js';
4
- export type Admin = CallResult<{
5
- ADDRESS: Address;
6
- }>;
7
- export type ChangeAdmin = CallResult<{
8
- success: boolean;
9
- }>;
10
4
  export type AdminMint = CallResult<{
11
5
  success: boolean;
12
6
  }>;
@@ -5,14 +5,13 @@ import { IOP_NETContract } from '../opnet/IOP_NETContract.js';
5
5
  export type PoolCreatedEvent = {
6
6
  readonly token0: Address;
7
7
  readonly token1: Address;
8
- readonly pool: bigint;
8
+ readonly pool: Address;
9
9
  };
10
10
  export interface IMotoswapFactoryContract extends IOP_NETContract {
11
11
  getPool(token0: Address, token1: Address): Promise<CallResult<{
12
- pool: bigint;
12
+ pool: Address;
13
13
  }>>;
14
14
  createPool(token0: Address, token1: Address): Promise<CallResult<{
15
- pool: bigint;
16
15
  address: Address;
17
16
  }, [OPNetEvent<PoolCreatedEvent>]>>;
18
17
  setStakingContractAddress(stakingContractAddress: Address): Promise<CallResult<{
@@ -1,5 +1,6 @@
1
1
  import { Address } from '@btc-vision/transaction';
2
2
  import { CallResult } from '../../../../contracts/CallResult.js';
3
+ import { BalanceOf, TotalSupply } from '../opnet/IOP_20Contract.js';
3
4
  import { IOP_NETContract } from '../opnet/IOP_NETContract.js';
4
5
  export type Status = CallResult<{
5
6
  status: bigint;
@@ -20,12 +21,6 @@ interface IMotoswapOwnableReentrancyGuard extends IMotoswapReentrancyGuard {
20
21
  export type GetMotoAddress = CallResult<{
21
22
  motoAddress: Address;
22
23
  }>;
23
- export type BalanceOf = CallResult<{
24
- balance: bigint;
25
- }>;
26
- export type TotalSupply = CallResult<{
27
- totalSupply: bigint;
28
- }>;
29
24
  export type MotoAddress = CallResult<{
30
25
  totalSupply: bigint;
31
26
  }>;