@gearbox-protocol/sdk 17.1.0 → 17.1.2
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/cjs/onchain/chain/chains.js +1 -0
- package/dist/cjs/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.js +8 -0
- package/dist/esm/onchain/chain/chains.js +1 -0
- package/dist/esm/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.js +8 -0
- package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +6 -0
- package/package.json +1 -1
|
@@ -69,6 +69,7 @@ const chains = {
|
|
|
69
69
|
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": "ETH",
|
|
70
70
|
"0x18084fbA666a33d37592fA2633fD49a74DD93a88": "BTC",
|
|
71
71
|
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": "Stable",
|
|
72
|
+
"0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29": "Stable",
|
|
72
73
|
"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599": "BTC"
|
|
73
74
|
}),
|
|
74
75
|
rwaTokens: new require_onchain_utils_AddressSet.AddressSet([
|
|
@@ -41,6 +41,14 @@ var UpdatablePriceFeedRegistry = class extends require_onchain_market_pricefeeds
|
|
|
41
41
|
**/
|
|
42
42
|
removeHook = this.#hooks.removeHook.bind(this.#hooks);
|
|
43
43
|
/**
|
|
44
|
+
* Returns true if updatable price feeds are supported
|
|
45
|
+
* @deprecated While support for updatable price feeds is deprecated,
|
|
46
|
+
* this getter should help to gradually remove the support.
|
|
47
|
+
*/
|
|
48
|
+
get updatesSupported() {
|
|
49
|
+
return this.#updaters.length > 0;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
44
52
|
* Generates transactions to push fresh off-chain prices to updatable feeds.
|
|
45
53
|
*
|
|
46
54
|
* @param priceFeeds - Top-level price feeds whose updatable dependencies
|
|
@@ -68,6 +68,7 @@ const chains = {
|
|
|
68
68
|
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2": "ETH",
|
|
69
69
|
"0x18084fbA666a33d37592fA2633fD49a74DD93a88": "BTC",
|
|
70
70
|
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48": "Stable",
|
|
71
|
+
"0xCAcd6fd266aF91b8AeD52aCCc382b4e165586E29": "Stable",
|
|
71
72
|
"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599": "BTC"
|
|
72
73
|
}),
|
|
73
74
|
rwaTokens: new AddressSet([
|
|
@@ -40,6 +40,14 @@ var UpdatablePriceFeedRegistry = class extends PriceFeedRegistry {
|
|
|
40
40
|
**/
|
|
41
41
|
removeHook = this.#hooks.removeHook.bind(this.#hooks);
|
|
42
42
|
/**
|
|
43
|
+
* Returns true if updatable price feeds are supported
|
|
44
|
+
* @deprecated While support for updatable price feeds is deprecated,
|
|
45
|
+
* this getter should help to gradually remove the support.
|
|
46
|
+
*/
|
|
47
|
+
get updatesSupported() {
|
|
48
|
+
return this.#updaters.length > 0;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
43
51
|
* Generates transactions to push fresh off-chain prices to updatable feeds.
|
|
44
52
|
*
|
|
45
53
|
* @param priceFeeds - Top-level price feeds whose updatable dependencies
|
|
@@ -29,6 +29,12 @@ declare class UpdatablePriceFeedRegistry extends PriceFeedRegistry implements IH
|
|
|
29
29
|
* @param handler - Callback to remove.
|
|
30
30
|
**/
|
|
31
31
|
removeHook: <K extends "updatesGenerated">(hookName: K, fn: (...args: UpdatablePriceFeedRegistryHooks[K]) => void | Promise<void>) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if updatable price feeds are supported
|
|
34
|
+
* @deprecated While support for updatable price feeds is deprecated,
|
|
35
|
+
* this getter should help to gradually remove the support.
|
|
36
|
+
*/
|
|
37
|
+
get updatesSupported(): boolean;
|
|
32
38
|
/**
|
|
33
39
|
* Generates transactions to push fresh off-chain prices to updatable feeds.
|
|
34
40
|
*
|