@nirvana-labs/nirvana 1.10.0 → 1.12.0
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/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/resources/vektor/borrow/borrow.d.mts +8 -0
- package/resources/vektor/borrow/borrow.d.mts.map +1 -1
- package/resources/vektor/borrow/borrow.d.ts +8 -0
- package/resources/vektor/borrow/borrow.d.ts.map +1 -1
- package/resources/vektor/borrow/borrow.js +8 -0
- package/resources/vektor/borrow/borrow.js.map +1 -1
- package/resources/vektor/borrow/borrow.mjs +8 -0
- package/resources/vektor/borrow/borrow.mjs.map +1 -1
- package/resources/vektor/borrow/borrow_.d.mts +47 -0
- package/resources/vektor/borrow/borrow_.d.mts.map +1 -0
- package/resources/vektor/borrow/borrow_.d.ts +47 -0
- package/resources/vektor/borrow/borrow_.d.ts.map +1 -0
- package/resources/vektor/borrow/borrow_.js +26 -0
- package/resources/vektor/borrow/borrow_.js.map +1 -0
- package/resources/vektor/borrow/borrow_.mjs +22 -0
- package/resources/vektor/borrow/borrow_.mjs.map +1 -0
- package/resources/vektor/borrow/index.d.mts +2 -0
- package/resources/vektor/borrow/index.d.mts.map +1 -1
- package/resources/vektor/borrow/index.d.ts +2 -0
- package/resources/vektor/borrow/index.d.ts.map +1 -1
- package/resources/vektor/borrow/index.js +3 -1
- package/resources/vektor/borrow/index.js.map +1 -1
- package/resources/vektor/borrow/index.mjs +1 -0
- package/resources/vektor/borrow/index.mjs.map +1 -1
- package/resources/vektor/borrow/repay.d.mts +47 -0
- package/resources/vektor/borrow/repay.d.mts.map +1 -0
- package/resources/vektor/borrow/repay.d.ts +47 -0
- package/resources/vektor/borrow/repay.d.ts.map +1 -0
- package/resources/vektor/borrow/repay.js +25 -0
- package/resources/vektor/borrow/repay.js.map +1 -0
- package/resources/vektor/borrow/repay.mjs +21 -0
- package/resources/vektor/borrow/repay.mjs.map +1 -0
- package/resources/vektor/executions/steps.d.mts +220 -2
- package/resources/vektor/executions/steps.d.mts.map +1 -1
- package/resources/vektor/executions/steps.d.ts +220 -2
- package/resources/vektor/executions/steps.d.ts.map +1 -1
- package/resources/vektor/vektor.d.mts +307 -7
- package/resources/vektor/vektor.d.mts.map +1 -1
- package/resources/vektor/vektor.d.ts +307 -7
- package/resources/vektor/vektor.d.ts.map +1 -1
- package/resources/vektor/vektor.js.map +1 -1
- package/resources/vektor/vektor.mjs.map +1 -1
- package/src/resources/vektor/borrow/borrow.ts +12 -0
- package/src/resources/vektor/borrow/borrow_.ts +57 -0
- package/src/resources/vektor/borrow/index.ts +2 -0
- package/src/resources/vektor/borrow/repay.ts +57 -0
- package/src/resources/vektor/executions/steps.ts +268 -0
- package/src/resources/vektor/vektor.ts +373 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.12.0 (2025-07-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.11.0...v1.12.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.11.0...v1.12.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([c67e062](https://github.com/nirvana-labs/nirvana-typescript/commit/c67e062478bd3c93866fdd1e494fd52f86213aa8))
|
|
10
|
+
|
|
11
|
+
## 1.11.0 (2025-07-25)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.10.0...v1.11.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.10.0...v1.11.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([f7425c6](https://github.com/nirvana-labs/nirvana-typescript/commit/f7425c64eae0a06ccfe0a8bcf0e0fa944bc41ff9))
|
|
18
|
+
* **api:** api update ([9aa8847](https://github.com/nirvana-labs/nirvana-typescript/commit/9aa8847cf5e6d1a4da55727bb3b2f8cdf9ea9622))
|
|
19
|
+
|
|
3
20
|
## 1.10.0 (2025-07-22)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v1.9.0...v1.10.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.9.0...v1.10.0)
|
package/package.json
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as AccountsAPI from "./accounts.mjs";
|
|
3
3
|
import { AccountListHistoricalParams, AccountListHistoricalResponse, AccountListParams, AccountListResponse, Accounts } from "./accounts.mjs";
|
|
4
|
+
import * as BorrowAPI from "./borrow_.mjs";
|
|
5
|
+
import { Borrow as BorrowAPIBorrow, BorrowCreateParams } from "./borrow_.mjs";
|
|
4
6
|
import * as MarketsAPI from "./markets.mjs";
|
|
5
7
|
import { MarketListHistoricalParams, MarketListHistoricalResponse, MarketListParams, MarketListResponse, Markets } from "./markets.mjs";
|
|
6
8
|
import * as PositionsAPI from "./positions.mjs";
|
|
7
9
|
import { PositionListHistoricalParams, PositionListHistoricalResponse, PositionListParams, PositionListResponse, Positions } from "./positions.mjs";
|
|
10
|
+
import * as RepayAPI from "./repay.mjs";
|
|
11
|
+
import { Repay, RepayCreateParams } from "./repay.mjs";
|
|
8
12
|
export declare class Borrow extends APIResource {
|
|
9
13
|
markets: MarketsAPI.Markets;
|
|
10
14
|
positions: PositionsAPI.Positions;
|
|
11
15
|
accounts: AccountsAPI.Accounts;
|
|
16
|
+
borrow: BorrowAPI.Borrow;
|
|
17
|
+
repay: RepayAPI.Repay;
|
|
12
18
|
}
|
|
13
19
|
export declare namespace Borrow {
|
|
14
20
|
export { Markets as Markets, type MarketListResponse as MarketListResponse, type MarketListHistoricalResponse as MarketListHistoricalResponse, type MarketListParams as MarketListParams, type MarketListHistoricalParams as MarketListHistoricalParams, };
|
|
15
21
|
export { Positions as Positions, type PositionListResponse as PositionListResponse, type PositionListHistoricalResponse as PositionListHistoricalResponse, type PositionListParams as PositionListParams, type PositionListHistoricalParams as PositionListHistoricalParams, };
|
|
16
22
|
export { Accounts as Accounts, type AccountListResponse as AccountListResponse, type AccountListHistoricalResponse as AccountListHistoricalResponse, type AccountListParams as AccountListParams, type AccountListHistoricalParams as AccountListHistoricalParams, };
|
|
23
|
+
export { BorrowAPIBorrow as Borrow, type BorrowCreateParams as BorrowCreateParams };
|
|
24
|
+
export { Repay as Repay, type RepayCreateParams as RepayCreateParams };
|
|
17
25
|
}
|
|
18
26
|
//# sourceMappingURL=borrow.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrow.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,UAAU;OACf,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,YAAY;OACjB,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;
|
|
1
|
+
{"version":3,"file":"borrow.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,SAAS;OACd,EAAE,MAAM,IAAI,eAAe,EAAE,kBAAkB,EAAE;OACjD,KAAK,UAAU;OACf,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,YAAY;OACjB,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAQD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;IAEpF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxE"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as AccountsAPI from "./accounts.js";
|
|
3
3
|
import { AccountListHistoricalParams, AccountListHistoricalResponse, AccountListParams, AccountListResponse, Accounts } from "./accounts.js";
|
|
4
|
+
import * as BorrowAPI from "./borrow_.js";
|
|
5
|
+
import { Borrow as BorrowAPIBorrow, BorrowCreateParams } from "./borrow_.js";
|
|
4
6
|
import * as MarketsAPI from "./markets.js";
|
|
5
7
|
import { MarketListHistoricalParams, MarketListHistoricalResponse, MarketListParams, MarketListResponse, Markets } from "./markets.js";
|
|
6
8
|
import * as PositionsAPI from "./positions.js";
|
|
7
9
|
import { PositionListHistoricalParams, PositionListHistoricalResponse, PositionListParams, PositionListResponse, Positions } from "./positions.js";
|
|
10
|
+
import * as RepayAPI from "./repay.js";
|
|
11
|
+
import { Repay, RepayCreateParams } from "./repay.js";
|
|
8
12
|
export declare class Borrow extends APIResource {
|
|
9
13
|
markets: MarketsAPI.Markets;
|
|
10
14
|
positions: PositionsAPI.Positions;
|
|
11
15
|
accounts: AccountsAPI.Accounts;
|
|
16
|
+
borrow: BorrowAPI.Borrow;
|
|
17
|
+
repay: RepayAPI.Repay;
|
|
12
18
|
}
|
|
13
19
|
export declare namespace Borrow {
|
|
14
20
|
export { Markets as Markets, type MarketListResponse as MarketListResponse, type MarketListHistoricalResponse as MarketListHistoricalResponse, type MarketListParams as MarketListParams, type MarketListHistoricalParams as MarketListHistoricalParams, };
|
|
15
21
|
export { Positions as Positions, type PositionListResponse as PositionListResponse, type PositionListHistoricalResponse as PositionListHistoricalResponse, type PositionListParams as PositionListParams, type PositionListHistoricalParams as PositionListHistoricalParams, };
|
|
16
22
|
export { Accounts as Accounts, type AccountListResponse as AccountListResponse, type AccountListHistoricalResponse as AccountListHistoricalResponse, type AccountListParams as AccountListParams, type AccountListHistoricalParams as AccountListHistoricalParams, };
|
|
23
|
+
export { BorrowAPIBorrow as Borrow, type BorrowCreateParams as BorrowCreateParams };
|
|
24
|
+
export { Repay as Repay, type RepayCreateParams as RepayCreateParams };
|
|
17
25
|
}
|
|
18
26
|
//# sourceMappingURL=borrow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrow.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,UAAU;OACf,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,YAAY;OACjB,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;
|
|
1
|
+
{"version":3,"file":"borrow.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACT;OACM,KAAK,SAAS;OACd,EAAE,MAAM,IAAI,eAAe,EAAE,kBAAkB,EAAE;OACjD,KAAK,UAAU;OACf,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACR;OACM,KAAK,YAAY;OACjB,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAE,iBAAiB,EAAE;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAQD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;IAEpF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxE"}
|
|
@@ -6,20 +6,28 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const AccountsAPI = tslib_1.__importStar(require("./accounts.js"));
|
|
8
8
|
const accounts_1 = require("./accounts.js");
|
|
9
|
+
const BorrowAPI = tslib_1.__importStar(require("./borrow_.js"));
|
|
10
|
+
const borrow_1 = require("./borrow_.js");
|
|
9
11
|
const MarketsAPI = tslib_1.__importStar(require("./markets.js"));
|
|
10
12
|
const markets_1 = require("./markets.js");
|
|
11
13
|
const PositionsAPI = tslib_1.__importStar(require("./positions.js"));
|
|
12
14
|
const positions_1 = require("./positions.js");
|
|
15
|
+
const RepayAPI = tslib_1.__importStar(require("./repay.js"));
|
|
16
|
+
const repay_1 = require("./repay.js");
|
|
13
17
|
class Borrow extends resource_1.APIResource {
|
|
14
18
|
constructor() {
|
|
15
19
|
super(...arguments);
|
|
16
20
|
this.markets = new MarketsAPI.Markets(this._client);
|
|
17
21
|
this.positions = new PositionsAPI.Positions(this._client);
|
|
18
22
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
23
|
+
this.borrow = new BorrowAPI.Borrow(this._client);
|
|
24
|
+
this.repay = new RepayAPI.Repay(this._client);
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
exports.Borrow = Borrow;
|
|
22
28
|
Borrow.Markets = markets_1.Markets;
|
|
23
29
|
Borrow.Positions = positions_1.Positions;
|
|
24
30
|
Borrow.Accounts = accounts_1.Accounts;
|
|
31
|
+
Borrow.Borrow = borrow_1.Borrow;
|
|
32
|
+
Borrow.Repay = repay_1.Repay;
|
|
25
33
|
//# sourceMappingURL=borrow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrow.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAMoB;AACpB,iEAAwC;AACxC,0CAMmB;AACnB,qEAA4C;AAC5C,8CAMqB;
|
|
1
|
+
{"version":3,"file":"borrow.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,mEAA0C;AAC1C,4CAMoB;AACpB,gEAAuC;AACvC,yCAA0E;AAC1E,iEAAwC;AACxC,0CAMmB;AACnB,qEAA4C;AAC5C,8CAMqB;AACrB,6DAAoC;AACpC,sCAAmD;AAEnD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAND,wBAMC;AAED,MAAM,CAAC,OAAO,GAAG,iBAAO,CAAC;AACzB,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC7B,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,MAAM,GAAG,eAAe,CAAC;AAChC,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -2,19 +2,27 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as AccountsAPI from "./accounts.mjs";
|
|
4
4
|
import { Accounts, } from "./accounts.mjs";
|
|
5
|
+
import * as BorrowAPI from "./borrow_.mjs";
|
|
6
|
+
import { Borrow as BorrowAPIBorrow } from "./borrow_.mjs";
|
|
5
7
|
import * as MarketsAPI from "./markets.mjs";
|
|
6
8
|
import { Markets, } from "./markets.mjs";
|
|
7
9
|
import * as PositionsAPI from "./positions.mjs";
|
|
8
10
|
import { Positions, } from "./positions.mjs";
|
|
11
|
+
import * as RepayAPI from "./repay.mjs";
|
|
12
|
+
import { Repay } from "./repay.mjs";
|
|
9
13
|
export class Borrow extends APIResource {
|
|
10
14
|
constructor() {
|
|
11
15
|
super(...arguments);
|
|
12
16
|
this.markets = new MarketsAPI.Markets(this._client);
|
|
13
17
|
this.positions = new PositionsAPI.Positions(this._client);
|
|
14
18
|
this.accounts = new AccountsAPI.Accounts(this._client);
|
|
19
|
+
this.borrow = new BorrowAPI.Borrow(this._client);
|
|
20
|
+
this.repay = new RepayAPI.Repay(this._client);
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
Borrow.Markets = Markets;
|
|
18
24
|
Borrow.Positions = Positions;
|
|
19
25
|
Borrow.Accounts = Accounts;
|
|
26
|
+
Borrow.Borrow = BorrowAPIBorrow;
|
|
27
|
+
Borrow.Repay = Repay;
|
|
20
28
|
//# sourceMappingURL=borrow.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrow.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,UAAU;OACf,EAKL,OAAO,GACR;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;
|
|
1
|
+
{"version":3,"file":"borrow.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAKL,QAAQ,GACT;OACM,KAAK,SAAS;OACd,EAAE,MAAM,IAAI,eAAe,EAAsB;OACjD,KAAK,UAAU;OACf,EAKL,OAAO,GACR;OACM,KAAK,YAAY;OACjB,EAKL,SAAS,GACV;OACM,KAAK,QAAQ;OACb,EAAE,KAAK,EAAqB;AAEnC,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;AAC7B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,MAAM,GAAG,eAAe,CAAC;AAChC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as VektorAPI from "../vektor.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class Borrow extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Borrow an asset
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const execution = await client.vektor.borrow.borrow.create({
|
|
12
|
+
* amount: '10.0000000000000024',
|
|
13
|
+
* asset: 'asset_01jbz9qc00f8wr64hfe459gb7y',
|
|
14
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
15
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
16
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: BorrowCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
21
|
+
}
|
|
22
|
+
export interface BorrowCreateParams {
|
|
23
|
+
/**
|
|
24
|
+
* An arbitrary precision decimal represented as a string
|
|
25
|
+
*/
|
|
26
|
+
amount: VektorAPI.Decimal;
|
|
27
|
+
/**
|
|
28
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
29
|
+
*/
|
|
30
|
+
asset: VektorAPI.AssetIDOrAddressEVMOrAssetSymbol;
|
|
31
|
+
/**
|
|
32
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
33
|
+
*/
|
|
34
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
35
|
+
/**
|
|
36
|
+
* An EVM address
|
|
37
|
+
*/
|
|
38
|
+
from: VektorAPI.Account;
|
|
39
|
+
/**
|
|
40
|
+
* A list of venue IDs or venue symbols
|
|
41
|
+
*/
|
|
42
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Borrow {
|
|
45
|
+
export { type BorrowCreateParams as BorrowCreateParams };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=borrow_.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrow_.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow_.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAG5F;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,gCAAgC,CAAC;IAElD;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;IAErD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;CAC/C;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as VektorAPI from "../vektor.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class Borrow extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Borrow an asset
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const execution = await client.vektor.borrow.borrow.create({
|
|
12
|
+
* amount: '10.0000000000000024',
|
|
13
|
+
* asset: 'asset_01jbz9qc00f8wr64hfe459gb7y',
|
|
14
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
15
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
16
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: BorrowCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
21
|
+
}
|
|
22
|
+
export interface BorrowCreateParams {
|
|
23
|
+
/**
|
|
24
|
+
* An arbitrary precision decimal represented as a string
|
|
25
|
+
*/
|
|
26
|
+
amount: VektorAPI.Decimal;
|
|
27
|
+
/**
|
|
28
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
29
|
+
*/
|
|
30
|
+
asset: VektorAPI.AssetIDOrAddressEVMOrAssetSymbol;
|
|
31
|
+
/**
|
|
32
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
33
|
+
*/
|
|
34
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
35
|
+
/**
|
|
36
|
+
* An EVM address
|
|
37
|
+
*/
|
|
38
|
+
from: VektorAPI.Account;
|
|
39
|
+
/**
|
|
40
|
+
* A list of venue IDs or venue symbols
|
|
41
|
+
*/
|
|
42
|
+
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Borrow {
|
|
45
|
+
export { type BorrowCreateParams as BorrowCreateParams };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=borrow_.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrow_.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow_.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAG5F;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,gCAAgC,CAAC;IAElD;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;IAErD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;CAC/C;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Borrow = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
class Borrow extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Borrow an asset
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const execution = await client.vektor.borrow.borrow.create({
|
|
13
|
+
* amount: '10.0000000000000024',
|
|
14
|
+
* asset: 'asset_01jbz9qc00f8wr64hfe459gb7y',
|
|
15
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
16
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
17
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/vektor/borrow/borrow', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Borrow = Borrow;
|
|
26
|
+
//# sourceMappingURL=borrow_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrow_.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow_.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAlBD,wBAkBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
export class Borrow extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Borrow an asset
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const execution = await client.vektor.borrow.borrow.create({
|
|
10
|
+
* amount: '10.0000000000000024',
|
|
11
|
+
* asset: 'asset_01jbz9qc00f8wr64hfe459gb7y',
|
|
12
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
13
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
14
|
+
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/vektor/borrow/borrow', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=borrow_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrow_.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/borrow_.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -2,4 +2,6 @@ export { Accounts, type AccountListResponse, type AccountListHistoricalResponse,
|
|
|
2
2
|
export { Borrow } from "./borrow.mjs";
|
|
3
3
|
export { Markets, type MarketListResponse, type MarketListHistoricalResponse, type MarketListParams, type MarketListHistoricalParams, } from "./markets.mjs";
|
|
4
4
|
export { Positions, type PositionListResponse, type PositionListHistoricalResponse, type PositionListParams, type PositionListHistoricalParams, } from "./positions.mjs";
|
|
5
|
+
export { Repay, type RepayCreateParams } from "./repay.mjs";
|
|
6
|
+
export { type BorrowCreateParams } from "./borrow_.mjs";
|
|
5
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,KAAK,kBAAkB,EAAE"}
|
|
@@ -2,4 +2,6 @@ export { Accounts, type AccountListResponse, type AccountListHistoricalResponse,
|
|
|
2
2
|
export { Borrow } from "./borrow.js";
|
|
3
3
|
export { Markets, type MarketListResponse, type MarketListHistoricalResponse, type MarketListParams, type MarketListHistoricalParams, } from "./markets.js";
|
|
4
4
|
export { Positions, type PositionListResponse, type PositionListHistoricalResponse, type PositionListParams, type PositionListHistoricalParams, } from "./positions.js";
|
|
5
|
+
export { Repay, type RepayCreateParams } from "./repay.js";
|
|
6
|
+
export { type BorrowCreateParams } from "./borrow_.js";
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,GACjC;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC;OACM,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,KAAK,kBAAkB,EAAE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Positions = exports.Markets = exports.Borrow = exports.Accounts = void 0;
|
|
4
|
+
exports.Repay = exports.Positions = exports.Markets = exports.Borrow = exports.Accounts = void 0;
|
|
5
5
|
var accounts_1 = require("./accounts.js");
|
|
6
6
|
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
|
|
7
7
|
var borrow_1 = require("./borrow.js");
|
|
@@ -10,4 +10,6 @@ var markets_1 = require("./markets.js");
|
|
|
10
10
|
Object.defineProperty(exports, "Markets", { enumerable: true, get: function () { return markets_1.Markets; } });
|
|
11
11
|
var positions_1 = require("./positions.js");
|
|
12
12
|
Object.defineProperty(exports, "Positions", { enumerable: true, get: function () { return positions_1.Positions; } });
|
|
13
|
+
var repay_1 = require("./repay.js");
|
|
14
|
+
Object.defineProperty(exports, "Repay", { enumerable: true, get: function () { return repay_1.Repay; } });
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4CAMqB;AALnB,sGAAA,SAAS,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,oCAAwD;AAA/C,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAKT;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,GAKR;OACM,EACL,SAAS,GAKV"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAKT;OACM,EAAE,MAAM,EAAE;OACV,EACL,OAAO,GAKR;OACM,EACL,SAAS,GAKV;OACM,EAAE,KAAK,EAA0B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as VektorAPI from "../vektor.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class Repay extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Repay to a borrow
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const execution = await client.vektor.borrow.repay.create({
|
|
12
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
13
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
14
|
+
* market_id:
|
|
15
|
+
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: RepayCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
20
|
+
}
|
|
21
|
+
export interface RepayCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
24
|
+
*/
|
|
25
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
26
|
+
/**
|
|
27
|
+
* An EVM address
|
|
28
|
+
*/
|
|
29
|
+
from: VektorAPI.Account;
|
|
30
|
+
/**
|
|
31
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
32
|
+
* prefix
|
|
33
|
+
*/
|
|
34
|
+
market_id: VektorAPI.LendBorrowMarketID;
|
|
35
|
+
/**
|
|
36
|
+
* An arbitrary precision decimal represented as a string
|
|
37
|
+
*/
|
|
38
|
+
amount?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
41
|
+
*/
|
|
42
|
+
asset?: VektorAPI.AssetID;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Repay {
|
|
45
|
+
export { type RepayCreateParams as RepayCreateParams };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=repay.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repay.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/repay.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAG3F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;IAErD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC;IAExB;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAC,kBAAkB,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as VektorAPI from "../vektor.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class Repay extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Repay to a borrow
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const execution = await client.vektor.borrow.repay.create({
|
|
12
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
13
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
14
|
+
* market_id:
|
|
15
|
+
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: RepayCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
20
|
+
}
|
|
21
|
+
export interface RepayCreateParams {
|
|
22
|
+
/**
|
|
23
|
+
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
24
|
+
*/
|
|
25
|
+
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
26
|
+
/**
|
|
27
|
+
* An EVM address
|
|
28
|
+
*/
|
|
29
|
+
from: VektorAPI.Account;
|
|
30
|
+
/**
|
|
31
|
+
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
32
|
+
* prefix
|
|
33
|
+
*/
|
|
34
|
+
market_id: VektorAPI.LendBorrowMarketID;
|
|
35
|
+
/**
|
|
36
|
+
* An arbitrary precision decimal represented as a string
|
|
37
|
+
*/
|
|
38
|
+
amount?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* An asset ID, represented as a TypeID with `asset` prefix
|
|
41
|
+
*/
|
|
42
|
+
asset?: VektorAPI.AssetID;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Repay {
|
|
45
|
+
export { type RepayCreateParams as RepayCreateParams };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=repay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repay.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/repay.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAG3F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;IAErD;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC;IAExB;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAC,kBAAkB,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Repay = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
class Repay extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Repay to a borrow
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const execution = await client.vektor.borrow.repay.create({
|
|
13
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
14
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
15
|
+
* market_id:
|
|
16
|
+
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/v1/vektor/borrow/repay', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Repay = Repay;
|
|
25
|
+
//# sourceMappingURL=repay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repay.js","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/repay.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAjBD,sBAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
export class Repay extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Repay to a borrow
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const execution = await client.vektor.borrow.repay.create({
|
|
10
|
+
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
11
|
+
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
12
|
+
* market_id:
|
|
13
|
+
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/v1/vektor/borrow/repay', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=repay.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repay.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/borrow/repay.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|