turbos-farming-sdk 0.2.1 → 0.3.0
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/CHANGELOG.md +7 -0
- package/dist/esm/index.js +460 -47
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +143 -3
- package/dist/index.d.ts +143 -3
- package/dist/index.js +581 -168
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [0.3.0](https://github.com/turbos-finance/turbos-farming-sdk/compare/0.2.1...0.3.0) (2026-06-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* new testnet packageid ([ace5568](https://github.com/turbos-finance/turbos-farming-sdk/commit/ace55682af1666e8674a2cad6d9b390fcb7a5399))
|
|
9
|
+
|
|
3
10
|
## [0.2.1](https://github.com/turbos-finance/turbos-farming-sdk/compare/0.2.0...0.2.1) (2026-06-03)
|
|
4
11
|
|
|
5
12
|
|
package/dist/esm/index.js
CHANGED
|
@@ -26,45 +26,47 @@ __export(acl_exports, {
|
|
|
26
26
|
var testnetEnv = {
|
|
27
27
|
packages: {
|
|
28
28
|
"turbos-farming": {
|
|
29
|
-
originalId: "
|
|
30
|
-
publishedAt: "
|
|
29
|
+
originalId: "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
30
|
+
publishedAt: "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
31
31
|
typeOrigins: {
|
|
32
|
-
"acl::ACL": "
|
|
33
|
-
"acl::Member": "
|
|
34
|
-
"config::AddRoleEvent": "
|
|
35
|
-
"config::AdminCap": "
|
|
36
|
-
"config::GlobalConfig": "
|
|
37
|
-
"config::InitConfigEvent": "
|
|
38
|
-
"config::RemoveMemberEvent": "
|
|
39
|
-
"config::RemoveRoleEvent": "
|
|
40
|
-
"config::SetPackageVersion": "
|
|
41
|
-
"config::SetRolesEvent": "
|
|
42
|
-
"pool::AccumulatedPositionRewardsEvent": "
|
|
43
|
-
"pool::AddLiquidityEvent": "
|
|
44
|
-
"pool::AddLiquidityFixCoinEvent": "
|
|
45
|
-
"pool::AddRewardEvent": "
|
|
46
|
-
"pool::
|
|
47
|
-
"pool::
|
|
48
|
-
"pool::
|
|
49
|
-
"pool::
|
|
50
|
-
"pool::
|
|
51
|
-
"pool::
|
|
52
|
-
"pool::
|
|
53
|
-
"pool::
|
|
54
|
-
"pool::
|
|
55
|
-
"pool::
|
|
56
|
-
"pool::
|
|
57
|
-
"pool::
|
|
58
|
-
"pool::
|
|
59
|
-
"pool::
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"rewarder::
|
|
63
|
-
"rewarder::
|
|
64
|
-
"rewarder::
|
|
65
|
-
"rewarder::
|
|
66
|
-
"rewarder::
|
|
67
|
-
"rewarder::
|
|
32
|
+
"acl::ACL": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
33
|
+
"acl::Member": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
34
|
+
"config::AddRoleEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
35
|
+
"config::AdminCap": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
36
|
+
"config::GlobalConfig": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
37
|
+
"config::InitConfigEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
38
|
+
"config::RemoveMemberEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
39
|
+
"config::RemoveRoleEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
40
|
+
"config::SetPackageVersion": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
41
|
+
"config::SetRolesEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
42
|
+
"pool::AccumulatedPositionRewardsEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
43
|
+
"pool::AddLiquidityEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
44
|
+
"pool::AddLiquidityFixCoinEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
45
|
+
"pool::AddRewardEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
46
|
+
"pool::ClosePositionEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
47
|
+
"pool::CollectFeeEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
48
|
+
"pool::CreatePoolEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
49
|
+
"pool::DepositEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
50
|
+
"pool::HarvestEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
51
|
+
"pool::MigrateInvalidPoolPositionsEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
52
|
+
"pool::POOL": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
53
|
+
"pool::Pool": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
54
|
+
"pool::PoolInvalidPositions": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
55
|
+
"pool::PositionRewardInfo": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
56
|
+
"pool::RemoveLiquidityEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
57
|
+
"pool::UpdateEffectiveTickRangeEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
58
|
+
"pool::UpdatePoolAllocatePointEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
59
|
+
"pool::WithdrawEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
60
|
+
"pool::WrappedPositionInfo": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
61
|
+
"pool::WrappedPositionNFT": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
62
|
+
"rewarder::CreateRewarderEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
63
|
+
"rewarder::DepositEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
64
|
+
"rewarder::EmergentWithdrawEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
65
|
+
"rewarder::InitRewarderManagerEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
66
|
+
"rewarder::PoolRewarderInfo": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
67
|
+
"rewarder::Rewarder": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
68
|
+
"rewarder::RewarderManager": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656",
|
|
69
|
+
"rewarder::UpdateRewarderEvent": "0x2277fcb6e6b1c1904a0a59e96d4d3d2343c474b00319035fabf8eab21032d656"
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
},
|
|
@@ -339,6 +341,8 @@ var mainnetEnv = {
|
|
|
339
341
|
"pool::AddLiquidityEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
340
342
|
"pool::AddLiquidityFixCoinEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
341
343
|
"pool::AddRewardEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
344
|
+
"pool::ClosePositionEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
345
|
+
"pool::CollectFeeEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
342
346
|
"pool::CreatePoolEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
343
347
|
"pool::DepositEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
344
348
|
"pool::HarvestEvent": "0xbd0605b5854e3993a0a627f2b7e1fa3e8a7e94348d0ca4d6bcb5b470997a562a",
|
|
@@ -3953,6 +3957,8 @@ __export(pool_exports, {
|
|
|
3953
3957
|
AddLiquidityEvent: () => AddLiquidityEvent,
|
|
3954
3958
|
AddLiquidityFixCoinEvent: () => AddLiquidityFixCoinEvent,
|
|
3955
3959
|
AddRewardEvent: () => AddRewardEvent,
|
|
3960
|
+
ClosePositionEvent: () => ClosePositionEvent,
|
|
3961
|
+
CollectFeeEvent: () => CollectFeeEvent,
|
|
3956
3962
|
CreatePoolEvent: () => CreatePoolEvent,
|
|
3957
3963
|
DepositEvent: () => DepositEvent,
|
|
3958
3964
|
HarvestEvent: () => HarvestEvent,
|
|
@@ -3972,6 +3978,7 @@ __export(pool_exports, {
|
|
|
3972
3978
|
addLiquidityFixCoin: () => addLiquidityFixCoin,
|
|
3973
3979
|
addRewarder: () => addRewarder,
|
|
3974
3980
|
amountDesiredForRequestedLiquidity: () => amountDesiredForRequestedLiquidity,
|
|
3981
|
+
assertNotEffectiveRangeMigrating: () => assertNotEffectiveRangeMigrating,
|
|
3975
3982
|
assertPositionLiquidityValid: () => assertPositionLiquidityValid,
|
|
3976
3983
|
borrowPoolRewarders: () => borrowPoolRewarders,
|
|
3977
3984
|
borrowPositionNft: () => borrowPositionNft,
|
|
@@ -3996,8 +4003,11 @@ __export(pool_exports, {
|
|
|
3996
4003
|
isAddLiquidityEvent: () => isAddLiquidityEvent,
|
|
3997
4004
|
isAddLiquidityFixCoinEvent: () => isAddLiquidityFixCoinEvent,
|
|
3998
4005
|
isAddRewardEvent: () => isAddRewardEvent,
|
|
4006
|
+
isClosePositionEvent: () => isClosePositionEvent,
|
|
4007
|
+
isCollectFeeEvent: () => isCollectFeeEvent,
|
|
3999
4008
|
isCreatePoolEvent: () => isCreatePoolEvent,
|
|
4000
4009
|
isDepositEvent: () => isDepositEvent,
|
|
4010
|
+
isEffectiveRangeMigrating: () => isEffectiveRangeMigrating,
|
|
4001
4011
|
isHarvestEvent: () => isHarvestEvent,
|
|
4002
4012
|
isMigrateInvalidPoolPositionsEvent: () => isMigrateInvalidPoolPositionsEvent,
|
|
4003
4013
|
isPOOL: () => isPOOL,
|
|
@@ -4011,6 +4021,7 @@ __export(pool_exports, {
|
|
|
4011
4021
|
isWrappedPositionInfo: () => isWrappedPositionInfo,
|
|
4012
4022
|
isWrappedPositionNFT: () => isWrappedPositionNFT,
|
|
4013
4023
|
migrateInvalidPoolPositions: () => migrateInvalidPoolPositions,
|
|
4024
|
+
positionRewardAmount: () => positionRewardAmount,
|
|
4014
4025
|
positionRewarderInfo: () => positionRewarderInfo,
|
|
4015
4026
|
removeLiquidity: () => removeLiquidity,
|
|
4016
4027
|
reward: () => reward,
|
|
@@ -4114,6 +4125,12 @@ function assertPositionLiquidityValid(tx, args) {
|
|
|
4114
4125
|
]
|
|
4115
4126
|
});
|
|
4116
4127
|
}
|
|
4128
|
+
function assertNotEffectiveRangeMigrating(tx, pool) {
|
|
4129
|
+
return tx.moveCall({
|
|
4130
|
+
target: `${getPublishedAt("turbos-farming")}::pool::assert_not_effective_range_migrating`,
|
|
4131
|
+
arguments: [obj(tx, pool)]
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4117
4134
|
function borrowPositionNft(tx, wp) {
|
|
4118
4135
|
return tx.moveCall({
|
|
4119
4136
|
target: `${getPublishedAt("turbos-farming")}::pool::borrow_position_nft`,
|
|
@@ -4365,6 +4382,12 @@ function sqrtPrice(tx, pool) {
|
|
|
4365
4382
|
arguments: [obj(tx, pool)]
|
|
4366
4383
|
});
|
|
4367
4384
|
}
|
|
4385
|
+
function isEffectiveRangeMigrating(tx, pool) {
|
|
4386
|
+
return tx.moveCall({
|
|
4387
|
+
target: `${getPublishedAt("turbos-farming")}::pool::is_effective_range_migrating`,
|
|
4388
|
+
arguments: [obj(tx, pool)]
|
|
4389
|
+
});
|
|
4390
|
+
}
|
|
4368
4391
|
function totalShare(tx, pool) {
|
|
4369
4392
|
return tx.moveCall({
|
|
4370
4393
|
target: `${getPublishedAt("turbos-farming")}::pool::total_share`,
|
|
@@ -4444,6 +4467,12 @@ function updatePositionShare(tx, args) {
|
|
|
4444
4467
|
]
|
|
4445
4468
|
});
|
|
4446
4469
|
}
|
|
4470
|
+
function positionRewardAmount(tx, args) {
|
|
4471
|
+
return tx.moveCall({
|
|
4472
|
+
target: `${getPublishedAt("turbos-farming")}::pool::position_reward_amount`,
|
|
4473
|
+
arguments: [pure(tx, args.share, `u128`), pure(tx, args.accPerShare, `u256`)]
|
|
4474
|
+
});
|
|
4475
|
+
}
|
|
4447
4476
|
function withdraw(tx, args) {
|
|
4448
4477
|
return tx.moveCall({
|
|
4449
4478
|
target: `${getPublishedAt("turbos-farming")}::pool::withdraw`,
|
|
@@ -6829,6 +6858,7 @@ var Pool = class _Pool {
|
|
|
6829
6858
|
totalShare;
|
|
6830
6859
|
rewarders;
|
|
6831
6860
|
positions;
|
|
6861
|
+
isEffectiveRangeMigrating;
|
|
6832
6862
|
constructor(typeArgs, fields) {
|
|
6833
6863
|
this.$fullTypeName = composeSuiType(
|
|
6834
6864
|
_Pool.$typeName,
|
|
@@ -6843,6 +6873,7 @@ var Pool = class _Pool {
|
|
|
6843
6873
|
this.totalShare = fields.totalShare;
|
|
6844
6874
|
this.rewarders = fields.rewarders;
|
|
6845
6875
|
this.positions = fields.positions;
|
|
6876
|
+
this.isEffectiveRangeMigrating = fields.isEffectiveRangeMigrating;
|
|
6846
6877
|
}
|
|
6847
6878
|
static reified() {
|
|
6848
6879
|
const reifiedBcs = _Pool.bcs;
|
|
@@ -6885,7 +6916,8 @@ var Pool = class _Pool {
|
|
|
6885
6916
|
sqrt_price: bcs16.u128(),
|
|
6886
6917
|
total_share: bcs16.u128(),
|
|
6887
6918
|
rewarders: bcs16.vector(TypeName.bcs),
|
|
6888
|
-
positions: LinkedTable.bcs(ID.bcs)
|
|
6919
|
+
positions: LinkedTable.bcs(ID.bcs),
|
|
6920
|
+
is_effective_range_migrating: bcs16.bool()
|
|
6889
6921
|
});
|
|
6890
6922
|
}
|
|
6891
6923
|
static cachedBcs = null;
|
|
@@ -6907,6 +6939,10 @@ var Pool = class _Pool {
|
|
|
6907
6939
|
positions: decodeFromFields(
|
|
6908
6940
|
LinkedTable.reified(ID.reified(), phantom(WrappedPositionInfo.reified())),
|
|
6909
6941
|
fields.positions
|
|
6942
|
+
),
|
|
6943
|
+
isEffectiveRangeMigrating: decodeFromFields(
|
|
6944
|
+
"bool",
|
|
6945
|
+
fields.is_effective_range_migrating
|
|
6910
6946
|
)
|
|
6911
6947
|
});
|
|
6912
6948
|
}
|
|
@@ -6934,6 +6970,10 @@ var Pool = class _Pool {
|
|
|
6934
6970
|
positions: decodeFromFieldsWithTypes(
|
|
6935
6971
|
LinkedTable.reified(ID.reified(), phantom(WrappedPositionInfo.reified())),
|
|
6936
6972
|
item.fields.positions
|
|
6973
|
+
),
|
|
6974
|
+
isEffectiveRangeMigrating: decodeFromFieldsWithTypes(
|
|
6975
|
+
"bool",
|
|
6976
|
+
item.fields.is_effective_range_migrating
|
|
6937
6977
|
)
|
|
6938
6978
|
});
|
|
6939
6979
|
}
|
|
@@ -6952,7 +6992,8 @@ var Pool = class _Pool {
|
|
|
6952
6992
|
`vector<${TypeName.$typeName}>`,
|
|
6953
6993
|
this.rewarders
|
|
6954
6994
|
),
|
|
6955
|
-
positions: this.positions.toJSONField()
|
|
6995
|
+
positions: this.positions.toJSONField(),
|
|
6996
|
+
isEffectiveRangeMigrating: this.isEffectiveRangeMigrating
|
|
6956
6997
|
};
|
|
6957
6998
|
}
|
|
6958
6999
|
toJSON() {
|
|
@@ -6974,6 +7015,10 @@ var Pool = class _Pool {
|
|
|
6974
7015
|
positions: decodeFromJSONField(
|
|
6975
7016
|
LinkedTable.reified(ID.reified(), phantom(WrappedPositionInfo.reified())),
|
|
6976
7017
|
field.positions
|
|
7018
|
+
),
|
|
7019
|
+
isEffectiveRangeMigrating: decodeFromJSONField(
|
|
7020
|
+
"bool",
|
|
7021
|
+
field.isEffectiveRangeMigrating
|
|
6977
7022
|
)
|
|
6978
7023
|
});
|
|
6979
7024
|
}
|
|
@@ -9355,6 +9400,374 @@ var RemoveLiquidityEvent = class _RemoveLiquidityEvent {
|
|
|
9355
9400
|
return _RemoveLiquidityEvent.fromBcs(res.bcsBytes);
|
|
9356
9401
|
}
|
|
9357
9402
|
};
|
|
9403
|
+
function isCollectFeeEvent(type) {
|
|
9404
|
+
type = compressSuiType(type);
|
|
9405
|
+
return type === `${getTypeOrigin("turbos-farming", "pool::CollectFeeEvent")}::pool::CollectFeeEvent`;
|
|
9406
|
+
}
|
|
9407
|
+
var CollectFeeEvent = class _CollectFeeEvent {
|
|
9408
|
+
__StructClass = true;
|
|
9409
|
+
static $typeName = `${getTypeOrigin(
|
|
9410
|
+
"turbos-farming",
|
|
9411
|
+
"pool::CollectFeeEvent"
|
|
9412
|
+
)}::pool::CollectFeeEvent`;
|
|
9413
|
+
static $numTypeParams = 0;
|
|
9414
|
+
static $isPhantom = [];
|
|
9415
|
+
$typeName = _CollectFeeEvent.$typeName;
|
|
9416
|
+
$fullTypeName;
|
|
9417
|
+
$typeArgs;
|
|
9418
|
+
$isPhantom = _CollectFeeEvent.$isPhantom;
|
|
9419
|
+
wrappedPositionId;
|
|
9420
|
+
clmmPoolId;
|
|
9421
|
+
nftId;
|
|
9422
|
+
amountA;
|
|
9423
|
+
amountB;
|
|
9424
|
+
constructor(typeArgs, fields) {
|
|
9425
|
+
this.$fullTypeName = composeSuiType(
|
|
9426
|
+
_CollectFeeEvent.$typeName,
|
|
9427
|
+
...typeArgs
|
|
9428
|
+
);
|
|
9429
|
+
this.$typeArgs = typeArgs;
|
|
9430
|
+
this.wrappedPositionId = fields.wrappedPositionId;
|
|
9431
|
+
this.clmmPoolId = fields.clmmPoolId;
|
|
9432
|
+
this.nftId = fields.nftId;
|
|
9433
|
+
this.amountA = fields.amountA;
|
|
9434
|
+
this.amountB = fields.amountB;
|
|
9435
|
+
}
|
|
9436
|
+
static reified() {
|
|
9437
|
+
const reifiedBcs = _CollectFeeEvent.bcs;
|
|
9438
|
+
return {
|
|
9439
|
+
typeName: _CollectFeeEvent.$typeName,
|
|
9440
|
+
fullTypeName: composeSuiType(
|
|
9441
|
+
_CollectFeeEvent.$typeName,
|
|
9442
|
+
...[]
|
|
9443
|
+
),
|
|
9444
|
+
typeArgs: [],
|
|
9445
|
+
isPhantom: _CollectFeeEvent.$isPhantom,
|
|
9446
|
+
reifiedTypeArgs: [],
|
|
9447
|
+
fromFields: (fields) => _CollectFeeEvent.fromFields(fields),
|
|
9448
|
+
fromFieldsWithTypes: (item) => _CollectFeeEvent.fromFieldsWithTypes(item),
|
|
9449
|
+
fromBcs: (data) => _CollectFeeEvent.fromFields(reifiedBcs.parse(data)),
|
|
9450
|
+
bcs: reifiedBcs,
|
|
9451
|
+
fromJSONField: (field) => _CollectFeeEvent.fromJSONField(field),
|
|
9452
|
+
fromJSON: (json) => _CollectFeeEvent.fromJSON(json),
|
|
9453
|
+
fromSuiParsedData: (content) => _CollectFeeEvent.fromSuiParsedData(content),
|
|
9454
|
+
fromSuiObjectData: (content) => _CollectFeeEvent.fromSuiObjectData(content),
|
|
9455
|
+
fetch: async (client, id) => _CollectFeeEvent.fetch(client, id),
|
|
9456
|
+
new: (fields) => {
|
|
9457
|
+
return new _CollectFeeEvent([], fields);
|
|
9458
|
+
},
|
|
9459
|
+
kind: "StructClassReified"
|
|
9460
|
+
};
|
|
9461
|
+
}
|
|
9462
|
+
static get r() {
|
|
9463
|
+
return _CollectFeeEvent.reified();
|
|
9464
|
+
}
|
|
9465
|
+
static phantom() {
|
|
9466
|
+
return phantom(_CollectFeeEvent.reified());
|
|
9467
|
+
}
|
|
9468
|
+
static get p() {
|
|
9469
|
+
return _CollectFeeEvent.phantom();
|
|
9470
|
+
}
|
|
9471
|
+
static instantiateBcs() {
|
|
9472
|
+
return bcs16.struct("CollectFeeEvent", {
|
|
9473
|
+
wrapped_position_id: ID.bcs,
|
|
9474
|
+
clmm_pool_id: ID.bcs,
|
|
9475
|
+
nft_id: ID.bcs,
|
|
9476
|
+
amount_a: bcs16.u64(),
|
|
9477
|
+
amount_b: bcs16.u64()
|
|
9478
|
+
});
|
|
9479
|
+
}
|
|
9480
|
+
static cachedBcs = null;
|
|
9481
|
+
static get bcs() {
|
|
9482
|
+
if (!_CollectFeeEvent.cachedBcs) {
|
|
9483
|
+
_CollectFeeEvent.cachedBcs = _CollectFeeEvent.instantiateBcs();
|
|
9484
|
+
}
|
|
9485
|
+
return _CollectFeeEvent.cachedBcs;
|
|
9486
|
+
}
|
|
9487
|
+
static fromFields(fields) {
|
|
9488
|
+
return _CollectFeeEvent.reified().new({
|
|
9489
|
+
wrappedPositionId: decodeFromFields(ID.reified(), fields.wrapped_position_id),
|
|
9490
|
+
clmmPoolId: decodeFromFields(ID.reified(), fields.clmm_pool_id),
|
|
9491
|
+
nftId: decodeFromFields(ID.reified(), fields.nft_id),
|
|
9492
|
+
amountA: decodeFromFields("u64", fields.amount_a),
|
|
9493
|
+
amountB: decodeFromFields("u64", fields.amount_b)
|
|
9494
|
+
});
|
|
9495
|
+
}
|
|
9496
|
+
static fromFieldsWithTypes(item) {
|
|
9497
|
+
if (!isCollectFeeEvent(item.type)) {
|
|
9498
|
+
throw new Error("not a CollectFeeEvent type");
|
|
9499
|
+
}
|
|
9500
|
+
return _CollectFeeEvent.reified().new({
|
|
9501
|
+
wrappedPositionId: decodeFromFieldsWithTypes(
|
|
9502
|
+
ID.reified(),
|
|
9503
|
+
item.fields.wrapped_position_id
|
|
9504
|
+
),
|
|
9505
|
+
clmmPoolId: decodeFromFieldsWithTypes(ID.reified(), item.fields.clmm_pool_id),
|
|
9506
|
+
nftId: decodeFromFieldsWithTypes(ID.reified(), item.fields.nft_id),
|
|
9507
|
+
amountA: decodeFromFieldsWithTypes("u64", item.fields.amount_a),
|
|
9508
|
+
amountB: decodeFromFieldsWithTypes("u64", item.fields.amount_b)
|
|
9509
|
+
});
|
|
9510
|
+
}
|
|
9511
|
+
static fromBcs(data) {
|
|
9512
|
+
return _CollectFeeEvent.fromFields(_CollectFeeEvent.bcs.parse(data));
|
|
9513
|
+
}
|
|
9514
|
+
toJSONField() {
|
|
9515
|
+
return {
|
|
9516
|
+
wrappedPositionId: this.wrappedPositionId,
|
|
9517
|
+
clmmPoolId: this.clmmPoolId,
|
|
9518
|
+
nftId: this.nftId,
|
|
9519
|
+
amountA: this.amountA.toString(),
|
|
9520
|
+
amountB: this.amountB.toString()
|
|
9521
|
+
};
|
|
9522
|
+
}
|
|
9523
|
+
toJSON() {
|
|
9524
|
+
return {
|
|
9525
|
+
$typeName: this.$typeName,
|
|
9526
|
+
$typeArgs: this.$typeArgs,
|
|
9527
|
+
...this.toJSONField()
|
|
9528
|
+
};
|
|
9529
|
+
}
|
|
9530
|
+
static fromJSONField(field) {
|
|
9531
|
+
return _CollectFeeEvent.reified().new({
|
|
9532
|
+
wrappedPositionId: decodeFromJSONField(ID.reified(), field.wrappedPositionId),
|
|
9533
|
+
clmmPoolId: decodeFromJSONField(ID.reified(), field.clmmPoolId),
|
|
9534
|
+
nftId: decodeFromJSONField(ID.reified(), field.nftId),
|
|
9535
|
+
amountA: decodeFromJSONField("u64", field.amountA),
|
|
9536
|
+
amountB: decodeFromJSONField("u64", field.amountB)
|
|
9537
|
+
});
|
|
9538
|
+
}
|
|
9539
|
+
static fromJSON(json) {
|
|
9540
|
+
if (json.$typeName !== _CollectFeeEvent.$typeName) {
|
|
9541
|
+
throw new Error(
|
|
9542
|
+
`not a CollectFeeEvent json object: expected '${_CollectFeeEvent.$typeName}' but got '${json.$typeName}'`
|
|
9543
|
+
);
|
|
9544
|
+
}
|
|
9545
|
+
return _CollectFeeEvent.fromJSONField(json);
|
|
9546
|
+
}
|
|
9547
|
+
static fromSuiParsedData(content) {
|
|
9548
|
+
if (content.dataType !== "moveObject") {
|
|
9549
|
+
throw new Error("not an object");
|
|
9550
|
+
}
|
|
9551
|
+
if (!isCollectFeeEvent(content.type)) {
|
|
9552
|
+
throw new Error(
|
|
9553
|
+
`object at ${content.fields.id} is not a CollectFeeEvent object`
|
|
9554
|
+
);
|
|
9555
|
+
}
|
|
9556
|
+
return _CollectFeeEvent.fromFieldsWithTypes(content);
|
|
9557
|
+
}
|
|
9558
|
+
static fromSuiObjectData(data) {
|
|
9559
|
+
if (data.bcs) {
|
|
9560
|
+
if (data.bcs.dataType !== "moveObject" || !isCollectFeeEvent(data.bcs.type)) {
|
|
9561
|
+
throw new Error(`object at is not a CollectFeeEvent object`);
|
|
9562
|
+
}
|
|
9563
|
+
return _CollectFeeEvent.fromBcs(fromBase6414(data.bcs.bcsBytes));
|
|
9564
|
+
}
|
|
9565
|
+
if (data.content) {
|
|
9566
|
+
return _CollectFeeEvent.fromSuiParsedData(data.content);
|
|
9567
|
+
}
|
|
9568
|
+
throw new Error(
|
|
9569
|
+
"Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request."
|
|
9570
|
+
);
|
|
9571
|
+
}
|
|
9572
|
+
static async fetch(client, id) {
|
|
9573
|
+
const res = await fetchObjectBcs(client, id);
|
|
9574
|
+
if (!isCollectFeeEvent(res.type)) {
|
|
9575
|
+
throw new Error(`object at id ${id} is not a CollectFeeEvent object`);
|
|
9576
|
+
}
|
|
9577
|
+
return _CollectFeeEvent.fromBcs(res.bcsBytes);
|
|
9578
|
+
}
|
|
9579
|
+
};
|
|
9580
|
+
function isClosePositionEvent(type) {
|
|
9581
|
+
type = compressSuiType(type);
|
|
9582
|
+
return type === `${getTypeOrigin("turbos-farming", "pool::ClosePositionEvent")}::pool::ClosePositionEvent`;
|
|
9583
|
+
}
|
|
9584
|
+
var ClosePositionEvent = class _ClosePositionEvent {
|
|
9585
|
+
__StructClass = true;
|
|
9586
|
+
static $typeName = `${getTypeOrigin(
|
|
9587
|
+
"turbos-farming",
|
|
9588
|
+
"pool::ClosePositionEvent"
|
|
9589
|
+
)}::pool::ClosePositionEvent`;
|
|
9590
|
+
static $numTypeParams = 0;
|
|
9591
|
+
static $isPhantom = [];
|
|
9592
|
+
$typeName = _ClosePositionEvent.$typeName;
|
|
9593
|
+
$fullTypeName;
|
|
9594
|
+
$typeArgs;
|
|
9595
|
+
$isPhantom = _ClosePositionEvent.$isPhantom;
|
|
9596
|
+
poolId;
|
|
9597
|
+
wrappedPositionId;
|
|
9598
|
+
clmmPoolId;
|
|
9599
|
+
nftId;
|
|
9600
|
+
liquidity;
|
|
9601
|
+
amountA;
|
|
9602
|
+
amountB;
|
|
9603
|
+
constructor(typeArgs, fields) {
|
|
9604
|
+
this.$fullTypeName = composeSuiType(
|
|
9605
|
+
_ClosePositionEvent.$typeName,
|
|
9606
|
+
...typeArgs
|
|
9607
|
+
);
|
|
9608
|
+
this.$typeArgs = typeArgs;
|
|
9609
|
+
this.poolId = fields.poolId;
|
|
9610
|
+
this.wrappedPositionId = fields.wrappedPositionId;
|
|
9611
|
+
this.clmmPoolId = fields.clmmPoolId;
|
|
9612
|
+
this.nftId = fields.nftId;
|
|
9613
|
+
this.liquidity = fields.liquidity;
|
|
9614
|
+
this.amountA = fields.amountA;
|
|
9615
|
+
this.amountB = fields.amountB;
|
|
9616
|
+
}
|
|
9617
|
+
static reified() {
|
|
9618
|
+
const reifiedBcs = _ClosePositionEvent.bcs;
|
|
9619
|
+
return {
|
|
9620
|
+
typeName: _ClosePositionEvent.$typeName,
|
|
9621
|
+
fullTypeName: composeSuiType(
|
|
9622
|
+
_ClosePositionEvent.$typeName,
|
|
9623
|
+
...[]
|
|
9624
|
+
),
|
|
9625
|
+
typeArgs: [],
|
|
9626
|
+
isPhantom: _ClosePositionEvent.$isPhantom,
|
|
9627
|
+
reifiedTypeArgs: [],
|
|
9628
|
+
fromFields: (fields) => _ClosePositionEvent.fromFields(fields),
|
|
9629
|
+
fromFieldsWithTypes: (item) => _ClosePositionEvent.fromFieldsWithTypes(item),
|
|
9630
|
+
fromBcs: (data) => _ClosePositionEvent.fromFields(reifiedBcs.parse(data)),
|
|
9631
|
+
bcs: reifiedBcs,
|
|
9632
|
+
fromJSONField: (field) => _ClosePositionEvent.fromJSONField(field),
|
|
9633
|
+
fromJSON: (json) => _ClosePositionEvent.fromJSON(json),
|
|
9634
|
+
fromSuiParsedData: (content) => _ClosePositionEvent.fromSuiParsedData(content),
|
|
9635
|
+
fromSuiObjectData: (content) => _ClosePositionEvent.fromSuiObjectData(content),
|
|
9636
|
+
fetch: async (client, id) => _ClosePositionEvent.fetch(client, id),
|
|
9637
|
+
new: (fields) => {
|
|
9638
|
+
return new _ClosePositionEvent([], fields);
|
|
9639
|
+
},
|
|
9640
|
+
kind: "StructClassReified"
|
|
9641
|
+
};
|
|
9642
|
+
}
|
|
9643
|
+
static get r() {
|
|
9644
|
+
return _ClosePositionEvent.reified();
|
|
9645
|
+
}
|
|
9646
|
+
static phantom() {
|
|
9647
|
+
return phantom(_ClosePositionEvent.reified());
|
|
9648
|
+
}
|
|
9649
|
+
static get p() {
|
|
9650
|
+
return _ClosePositionEvent.phantom();
|
|
9651
|
+
}
|
|
9652
|
+
static instantiateBcs() {
|
|
9653
|
+
return bcs16.struct("ClosePositionEvent", {
|
|
9654
|
+
pool_id: ID.bcs,
|
|
9655
|
+
wrapped_position_id: ID.bcs,
|
|
9656
|
+
clmm_pool_id: ID.bcs,
|
|
9657
|
+
nft_id: ID.bcs,
|
|
9658
|
+
liquidity: bcs16.u128(),
|
|
9659
|
+
amount_a: bcs16.u64(),
|
|
9660
|
+
amount_b: bcs16.u64()
|
|
9661
|
+
});
|
|
9662
|
+
}
|
|
9663
|
+
static cachedBcs = null;
|
|
9664
|
+
static get bcs() {
|
|
9665
|
+
if (!_ClosePositionEvent.cachedBcs) {
|
|
9666
|
+
_ClosePositionEvent.cachedBcs = _ClosePositionEvent.instantiateBcs();
|
|
9667
|
+
}
|
|
9668
|
+
return _ClosePositionEvent.cachedBcs;
|
|
9669
|
+
}
|
|
9670
|
+
static fromFields(fields) {
|
|
9671
|
+
return _ClosePositionEvent.reified().new({
|
|
9672
|
+
poolId: decodeFromFields(ID.reified(), fields.pool_id),
|
|
9673
|
+
wrappedPositionId: decodeFromFields(ID.reified(), fields.wrapped_position_id),
|
|
9674
|
+
clmmPoolId: decodeFromFields(ID.reified(), fields.clmm_pool_id),
|
|
9675
|
+
nftId: decodeFromFields(ID.reified(), fields.nft_id),
|
|
9676
|
+
liquidity: decodeFromFields("u128", fields.liquidity),
|
|
9677
|
+
amountA: decodeFromFields("u64", fields.amount_a),
|
|
9678
|
+
amountB: decodeFromFields("u64", fields.amount_b)
|
|
9679
|
+
});
|
|
9680
|
+
}
|
|
9681
|
+
static fromFieldsWithTypes(item) {
|
|
9682
|
+
if (!isClosePositionEvent(item.type)) {
|
|
9683
|
+
throw new Error("not a ClosePositionEvent type");
|
|
9684
|
+
}
|
|
9685
|
+
return _ClosePositionEvent.reified().new({
|
|
9686
|
+
poolId: decodeFromFieldsWithTypes(ID.reified(), item.fields.pool_id),
|
|
9687
|
+
wrappedPositionId: decodeFromFieldsWithTypes(
|
|
9688
|
+
ID.reified(),
|
|
9689
|
+
item.fields.wrapped_position_id
|
|
9690
|
+
),
|
|
9691
|
+
clmmPoolId: decodeFromFieldsWithTypes(ID.reified(), item.fields.clmm_pool_id),
|
|
9692
|
+
nftId: decodeFromFieldsWithTypes(ID.reified(), item.fields.nft_id),
|
|
9693
|
+
liquidity: decodeFromFieldsWithTypes("u128", item.fields.liquidity),
|
|
9694
|
+
amountA: decodeFromFieldsWithTypes("u64", item.fields.amount_a),
|
|
9695
|
+
amountB: decodeFromFieldsWithTypes("u64", item.fields.amount_b)
|
|
9696
|
+
});
|
|
9697
|
+
}
|
|
9698
|
+
static fromBcs(data) {
|
|
9699
|
+
return _ClosePositionEvent.fromFields(_ClosePositionEvent.bcs.parse(data));
|
|
9700
|
+
}
|
|
9701
|
+
toJSONField() {
|
|
9702
|
+
return {
|
|
9703
|
+
poolId: this.poolId,
|
|
9704
|
+
wrappedPositionId: this.wrappedPositionId,
|
|
9705
|
+
clmmPoolId: this.clmmPoolId,
|
|
9706
|
+
nftId: this.nftId,
|
|
9707
|
+
liquidity: this.liquidity.toString(),
|
|
9708
|
+
amountA: this.amountA.toString(),
|
|
9709
|
+
amountB: this.amountB.toString()
|
|
9710
|
+
};
|
|
9711
|
+
}
|
|
9712
|
+
toJSON() {
|
|
9713
|
+
return {
|
|
9714
|
+
$typeName: this.$typeName,
|
|
9715
|
+
$typeArgs: this.$typeArgs,
|
|
9716
|
+
...this.toJSONField()
|
|
9717
|
+
};
|
|
9718
|
+
}
|
|
9719
|
+
static fromJSONField(field) {
|
|
9720
|
+
return _ClosePositionEvent.reified().new({
|
|
9721
|
+
poolId: decodeFromJSONField(ID.reified(), field.poolId),
|
|
9722
|
+
wrappedPositionId: decodeFromJSONField(ID.reified(), field.wrappedPositionId),
|
|
9723
|
+
clmmPoolId: decodeFromJSONField(ID.reified(), field.clmmPoolId),
|
|
9724
|
+
nftId: decodeFromJSONField(ID.reified(), field.nftId),
|
|
9725
|
+
liquidity: decodeFromJSONField("u128", field.liquidity),
|
|
9726
|
+
amountA: decodeFromJSONField("u64", field.amountA),
|
|
9727
|
+
amountB: decodeFromJSONField("u64", field.amountB)
|
|
9728
|
+
});
|
|
9729
|
+
}
|
|
9730
|
+
static fromJSON(json) {
|
|
9731
|
+
if (json.$typeName !== _ClosePositionEvent.$typeName) {
|
|
9732
|
+
throw new Error(
|
|
9733
|
+
`not a ClosePositionEvent json object: expected '${_ClosePositionEvent.$typeName}' but got '${json.$typeName}'`
|
|
9734
|
+
);
|
|
9735
|
+
}
|
|
9736
|
+
return _ClosePositionEvent.fromJSONField(json);
|
|
9737
|
+
}
|
|
9738
|
+
static fromSuiParsedData(content) {
|
|
9739
|
+
if (content.dataType !== "moveObject") {
|
|
9740
|
+
throw new Error("not an object");
|
|
9741
|
+
}
|
|
9742
|
+
if (!isClosePositionEvent(content.type)) {
|
|
9743
|
+
throw new Error(
|
|
9744
|
+
`object at ${content.fields.id} is not a ClosePositionEvent object`
|
|
9745
|
+
);
|
|
9746
|
+
}
|
|
9747
|
+
return _ClosePositionEvent.fromFieldsWithTypes(content);
|
|
9748
|
+
}
|
|
9749
|
+
static fromSuiObjectData(data) {
|
|
9750
|
+
if (data.bcs) {
|
|
9751
|
+
if (data.bcs.dataType !== "moveObject" || !isClosePositionEvent(data.bcs.type)) {
|
|
9752
|
+
throw new Error(`object at is not a ClosePositionEvent object`);
|
|
9753
|
+
}
|
|
9754
|
+
return _ClosePositionEvent.fromBcs(fromBase6414(data.bcs.bcsBytes));
|
|
9755
|
+
}
|
|
9756
|
+
if (data.content) {
|
|
9757
|
+
return _ClosePositionEvent.fromSuiParsedData(data.content);
|
|
9758
|
+
}
|
|
9759
|
+
throw new Error(
|
|
9760
|
+
"Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request."
|
|
9761
|
+
);
|
|
9762
|
+
}
|
|
9763
|
+
static async fetch(client, id) {
|
|
9764
|
+
const res = await fetchObjectBcs(client, id);
|
|
9765
|
+
if (!isClosePositionEvent(res.type)) {
|
|
9766
|
+
throw new Error(`object at id ${id} is not a ClosePositionEvent object`);
|
|
9767
|
+
}
|
|
9768
|
+
return _ClosePositionEvent.fromBcs(res.bcsBytes);
|
|
9769
|
+
}
|
|
9770
|
+
};
|
|
9358
9771
|
function isMigrateInvalidPoolPositionsEvent(type) {
|
|
9359
9772
|
type = compressSuiType(type);
|
|
9360
9773
|
return type === `${getTypeOrigin(
|
|
@@ -10082,7 +10495,7 @@ var PoolRewarderInfo = class _PoolRewarderInfo {
|
|
|
10082
10495
|
static instantiateBcs() {
|
|
10083
10496
|
return bcs18.struct("PoolRewarderInfo", {
|
|
10084
10497
|
allocate_point: bcs18.u64(),
|
|
10085
|
-
acc_per_share: bcs18.
|
|
10498
|
+
acc_per_share: bcs18.u256(),
|
|
10086
10499
|
last_reward_time: bcs18.u64(),
|
|
10087
10500
|
reward_released: bcs18.u128(),
|
|
10088
10501
|
reward_harvested: bcs18.u64()
|
|
@@ -10098,7 +10511,7 @@ var PoolRewarderInfo = class _PoolRewarderInfo {
|
|
|
10098
10511
|
static fromFields(fields) {
|
|
10099
10512
|
return _PoolRewarderInfo.reified().new({
|
|
10100
10513
|
allocatePoint: decodeFromFields("u64", fields.allocate_point),
|
|
10101
|
-
accPerShare: decodeFromFields("
|
|
10514
|
+
accPerShare: decodeFromFields("u256", fields.acc_per_share),
|
|
10102
10515
|
lastRewardTime: decodeFromFields("u64", fields.last_reward_time),
|
|
10103
10516
|
rewardReleased: decodeFromFields("u128", fields.reward_released),
|
|
10104
10517
|
rewardHarvested: decodeFromFields("u64", fields.reward_harvested)
|
|
@@ -10110,7 +10523,7 @@ var PoolRewarderInfo = class _PoolRewarderInfo {
|
|
|
10110
10523
|
}
|
|
10111
10524
|
return _PoolRewarderInfo.reified().new({
|
|
10112
10525
|
allocatePoint: decodeFromFieldsWithTypes("u64", item.fields.allocate_point),
|
|
10113
|
-
accPerShare: decodeFromFieldsWithTypes("
|
|
10526
|
+
accPerShare: decodeFromFieldsWithTypes("u256", item.fields.acc_per_share),
|
|
10114
10527
|
lastRewardTime: decodeFromFieldsWithTypes("u64", item.fields.last_reward_time),
|
|
10115
10528
|
rewardReleased: decodeFromFieldsWithTypes("u128", item.fields.reward_released),
|
|
10116
10529
|
rewardHarvested: decodeFromFieldsWithTypes("u64", item.fields.reward_harvested)
|
|
@@ -10138,7 +10551,7 @@ var PoolRewarderInfo = class _PoolRewarderInfo {
|
|
|
10138
10551
|
static fromJSONField(field) {
|
|
10139
10552
|
return _PoolRewarderInfo.reified().new({
|
|
10140
10553
|
allocatePoint: decodeFromJSONField("u64", field.allocatePoint),
|
|
10141
|
-
accPerShare: decodeFromJSONField("
|
|
10554
|
+
accPerShare: decodeFromJSONField("u256", field.accPerShare),
|
|
10142
10555
|
lastRewardTime: decodeFromJSONField("u64", field.lastRewardTime),
|
|
10143
10556
|
rewardReleased: decodeFromJSONField("u128", field.rewardReleased),
|
|
10144
10557
|
rewardHarvested: decodeFromJSONField("u64", field.rewardHarvested)
|
|
@@ -12113,19 +12526,19 @@ var switchConfig = (config) => {
|
|
|
12113
12526
|
var configs = {
|
|
12114
12527
|
get GLOBAL_CONFIG() {
|
|
12115
12528
|
return switchConfig({
|
|
12116
|
-
testnet: "
|
|
12529
|
+
testnet: "0xa0a777e92650cee52c7c2c35408bb787b4bd7a6774540eaf9925bd6e3faf67db",
|
|
12117
12530
|
mainnet: "0x0"
|
|
12118
12531
|
});
|
|
12119
12532
|
},
|
|
12120
12533
|
get ADMIN_CAP() {
|
|
12121
12534
|
return switchConfig({
|
|
12122
|
-
testnet: "
|
|
12535
|
+
testnet: "0xa340064f1b786f565f4f5af2f573c808415c9d7e42a9d0e2f2fbcba824b24cb5",
|
|
12123
12536
|
mainnet: "0x0"
|
|
12124
12537
|
});
|
|
12125
12538
|
},
|
|
12126
12539
|
get REWARDS_MANAGER() {
|
|
12127
12540
|
return switchConfig({
|
|
12128
|
-
testnet: "
|
|
12541
|
+
testnet: "0x685bd4b10849e9cd64edd37ce7acff0597d470e942166b958e9b6bc71e091c5e",
|
|
12129
12542
|
mainnet: "0x0"
|
|
12130
12543
|
});
|
|
12131
12544
|
}
|