@gearbox-protocol/sdk 14.11.2 → 14.11.4

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.
@@ -36,12 +36,168 @@ const iDegenNftv2Abi = (0, import_viem.parseAbi)([
36
36
  "function minter() external view returns (address)",
37
37
  "function mint(address to, uint256 amount) external"
38
38
  ]);
39
- const faucetAbi = (0, import_viem.parseAbi)([
40
- "function minAmountUSD() external view returns (uint256)",
41
- "function claim() external",
42
- "function claim(uint256 amountUSD) external",
43
- "function claim((address token, uint256 amount)[] claims) external"
44
- ]);
39
+ const faucetAbi = [
40
+ {
41
+ type: "function",
42
+ name: "assets",
43
+ inputs: [
44
+ {
45
+ name: "",
46
+ type: "uint256",
47
+ internalType: "uint256"
48
+ }
49
+ ],
50
+ outputs: [
51
+ {
52
+ name: "",
53
+ type: "address",
54
+ internalType: "address"
55
+ }
56
+ ],
57
+ stateMutability: "view"
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "claim",
62
+ inputs: [
63
+ {
64
+ name: "amountUSD",
65
+ type: "uint256",
66
+ internalType: "uint256"
67
+ }
68
+ ],
69
+ outputs: [],
70
+ stateMutability: "nonpayable"
71
+ },
72
+ {
73
+ type: "function",
74
+ name: "claim",
75
+ inputs: [],
76
+ outputs: [],
77
+ stateMutability: "nonpayable"
78
+ },
79
+ {
80
+ type: "function",
81
+ name: "claim",
82
+ inputs: [
83
+ {
84
+ name: "claims",
85
+ type: "tuple[]",
86
+ internalType: "struct TokenClaim[]",
87
+ components: [
88
+ {
89
+ name: "token",
90
+ type: "address",
91
+ internalType: "address"
92
+ },
93
+ {
94
+ name: "amount",
95
+ type: "uint256",
96
+ internalType: "uint256"
97
+ }
98
+ ]
99
+ }
100
+ ],
101
+ outputs: [],
102
+ stateMutability: "nonpayable"
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "getAssets",
107
+ inputs: [],
108
+ outputs: [
109
+ {
110
+ name: "",
111
+ type: "address[]",
112
+ internalType: "address[]"
113
+ }
114
+ ],
115
+ stateMutability: "view"
116
+ },
117
+ {
118
+ type: "function",
119
+ name: "hasClaimed",
120
+ inputs: [
121
+ {
122
+ name: "user",
123
+ type: "address",
124
+ internalType: "address"
125
+ }
126
+ ],
127
+ outputs: [
128
+ {
129
+ name: "",
130
+ type: "bool",
131
+ internalType: "bool"
132
+ }
133
+ ],
134
+ stateMutability: "view"
135
+ },
136
+ {
137
+ type: "function",
138
+ name: "minAmountUSD",
139
+ inputs: [],
140
+ outputs: [
141
+ {
142
+ name: "",
143
+ type: "uint256",
144
+ internalType: "uint256"
145
+ }
146
+ ],
147
+ stateMutability: "view"
148
+ },
149
+ {
150
+ type: "function",
151
+ name: "owner",
152
+ inputs: [],
153
+ outputs: [
154
+ {
155
+ name: "",
156
+ type: "address",
157
+ internalType: "address"
158
+ }
159
+ ],
160
+ stateMutability: "view"
161
+ },
162
+ {
163
+ type: "function",
164
+ name: "prices",
165
+ inputs: [
166
+ {
167
+ name: "",
168
+ type: "address",
169
+ internalType: "address"
170
+ }
171
+ ],
172
+ outputs: [
173
+ {
174
+ name: "",
175
+ type: "uint256",
176
+ internalType: "uint256"
177
+ }
178
+ ],
179
+ stateMutability: "view"
180
+ },
181
+ {
182
+ type: "function",
183
+ name: "scales",
184
+ inputs: [
185
+ {
186
+ name: "",
187
+ type: "address",
188
+ internalType: "address"
189
+ }
190
+ ],
191
+ outputs: [
192
+ {
193
+ name: "",
194
+ type: "uint256",
195
+ internalType: "uint256"
196
+ }
197
+ ],
198
+ stateMutability: "view"
199
+ }
200
+ ];
45
201
  const iOnchainExecutionIdAbi = [
46
202
  {
47
203
  type: "function",
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var rate_keeper_factory_exports = {};
20
+ __export(rate_keeper_factory_exports, {
21
+ RateKeeperFactory: () => RateKeeperFactory
22
+ });
23
+ module.exports = __toCommonJS(rate_keeper_factory_exports);
24
+ var import_generated = require("../../../abi/310/generated.js");
25
+ var import_abstract_factory = require("./abstract-factory.js");
26
+ const abi = import_generated.iTumblerV310Abi;
27
+ class RateKeeperFactory extends import_abstract_factory.AbstractFactory {
28
+ constructor() {
29
+ super(abi);
30
+ }
31
+ }
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ RateKeeperFactory
35
+ });
@@ -32,6 +32,7 @@ var import_credit_factory = require("./factory/credit-factory.js");
32
32
  var import_loss_policy_factory = require("./factory/loss-policy-factory.js");
