@owney/sdk 0.2.10 → 0.2.11
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/README.md +0 -5
- package/dist/index.cjs +4 -692
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -692
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -42,14 +42,14 @@ interface IAgent {
|
|
|
42
42
|
* Optional filters for per-agent APY lookups.
|
|
43
43
|
* - `tokenSymbol` / `chainId` scope the APY to a specific asset+chain when
|
|
44
44
|
* the underlying provider supports it (Zyfai). Agents whose backends do
|
|
45
|
-
* not yet support per-asset APY
|
|
45
|
+
* not yet support per-asset APY will ignore these options.
|
|
46
46
|
*/
|
|
47
47
|
type AgentApyOptions = {
|
|
48
48
|
tokenSymbol?: string;
|
|
49
49
|
chainId?: number;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
type AgentId = "zyfai"
|
|
52
|
+
type AgentId = "zyfai";
|
|
53
53
|
type Asset = string;
|
|
54
54
|
type AgentSupportedAssets = {
|
|
55
55
|
readonly chainId: number;
|
|
@@ -328,7 +328,7 @@ declare class OwneySDK {
|
|
|
328
328
|
* @param options.days - Lookback period: "7D", "14D", or "30D"
|
|
329
329
|
* @param options.tokenSymbol - Optional asset symbol ("USDC" / "WETH") to
|
|
330
330
|
* scope the APY to a specific asset+chain. Agents whose backends do not
|
|
331
|
-
* support per-asset APY
|
|
331
|
+
* support per-asset APY ignore this.
|
|
332
332
|
* @param options.chainId - Optional chain id for per-asset APY lookups.
|
|
333
333
|
* Typically paired with `tokenSymbol`.
|
|
334
334
|
* @returns {AgentApy} for a single agent, or {OwneyAgentApy} with per-agent APY
|
package/dist/index.d.ts
CHANGED
|
@@ -42,14 +42,14 @@ interface IAgent {
|
|
|
42
42
|
* Optional filters for per-agent APY lookups.
|
|
43
43
|
* - `tokenSymbol` / `chainId` scope the APY to a specific asset+chain when
|
|
44
44
|
* the underlying provider supports it (Zyfai). Agents whose backends do
|
|
45
|
-
* not yet support per-asset APY
|
|
45
|
+
* not yet support per-asset APY will ignore these options.
|
|
46
46
|
*/
|
|
47
47
|
type AgentApyOptions = {
|
|
48
48
|
tokenSymbol?: string;
|
|
49
49
|
chainId?: number;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
type AgentId = "zyfai"
|
|
52
|
+
type AgentId = "zyfai";
|
|
53
53
|
type Asset = string;
|
|
54
54
|
type AgentSupportedAssets = {
|
|
55
55
|
readonly chainId: number;
|
|
@@ -328,7 +328,7 @@ declare class OwneySDK {
|
|
|
328
328
|
* @param options.days - Lookback period: "7D", "14D", or "30D"
|
|
329
329
|
* @param options.tokenSymbol - Optional asset symbol ("USDC" / "WETH") to
|
|
330
330
|
* scope the APY to a specific asset+chain. Agents whose backends do not
|
|
331
|
-
* support per-asset APY
|
|
331
|
+
* support per-asset APY ignore this.
|
|
332
332
|
* @param options.chainId - Optional chain id for per-asset APY lookups.
|
|
333
333
|
* Typically paired with `tokenSymbol`.
|
|
334
334
|
* @returns {AgentApy} for a single agent, or {OwneyAgentApy} with per-agent APY
|