@strkfarm/sdk 1.0.7 → 1.0.9
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/dist/cli.js +10 -0
- package/dist/cli.mjs +18 -2
- package/dist/index.browser.global.js +2371 -9
- package/dist/index.d.ts +4 -0
- package/dist/index.js +38 -9
- package/dist/index.mjs +45 -9
- package/package.json +2 -1
- package/src/data/tokens.json +7 -0
- package/src/modules/pricer.ts +38 -7
- package/src/strategies/autoCompounderStrk.ts +4 -3
package/dist/cli.js
CHANGED
|
@@ -155,6 +155,13 @@ var tokens_default = [
|
|
|
155
155
|
address: "",
|
|
156
156
|
decimals: 18,
|
|
157
157
|
pricerKey: "DAI-USDT"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "kSTRK token",
|
|
161
|
+
symbol: "kSTRK",
|
|
162
|
+
address: "",
|
|
163
|
+
decimals: 18,
|
|
164
|
+
pricerKey: "DAI-USDT"
|
|
158
165
|
}
|
|
159
166
|
];
|
|
160
167
|
|
|
@@ -196,6 +203,9 @@ var Global = class {
|
|
|
196
203
|
}
|
|
197
204
|
};
|
|
198
205
|
|
|
206
|
+
// src/modules/pricer.ts
|
|
207
|
+
var CoinMarketCap = require("coinmarketcap-api");
|
|
208
|
+
|
|
199
209
|
// src/modules/pragma.ts
|
|
200
210
|
var import_starknet = require("starknet");
|
|
201
211
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
2
8
|
|
|
3
9
|
// src/cli.ts
|
|
4
10
|
import { Command } from "commander";
|
|
@@ -132,6 +138,13 @@ var tokens_default = [
|
|
|
132
138
|
address: "",
|
|
133
139
|
decimals: 18,
|
|
134
140
|
pricerKey: "DAI-USDT"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "kSTRK token",
|
|
144
|
+
symbol: "kSTRK",
|
|
145
|
+
address: "",
|
|
146
|
+
decimals: 18,
|
|
147
|
+
pricerKey: "DAI-USDT"
|
|
135
148
|
}
|
|
136
149
|
];
|
|
137
150
|
|
|
@@ -173,6 +186,9 @@ var Global = class {
|
|
|
173
186
|
}
|
|
174
187
|
};
|
|
175
188
|
|
|
189
|
+
// src/modules/pricer.ts
|
|
190
|
+
var CoinMarketCap = __require("coinmarketcap-api");
|
|
191
|
+
|
|
176
192
|
// src/modules/pragma.ts
|
|
177
193
|
import { Contract } from "starknet";
|
|
178
194
|
|
|
@@ -494,11 +510,11 @@ var Store = class _Store {
|
|
|
494
510
|
|
|
495
511
|
// src/cli.ts
|
|
496
512
|
import chalk from "chalk";
|
|
497
|
-
import { RpcProvider as
|
|
513
|
+
import { RpcProvider as RpcProvider4 } from "starknet";
|
|
498
514
|
var program = new Command();
|
|
499
515
|
var getConfig = (network) => {
|
|
500
516
|
return {
|
|
501
|
-
provider: new
|
|
517
|
+
provider: new RpcProvider4({
|
|
502
518
|
nodeUrl: "https://starknet-mainnet.public.blastapi.io"
|
|
503
519
|
}),
|
|
504
520
|
network,
|