opnet 1.3.15 → 1.3.16
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/IMotoChef.d.ts +5 -5
- package/browser/contracts/CallResult.d.ts +3 -1
- package/browser/contracts/interfaces/ICallResult.d.ts +2 -1
- 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/IMotoChef.d.ts +5 -5
- package/build/abi/shared/json/motoswap/MOTOCHEF_ABI.js +4 -4
- package/build/contracts/CallResult.d.ts +3 -1
- package/build/contracts/CallResult.js +10 -0
- package/build/contracts/Contract.js +1 -1
- package/build/contracts/interfaces/ICallResult.d.ts +2 -1
- package/package.json +2 -2
- package/src/_version.ts +1 -1
- package/src/abi/shared/interfaces/motoswap/IMotoChef.ts +6 -6
- package/src/abi/shared/json/motoswap/MOTOCHEF_ABI.ts +4 -4
- package/src/contracts/CallResult.ts +15 -0
- package/src/contracts/Contract.ts +1 -1
- package/src/contracts/interfaces/ICallResult.ts +2 -1
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.3.
|
|
1
|
+
export declare const version = "1.3.16";
|
|
@@ -34,13 +34,13 @@ export type LogUpdatePoolEvent = {
|
|
|
34
34
|
export type StakedBTCEvent = {
|
|
35
35
|
readonly user: Address;
|
|
36
36
|
readonly netAmount: bigint;
|
|
37
|
-
readonly
|
|
37
|
+
readonly stakeTxId: bigint;
|
|
38
38
|
readonly stakeIndex: bigint;
|
|
39
39
|
};
|
|
40
40
|
export type UnstakedBTCEvent = {
|
|
41
41
|
readonly user: Address;
|
|
42
42
|
readonly pendingMoto: bigint;
|
|
43
|
-
readonly
|
|
43
|
+
readonly storedTxId: bigint;
|
|
44
44
|
readonly storedIndex: bigint;
|
|
45
45
|
};
|
|
46
46
|
export type LogSetPoolEvent = {
|
|
@@ -115,8 +115,8 @@ export type PendingMoto = CallResult<{
|
|
|
115
115
|
export type TreasuryAddress = CallResult<{
|
|
116
116
|
treasuryAddress: string;
|
|
117
117
|
}, OPNetEvent<never>[]>;
|
|
118
|
-
export type
|
|
119
|
-
|
|
118
|
+
export type GetStakingTxId = CallResult<{
|
|
119
|
+
stakingTxId: bigint;
|
|
120
120
|
}, OPNetEvent<never>[]>;
|
|
121
121
|
export type GetStakingIndex = CallResult<{
|
|
122
122
|
stakingIndex: bigint;
|
|
@@ -186,7 +186,7 @@ export interface IMotoChef extends IOwnable {
|
|
|
186
186
|
getMultiplier(from: bigint, to: bigint): Promise<GetMultiplier>;
|
|
187
187
|
pendingMoto(poolId: bigint, user: Address): Promise<PendingMoto>;
|
|
188
188
|
treasuryAddress(): Promise<TreasuryAddress>;
|
|
189
|
-
|
|
189
|
+
getStakingTxId(user: Address): Promise<GetStakingTxId>;
|
|
190
190
|
getStakingIndex(user: Address): Promise<GetStakingIndex>;
|
|
191
191
|
totalBTCStaked(): Promise<TotalBTCStaked>;
|
|
192
192
|
stakeBTC(amount: bigint): Promise<StakeBTC>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Network, PsbtOutputExtended, Signer } from '@btc-vision/bitcoin';
|
|
2
|
-
import { BinaryReader, UTXO } from '@btc-vision/transaction';
|
|
2
|
+
import { BinaryReader, LoadedStorage, UTXO } from '@btc-vision/transaction';
|
|
3
3
|
import { ECPairInterface } from 'ecpair';
|
|
4
4
|
import { AbstractRpcProvider } from '../providers/AbstractRpcProvider.js';
|
|
5
5
|
import { ContractDecodedObjectResult, DecodedOutput } from './Contract.js';
|
|
@@ -30,6 +30,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
|
|
|
30
30
|
readonly accessList: IAccessList;
|
|
31
31
|
readonly revert: string | undefined;
|
|
32
32
|
calldata: Buffer | undefined;
|
|
33
|
+
loadedStorage: LoadedStorage | undefined;
|
|
33
34
|
readonly estimatedGas: bigint | undefined;
|
|
34
35
|
properties: T;
|
|
35
36
|
estimatedSatGas: bigint;
|
|
@@ -43,6 +44,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
|
|
|
43
44
|
setDecoded(decoded: DecodedOutput): void;
|
|
44
45
|
setEvents(events: U): void;
|
|
45
46
|
setCalldata(calldata: Buffer): void;
|
|
47
|
+
private getValuesFromAccessList;
|
|
46
48
|
private contractToString;
|
|
47
49
|
private parseEvents;
|
|
48
50
|
private base64ToUint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BinaryReader, NetEvent } from '@btc-vision/transaction';
|
|
1
|
+
import { BinaryReader, LoadedStorage, NetEvent } from '@btc-vision/transaction';
|
|
2
2
|
import { IAccessList } from './IAccessList.js';
|
|
3
3
|
export interface ICallRequestError {
|
|
4
4
|
readonly error: string;
|
|
@@ -19,5 +19,6 @@ export interface ICallResultData {
|
|
|
19
19
|
readonly accessList: IAccessList;
|
|
20
20
|
readonly revert?: string;
|
|
21
21
|
readonly estimatedGas?: string;
|
|
22
|
+
readonly loadedStorage?: LoadedStorage;
|
|
22
23
|
}
|
|
23
24
|
export type ICallResult = ICallRequestError | ICallResultData;
|