@dfns/sdk 0.7.15-rc.0 → 0.7.16
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/dfnsApiClient.d.ts +2 -0
- package/dfnsApiClient.js +4 -0
- package/package.json +1 -1
package/dfnsApiClient.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { WebhooksClient } from './generated/webhooks';
|
|
|
13
13
|
import { CredentialSigner } from './signer';
|
|
14
14
|
import { SwapsClient } from './generated/swaps';
|
|
15
15
|
import { AgreementsClient } from './generated/agreements';
|
|
16
|
+
import { YieldsClient } from './generated/yields/client';
|
|
16
17
|
export type DfnsApiClientOptions = DfnsBaseApiOptions & {
|
|
17
18
|
/** Needs to be specified to use any endpoint that required User Action Signing flow */
|
|
18
19
|
signer?: CredentialSigner;
|
|
@@ -28,6 +29,7 @@ export declare class DfnsApiClient {
|
|
|
28
29
|
get permissions(): PermissionsClient;
|
|
29
30
|
get policies(): PoliciesClient;
|
|
30
31
|
get staking(): StakingClient;
|
|
32
|
+
get yields(): YieldsClient;
|
|
31
33
|
get swaps(): SwapsClient;
|
|
32
34
|
get agreements(): AgreementsClient;
|
|
33
35
|
get signers(): SignersClient;
|
package/dfnsApiClient.js
CHANGED
|
@@ -14,6 +14,7 @@ const wallets_1 = require("./generated/wallets");
|
|
|
14
14
|
const webhooks_1 = require("./generated/webhooks");
|
|
15
15
|
const swaps_1 = require("./generated/swaps");
|
|
16
16
|
const agreements_1 = require("./generated/agreements");
|
|
17
|
+
const client_1 = require("./generated/yields/client");
|
|
17
18
|
class DfnsApiClient {
|
|
18
19
|
constructor(apiOptions) {
|
|
19
20
|
this.apiOptions = apiOptions;
|
|
@@ -42,6 +43,9 @@ class DfnsApiClient {
|
|
|
42
43
|
get staking() {
|
|
43
44
|
return new staking_1.StakingClient(this.apiOptions);
|
|
44
45
|
}
|
|
46
|
+
get yields() {
|
|
47
|
+
return new client_1.YieldsClient(this.apiOptions);
|
|
48
|
+
}
|
|
45
49
|
get swaps() {
|
|
46
50
|
return new swaps_1.SwapsClient(this.apiOptions);
|
|
47
51
|
}
|