33
33
  var import_pool_factory = require("./factory/pool-factory.js");
34
34
  var import_price_oracle_factory = require("./factory/price-oracle-factory.js");
35
+ var import_rate_keeper_factory = require("./factory/rate-keeper-factory.js");
35
36
  var import_index = require("./index.js");
36
37
  const PERIPHERY_DOMAINS = ["ZAPPER", "DEGEN_NFT"];
37
38
  const abi = import_generated.iMarketConfiguratorV310Abi;
@@ -40,12 +41,14 @@ class MarketConfiguratorContract extends import_sdk.BaseContract {
40
41
  poolFactory;
41
42
  priceOracleFactory;
42
43
  lossPolicyFactory;
44
+ rateKeeperFactory;
43
45
  constructor(addr, client) {
44
46
  super({ client }, { abi, addr, name: "MarketConfigurator" });
45
47
  this.creditFactory = new import_credit_factory.CreditFactory();
46
48
  this.poolFactory = new import_pool_factory.PoolFactory();
47
49
  this.priceOracleFactory = new import_price_oracle_factory.PriceOracleFactory();
48
50
  this.lossPolicyFactory = new import_loss_policy_factory.LossPolicyFactory();
51
+ this.rateKeeperFactory = new import_rate_keeper_factory.RateKeeperFactory();
49
52
  }
50
53
  async getAddressProvider() {
51
54
  const addressProvider = await this.contract.read.addressProvider();
@@ -703,6 +706,14 @@ class MarketConfiguratorContract extends import_sdk.BaseContract {
703
706
  data: (0, import_sdk.json_stringify)(decoded)
704
707
  };
705
708
  }
709
+ case "configureRateKeeper": {
710
+ const [pool, calldata] = args;
711
+ const decoded = this.rateKeeperFactory.decodeConfig(calldata);
712
+ return {
713
+ pool,
714
+ data: (0, import_sdk.json_stringify)(decoded)
715
+ };
716
+ }
706
717
  case "updateInterestRateModel": {
707
718
  const [pool, deployParams] = args;
708
719
  return {
@@ -9,12 +9,168 @@ const iDegenNftv2Abi = parseAbi([
9
9
  "function minter() external view returns (address)",
10
10
  "function mint(address to, uint256 amount) external"
11
11
  ]);
12
- const faucetAbi = parseAbi([
13
- "function minAmountUSD() external view returns (uint256)",
14
- "function claim() external",
15
- "function claim(uint256 amountUSD) external",
16
- "function claim((address token, uint256 amount)[] claims) external"
17
- ]);
12
+ const faucetAbi = [
13
+ {
14
+ type: "function",
15
+ name: "assets",
16
+ inputs: [
17
+ {
18
+ name: "",
19
+ type: "uint256",
20
+ internalType: "uint256"
21
+ }
22
+ ],
23
+ outputs: [
24
+ {
25
+ name: "",
26
+ type: "address",
27
+ internalType: "address"
28
+ }
29
+ ],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ name: "claim",
35
+ inputs: [
36
+ {
37
+ name: "amountUSD",
38
+ type: "uint256",
39
+ internalType: "uint256"
40
+ }
41
+ ],
42
+ outputs: [],
43
+ stateMutability: "nonpayable"
44
+ },
45
+ {
46
+ type: "function",
47
+ name: "claim",
48
+ inputs: [],
49
+ outputs: [],
50
+ stateMutability: "nonpayable"
51
+ },
52
+ {
53
+ type: "function",
54
+ name: "claim",
55
+ inputs: [
56
+ {
57
+ name: "claims",
58
+ type: "tuple[]",
59
+ internalType: "struct TokenClaim[]",
60
+ components: [
61
+ {
62
+ name: "token",
63
+ type: "address",
64
+ internalType: "address"
65
+ },
66
+ {
67
+ name: "amount",
68
+ type: "uint256",
69
+ internalType: "uint256"
70
+ }
71
+ ]
72
+ }
73
+ ],
74
+ outputs: [],
75
+ stateMutability: "nonpayable"
76
+ },
77
+ {
78
+ type: "function",
79
+ name: "getAssets",
80
+ inputs: [],
81
+ outputs: [
82
+ {
83
+ name: "",
84
+ type: "address[]",
85
+ internalType: "address[]"
86
+ }
87
+ ],
88
+ stateMutability: "view"
89
+ },
90
+ {
91
+ type: "function",
92
+ name: "hasClaimed",
93
+ inputs: [
94
+ {
95
+ name: "user",
96
+ type: "address",
97
+ internalType: "address"
98
+ }
99
+ ],
100
+ outputs: [
101
+ {
102
+ name: "",
103
+ type: "bool",
104
+ internalType: "bool"
105
+ }
106
+ ],
107
+ stateMutability: "view"
108
+ },
109
+ {
110
+ type: "function",
111
+ name: "minAmountUSD",
112
+ inputs: [],
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "uint256",
117
+ internalType: "uint256"
118
+ }
119
+ ],
120
+ stateMutability: "view"
121
+ },
122
+ {
123
+ type: "function",
124
+ name: "owner",
125
+ inputs: [],
126
+ outputs: [
127
+ {
128
+ name: "",
129
+ type: "address",
130
+ internalType: "address"
131
+ }
132
+ ],
133
+ stateMutability: "view"
134
+ },
135
+ {
136
+ type: "function",
137
+ name: "prices",
138
+ inputs: [
139
+ {
140
+ name: "",
141
+ type: "address",
142
+ internalType: "address"
143
+ }
144
+ ],
145
+ outputs: [
146
+ {
147
+ name: "",
148
+ type: "uint256",
149
+ internalType: "uint256"
150
+ }
151
+ ],
152
+ stateMutability: "view"
153
+ },
154
+ {
155
+ type: "function",
156
+ name: "scales",
157
+ inputs: [
158
+ {
159
+ name: "",
160
+ type: "address",
161
+ internalType: "address"
162
+ }
163
+ ],
164
+ outputs: [
165
+ {
166
+ name: "",
167
+ type: "uint256",
168
+ internalType: "uint256"
169
+ }
170
+ ],
171
+ stateMutability: "view"
172
+ }
173
+ ];
18
174
  const iOnchainExecutionIdAbi = [
19
175
  {
20
176
  type: "function",
@@ -0,0 +1,11 @@
1
+ import { iTumblerV310Abi } from "../../../abi/310/generated.js";
2
+ import { AbstractFactory } from "./abstract-factory.js";
3
+ const abi = iTumblerV310Abi;
4
+ class RateKeeperFactory extends AbstractFactory {
5
+ constructor() {
6
+ super(abi);
7
+ }
8
+ }
9
+ export {
10
+ RateKeeperFactory
11
+ };
@@ -27,6 +27,7 @@ import { CreditFactory } from "./factory/credit-factory.js";
27
27
  import { LossPolicyFactory } from "./factory/loss-policy-factory.js";
28
28
  import { PoolFactory } from "./factory/pool-factory.js";
29
29
  import { PriceOracleFactory } from "./factory/price-oracle-factory.js";
30
+ import { RateKeeperFactory } from "./factory/rate-keeper-factory.js";
30
31
  import { AddressProviderContract } from "./index.js";
31
32
  const PERIPHERY_DOMAINS = ["ZAPPER", "DEGEN_NFT"];
32
33
  const abi = iMarketConfiguratorV310Abi;
@@ -35,12 +36,14 @@ class MarketConfiguratorContract extends BaseContract {
35
36
  poolFactory;
36
37
  priceOracleFactory;
37
38
  lossPolicyFactory;
39
+ rateKeeperFactory;
38
40
  constructor(addr, client) {
39
41
  super({ client }, { abi, addr, name: "MarketConfigurator" });
40
42
  this.creditFactory = new CreditFactory();
41
43
  this.poolFactory = new PoolFactory();
42
44
  this.priceOracleFactory = new PriceOracleFactory();
43
45
  this.lossPolicyFactory = new LossPolicyFactory();
46
+ this.rateKeeperFactory = new RateKeeperFactory();
44
47
  }
45
48
  async getAddressProvider() {
46
49
  const addressProvider = await this.contract.read.addressProvider();
@@ -698,6 +701,14 @@ class MarketConfiguratorContract extends BaseContract {
698
701
  data: json_stringify(decoded)
699
702
  };
700
703
  }
704
+ case "configureRateKeeper": {
705
+ const [pool, calldata] = args;
706
+ const decoded = this.rateKeeperFactory.decodeConfig(calldata);
707
+ return {
708
+ pool,
709
+ data: json_stringify(decoded)
710
+ };
711
+ }
701
712
  case "updateInterestRateModel": {
702
713
  const [pool, deployParams] = args;
703
714
  return {
@@ -38,44 +38,126 @@ export declare const iDegenNftv2Abi: readonly [{
38
38
  readonly outputs: readonly [];
39
39
  }];
40
40
  export declare const faucetAbi: readonly [{
41
- readonly name: "minAmountUSD";
42
41
  readonly type: "function";
43
- readonly stateMutability: "view";
44
- readonly inputs: readonly [];
45
- readonly outputs: readonly [{
42
+ readonly name: "assets";
43
+ readonly inputs: readonly [{
44
+ readonly name: "";
46
45
  readonly type: "uint256";
46
+ readonly internalType: "uint256";
47
47
  }];
48
+ readonly outputs: readonly [{
49
+ readonly name: "";
50
+ readonly type: "address";
51
+ readonly internalType: "address";
52
+ }];
53
+ readonly stateMutability: "view";
48
54
  }, {
49
- readonly name: "claim";
50
55
  readonly type: "function";
51
- readonly stateMutability: "nonpayable";
52
- readonly inputs: readonly [];
53
- readonly outputs: readonly [];
54
- }, {
55
56
  readonly name: "claim";
56
- readonly type: "function";
57
- readonly stateMutability: "nonpayable";
58
57
  readonly inputs: readonly [{
59
- readonly type: "uint256";
60
58
  readonly name: "amountUSD";
59
+ readonly type: "uint256";
60
+ readonly internalType: "uint256";
61
61
  }];
62
62
  readonly outputs: readonly [];
63
+ readonly stateMutability: "nonpayable";
63
64
  }, {
64
- readonly name: "claim";
65
65
  readonly type: "function";
66
+ readonly name: "claim";
67
+ readonly inputs: readonly [];
68
+ readonly outputs: readonly [];
66
69
  readonly stateMutability: "nonpayable";
70
+ }, {
71
+ readonly type: "function";
72
+ readonly name: "claim";
67
73
  readonly inputs: readonly [{
74
+ readonly name: "claims";
68
75
  readonly type: "tuple[]";
76
+ readonly internalType: "struct TokenClaim[]";
69
77
  readonly components: readonly [{
70
- readonly type: "address";
71
78
  readonly name: "token";
79
+ readonly type: "address";
80
+ readonly internalType: "address";
72
81
  }, {
73
- readonly type: "uint256";
74
82
  readonly name: "amount";
83
+ readonly type: "uint256";
84
+ readonly internalType: "uint256";
75
85
  }];
76
- readonly name: "claims";
77
86
  }];
78
87
  readonly outputs: readonly [];
88
+ readonly stateMutability: "nonpayable";
89
+ }, {
90
+ readonly type: "function";
91
+ readonly name: "getAssets";
92
+ readonly inputs: readonly [];
93
+ readonly outputs: readonly [{
94
+ readonly name: "";
95
+ readonly type: "address[]";
96
+ readonly internalType: "address[]";
97
+ }];
98
+ readonly stateMutability: "view";
99
+ }, {
100
+ readonly type: "function";
101
+ readonly name: "hasClaimed";
102
+ readonly inputs: readonly [{
103
+ readonly name: "user";
104
+ readonly type: "address";
105
+ readonly internalType: "address";
106
+ }];
107
+ readonly outputs: readonly [{
108
+ readonly name: "";
109
+ readonly type: "bool";
110
+ readonly internalType: "bool";
111
+ }];
112
+ readonly stateMutability: "view";
113
+ }, {
114
+ readonly type: "function";
115
+ readonly name: "minAmountUSD";
116
+ readonly inputs: readonly [];
117
+ readonly outputs: readonly [{
118
+ readonly name: "";
119
+ readonly type: "uint256";
120
+ readonly internalType: "uint256";
121
+ }];
122
+ readonly stateMutability: "view";
123
+ }, {
124
+ readonly type: "function";
125
+ readonly name: "owner";
126
+ readonly inputs: readonly [];
127
+ readonly outputs: readonly [{
128
+ readonly name: "";
129
+ readonly type: "address";
130
+ readonly internalType: "address";
131
+ }];
132
+ readonly stateMutability: "view";
133
+ }, {
134
+ readonly type: "function";
135
+ readonly name: "prices";
136
+ readonly inputs: readonly [{
137
+ readonly name: "";
138
+ readonly type: "address";
139
+ readonly internalType: "address";
140
+ }];
141
+ readonly outputs: readonly [{
142
+ readonly name: "";
143
+ readonly type: "uint256";
144
+ readonly internalType: "uint256";
145
+ }];
146
+ readonly stateMutability: "view";
147
+ }, {
148
+ readonly type: "function";
149
+ readonly name: "scales";
150
+ readonly inputs: readonly [{
151
+ readonly name: "";
152
+ readonly type: "address";
153
+ readonly internalType: "address";
154
+ }];
155
+ readonly outputs: readonly [{
156
+ readonly name: "";
157
+ readonly type: "uint256";
158
+ readonly internalType: "uint256";
159
+ }];
160
+ readonly stateMutability: "view";
79
161
  }];
80
162
  /**
81
163
  * This contract is deployed on testnets and contains testnet executionId and forkAlias
@@ -0,0 +1,179 @@
1
+ import { AbstractFactory } from "./abstract-factory.js";
2
+ declare const abi: readonly [{
3
+ readonly type: "function";
4
+ readonly inputs: readonly [];
5
+ readonly name: "acl";
6
+ readonly outputs: readonly [{
7
+ readonly name: "";
8
+ readonly internalType: "address";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "view";
12
+ }, {
13
+ readonly type: "function";
14
+ readonly inputs: readonly [{
15
+ readonly name: "token";
16
+ readonly internalType: "address";
17
+ readonly type: "address";
18
+ }];
19
+ readonly name: "addToken";
20
+ readonly outputs: readonly [];
21
+ readonly stateMutability: "nonpayable";
22
+ }, {
23
+ readonly type: "function";
24
+ readonly inputs: readonly [];
25
+ readonly name: "contractType";
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly internalType: "bytes32";
29
+ readonly type: "bytes32";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ }, {
33
+ readonly type: "function";
34
+ readonly inputs: readonly [];
35
+ readonly name: "epochLength";
36
+ readonly outputs: readonly [{
37
+ readonly name: "";
38
+ readonly internalType: "uint256";
39
+ readonly type: "uint256";
40
+ }];
41
+ readonly stateMutability: "view";
42
+ }, {
43
+ readonly type: "function";
44
+ readonly inputs: readonly [{
45
+ readonly name: "tokens";
46
+ readonly internalType: "address[]";
47
+ readonly type: "address[]";
48
+ }];
49
+ readonly name: "getRates";
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly internalType: "uint16[]";
53
+ readonly type: "uint16[]";
54
+ }];
55
+ readonly stateMutability: "view";
56
+ }, {
57
+ readonly type: "function";
58
+ readonly inputs: readonly [];
59
+ readonly name: "getTokens";
60
+ readonly outputs: readonly [{
61
+ readonly name: "";
62
+ readonly internalType: "address[]";
63
+ readonly type: "address[]";
64
+ }];
65
+ readonly stateMutability: "view";
66
+ }, {
67
+ readonly type: "function";
68
+ readonly inputs: readonly [{
69
+ readonly name: "token";
70
+ readonly internalType: "address";
71
+ readonly type: "address";
72
+ }];
73
+ readonly name: "isTokenAdded";
74
+ readonly outputs: readonly [{
75
+ readonly name: "";
76
+ readonly internalType: "bool";
77
+ readonly type: "bool";
78
+ }];
79
+ readonly stateMutability: "view";
80
+ }, {
81
+ readonly type: "function";
82
+ readonly inputs: readonly [];
83
+ readonly name: "pool";
84
+ readonly outputs: readonly [{
85
+ readonly name: "";
86
+ readonly internalType: "address";
87
+ readonly type: "address";
88
+ }];
89
+ readonly stateMutability: "view";
90
+ }, {
91
+ readonly type: "function";
92
+ readonly inputs: readonly [];
93
+ readonly name: "poolQuotaKeeper";
94
+ readonly outputs: readonly [{
95
+ readonly name: "";
96
+ readonly internalType: "address";
97
+ readonly type: "address";
98
+ }];
99
+ readonly stateMutability: "view";
100
+ }, {
101
+ readonly type: "function";
102
+ readonly inputs: readonly [];
103
+ readonly name: "serialize";
104
+ readonly outputs: readonly [{
105
+ readonly name: "serializedData";
106
+ readonly internalType: "bytes";
107
+ readonly type: "bytes";
108
+ }];
109
+ readonly stateMutability: "view";
110
+ }, {
111
+ readonly type: "function";
112
+ readonly inputs: readonly [{
113
+ readonly name: "token";
114
+ readonly internalType: "address";
115
+ readonly type: "address";
116
+ }, {
117
+ readonly name: "rate";
118
+ readonly internalType: "uint16";
119
+ readonly type: "uint16";
120
+ }];
121
+ readonly name: "setRate";
122
+ readonly outputs: readonly [];
123
+ readonly stateMutability: "nonpayable";
124
+ }, {
125
+ readonly type: "function";
126
+ readonly inputs: readonly [];
127
+ readonly name: "underlying";
128
+ readonly outputs: readonly [{
129
+ readonly name: "";
130
+ readonly internalType: "address";
131
+ readonly type: "address";
132
+ }];
133
+ readonly stateMutability: "view";
134
+ }, {
135
+ readonly type: "function";
136
+ readonly inputs: readonly [];
137
+ readonly name: "updateRates";
138
+ readonly outputs: readonly [];
139
+ readonly stateMutability: "nonpayable";
140
+ }, {
141
+ readonly type: "function";
142
+ readonly inputs: readonly [];
143
+ readonly name: "version";
144
+ readonly outputs: readonly [{
145
+ readonly name: "";
146
+ readonly internalType: "uint256";
147
+ readonly type: "uint256";
148
+ }];
149
+ readonly stateMutability: "view";
150
+ }, {
151
+ readonly type: "event";
152
+ readonly anonymous: false;
153
+ readonly inputs: readonly [{
154
+ readonly name: "token";
155
+ readonly internalType: "address";
156
+ readonly type: "address";
157
+ readonly indexed: true;
158
+ }];
159
+ readonly name: "AddToken";
160
+ }, {
161
+ readonly type: "event";
162
+ readonly anonymous: false;
163
+ readonly inputs: readonly [{
164
+ readonly name: "token";
165
+ readonly internalType: "address";
166
+ readonly type: "address";
167
+ readonly indexed: true;
168
+ }, {
169
+ readonly name: "rate";
170
+ readonly internalType: "uint16";
171
+ readonly type: "uint16";
172
+ readonly indexed: false;
173
+ }];
174
+ readonly name: "SetRate";
175
+ }];
176
+ export declare class RateKeeperFactory extends AbstractFactory<typeof abi> {
177
+ constructor();
178
+ }
179
+ export {};
@@ -5,6 +5,7 @@ import { CreditFactory } from "./factory/credit-factory.js";
5
5
  import { LossPolicyFactory } from "./factory/loss-policy-factory.js";
6
6
  import { PoolFactory } from "./factory/pool-factory.js";
7
7
  import { PriceOracleFactory } from "./factory/price-oracle-factory.js";
8
+ import { RateKeeperFactory } from "./factory/rate-keeper-factory.js";
8
9
  import { AddressProviderContract } from "./index.js";
9
10
  import type { AddAssetParams, AllowTokenParams, DeployParams, ForbidAdapterParams, ForbidTokenParams, Market, PauseCreditManagerParams, PeripheryDomain, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, UnpauseCreditManagerParams } from "./types.js";
10
11
  declare const abi: readonly [{
@@ -1536,6 +1537,7 @@ export declare class MarketConfiguratorContract extends BaseContract<typeof abi>
1536
1537
  readonly poolFactory: PoolFactory;
1537
1538
  readonly priceOracleFactory: PriceOracleFactory;
1538
1539
  readonly lossPolicyFactory: LossPolicyFactory;
1540
+ readonly rateKeeperFactory: RateKeeperFactory;
1539
1541
  constructor(addr: Address, client: PublicClient<Transport, Chain>);
1540
1542
  getAddressProvider(): Promise<AddressProviderContract>;
1541
1543
  previewCreateMarket(params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.11.2",
3
+ "version": "14.11.4",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {