opnet 1.3.21 → 1.3.24
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/README.md +1 -2
- package/browser/_version.d.ts +1 -1
- package/browser/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.d.ts +2 -3
- package/browser/fetch/fetch-browser.d.ts +6 -1
- package/browser/fetch/fetch.d.ts +4 -3
- package/browser/fetch/fetcher-type.d.ts +2 -0
- package/browser/index.js +1 -1
- package/browser/providers/JSONRpcProvider.d.ts +5 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.d.ts +2 -3
- package/build/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.js +2 -6
- package/build/fetch/fetch.d.ts +4 -3
- package/build/fetch/fetch.js +12 -3
- package/build/fetch/fetcher-type.d.ts +2 -0
- package/build/fetch/fetcher-type.js +1 -0
- package/build/providers/AbstractRpcProvider.js +6 -6
- package/build/providers/JSONRpcProvider.d.ts +5 -1
- package/build/providers/JSONRpcProvider.js +20 -6
- package/package.json +2 -1
- package/src/_version.ts +1 -1
- package/src/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.ts +5 -5
- package/src/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.ts +2 -6
- package/src/fetch/fetch-browser.js +5 -1
- package/src/fetch/fetch.ts +18 -3
- package/src/fetch/fetcher-type.ts +3 -0
- package/src/providers/AbstractRpcProvider.ts +8 -7
- package/src/providers/JSONRpcProvider.ts +25 -8
package/README.md
CHANGED
|
@@ -69,8 +69,7 @@ import { Address, Wallet } from '@btc-vision/transaction';
|
|
|
69
69
|
import { Network } from '@btc-vision/bitcoin';
|
|
70
70
|
|
|
71
71
|
const network: Network = Configs.NETWORK;
|
|
72
|
-
const provider: JSONRpcProvider = new JSONRpcProvider('https://regtest.opnet.
|
|
73
|
-
org', network);
|
|
72
|
+
const provider: JSONRpcProvider = new JSONRpcProvider('https://regtest.opnet.org', network);
|
|
74
73
|
const wallet: Wallet = Configs.WALLET;
|
|
75
74
|
const yourAddress: Address = new Address(wallet.keypair.publicKey);
|
|
76
75
|
|
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.3.
|
|
1
|
+
export declare const version = "1.3.23";
|
|
@@ -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:
|
|
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:
|
|
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,10 @@
|
|
|
1
|
+
export class Agent {
|
|
2
|
+
}
|
|
1
3
|
export default def;
|
|
2
4
|
export function fetch(input: any, init: any): any;
|
|
5
|
+
export function setGlobalDispatcher(): void;
|
|
3
6
|
declare namespace def {
|
|
4
|
-
function fetch(input: any, init: any): any;
|
|
7
|
+
export function fetch(input: any, init: any): any;
|
|
8
|
+
export function setGlobalDispatcher(): void;
|
|
9
|
+
export { Agent };
|
|
5
10
|
}
|
package/browser/fetch/fetch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Agent } from 'undici';
|
|
2
|
+
import { Fetcher } from './fetcher-type.js';
|
|
3
|
+
export declare function getFetcher(configs: Agent.Options): Fetcher;
|
|
4
|
+
export default getFetcher;
|