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.
@@ -1 +1 @@
1
- export declare const version = "1.5.10";
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: bigint;
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: bigint;
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: bigint;
57
+ readonly poolId: number;
48
58
  readonly allocPoint: bigint;
49
59
  };
50
60
  export type DepositEvent = {
51
61
  readonly user: Address;
52
- readonly poolId: bigint;
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: bigint;
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: bigint;
74
+ readonly poolId: number;
65
75
  readonly amount: bigint;
66
76
  };
67
77
  export type EmergencyWithdrawEvent = {
68
78
  readonly user: Address;
69
- readonly poolId: bigint;
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: bigint;
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: bigint): Promise<GetLpToken>;
184
- getPoolInfo(poolId: bigint): Promise<GetPoolInfo>;
185
- getUserInfo(poolId: bigint, user: Address): Promise<GetUserInfo>;
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: bigint, user: Address): Promise<PendingMoto>;
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: bigint, allocPoint: bigint): Promise<Set>;
196
- updatePool(poolId: bigint): Promise<UpdatePool>;
197
- massUpdatePools(length: number, poolIds: bigint[]): Promise<MassUpdatePools>;
198
- deposit(poolId: bigint, amount: bigint, to: Address): Promise<Deposit>;
199
- withdraw(poolId: bigint, amount: bigint, to: Address): Promise<Withdraw>;
200
- harvest(poolId: bigint, to: Address): Promise<Harvest>;
201
- withdrawAndHarvest(poolId: bigint, amount: bigint, to: Address): Promise<WithdrawAndHarvest>;
202
- emergencyWithdraw(poolId: bigint, to: Address): Promise<EmergencyWithdraw>;
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<{