@nirvana-labs/nirvana 1.35.5 → 1.36.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 +22 -0
- package/bin/migration-config.json +0 -70
- package/client.d.mts +0 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -3
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +0 -5
- package/src/resources/index.ts +0 -1
- 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/resources/vektor/balances.d.mts +0 -114
- package/resources/vektor/balances.d.mts.map +0 -1
- package/resources/vektor/balances.d.ts +0 -114
- package/resources/vektor/balances.d.ts.map +0 -1
- package/resources/vektor/balances.js +0 -44
- package/resources/vektor/balances.js.map +0 -1
- package/resources/vektor/balances.mjs +0 -40
- package/resources/vektor/balances.mjs.map +0 -1
- package/resources/vektor/borrow/accounts.d.mts +0 -114
- package/resources/vektor/borrow/accounts.d.mts.map +0 -1
- package/resources/vektor/borrow/accounts.d.ts +0 -114
- package/resources/vektor/borrow/accounts.d.ts.map +0 -1
- package/resources/vektor/borrow/accounts.js +0 -44
- package/resources/vektor/borrow/accounts.js.map +0 -1
- package/resources/vektor/borrow/accounts.mjs +0 -40
- package/resources/vektor/borrow/accounts.mjs.map +0 -1
- package/resources/vektor/borrow/borrow.d.mts +0 -26
- package/resources/vektor/borrow/borrow.d.mts.map +0 -1
- package/resources/vektor/borrow/borrow.d.ts +0 -26
- package/resources/vektor/borrow/borrow.d.ts.map +0 -1
- package/resources/vektor/borrow/borrow.js +0 -33
- package/resources/vektor/borrow/borrow.js.map +0 -1
- package/resources/vektor/borrow/borrow.mjs +0 -28
- package/resources/vektor/borrow/borrow.mjs.map +0 -1
- package/resources/vektor/borrow/borrow_.d.mts +0 -47
- package/resources/vektor/borrow/borrow_.d.mts.map +0 -1
- package/resources/vektor/borrow/borrow_.d.ts +0 -47
- package/resources/vektor/borrow/borrow_.d.ts.map +0 -1
- package/resources/vektor/borrow/borrow_.js +0 -26
- package/resources/vektor/borrow/borrow_.js.map +0 -1
- package/resources/vektor/borrow/borrow_.mjs +0 -22
- package/resources/vektor/borrow/borrow_.mjs.map +0 -1
- package/resources/vektor/borrow/index.d.mts +0 -7
- package/resources/vektor/borrow/index.d.mts.map +0 -1
- package/resources/vektor/borrow/index.d.ts +0 -7
- package/resources/vektor/borrow/index.d.ts.map +0 -1
- package/resources/vektor/borrow/index.js +0 -15
- package/resources/vektor/borrow/index.js.map +0 -1
- package/resources/vektor/borrow/index.mjs +0 -7
- package/resources/vektor/borrow/index.mjs.map +0 -1
- package/resources/vektor/borrow/markets.d.mts +0 -158
- package/resources/vektor/borrow/markets.d.mts.map +0 -1
- package/resources/vektor/borrow/markets.d.ts +0 -158
- package/resources/vektor/borrow/markets.d.ts.map +0 -1
- package/resources/vektor/borrow/markets.js +0 -42
- package/resources/vektor/borrow/markets.js.map +0 -1
- package/resources/vektor/borrow/markets.mjs +0 -38
- package/resources/vektor/borrow/markets.mjs.map +0 -1
- package/resources/vektor/borrow/positions.d.mts +0 -182
- package/resources/vektor/borrow/positions.d.mts.map +0 -1
- package/resources/vektor/borrow/positions.d.ts +0 -182
- package/resources/vektor/borrow/positions.d.ts.map +0 -1
- package/resources/vektor/borrow/positions.js +0 -50
- package/resources/vektor/borrow/positions.js.map +0 -1
- package/resources/vektor/borrow/positions.mjs +0 -46
- package/resources/vektor/borrow/positions.mjs.map +0 -1
- package/resources/vektor/borrow/repay.d.mts +0 -47
- package/resources/vektor/borrow/repay.d.mts.map +0 -1
- package/resources/vektor/borrow/repay.d.ts +0 -47
- package/resources/vektor/borrow/repay.d.ts.map +0 -1
- package/resources/vektor/borrow/repay.js +0 -25
- package/resources/vektor/borrow/repay.js.map +0 -1
- package/resources/vektor/borrow/repay.mjs +0 -21
- package/resources/vektor/borrow/repay.mjs.map +0 -1
- package/resources/vektor/borrow.d.mts +0 -2
- package/resources/vektor/borrow.d.mts.map +0 -1
- package/resources/vektor/borrow.d.ts +0 -2
- package/resources/vektor/borrow.d.ts.map +0 -1
- package/resources/vektor/borrow.js +0 -6
- package/resources/vektor/borrow.js.map +0 -1
- package/resources/vektor/borrow.mjs +0 -3
- package/resources/vektor/borrow.mjs.map +0 -1
- package/resources/vektor/bridge/bridge.d.mts +0 -10
- package/resources/vektor/bridge/bridge.d.mts.map +0 -1
- package/resources/vektor/bridge/bridge.d.ts +0 -10
- package/resources/vektor/bridge/bridge.d.ts.map +0 -1
- package/resources/vektor/bridge/bridge.js +0 -17
- package/resources/vektor/bridge/bridge.js.map +0 -1
- package/resources/vektor/bridge/bridge.mjs +0 -12
- package/resources/vektor/bridge/bridge.mjs.map +0 -1
- package/resources/vektor/bridge/index.d.mts +0 -3
- package/resources/vektor/bridge/index.d.mts.map +0 -1
- package/resources/vektor/bridge/index.d.ts +0 -3
- package/resources/vektor/bridge/index.d.ts.map +0 -1
- package/resources/vektor/bridge/index.js +0 -9
- package/resources/vektor/bridge/index.js.map +0 -1
- package/resources/vektor/bridge/index.mjs +0 -4
- package/resources/vektor/bridge/index.mjs.map +0 -1
- package/resources/vektor/bridge/quotes.d.mts +0 -57
- package/resources/vektor/bridge/quotes.d.mts.map +0 -1
- package/resources/vektor/bridge/quotes.d.ts +0 -57
- package/resources/vektor/bridge/quotes.d.ts.map +0 -1
- package/resources/vektor/bridge/quotes.js +0 -26
- package/resources/vektor/bridge/quotes.js.map +0 -1
- package/resources/vektor/bridge/quotes.mjs +0 -22
- package/resources/vektor/bridge/quotes.mjs.map +0 -1
- package/resources/vektor/bridge.d.mts +0 -2
- package/resources/vektor/bridge.d.mts.map +0 -1
- package/resources/vektor/bridge.d.ts +0 -2
- package/resources/vektor/bridge.d.ts.map +0 -1
- package/resources/vektor/bridge.js +0 -6
- package/resources/vektor/bridge.js.map +0 -1
- package/resources/vektor/bridge.mjs +0 -3
- package/resources/vektor/bridge.mjs.map +0 -1
- package/resources/vektor/buy/buy.d.mts +0 -14
- package/resources/vektor/buy/buy.d.mts.map +0 -1
- package/resources/vektor/buy/buy.d.ts +0 -14
- package/resources/vektor/buy/buy.d.ts.map +0 -1
- package/resources/vektor/buy/buy.js +0 -21
- package/resources/vektor/buy/buy.js.map +0 -1
- package/resources/vektor/buy/buy.mjs +0 -16
- package/resources/vektor/buy/buy.mjs.map +0 -1
- package/resources/vektor/buy/buy_.d.mts +0 -56
- package/resources/vektor/buy/buy_.d.mts.map +0 -1
- package/resources/vektor/buy/buy_.d.ts +0 -56
- package/resources/vektor/buy/buy_.d.ts.map +0 -1
- package/resources/vektor/buy/buy_.js +0 -27
- package/resources/vektor/buy/buy_.js.map +0 -1
- package/resources/vektor/buy/buy_.mjs +0 -23
- package/resources/vektor/buy/buy_.mjs.map +0 -1
- package/resources/vektor/buy/index.d.mts +0 -4
- package/resources/vektor/buy/index.d.mts.map +0 -1
- package/resources/vektor/buy/index.d.ts +0 -4
- package/resources/vektor/buy/index.d.ts.map +0 -1
- package/resources/vektor/buy/index.js +0 -9
- package/resources/vektor/buy/index.js.map +0 -1
- package/resources/vektor/buy/index.mjs +0 -4
- package/resources/vektor/buy/index.mjs.map +0 -1
- package/resources/vektor/buy/quotes.d.mts +0 -57
- package/resources/vektor/buy/quotes.d.mts.map +0 -1
- package/resources/vektor/buy/quotes.d.ts +0 -57
- package/resources/vektor/buy/quotes.d.ts.map +0 -1
- package/resources/vektor/buy/quotes.js +0 -26
- package/resources/vektor/buy/quotes.js.map +0 -1
- package/resources/vektor/buy/quotes.mjs +0 -22
- package/resources/vektor/buy/quotes.mjs.map +0 -1
- package/resources/vektor/buy.d.mts +0 -2
- package/resources/vektor/buy.d.mts.map +0 -1
- package/resources/vektor/buy.d.ts +0 -2
- package/resources/vektor/buy.d.ts.map +0 -1
- package/resources/vektor/buy.js +0 -6
- package/resources/vektor/buy.js.map +0 -1
- package/resources/vektor/buy.mjs +0 -3
- package/resources/vektor/buy.mjs.map +0 -1
- package/resources/vektor/executions/executions.d.mts +0 -38
- package/resources/vektor/executions/executions.d.mts.map +0 -1
- package/resources/vektor/executions/executions.d.ts +0 -38
- package/resources/vektor/executions/executions.d.ts.map +0 -1
- package/resources/vektor/executions/executions.js +0 -42
- package/resources/vektor/executions/executions.js.map +0 -1
- package/resources/vektor/executions/executions.mjs +0 -37
- package/resources/vektor/executions/executions.mjs.map +0 -1
- package/resources/vektor/executions/index.d.mts +0 -3
- package/resources/vektor/executions/index.d.mts.map +0 -1
- package/resources/vektor/executions/index.d.ts +0 -3
- package/resources/vektor/executions/index.d.ts.map +0 -1
- package/resources/vektor/executions/index.js +0 -9
- package/resources/vektor/executions/index.js.map +0 -1
- package/resources/vektor/executions/index.mjs +0 -4
- package/resources/vektor/executions/index.mjs.map +0 -1
- package/resources/vektor/executions/steps.d.mts +0 -1078
- package/resources/vektor/executions/steps.d.mts.map +0 -1
- package/resources/vektor/executions/steps.d.ts +0 -1078
- package/resources/vektor/executions/steps.d.ts.map +0 -1
- package/resources/vektor/executions/steps.js +0 -45
- package/resources/vektor/executions/steps.js.map +0 -1
- package/resources/vektor/executions/steps.mjs +0 -41
- package/resources/vektor/executions/steps.mjs.map +0 -1
- package/resources/vektor/executions.d.mts +0 -2
- package/resources/vektor/executions.d.mts.map +0 -1
- package/resources/vektor/executions.d.ts +0 -2
- package/resources/vektor/executions.d.ts.map +0 -1
- package/resources/vektor/executions.js +0 -6
- package/resources/vektor/executions.js.map +0 -1
- package/resources/vektor/executions.mjs +0 -3
- package/resources/vektor/executions.mjs.map +0 -1
- package/resources/vektor/incentivize.d.mts +0 -47
- package/resources/vektor/incentivize.d.mts.map +0 -1
- package/resources/vektor/incentivize.d.ts +0 -47
- package/resources/vektor/incentivize.d.ts.map +0 -1
- package/resources/vektor/incentivize.js +0 -24
- package/resources/vektor/incentivize.js.map +0 -1
- package/resources/vektor/incentivize.mjs +0 -20
- package/resources/vektor/incentivize.mjs.map +0 -1
- package/resources/vektor/index.d.mts +0 -17
- package/resources/vektor/index.d.mts.map +0 -1
- package/resources/vektor/index.d.ts +0 -17
- package/resources/vektor/index.d.ts.map +0 -1
- package/resources/vektor/index.js +0 -37
- package/resources/vektor/index.js.map +0 -1
- package/resources/vektor/index.mjs +0 -18
- package/resources/vektor/index.mjs.map +0 -1
- package/resources/vektor/lend/index.d.mts +0 -7
- package/resources/vektor/lend/index.d.mts.map +0 -1
- package/resources/vektor/lend/index.d.ts +0 -7
- package/resources/vektor/lend/index.d.ts.map +0 -1
- package/resources/vektor/lend/index.js +0 -15
- package/resources/vektor/lend/index.js.map +0 -1
- package/resources/vektor/lend/index.mjs +0 -7
- package/resources/vektor/lend/index.mjs.map +0 -1
- package/resources/vektor/lend/lend.d.mts +0 -26
- package/resources/vektor/lend/lend.d.mts.map +0 -1
- package/resources/vektor/lend/lend.d.ts +0 -26
- package/resources/vektor/lend/lend.d.ts.map +0 -1
- package/resources/vektor/lend/lend.js +0 -33
- package/resources/vektor/lend/lend.js.map +0 -1
- package/resources/vektor/lend/lend.mjs +0 -28
- package/resources/vektor/lend/lend.mjs.map +0 -1
- package/resources/vektor/lend/lend_.d.mts +0 -47
- package/resources/vektor/lend/lend_.d.mts.map +0 -1
- package/resources/vektor/lend/lend_.d.ts +0 -47
- package/resources/vektor/lend/lend_.d.ts.map +0 -1
- package/resources/vektor/lend/lend_.js +0 -26
- package/resources/vektor/lend/lend_.js.map +0 -1
- package/resources/vektor/lend/lend_.mjs +0 -22
- package/resources/vektor/lend/lend_.mjs.map +0 -1
- package/resources/vektor/lend/markets.d.mts +0 -158
- package/resources/vektor/lend/markets.d.mts.map +0 -1
- package/resources/vektor/lend/markets.d.ts +0 -158
- package/resources/vektor/lend/markets.d.ts.map +0 -1
- package/resources/vektor/lend/markets.js +0 -42
- package/resources/vektor/lend/markets.js.map +0 -1
- package/resources/vektor/lend/markets.mjs +0 -38
- package/resources/vektor/lend/markets.mjs.map +0 -1
- package/resources/vektor/lend/positions.d.mts +0 -178
- package/resources/vektor/lend/positions.d.mts.map +0 -1
- package/resources/vektor/lend/positions.d.ts +0 -178
- package/resources/vektor/lend/positions.d.ts.map +0 -1
- package/resources/vektor/lend/positions.js +0 -46
- package/resources/vektor/lend/positions.js.map +0 -1
- package/resources/vektor/lend/positions.mjs +0 -42
- package/resources/vektor/lend/positions.mjs.map +0 -1
- package/resources/vektor/lend/set-collateral.d.mts +0 -42
- package/resources/vektor/lend/set-collateral.d.mts.map +0 -1
- package/resources/vektor/lend/set-collateral.d.ts +0 -42
- package/resources/vektor/lend/set-collateral.d.ts.map +0 -1
- package/resources/vektor/lend/set-collateral.js +0 -27
- package/resources/vektor/lend/set-collateral.js.map +0 -1
- package/resources/vektor/lend/set-collateral.mjs +0 -23
- package/resources/vektor/lend/set-collateral.mjs.map +0 -1
- package/resources/vektor/lend/withdraw.d.mts +0 -47
- package/resources/vektor/lend/withdraw.d.mts.map +0 -1
- package/resources/vektor/lend/withdraw.d.ts +0 -47
- package/resources/vektor/lend/withdraw.d.ts.map +0 -1
- package/resources/vektor/lend/withdraw.js +0 -25
- package/resources/vektor/lend/withdraw.js.map +0 -1
- package/resources/vektor/lend/withdraw.mjs +0 -21
- package/resources/vektor/lend/withdraw.mjs.map +0 -1
- package/resources/vektor/lend.d.mts +0 -2
- package/resources/vektor/lend.d.mts.map +0 -1
- package/resources/vektor/lend.d.ts +0 -2
- package/resources/vektor/lend.d.ts.map +0 -1
- package/resources/vektor/lend.js +0 -6
- package/resources/vektor/lend.js.map +0 -1
- package/resources/vektor/lend.mjs +0 -3
- package/resources/vektor/lend.mjs.map +0 -1
- package/resources/vektor/lock/index.d.mts +0 -4
- package/resources/vektor/lock/index.d.mts.map +0 -1
- package/resources/vektor/lock/index.d.ts +0 -4
- package/resources/vektor/lock/index.d.ts.map +0 -1
- package/resources/vektor/lock/index.js +0 -11
- package/resources/vektor/lock/index.js.map +0 -1
- package/resources/vektor/lock/index.mjs +0 -5
- package/resources/vektor/lock/index.mjs.map +0 -1
- package/resources/vektor/lock/lock.d.mts +0 -14
- package/resources/vektor/lock/lock.d.mts.map +0 -1
- package/resources/vektor/lock/lock.d.ts +0 -14
- package/resources/vektor/lock/lock.d.ts.map +0 -1
- package/resources/vektor/lock/lock.js +0 -21
- package/resources/vektor/lock/lock.js.map +0 -1
- package/resources/vektor/lock/lock.mjs +0 -16
- package/resources/vektor/lock/lock.mjs.map +0 -1
- package/resources/vektor/lock/markets.d.mts +0 -43
- package/resources/vektor/lock/markets.d.mts.map +0 -1
- package/resources/vektor/lock/markets.d.ts +0 -43
- package/resources/vektor/lock/markets.d.ts.map +0 -1
- package/resources/vektor/lock/markets.js +0 -24
- package/resources/vektor/lock/markets.js.map +0 -1
- package/resources/vektor/lock/markets.mjs +0 -20
- package/resources/vektor/lock/markets.mjs.map +0 -1
- package/resources/vektor/lock/positions.d.mts +0 -48
- package/resources/vektor/lock/positions.d.mts.map +0 -1
- package/resources/vektor/lock/positions.d.ts +0 -48
- package/resources/vektor/lock/positions.d.ts.map +0 -1
- package/resources/vektor/lock/positions.js +0 -25
- package/resources/vektor/lock/positions.js.map +0 -1
- package/resources/vektor/lock/positions.mjs +0 -21
- package/resources/vektor/lock/positions.mjs.map +0 -1
- package/resources/vektor/lock.d.mts +0 -2
- package/resources/vektor/lock.d.mts.map +0 -1
- package/resources/vektor/lock.d.ts +0 -2
- package/resources/vektor/lock.d.ts.map +0 -1
- package/resources/vektor/lock.js +0 -6
- package/resources/vektor/lock.js.map +0 -1
- package/resources/vektor/lock.mjs +0 -3
- package/resources/vektor/lock.mjs.map +0 -1
- package/resources/vektor/lp/deposit-quote.d.mts +0 -119
- package/resources/vektor/lp/deposit-quote.d.mts.map +0 -1
- package/resources/vektor/lp/deposit-quote.d.ts +0 -119
- package/resources/vektor/lp/deposit-quote.d.ts.map +0 -1
- package/resources/vektor/lp/deposit-quote.js +0 -27
- package/resources/vektor/lp/deposit-quote.js.map +0 -1
- package/resources/vektor/lp/deposit-quote.mjs +0 -23
- package/resources/vektor/lp/deposit-quote.mjs.map +0 -1
- package/resources/vektor/lp/index.d.mts +0 -6
- package/resources/vektor/lp/index.d.mts.map +0 -1
- package/resources/vektor/lp/index.d.ts +0 -6
- package/resources/vektor/lp/index.d.ts.map +0 -1
- package/resources/vektor/lp/index.js +0 -15
- package/resources/vektor/lp/index.js.map +0 -1
- package/resources/vektor/lp/index.mjs +0 -7
- package/resources/vektor/lp/index.mjs.map +0 -1
- package/resources/vektor/lp/lp.d.mts +0 -22
- package/resources/vektor/lp/lp.d.mts.map +0 -1
- package/resources/vektor/lp/lp.d.ts +0 -22
- package/resources/vektor/lp/lp.d.ts.map +0 -1
- package/resources/vektor/lp/lp.js +0 -29
- package/resources/vektor/lp/lp.js.map +0 -1
- package/resources/vektor/lp/lp.mjs +0 -24
- package/resources/vektor/lp/lp.mjs.map +0 -1
- package/resources/vektor/lp/pools.d.mts +0 -158
- package/resources/vektor/lp/pools.d.mts.map +0 -1
- package/resources/vektor/lp/pools.d.ts +0 -158
- package/resources/vektor/lp/pools.d.ts.map +0 -1
- package/resources/vektor/lp/pools.js +0 -42
- package/resources/vektor/lp/pools.js.map +0 -1
- package/resources/vektor/lp/pools.mjs +0 -38
- package/resources/vektor/lp/pools.mjs.map +0 -1
- package/resources/vektor/lp/positions.d.mts +0 -194
- package/resources/vektor/lp/positions.d.mts.map +0 -1
- package/resources/vektor/lp/positions.d.ts +0 -194
- package/resources/vektor/lp/positions.d.ts.map +0 -1
- package/resources/vektor/lp/positions.js +0 -46
- package/resources/vektor/lp/positions.js.map +0 -1
- package/resources/vektor/lp/positions.mjs +0 -42
- package/resources/vektor/lp/positions.mjs.map +0 -1
- package/resources/vektor/lp/withdraw-quote.d.mts +0 -73
- package/resources/vektor/lp/withdraw-quote.d.mts.map +0 -1
- package/resources/vektor/lp/withdraw-quote.d.ts +0 -73
- package/resources/vektor/lp/withdraw-quote.d.ts.map +0 -1
- package/resources/vektor/lp/withdraw-quote.js +0 -27
- package/resources/vektor/lp/withdraw-quote.js.map +0 -1
- package/resources/vektor/lp/withdraw-quote.mjs +0 -23
- package/resources/vektor/lp/withdraw-quote.mjs.map +0 -1
- package/resources/vektor/lp.d.mts +0 -2
- package/resources/vektor/lp.d.mts.map +0 -1
- package/resources/vektor/lp.d.ts +0 -2
- package/resources/vektor/lp.d.ts.map +0 -1
- package/resources/vektor/lp.js +0 -6
- package/resources/vektor/lp.js.map +0 -1
- package/resources/vektor/lp.mjs +0 -3
- package/resources/vektor/lp.mjs.map +0 -1
- package/resources/vektor/move.d.mts +0 -47
- package/resources/vektor/move.d.mts.map +0 -1
- package/resources/vektor/move.d.ts +0 -47
- package/resources/vektor/move.d.ts.map +0 -1
- package/resources/vektor/move.js +0 -26
- package/resources/vektor/move.js.map +0 -1
- package/resources/vektor/move.mjs +0 -22
- package/resources/vektor/move.mjs.map +0 -1
- package/resources/vektor/prices.d.mts +0 -77
- package/resources/vektor/prices.d.mts.map +0 -1
- package/resources/vektor/prices.d.ts +0 -77
- package/resources/vektor/prices.d.ts.map +0 -1
- package/resources/vektor/prices.js +0 -35
- package/resources/vektor/prices.js.map +0 -1
- package/resources/vektor/prices.mjs +0 -31
- package/resources/vektor/prices.mjs.map +0 -1
- package/resources/vektor/registry/assets.d.mts +0 -39
- package/resources/vektor/registry/assets.d.mts.map +0 -1
- package/resources/vektor/registry/assets.d.ts +0 -39
- package/resources/vektor/registry/assets.d.ts.map +0 -1
- package/resources/vektor/registry/assets.js +0 -20
- package/resources/vektor/registry/assets.js.map +0 -1
- package/resources/vektor/registry/assets.mjs +0 -16
- package/resources/vektor/registry/assets.mjs.map +0 -1
- package/resources/vektor/registry/blockchains.d.mts +0 -36
- package/resources/vektor/registry/blockchains.d.mts.map +0 -1
- package/resources/vektor/registry/blockchains.d.ts +0 -36
- package/resources/vektor/registry/blockchains.d.ts.map +0 -1
- package/resources/vektor/registry/blockchains.js +0 -21
- package/resources/vektor/registry/blockchains.js.map +0 -1
- package/resources/vektor/registry/blockchains.mjs +0 -17
- package/resources/vektor/registry/blockchains.mjs.map +0 -1
- package/resources/vektor/registry/borrow-markets.d.mts +0 -46
- package/resources/vektor/registry/borrow-markets.d.mts.map +0 -1
- package/resources/vektor/registry/borrow-markets.d.ts +0 -46
- package/resources/vektor/registry/borrow-markets.d.ts.map +0 -1
- package/resources/vektor/registry/borrow-markets.js +0 -22
- package/resources/vektor/registry/borrow-markets.js.map +0 -1
- package/resources/vektor/registry/borrow-markets.mjs +0 -18
- package/resources/vektor/registry/borrow-markets.mjs.map +0 -1
- package/resources/vektor/registry/errors.d.mts +0 -23
- package/resources/vektor/registry/errors.d.mts.map +0 -1
- package/resources/vektor/registry/errors.d.ts +0 -23
- package/resources/vektor/registry/errors.d.ts.map +0 -1
- package/resources/vektor/registry/errors.js +0 -21
- package/resources/vektor/registry/errors.js.map +0 -1
- package/resources/vektor/registry/errors.mjs +0 -17
- package/resources/vektor/registry/errors.mjs.map +0 -1
- package/resources/vektor/registry/index.d.mts +0 -9
- package/resources/vektor/registry/index.d.mts.map +0 -1
- package/resources/vektor/registry/index.d.ts +0 -9
- package/resources/vektor/registry/index.d.ts.map +0 -1
- package/resources/vektor/registry/index.js +0 -21
- package/resources/vektor/registry/index.js.map +0 -1
- package/resources/vektor/registry/index.mjs +0 -10
- package/resources/vektor/registry/index.mjs.map +0 -1
- package/resources/vektor/registry/lend-markets.d.mts +0 -46
- package/resources/vektor/registry/lend-markets.d.mts.map +0 -1
- package/resources/vektor/registry/lend-markets.d.ts +0 -46
- package/resources/vektor/registry/lend-markets.d.ts.map +0 -1
- package/resources/vektor/registry/lend-markets.js +0 -22
- package/resources/vektor/registry/lend-markets.js.map +0 -1
- package/resources/vektor/registry/lend-markets.mjs +0 -18
- package/resources/vektor/registry/lend-markets.mjs.map +0 -1
- package/resources/vektor/registry/lp-pools.d.mts +0 -44
- package/resources/vektor/registry/lp-pools.d.mts.map +0 -1
- package/resources/vektor/registry/lp-pools.d.ts +0 -44
- package/resources/vektor/registry/lp-pools.d.ts.map +0 -1
- package/resources/vektor/registry/lp-pools.js +0 -21
- package/resources/vektor/registry/lp-pools.js.map +0 -1
- package/resources/vektor/registry/lp-pools.mjs +0 -17
- package/resources/vektor/registry/lp-pools.mjs.map +0 -1
- package/resources/vektor/registry/registry.d.mts +0 -34
- package/resources/vektor/registry/registry.d.mts.map +0 -1
- package/resources/vektor/registry/registry.d.ts +0 -34
- package/resources/vektor/registry/registry.d.ts.map +0 -1
- package/resources/vektor/registry/registry.js +0 -41
- package/resources/vektor/registry/registry.js.map +0 -1
- package/resources/vektor/registry/registry.mjs +0 -36
- package/resources/vektor/registry/registry.mjs.map +0 -1
- package/resources/vektor/registry/venues.d.mts +0 -35
- package/resources/vektor/registry/venues.d.mts.map +0 -1
- package/resources/vektor/registry/venues.d.ts +0 -35
- package/resources/vektor/registry/venues.d.ts.map +0 -1
- package/resources/vektor/registry/venues.js +0 -20
- package/resources/vektor/registry/venues.js.map +0 -1
- package/resources/vektor/registry/venues.mjs +0 -16
- package/resources/vektor/registry/venues.mjs.map +0 -1
- package/resources/vektor/registry.d.mts +0 -2
- package/resources/vektor/registry.d.mts.map +0 -1
- package/resources/vektor/registry.d.ts +0 -2
- package/resources/vektor/registry.d.ts.map +0 -1
- package/resources/vektor/registry.js +0 -6
- package/resources/vektor/registry.js.map +0 -1
- package/resources/vektor/registry.mjs +0 -3
- package/resources/vektor/registry.mjs.map +0 -1
- package/resources/vektor/sell/index.d.mts +0 -4
- package/resources/vektor/sell/index.d.mts.map +0 -1
- package/resources/vektor/sell/index.d.ts +0 -4
- package/resources/vektor/sell/index.d.ts.map +0 -1
- package/resources/vektor/sell/index.js +0 -9
- package/resources/vektor/sell/index.js.map +0 -1
- package/resources/vektor/sell/index.mjs +0 -4
- package/resources/vektor/sell/index.mjs.map +0 -1
- package/resources/vektor/sell/quotes.d.mts +0 -57
- package/resources/vektor/sell/quotes.d.mts.map +0 -1
- package/resources/vektor/sell/quotes.d.ts +0 -57
- package/resources/vektor/sell/quotes.d.ts.map +0 -1
- package/resources/vektor/sell/quotes.js +0 -26
- package/resources/vektor/sell/quotes.js.map +0 -1
- package/resources/vektor/sell/quotes.mjs +0 -22
- package/resources/vektor/sell/quotes.mjs.map +0 -1
- package/resources/vektor/sell/sell.d.mts +0 -14
- package/resources/vektor/sell/sell.d.mts.map +0 -1
- package/resources/vektor/sell/sell.d.ts +0 -14
- package/resources/vektor/sell/sell.d.ts.map +0 -1
- package/resources/vektor/sell/sell.js +0 -21
- package/resources/vektor/sell/sell.js.map +0 -1
- package/resources/vektor/sell/sell.mjs +0 -16
- package/resources/vektor/sell/sell.mjs.map +0 -1
- package/resources/vektor/sell/sell_.d.mts +0 -56
- package/resources/vektor/sell/sell_.d.mts.map +0 -1
- package/resources/vektor/sell/sell_.d.ts +0 -56
- package/resources/vektor/sell/sell_.d.ts.map +0 -1
- package/resources/vektor/sell/sell_.js +0 -27
- package/resources/vektor/sell/sell_.js.map +0 -1
- package/resources/vektor/sell/sell_.mjs +0 -23
- package/resources/vektor/sell/sell_.mjs.map +0 -1
- package/resources/vektor/sell.d.mts +0 -2
- package/resources/vektor/sell.d.mts.map +0 -1
- package/resources/vektor/sell.d.ts +0 -2
- package/resources/vektor/sell.d.ts.map +0 -1
- package/resources/vektor/sell.js +0 -6
- package/resources/vektor/sell.js.map +0 -1
- package/resources/vektor/sell.mjs +0 -3
- package/resources/vektor/sell.mjs.map +0 -1
- package/resources/vektor/vektor.d.mts +0 -2963
- package/resources/vektor/vektor.d.mts.map +0 -1
- package/resources/vektor/vektor.d.ts +0 -2963
- package/resources/vektor/vektor.d.ts.map +0 -1
- package/resources/vektor/vektor.js +0 -73
- package/resources/vektor/vektor.js.map +0 -1
- package/resources/vektor/vektor.mjs +0 -68
- package/resources/vektor/vektor.mjs.map +0 -1
- package/resources/vektor/vote/index.d.mts +0 -4
- package/resources/vektor/vote/index.d.mts.map +0 -1
- package/resources/vektor/vote/index.d.ts +0 -4
- package/resources/vektor/vote/index.d.ts.map +0 -1
- package/resources/vektor/vote/index.js +0 -11
- package/resources/vektor/vote/index.js.map +0 -1
- package/resources/vektor/vote/index.mjs +0 -5
- package/resources/vektor/vote/index.mjs.map +0 -1
- package/resources/vektor/vote/markets.d.mts +0 -47
- package/resources/vektor/vote/markets.d.mts.map +0 -1
- package/resources/vektor/vote/markets.d.ts +0 -47
- package/resources/vektor/vote/markets.d.ts.map +0 -1
- package/resources/vektor/vote/markets.js +0 -24
- package/resources/vektor/vote/markets.js.map +0 -1
- package/resources/vektor/vote/markets.mjs +0 -20
- package/resources/vektor/vote/markets.mjs.map +0 -1
- package/resources/vektor/vote/rewards.d.mts +0 -52
- package/resources/vektor/vote/rewards.d.mts.map +0 -1
- package/resources/vektor/vote/rewards.d.ts +0 -52
- package/resources/vektor/vote/rewards.d.ts.map +0 -1
- package/resources/vektor/vote/rewards.js +0 -25
- package/resources/vektor/vote/rewards.js.map +0 -1
- package/resources/vektor/vote/rewards.mjs +0 -21
- package/resources/vektor/vote/rewards.mjs.map +0 -1
- package/resources/vektor/vote/vote.d.mts +0 -14
- package/resources/vektor/vote/vote.d.mts.map +0 -1
- package/resources/vektor/vote/vote.d.ts +0 -14
- package/resources/vektor/vote/vote.d.ts.map +0 -1
- package/resources/vektor/vote/vote.js +0 -21
- package/resources/vektor/vote/vote.js.map +0 -1
- package/resources/vektor/vote/vote.mjs +0 -16
- package/resources/vektor/vote/vote.mjs.map +0 -1
- package/resources/vektor/vote.d.mts +0 -2
- package/resources/vektor/vote.d.mts.map +0 -1
- package/resources/vektor/vote.d.ts +0 -2
- package/resources/vektor/vote.d.ts.map +0 -1
- package/resources/vektor/vote.js +0 -6
- package/resources/vektor/vote.js.map +0 -1
- package/resources/vektor/vote.mjs +0 -3
- package/resources/vektor/vote.mjs.map +0 -1
- package/resources/vektor/wrap/index.d.mts +0 -4
- package/resources/vektor/wrap/index.d.mts.map +0 -1
- package/resources/vektor/wrap/index.d.ts +0 -4
- package/resources/vektor/wrap/index.d.ts.map +0 -1
- package/resources/vektor/wrap/index.js +0 -9
- package/resources/vektor/wrap/index.js.map +0 -1
- package/resources/vektor/wrap/index.mjs +0 -4
- package/resources/vektor/wrap/index.mjs.map +0 -1
- package/resources/vektor/wrap/unwrap.d.mts +0 -37
- package/resources/vektor/wrap/unwrap.d.mts.map +0 -1
- package/resources/vektor/wrap/unwrap.d.ts +0 -37
- package/resources/vektor/wrap/unwrap.d.ts.map +0 -1
- package/resources/vektor/wrap/unwrap.js +0 -24
- package/resources/vektor/wrap/unwrap.js.map +0 -1
- package/resources/vektor/wrap/unwrap.mjs +0 -20
- package/resources/vektor/wrap/unwrap.mjs.map +0 -1
- package/resources/vektor/wrap/wrap.d.mts +0 -14
- package/resources/vektor/wrap/wrap.d.mts.map +0 -1
- package/resources/vektor/wrap/wrap.d.ts +0 -14
- package/resources/vektor/wrap/wrap.d.ts.map +0 -1
- package/resources/vektor/wrap/wrap.js +0 -21
- package/resources/vektor/wrap/wrap.js.map +0 -1
- package/resources/vektor/wrap/wrap.mjs +0 -16
- package/resources/vektor/wrap/wrap.mjs.map +0 -1
- package/resources/vektor/wrap/wrap_.d.mts +0 -37
- package/resources/vektor/wrap/wrap_.d.mts.map +0 -1
- package/resources/vektor/wrap/wrap_.d.ts +0 -37
- package/resources/vektor/wrap/wrap_.d.ts.map +0 -1
- package/resources/vektor/wrap/wrap_.js +0 -24
- package/resources/vektor/wrap/wrap_.js.map +0 -1
- package/resources/vektor/wrap/wrap_.mjs +0 -20
- package/resources/vektor/wrap/wrap_.mjs.map +0 -1
- package/resources/vektor/wrap.d.mts +0 -2
- package/resources/vektor/wrap.d.mts.map +0 -1
- package/resources/vektor/wrap.d.ts +0 -2
- package/resources/vektor/wrap.d.ts.map +0 -1
- package/resources/vektor/wrap.js +0 -6
- package/resources/vektor/wrap.js.map +0 -1
- package/resources/vektor/wrap.mjs +0 -3
- package/resources/vektor/wrap.mjs.map +0 -1
- package/resources/vektor.d.mts +0 -2
- package/resources/vektor.d.mts.map +0 -1
- package/resources/vektor.d.ts +0 -2
- package/resources/vektor.d.ts.map +0 -1
- package/resources/vektor.js +0 -6
- package/resources/vektor.js.map +0 -1
- package/resources/vektor.mjs +0 -3
- package/resources/vektor.mjs.map +0 -1
- package/src/resources/vektor/balances.ts +0 -146
- package/src/resources/vektor/borrow/accounts.ts +0 -146
- package/src/resources/vektor/borrow/borrow.ts +0 -75
- package/src/resources/vektor/borrow/borrow_.ts +0 -57
- package/src/resources/vektor/borrow/index.ts +0 -26
- package/src/resources/vektor/borrow/markets.ts +0 -205
- package/src/resources/vektor/borrow/positions.ts +0 -233
- package/src/resources/vektor/borrow/repay.ts +0 -57
- package/src/resources/vektor/borrow.ts +0 -3
- package/src/resources/vektor/bridge/bridge.ts +0 -19
- package/src/resources/vektor/bridge/index.ts +0 -4
- package/src/resources/vektor/bridge/quotes.ts +0 -69
- package/src/resources/vektor/bridge.ts +0 -3
- package/src/resources/vektor/buy/buy.ts +0 -25
- package/src/resources/vektor/buy/buy_.ts +0 -68
- package/src/resources/vektor/buy/index.ts +0 -5
- package/src/resources/vektor/buy/quotes.ts +0 -69
- package/src/resources/vektor/buy.ts +0 -3
- package/src/resources/vektor/executions/executions.ts +0 -57
- package/src/resources/vektor/executions/index.ts +0 -4
- package/src/resources/vektor/executions/steps.ts +0 -1384
- package/src/resources/vektor/executions.ts +0 -3
- package/src/resources/vektor/incentivize.ts +0 -60
- package/src/resources/vektor/index.ts +0 -30
- package/src/resources/vektor/lend/index.ts +0 -20
- package/src/resources/vektor/lend/lend.ts +0 -63
- package/src/resources/vektor/lend/lend_.ts +0 -57
- package/src/resources/vektor/lend/markets.ts +0 -205
- package/src/resources/vektor/lend/positions.ts +0 -229
- package/src/resources/vektor/lend/set-collateral.ts +0 -51
- package/src/resources/vektor/lend/withdraw.ts +0 -57
- package/src/resources/vektor/lend.ts +0 -3
- package/src/resources/vektor/lock/index.ts +0 -5
- package/src/resources/vektor/lock/lock.ts +0 -29
- package/src/resources/vektor/lock/markets.ts +0 -52
- package/src/resources/vektor/lock/positions.ts +0 -58
- package/src/resources/vektor/lock.ts +0 -3
- package/src/resources/vektor/lp/deposit-quote.ts +0 -147
- package/src/resources/vektor/lp/index.ts +0 -27
- package/src/resources/vektor/lp/lp.ts +0 -65
- package/src/resources/vektor/lp/pools.ts +0 -205
- package/src/resources/vektor/lp/positions.ts +0 -249
- package/src/resources/vektor/lp/withdraw-quote.ts +0 -90
- package/src/resources/vektor/lp.ts +0 -3
- package/src/resources/vektor/move.ts +0 -57
- package/src/resources/vektor/prices.ts +0 -102
- package/src/resources/vektor/registry/assets.ts +0 -51
- package/src/resources/vektor/registry/blockchains.ts +0 -50
- package/src/resources/vektor/registry/borrow-markets.ts +0 -62
- package/src/resources/vektor/registry/errors.ts +0 -32
- package/src/resources/vektor/registry/index.ts +0 -10
- package/src/resources/vektor/registry/lend-markets.ts +0 -62
- package/src/resources/vektor/registry/lp-pools.ts +0 -57
- package/src/resources/vektor/registry/registry.ts +0 -75
- package/src/resources/vektor/registry/venues.ts +0 -46
- package/src/resources/vektor/registry.ts +0 -3
- package/src/resources/vektor/sell/index.ts +0 -5
- package/src/resources/vektor/sell/quotes.ts +0 -69
- package/src/resources/vektor/sell/sell.ts +0 -25
- package/src/resources/vektor/sell/sell_.ts +0 -68
- package/src/resources/vektor/sell.ts +0 -3
- package/src/resources/vektor/vektor.ts +0 -3779
- package/src/resources/vektor/vote/index.ts +0 -5
- package/src/resources/vektor/vote/markets.ts +0 -57
- package/src/resources/vektor/vote/rewards.ts +0 -63
- package/src/resources/vektor/vote/vote.ts +0 -29
- package/src/resources/vektor/vote.ts +0 -3
- package/src/resources/vektor/wrap/index.ts +0 -5
- package/src/resources/vektor/wrap/unwrap.ts +0 -45
- package/src/resources/vektor/wrap/wrap.ts +0 -21
- package/src/resources/vektor/wrap/wrap_.ts +0 -45
- package/src/resources/vektor/wrap.ts +0 -3
- package/src/resources/vektor.ts +0 -3
|
@@ -1,178 +0,0 @@
|
|
|
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 Positions extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get info on lending positions
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const positions = await client.vektor.lend.positions.list({
|
|
12
|
-
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
13
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
14
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
15
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
list(body: PositionListParams, options?: RequestOptions): APIPromise<PositionListResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Get info on lending positions
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const response =
|
|
26
|
-
* await client.vektor.lend.positions.listHistorical({
|
|
27
|
-
* accounts: [
|
|
28
|
-
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
29
|
-
* ],
|
|
30
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
31
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
32
|
-
* from: '2021-01-01T12:00:00Z',
|
|
33
|
-
* to: '2021-01-01T12:00:00Z',
|
|
34
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
listHistorical(body: PositionListHistoricalParams, options?: RequestOptions): APIPromise<PositionListHistoricalResponse>;
|
|
39
|
-
}
|
|
40
|
-
export interface PositionListResponse {
|
|
41
|
-
/**
|
|
42
|
-
* A list of lend positions
|
|
43
|
-
*/
|
|
44
|
-
items: Array<VektorAPI.LendPosition>;
|
|
45
|
-
}
|
|
46
|
-
export interface PositionListHistoricalResponse {
|
|
47
|
-
/**
|
|
48
|
-
* A range of blockstamps
|
|
49
|
-
*/
|
|
50
|
-
historical: VektorAPI.OnChainHistoricalRange;
|
|
51
|
-
items: Array<PositionListHistoricalResponse.Item>;
|
|
52
|
-
}
|
|
53
|
-
export declare namespace PositionListHistoricalResponse {
|
|
54
|
-
interface Item {
|
|
55
|
-
/**
|
|
56
|
-
* Information about a specific block number and its timestamp
|
|
57
|
-
*/
|
|
58
|
-
blockstamp: VektorAPI.Blockstamp;
|
|
59
|
-
/**
|
|
60
|
-
* A list of lend positions
|
|
61
|
-
*/
|
|
62
|
-
items: Array<VektorAPI.LendPosition>;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
export type PositionListParams = PositionListParams.LendPositionsByVenuesAssetsRequestInput | PositionListParams.LendPositionsByIDsRequestInput;
|
|
66
|
-
export declare namespace PositionListParams {
|
|
67
|
-
interface LendPositionsByVenuesAssetsRequestInput {
|
|
68
|
-
/**
|
|
69
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
70
|
-
*/
|
|
71
|
-
accounts: Array<VektorAPI.Account>;
|
|
72
|
-
/**
|
|
73
|
-
* A list of asset IDs, EVM addresses or asset symbols
|
|
74
|
-
*/
|
|
75
|
-
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
76
|
-
/**
|
|
77
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
78
|
-
*/
|
|
79
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
80
|
-
/**
|
|
81
|
-
* A list of venue IDs or venue symbols
|
|
82
|
-
*/
|
|
83
|
-
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
84
|
-
/**
|
|
85
|
-
* Either a ISO8601 timestamp or a block number
|
|
86
|
-
*/
|
|
87
|
-
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
88
|
-
/**
|
|
89
|
-
* An asset symbol
|
|
90
|
-
*/
|
|
91
|
-
quote_asset_symbol?: string | null;
|
|
92
|
-
}
|
|
93
|
-
interface LendPositionsByIDsRequestInput {
|
|
94
|
-
/**
|
|
95
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
96
|
-
*/
|
|
97
|
-
accounts: Array<VektorAPI.Account>;
|
|
98
|
-
/**
|
|
99
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
100
|
-
*/
|
|
101
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
102
|
-
/**
|
|
103
|
-
* A list of lend/borrow market IDs
|
|
104
|
-
*/
|
|
105
|
-
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
106
|
-
/**
|
|
107
|
-
* Either a ISO8601 timestamp or a block number
|
|
108
|
-
*/
|
|
109
|
-
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
110
|
-
/**
|
|
111
|
-
* An asset symbol
|
|
112
|
-
*/
|
|
113
|
-
quote_asset_symbol?: string | null;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export type PositionListHistoricalParams = PositionListHistoricalParams.HistoricalLendPositionsByVenuesAssetsRequest | PositionListHistoricalParams.HistoricalLendPositionsByIDsRequest;
|
|
117
|
-
export declare namespace PositionListHistoricalParams {
|
|
118
|
-
interface HistoricalLendPositionsByVenuesAssetsRequest {
|
|
119
|
-
/**
|
|
120
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
121
|
-
*/
|
|
122
|
-
accounts: Array<VektorAPI.Account>;
|
|
123
|
-
/**
|
|
124
|
-
* A list of asset IDs, EVM addresses or asset symbols
|
|
125
|
-
*/
|
|
126
|
-
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
127
|
-
/**
|
|
128
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
129
|
-
*/
|
|
130
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
131
|
-
/**
|
|
132
|
-
* Either a ISO8601 timestamp or a block number
|
|
133
|
-
*/
|
|
134
|
-
from: VektorAPI.TimestampOrBlockNumber;
|
|
135
|
-
/**
|
|
136
|
-
* Either a ISO8601 timestamp or a block number
|
|
137
|
-
*/
|
|
138
|
-
to: VektorAPI.TimestampOrBlockNumber;
|
|
139
|
-
/**
|
|
140
|
-
* A list of venue IDs or venue symbols
|
|
141
|
-
*/
|
|
142
|
-
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
143
|
-
/**
|
|
144
|
-
* An asset symbol
|
|
145
|
-
*/
|
|
146
|
-
quote_asset_symbol?: string | null;
|
|
147
|
-
}
|
|
148
|
-
interface HistoricalLendPositionsByIDsRequest {
|
|
149
|
-
/**
|
|
150
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
151
|
-
*/
|
|
152
|
-
accounts: Array<VektorAPI.Account>;
|
|
153
|
-
/**
|
|
154
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
155
|
-
*/
|
|
156
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
157
|
-
/**
|
|
158
|
-
* Either a ISO8601 timestamp or a block number
|
|
159
|
-
*/
|
|
160
|
-
from: VektorAPI.TimestampOrBlockNumber;
|
|
161
|
-
/**
|
|
162
|
-
* A list of lend/borrow market IDs
|
|
163
|
-
*/
|
|
164
|
-
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
165
|
-
/**
|
|
166
|
-
* Either a ISO8601 timestamp or a block number
|
|
167
|
-
*/
|
|
168
|
-
to: VektorAPI.TimestampOrBlockNumber;
|
|
169
|
-
/**
|
|
170
|
-
* An asset symbol
|
|
171
|
-
*/
|
|
172
|
-
quote_asset_symbol?: string | null;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
export declare namespace Positions {
|
|
176
|
-
export { type PositionListResponse as PositionListResponse, type PositionListHistoricalResponse as PositionListHistoricalResponse, type PositionListParams as PositionListParams, type PositionListHistoricalParams as PositionListHistoricalParams, };
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=positions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/lend/positions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,178 +0,0 @@
|
|
|
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 Positions extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get info on lending positions
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const positions = await client.vektor.lend.positions.list({
|
|
12
|
-
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
13
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
14
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
15
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
list(body: PositionListParams, options?: RequestOptions): APIPromise<PositionListResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Get info on lending positions
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const response =
|
|
26
|
-
* await client.vektor.lend.positions.listHistorical({
|
|
27
|
-
* accounts: [
|
|
28
|
-
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
29
|
-
* ],
|
|
30
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
31
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
32
|
-
* from: '2021-01-01T12:00:00Z',
|
|
33
|
-
* to: '2021-01-01T12:00:00Z',
|
|
34
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
listHistorical(body: PositionListHistoricalParams, options?: RequestOptions): APIPromise<PositionListHistoricalResponse>;
|
|
39
|
-
}
|
|
40
|
-
export interface PositionListResponse {
|
|
41
|
-
/**
|
|
42
|
-
* A list of lend positions
|
|
43
|
-
*/
|
|
44
|
-
items: Array<VektorAPI.LendPosition>;
|
|
45
|
-
}
|
|
46
|
-
export interface PositionListHistoricalResponse {
|
|
47
|
-
/**
|
|
48
|
-
* A range of blockstamps
|
|
49
|
-
*/
|
|
50
|
-
historical: VektorAPI.OnChainHistoricalRange;
|
|
51
|
-
items: Array<PositionListHistoricalResponse.Item>;
|
|
52
|
-
}
|
|
53
|
-
export declare namespace PositionListHistoricalResponse {
|
|
54
|
-
interface Item {
|
|
55
|
-
/**
|
|
56
|
-
* Information about a specific block number and its timestamp
|
|
57
|
-
*/
|
|
58
|
-
blockstamp: VektorAPI.Blockstamp;
|
|
59
|
-
/**
|
|
60
|
-
* A list of lend positions
|
|
61
|
-
*/
|
|
62
|
-
items: Array<VektorAPI.LendPosition>;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
export type PositionListParams = PositionListParams.LendPositionsByVenuesAssetsRequestInput | PositionListParams.LendPositionsByIDsRequestInput;
|
|
66
|
-
export declare namespace PositionListParams {
|
|
67
|
-
interface LendPositionsByVenuesAssetsRequestInput {
|
|
68
|
-
/**
|
|
69
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
70
|
-
*/
|
|
71
|
-
accounts: Array<VektorAPI.Account>;
|
|
72
|
-
/**
|
|
73
|
-
* A list of asset IDs, EVM addresses or asset symbols
|
|
74
|
-
*/
|
|
75
|
-
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
76
|
-
/**
|
|
77
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
78
|
-
*/
|
|
79
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
80
|
-
/**
|
|
81
|
-
* A list of venue IDs or venue symbols
|
|
82
|
-
*/
|
|
83
|
-
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
84
|
-
/**
|
|
85
|
-
* Either a ISO8601 timestamp or a block number
|
|
86
|
-
*/
|
|
87
|
-
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
88
|
-
/**
|
|
89
|
-
* An asset symbol
|
|
90
|
-
*/
|
|
91
|
-
quote_asset_symbol?: string | null;
|
|
92
|
-
}
|
|
93
|
-
interface LendPositionsByIDsRequestInput {
|
|
94
|
-
/**
|
|
95
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
96
|
-
*/
|
|
97
|
-
accounts: Array<VektorAPI.Account>;
|
|
98
|
-
/**
|
|
99
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
100
|
-
*/
|
|
101
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
102
|
-
/**
|
|
103
|
-
* A list of lend/borrow market IDs
|
|
104
|
-
*/
|
|
105
|
-
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
106
|
-
/**
|
|
107
|
-
* Either a ISO8601 timestamp or a block number
|
|
108
|
-
*/
|
|
109
|
-
at?: VektorAPI.Timestamp | VektorAPI.BlockNumber;
|
|
110
|
-
/**
|
|
111
|
-
* An asset symbol
|
|
112
|
-
*/
|
|
113
|
-
quote_asset_symbol?: string | null;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
export type PositionListHistoricalParams = PositionListHistoricalParams.HistoricalLendPositionsByVenuesAssetsRequest | PositionListHistoricalParams.HistoricalLendPositionsByIDsRequest;
|
|
117
|
-
export declare namespace PositionListHistoricalParams {
|
|
118
|
-
interface HistoricalLendPositionsByVenuesAssetsRequest {
|
|
119
|
-
/**
|
|
120
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
121
|
-
*/
|
|
122
|
-
accounts: Array<VektorAPI.Account>;
|
|
123
|
-
/**
|
|
124
|
-
* A list of asset IDs, EVM addresses or asset symbols
|
|
125
|
-
*/
|
|
126
|
-
assets: Array<VektorAPI.AssetIDOrAddressEVMOrAssetSymbol>;
|
|
127
|
-
/**
|
|
128
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
129
|
-
*/
|
|
130
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
131
|
-
/**
|
|
132
|
-
* Either a ISO8601 timestamp or a block number
|
|
133
|
-
*/
|
|
134
|
-
from: VektorAPI.TimestampOrBlockNumber;
|
|
135
|
-
/**
|
|
136
|
-
* Either a ISO8601 timestamp or a block number
|
|
137
|
-
*/
|
|
138
|
-
to: VektorAPI.TimestampOrBlockNumber;
|
|
139
|
-
/**
|
|
140
|
-
* A list of venue IDs or venue symbols
|
|
141
|
-
*/
|
|
142
|
-
venues: Array<VektorAPI.VenueIDOrVenueSymbol>;
|
|
143
|
-
/**
|
|
144
|
-
* An asset symbol
|
|
145
|
-
*/
|
|
146
|
-
quote_asset_symbol?: string | null;
|
|
147
|
-
}
|
|
148
|
-
interface HistoricalLendPositionsByIDsRequest {
|
|
149
|
-
/**
|
|
150
|
-
* A list of accounts. Currently only EVM addresses are supported.
|
|
151
|
-
*/
|
|
152
|
-
accounts: Array<VektorAPI.Account>;
|
|
153
|
-
/**
|
|
154
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
155
|
-
*/
|
|
156
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
157
|
-
/**
|
|
158
|
-
* Either a ISO8601 timestamp or a block number
|
|
159
|
-
*/
|
|
160
|
-
from: VektorAPI.TimestampOrBlockNumber;
|
|
161
|
-
/**
|
|
162
|
-
* A list of lend/borrow market IDs
|
|
163
|
-
*/
|
|
164
|
-
market_ids: Array<VektorAPI.LendBorrowMarketID>;
|
|
165
|
-
/**
|
|
166
|
-
* Either a ISO8601 timestamp or a block number
|
|
167
|
-
*/
|
|
168
|
-
to: VektorAPI.TimestampOrBlockNumber;
|
|
169
|
-
/**
|
|
170
|
-
* An asset symbol
|
|
171
|
-
*/
|
|
172
|
-
quote_asset_symbol?: string | null;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
export declare namespace Positions {
|
|
176
|
-
export { type PositionListResponse as PositionListResponse, type PositionListHistoricalResponse as PositionListHistoricalResponse, type PositionListParams as PositionListParams, type PositionListHistoricalParams as PositionListHistoricalParams, };
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=positions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/lend/positions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI1F;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CACZ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,UAAU,EAAE,SAAS,CAAC,sBAAsB,CAAC;IAE7C,KAAK,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;CACnD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;QAEjC;;WAEG;QACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;KACtC;CACF;AAED,MAAM,MAAM,kBAAkB,GAC1B,kBAAkB,CAAC,uCAAuC,GAC1D,kBAAkB,CAAC,8BAA8B,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,UAAiB,uCAAuC;QACtD;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAEnC;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QAE1D;;WAEG;QACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;QAErD;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAE9C;;WAEG;QACH,EAAE,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC;QAEjD;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACpC;IAED,UAAiB,8BAA8B;QAC7C;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAEnC;;WAEG;QACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;QAErD;;WAEG;QACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAEhD;;WAEG;QACH,EAAE,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,WAAW,CAAC;QAEjD;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACpC;CACF;AAED,MAAM,MAAM,4BAA4B,GACpC,4BAA4B,CAAC,4CAA4C,GACzE,4BAA4B,CAAC,mCAAmC,CAAC;AAErE,MAAM,CAAC,OAAO,WAAW,4BAA4B,CAAC;IACpD,UAAiB,4CAA4C;QAC3D;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAEnC;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;QAE1D;;WAEG;QACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;QAErD;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC,sBAAsB,CAAC;QAEvC;;WAEG;QACH,EAAE,EAAE,SAAS,CAAC,sBAAsB,CAAC;QAErC;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAE9C;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACpC;IAED,UAAiB,mCAAmC;QAClD;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAEnC;;WAEG;QACH,UAAU,EAAE,SAAS,CAAC,8BAA8B,CAAC;QAErD;;WAEG;QACH,IAAI,EAAE,SAAS,CAAC,sBAAsB,CAAC;QAEvC;;WAEG;QACH,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAEhD;;WAEG;QACH,EAAE,EAAE,SAAS,CAAC,sBAAsB,CAAC;QAErC;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACpC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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.Positions = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class Positions extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Get info on lending positions
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const positions = await client.vektor.lend.positions.list({
|
|
13
|
-
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
14
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
15
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
16
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
list(body, options) {
|
|
21
|
-
return this._client.post('/v1/vektor/lend/positions', { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Get info on lending positions
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const response =
|
|
29
|
-
* await client.vektor.lend.positions.listHistorical({
|
|
30
|
-
* accounts: [
|
|
31
|
-
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
32
|
-
* ],
|
|
33
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
34
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
35
|
-
* from: '2021-01-01T12:00:00Z',
|
|
36
|
-
* to: '2021-01-01T12:00:00Z',
|
|
37
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
listHistorical(body, options) {
|
|
42
|
-
return this._client.post('/v1/vektor/lend/positions/historical', { body, ...options });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.Positions = Positions;
|
|
46
|
-
//# sourceMappingURL=positions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../src/resources/vektor/lend/positions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,IAAwB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CACZ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA1CD,8BA0CC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
export class Positions extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Get info on lending positions
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const positions = await client.vektor.lend.positions.list({
|
|
10
|
-
* accounts: ['0x6b175474e89094c44da98b954eedeac495271d0f'],
|
|
11
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
12
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
13
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
list(body, options) {
|
|
18
|
-
return this._client.post('/v1/vektor/lend/positions', { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get info on lending positions
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const response =
|
|
26
|
-
* await client.vektor.lend.positions.listHistorical({
|
|
27
|
-
* accounts: [
|
|
28
|
-
* '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
29
|
-
* ],
|
|
30
|
-
* assets: ['asset_01jbz9qc00f8wr64hfe459gb7y'],
|
|
31
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
32
|
-
* from: '2021-01-01T12:00:00Z',
|
|
33
|
-
* to: '2021-01-01T12:00:00Z',
|
|
34
|
-
* venues: ['venue_01jbz9qc18evw86sg8m0sj9jg5'],
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
listHistorical(body, options) {
|
|
39
|
-
return this._client.post('/v1/vektor/lend/positions/historical', { body, ...options });
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=positions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/lend/positions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,IAAwB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CACZ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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 SetCollateral extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Enable/disable a specific lending position to be used as collateral
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const execution =
|
|
12
|
-
* await client.vektor.lend.setCollateral.create({
|
|
13
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
14
|
-
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
15
|
-
* market_id:
|
|
16
|
-
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
17
|
-
* status: true,
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
create(body: SetCollateralCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
22
|
-
}
|
|
23
|
-
export interface SetCollateralCreateParams {
|
|
24
|
-
/**
|
|
25
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
26
|
-
*/
|
|
27
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
28
|
-
/**
|
|
29
|
-
* An EVM address
|
|
30
|
-
*/
|
|
31
|
-
from: VektorAPI.Account;
|
|
32
|
-
/**
|
|
33
|
-
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
34
|
-
* prefix
|
|
35
|
-
*/
|
|
36
|
-
market_id: VektorAPI.LendBorrowMarketID;
|
|
37
|
-
status: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare namespace SetCollateral {
|
|
40
|
-
export { type SetCollateralCreateParams as SetCollateralCreateParams };
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=set-collateral.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-collateral.d.mts","sourceRoot":"","sources":["../../../src/resources/vektor/lend/set-collateral.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAGnG;AAED,MAAM,WAAW,yBAAyB;IACxC;;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,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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 SetCollateral extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Enable/disable a specific lending position to be used as collateral
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const execution =
|
|
12
|
-
* await client.vektor.lend.setCollateral.create({
|
|
13
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
14
|
-
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
15
|
-
* market_id:
|
|
16
|
-
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
17
|
-
* status: true,
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
create(body: SetCollateralCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
22
|
-
}
|
|
23
|
-
export interface SetCollateralCreateParams {
|
|
24
|
-
/**
|
|
25
|
-
* A blockchain ID, represented as a TypeID with `blockchain` prefix
|
|
26
|
-
*/
|
|
27
|
-
blockchain: VektorAPI.BlockchainIDOrBlockchainSymbol;
|
|
28
|
-
/**
|
|
29
|
-
* An EVM address
|
|
30
|
-
*/
|
|
31
|
-
from: VektorAPI.Account;
|
|
32
|
-
/**
|
|
33
|
-
* A lend/borrow market ID, represented as a TypeID with `lend_borrow_market`
|
|
34
|
-
* prefix
|
|
35
|
-
*/
|
|
36
|
-
market_id: VektorAPI.LendBorrowMarketID;
|
|
37
|
-
status: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare namespace SetCollateral {
|
|
40
|
-
export { type SetCollateralCreateParams as SetCollateralCreateParams };
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=set-collateral.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-collateral.d.ts","sourceRoot":"","sources":["../../../src/resources/vektor/lend/set-collateral.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC;CAGnG;AAED,MAAM,WAAW,yBAAyB;IACxC;;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,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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.SetCollateral = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class SetCollateral extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Enable/disable a specific lending position to be used as collateral
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const execution =
|
|
13
|
-
* await client.vektor.lend.setCollateral.create({
|
|
14
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
15
|
-
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
16
|
-
* market_id:
|
|
17
|
-
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
18
|
-
* status: true,
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body, options) {
|
|
23
|
-
return this._client.post('/v1/vektor/lend/set_collateral', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.SetCollateral = SetCollateral;
|
|
27
|
-
//# sourceMappingURL=set-collateral.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-collateral.js","sourceRoot":"","sources":["../../../src/resources/vektor/lend/set-collateral.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAnBD,sCAmBC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
export class SetCollateral extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Enable/disable a specific lending position to be used as collateral
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const execution =
|
|
10
|
-
* await client.vektor.lend.setCollateral.create({
|
|
11
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
12
|
-
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
13
|
-
* market_id:
|
|
14
|
-
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
15
|
-
* status: true,
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(body, options) {
|
|
20
|
-
return this._client.post('/v1/vektor/lend/set_collateral', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=set-collateral.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-collateral.mjs","sourceRoot":"","sources":["../../../src/resources/vektor/lend/set-collateral.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 Withdraw extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Withdraw an asset
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const execution = await client.vektor.lend.withdraw.create({
|
|
12
|
-
* blockchain: 'blockchain_01jbz9nsy8egar70jg79dkwmaf',
|
|
13
|
-
* from: '0x6b175474e89094c44da98b954eedeac495271d0f',
|
|
14
|
-
* market_id:
|
|
15
|
-
* 'lend_borrow_market_01h455vb4pex5vsknk084sn02q',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
create(body: WithdrawCreateParams, options?: RequestOptions): APIPromise<VektorAPI.Execution>;
|
|
20
|
-
}
|
|
21
|
-
export interface WithdrawCreateParams {
|
|
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 Withdraw {
|
|
45
|
-
export { type WithdrawCreateParams as WithdrawCreateParams };
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=withdraw.d.mts.map
|