opnet 1.5.11 → 1.5.13
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 +36 -22
- package/browser/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +5 -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/IMotoChef.d.ts +36 -22
- package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +5 -0
- package/build/abi/shared/json/motoswap/MOTOCHEF_ABI.js +79 -23
- package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.js +5 -0
- package/build/contracts/Contract.js +10 -0
- package/package.json +106 -106
- package/src/_version.ts +1 -1
- package/src/abi/shared/interfaces/motoswap/IMotoChef.ts +43 -21
- package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +5 -0
- package/src/abi/shared/json/motoswap/MOTOCHEF_ABI.ts +79 -23
- package/src/abi/shared/json/motoswap/NATIVE_SWAP_ABI.ts +7 -0
- package/src/contracts/Contract.ts +10 -0
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.5.
|
|
1
|
+
export declare const version = "1.5.13";
|
|
@@ -20,13 +20,13 @@ interface IOwnable extends IOP_NETContract {
|
|
|
20
20
|
transferOwnership(newOwner: Address): Promise<TransferOwnership>;
|
|
21
21
|
}
|
|
22
22
|
export type LogPoolAdditionEvent = {
|
|
23
|
-
readonly poolId:
|
|
23
|
+
readonly poolId: number;
|
|
24
24
|
readonly allocPoint: bigint;
|
|
25
25
|
readonly lpToken: Address;
|
|
26
26
|
};
|
|
27
27
|
export type LogInitEvent = {};
|
|
28
28
|
export type LogUpdatePoolEvent = {
|
|
29
|
-
readonly poolId:
|
|
29
|
+
readonly poolId: number;
|
|
30
30
|
readonly lastRewardBlock: bigint;
|
|
31
31
|
readonly lpSupply: bigint;
|
|
32
32
|
readonly accMotoPerShare: bigint;
|
|
@@ -37,36 +37,46 @@ export type StakedBTCEvent = {
|
|
|
37
37
|
readonly stakeTxId: bigint;
|
|
38
38
|
readonly stakeIndex: bigint;
|
|
39
39
|
};
|
|
40
|
+
export type UserOverwriteBTCStakeEvent = {
|
|
41
|
+
readonly user: Address;
|
|
42
|
+
readonly storedTxId: bigint;
|
|
43
|
+
readonly storedIndex: bigint;
|
|
44
|
+
};
|
|
40
45
|
export type UnstakedBTCEvent = {
|
|
41
46
|
readonly user: Address;
|
|
42
47
|
readonly pendingMoto: bigint;
|
|
43
48
|
readonly storedTxId: bigint;
|
|
44
49
|
readonly storedIndex: bigint;
|
|
45
50
|
};
|
|
51
|
+
export type RemovedBTCStakeEvent = {
|
|
52
|
+
readonly user: Address;
|
|
53
|
+
readonly storedTxId: bigint;
|
|
54
|
+
readonly storedIndex: bigint;
|
|
55
|
+
};
|
|
46
56
|
export type LogSetPoolEvent = {
|
|
47
|
-
readonly poolId:
|
|
57
|
+
readonly poolId: number;
|
|
48
58
|
readonly allocPoint: bigint;
|
|
49
59
|
};
|
|
50
60
|
export type DepositEvent = {
|
|
51
61
|
readonly user: Address;
|
|
52
|
-
readonly poolId:
|
|
62
|
+
readonly poolId: number;
|
|
53
63
|
readonly amount: bigint;
|
|
54
64
|
readonly to: Address;
|
|
55
65
|
};
|
|
56
66
|
export type WithdrawEvent = {
|
|
57
67
|
readonly user: Address;
|
|
58
|
-
readonly poolId:
|
|
68
|
+
readonly poolId: number;
|
|
59
69
|
readonly amount: bigint;
|
|
60
70
|
readonly to: Address;
|
|
61
71
|
};
|
|
62
72
|
export type HarvestEvent = {
|
|
63
73
|
readonly user: Address;
|
|
64
|
-
readonly poolId:
|
|
74
|
+
readonly poolId: number;
|
|
65
75
|
readonly amount: bigint;
|
|
66
76
|
};
|
|
67
77
|
export type EmergencyWithdrawEvent = {
|
|
68
78
|
readonly user: Address;
|
|
69
|
-
readonly poolId:
|
|
79
|
+
readonly poolId: number;
|
|
70
80
|
readonly amount: bigint;
|
|
71
81
|
readonly to: Address;
|
|
72
82
|
};
|
|
@@ -92,7 +102,7 @@ export type GetLpTokens = CallResult<{
|
|
|
92
102
|
lpTokens: Address[];
|
|
93
103
|
}, OPNetEvent<never>[]>;
|
|
94
104
|
export type GetPoolsLength = CallResult<{
|
|
95
|
-
poolsLength:
|
|
105
|
+
poolsLength: number;
|
|
96
106
|
}, OPNetEvent<never>[]>;
|
|
97
107
|
export type GetLpToken = CallResult<{
|
|
98
108
|
lpToken: Address;
|
|
@@ -126,10 +136,13 @@ export type TotalBTCStaked = CallResult<{
|
|
|
126
136
|
}, OPNetEvent<never>[]>;
|
|
127
137
|
export type StakeBTC = CallResult<{
|
|
128
138
|
success: boolean;
|
|
129
|
-
}, OPNetEvent<LogUpdatePoolEvent | StakedBTCEvent>[]>;
|
|
139
|
+
}, OPNetEvent<LogUpdatePoolEvent | StakedBTCEvent | UserOverwriteBTCStakeEvent>[]>;
|
|
130
140
|
export type UnstakeBTC = CallResult<{
|
|
131
141
|
success: boolean;
|
|
132
142
|
}, OPNetEvent<LogUpdatePoolEvent | UnstakedBTCEvent>[]>;
|
|
143
|
+
export type RemoveBTCStake = CallResult<{
|
|
144
|
+
success: boolean;
|
|
145
|
+
}, OPNetEvent<LogUpdatePoolEvent | RemovedBTCStakeEvent>[]>;
|
|
133
146
|
export type Add = CallResult<{
|
|
134
147
|
success: boolean;
|
|
135
148
|
}, OPNetEvent<LogPoolAdditionEvent>[]>;
|
|
@@ -172,7 +185,7 @@ export type SetDev = CallResult<{
|
|
|
172
185
|
success: boolean;
|
|
173
186
|
}, OPNetEvent<never>[]>;
|
|
174
187
|
export interface IMotoChef extends IOwnable {
|
|
175
|
-
initialize(motoAddress: Address, premineAmount: bigint, devAddress: Address, motoPerBlock: bigint, bonusEndBlock: bigint, bonusMultiplier: bigint, treasuryAddress: string, BTCAllocPoint: bigint): Promise<Initialize>;
|
|
188
|
+
initialize(motoAddress: Address, premineAmount: bigint, devAddress: Address, motoPerBlock: bigint, bonusEndBlock: bigint, bonusMultiplier: bigint, treasuryAddress: string, BTCAllocPoint: bigint, MOTOAllocPoint: bigint): Promise<Initialize>;
|
|
176
189
|
totalAllocPoint(): Promise<TotalAllocPoint>;
|
|
177
190
|
devAddress(): Promise<DevAddress>;
|
|
178
191
|
getMotoPerBlock(): Promise<GetMotoPerBlock>;
|
|
@@ -180,26 +193,27 @@ export interface IMotoChef extends IOwnable {
|
|
|
180
193
|
getBonusMultiplier(): Promise<GetBonusMultiplier>;
|
|
181
194
|
getLpTokens(): Promise<GetLpTokens>;
|
|
182
195
|
getPoolsLength(): Promise<GetPoolsLength>;
|
|
183
|
-
getLpToken(poolId:
|
|
184
|
-
getPoolInfo(poolId:
|
|
185
|
-
getUserInfo(poolId:
|
|
196
|
+
getLpToken(poolId: number): Promise<GetLpToken>;
|
|
197
|
+
getPoolInfo(poolId: number): Promise<GetPoolInfo>;
|
|
198
|
+
getUserInfo(poolId: number, user: Address): Promise<GetUserInfo>;
|
|
186
199
|
getMultiplier(from: bigint, to: bigint): Promise<GetMultiplier>;
|
|
187
|
-
pendingMoto(poolId:
|
|
200
|
+
pendingMoto(poolId: number, user: Address): Promise<PendingMoto>;
|
|
188
201
|
treasuryAddress(): Promise<TreasuryAddress>;
|
|
189
202
|
getStakingTxId(user: Address): Promise<GetStakingTxId>;
|
|
190
203
|
getStakingIndex(user: Address): Promise<GetStakingIndex>;
|
|
191
204
|
totalBTCStaked(): Promise<TotalBTCStaked>;
|
|
192
205
|
stakeBTC(amount: bigint): Promise<StakeBTC>;
|
|
193
206
|
unstakeBTC(): Promise<UnstakeBTC>;
|
|
207
|
+
removeBTCStake(user: Address): Promise<RemoveBTCStake>;
|
|
194
208
|
add(allocPoint: bigint, lpToken: Address): Promise<Add>;
|
|
195
|
-
set(poolId:
|
|
196
|
-
updatePool(poolId:
|
|
197
|
-
massUpdatePools(length: number, poolIds:
|
|
198
|
-
deposit(poolId:
|
|
199
|
-
withdraw(poolId:
|
|
200
|
-
harvest(poolId:
|
|
201
|
-
withdrawAndHarvest(poolId:
|
|
202
|
-
emergencyWithdraw(poolId:
|
|
209
|
+
set(poolId: number, allocPoint: bigint): Promise<Set>;
|
|
210
|
+
updatePool(poolId: number): Promise<UpdatePool>;
|
|
211
|
+
massUpdatePools(length: number, poolIds: number[]): Promise<MassUpdatePools>;
|
|
212
|
+
deposit(poolId: number, amount: bigint, to: Address): Promise<Deposit>;
|
|
213
|
+
withdraw(poolId: number, amount: bigint, to: Address): Promise<Withdraw>;
|
|
214
|
+
harvest(poolId: number, to: Address): Promise<Harvest>;
|
|
215
|
+
withdrawAndHarvest(poolId: number, amount: bigint, to: Address): Promise<WithdrawAndHarvest>;
|
|
216
|
+
emergencyWithdraw(poolId: number, to: Address): Promise<EmergencyWithdraw>;
|
|
203
217
|
setMotoPerBlock(motoPerBlock: bigint): Promise<SetMotoPerBlock>;
|
|
204
218
|
setBonusEndBlock(bonusEndBlock: bigint): Promise<SetBonusEndBlock>;
|
|
205
219
|
setBonusMultiplier(bonusMultiplier: bigint): Promise<SetBonusMultiplier>;
|
|
@@ -100,12 +100,17 @@ export type GetQuote = CallResult<{
|
|
|
100
100
|
}, [
|
|
101
101
|
]>;
|
|
102
102
|
export type GetProviderDetails = CallResult<{
|
|
103
|
+
id: bigint;
|
|
103
104
|
liquidity: bigint;
|
|
104
105
|
reserved: bigint;
|
|
105
106
|
lpShares: bigint;
|
|
106
107
|
btcReceiver: string;
|
|
107
108
|
indexedAt: number;
|
|
108
109
|
isPriority: boolean;
|
|
110
|
+
purgeIndex: number;
|
|
111
|
+
isActive: boolean;
|
|
112
|
+
lastListedTokensAtBlock: bigint;
|
|
113
|
+
isPurged: boolean;
|
|
109
114
|
}, [
|
|
110
115
|
]>;
|
|
111
116
|
export type GetPriorityQueueCost = CallResult<{
|