@northstake/northstakeapi 1.0.13 → 1.0.14
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/.openapi-generator/FILES +13 -16
- package/api/depositAddressesApi.ts +4 -4
- package/api/linkedWalletsApi.ts +2 -2
- package/api/managedUsersApi.ts +28 -28
- package/api/managedUsersDepositAddressesApi.ts +5 -5
- package/api/managedUsersLinkedWalletsApi.ts +15 -15
- package/api/managedUsersOrdersApi.ts +16 -16
- package/api/managedUsersPortfolioApi.ts +2 -2
- package/api/managedUsersTransactionsApi.ts +11 -11
- package/api/managedUsersValidatorsApi.ts +2 -2
- package/api/ordersApi.ts +7 -7
- package/api/transactionsApi.ts +6 -6
- package/api/validatorMarketplaceBuyersApi.ts +3 -3
- package/api/validatorMarketplaceSellersApi.ts +3 -3
- package/api/validatorsApi.ts +5 -5
- package/api.ts +13 -16
- package/dist/api/depositAddressesApi.d.ts +3 -3
- package/dist/api/depositAddressesApi.js +1 -1
- package/dist/api/linkedWalletsApi.d.ts +2 -2
- package/dist/api/managedUsersApi.d.ts +11 -11
- package/dist/api/managedUsersApi.js +24 -24
- package/dist/api/managedUsersDepositAddressesApi.d.ts +3 -3
- package/dist/api/managedUsersDepositAddressesApi.js +3 -3
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +6 -6
- package/dist/api/managedUsersLinkedWalletsApi.js +13 -13
- package/dist/api/managedUsersOrdersApi.d.ts +6 -6
- package/dist/api/managedUsersOrdersApi.js +15 -15
- package/dist/api/managedUsersPortfolioApi.d.ts +1 -1
- package/dist/api/managedUsersPortfolioApi.js +2 -2
- package/dist/api/managedUsersTransactionsApi.d.ts +7 -7
- package/dist/api/managedUsersTransactionsApi.js +5 -5
- package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
- package/dist/api/managedUsersValidatorsApi.js +2 -2
- package/dist/api/ordersApi.d.ts +3 -3
- package/dist/api/ordersApi.js +6 -6
- package/dist/api/transactionsApi.d.ts +4 -4
- package/dist/api/transactionsApi.js +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.js +1 -1
- package/dist/api/validatorMarketplaceSellersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceSellersApi.js +1 -1
- package/dist/api/validatorsApi.d.ts +3 -3
- package/dist/api/validatorsApi.js +2 -2
- package/dist/api.d.ts +13 -16
- package/dist/api.js +13 -16
- package/dist/model/accountEntity.d.ts +2 -0
- package/dist/model/accountEntity.js +5 -0
- package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
- package/dist/model/{addLinkedWalletForManagedUserRequest.js → addLinkedWalletForUserRequest.js} +7 -7
- package/dist/model/addLinkedWalletRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletRequest.js +1 -1
- package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -1
- package/dist/model/depositAccount.d.ts +2 -2
- package/dist/model/depositAccount.js +1 -1
- package/dist/model/{depositAddressesForManagedUserResponse.d.ts → depositAddressesForUserResponse.d.ts} +1 -1
- package/dist/model/{depositAddressesForManagedUserResponse.js → depositAddressesForUserResponse.js} +6 -6
- package/dist/model/models.d.ts +13 -16
- package/dist/model/models.js +23 -40
- package/dist/model/{newOrderRequest.d.ts → order.d.ts} +8 -14
- package/dist/model/{newOrderRequest.js → order.js} +7 -7
- package/dist/model/orderDocument.d.ts +2 -2
- package/dist/model/orderDocument.js +1 -1
- package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.d.ts} +4 -1
- package/dist/model/portfolioEntity.d.ts +2 -2
- package/dist/model/portfolioEntity.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +2 -2
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +2 -2
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
- package/dist/model/rFQDocumentSeller.d.ts +2 -2
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +12 -0
- package/dist/model/{baseOrder.d.ts → smartContract.d.ts} +12 -18
- package/dist/model/smartContract.js +56 -0
- package/dist/model/transaction.d.ts +4 -4
- package/dist/model/transaction.js +2 -2
- package/dist/model/{transactionEventTypeEnum.d.ts → transactionEventType.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.d.ts → transactionsforUser.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.js → transactionsforUser.js} +6 -6
- package/dist/model/validatorContractType.d.ts +12 -0
- package/dist/model/validatorInfoValidatorType.d.ts +2 -2
- package/dist/model/validatorInfoValidatorType.js +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
- package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
- package/dist/model/{validatorKeyHolderEnum.d.ts → validatorKeyHolder.d.ts} +1 -1
- package/dist/model/validatorKeyHolder.js +13 -0
- package/model/accountEntity.ts +7 -0
- package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +6 -6
- package/model/addLinkedWalletRequest.ts +3 -3
- package/model/{tokenEnum.ts → asset.ts} +1 -1
- package/model/depositAccount.ts +3 -3
- package/model/{depositAddressesForManagedUserResponse.ts → depositAddressesForUserResponse.ts} +2 -2
- package/model/models.ts +33 -55
- package/model/{stakeOrder.ts → order.ts} +19 -19
- package/model/orderDocument.ts +3 -3
- package/model/orderType.ts +21 -0
- package/model/portfolioEntity.ts +3 -3
- package/model/rFQDocumentBase.ts +3 -3
- package/model/rFQDocumentBuyer.ts +3 -3
- package/model/{rFQDocumentBuyerStatusFilterEnum.ts → rFQDocumentBuyerStatusFilter.ts} +1 -1
- package/model/rFQDocumentSeller.ts +3 -3
- package/model/{rFQDocumentSellerStatusFilterEnum.ts → rFQDocumentSellerStatusFilter.ts} +1 -1
- package/model/{rFQDocumentStatusEnum.ts → rFQDocumentStatus.ts} +1 -1
- package/model/smartContract.ts +67 -0
- package/model/transaction.ts +6 -6
- package/model/{transactionEventTypeEnum.ts → transactionEventType.ts} +1 -1
- package/model/{transactionsForManagedUser.ts → transactionsforUser.ts} +2 -2
- package/model/{validatorContractTypeEnum.ts → validatorContractType.ts} +1 -1
- package/model/validatorInfoValidatorType.ts +3 -3
- package/model/validatorInfoValidatorTypeContract.ts +3 -3
- package/model/{validatorKeyHolderEnum.ts → validatorKeyHolder.ts} +1 -1
- package/package.json +2 -2
- package/dist/model/baseOrder.js +0 -38
- package/dist/model/createOrderForManagedUserRequest.d.ts +0 -48
- package/dist/model/createOrderForManagedUserRequest.js +0 -48
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -12
- package/dist/model/stakeOrder.d.ts +0 -44
- package/dist/model/stakeOrder.js +0 -46
- package/dist/model/unstakeOrder.d.ts +0 -42
- package/dist/model/unstakeOrder.js +0 -38
- package/dist/model/validatorContractTypeEnum.d.ts +0 -12
- package/dist/model/withdrawalOrder.d.ts +0 -46
- package/dist/model/withdrawalOrder.js +0 -43
- package/model/baseOrder.ts +0 -61
- package/model/createOrderForManagedUserRequest.ts +0 -80
- package/model/newOrderRequest.ts +0 -80
- package/model/unstakeOrder.ts +0 -61
- package/model/withdrawalOrder.ts +0 -70
- /package/dist/model/{rFQDocumentBuyerStatusFilterEnum.js → asset.js} +0 -0
- /package/dist/model/{rFQDocumentSellerStatusFilterEnum.js → orderType.js} +0 -0
- /package/dist/model/{rFQDocumentStatusEnum.js → rFQDocumentBuyerStatusFilter.js} +0 -0
- /package/dist/model/{tokenEnum.js → rFQDocumentSellerStatusFilter.js} +0 -0
- /package/dist/model/{transactionEventTypeEnum.js → rFQDocumentStatus.js} +0 -0
- /package/dist/model/{validatorContractTypeEnum.js → transactionEventType.js} +0 -0
- /package/dist/model/{validatorKeyHolderEnum.js → validatorContractType.js} +0 -0
|
@@ -10,24 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
13
|
-
|
|
13
|
+
import { OrderType } from './orderType';
|
|
14
|
+
export declare class Order {
|
|
15
|
+
'orderType': OrderType;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
'orderType': NewOrderRequest;
|
|
18
|
-
/**
|
|
19
|
-
* assetId of the order - e.g., ETH, SOL.
|
|
17
|
+
* Asset ID of the order, e.g., ETH, SOL.
|
|
20
18
|
*/
|
|
21
19
|
'asset': string;
|
|
22
20
|
/**
|
|
23
|
-
* Order amount.
|
|
21
|
+
* Order amount, specified in smallest unit of the asset.
|
|
24
22
|
*/
|
|
25
23
|
'amount'?: number;
|
|
26
24
|
'validatorKey'?: EthereumValidatorKey | null;
|
|
27
25
|
/**
|
|
28
|
-
* Target wallet address for withdrawal orders
|
|
26
|
+
* Target wallet address for withdrawal orders, required for withdrawal type.
|
|
29
27
|
*/
|
|
30
|
-
'targetWallet'?: string;
|
|
28
|
+
'targetWallet'?: string | null;
|
|
31
29
|
static discriminator: string | undefined;
|
|
32
30
|
static attributeTypeMap: Array<{
|
|
33
31
|
name: string;
|
|
@@ -40,9 +38,5 @@ export declare class NewOrderRequest {
|
|
|
40
38
|
type: string;
|
|
41
39
|
}[];
|
|
42
40
|
}
|
|
43
|
-
export declare namespace
|
|
44
|
-
/**
|
|
45
|
-
* Type of the order - can only be stake, unstake, or withdraw.
|
|
46
|
-
*/
|
|
47
|
-
type orderTypeEnum = 'stake' | 'unstake' | 'withdraw';
|
|
41
|
+
export declare namespace Order {
|
|
48
42
|
}
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
14
|
+
exports.Order = void 0;
|
|
15
|
+
class Order {
|
|
16
16
|
static getAttributeTypeMap() {
|
|
17
|
-
return
|
|
17
|
+
return Order.attributeTypeMap;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
exports.Order = Order;
|
|
21
|
+
Order.discriminator = undefined;
|
|
22
|
+
Order.attributeTypeMap = [
|
|
23
23
|
{
|
|
24
24
|
"name": "orderType",
|
|
25
25
|
"baseName": "orderType",
|
|
26
|
-
"type": "
|
|
26
|
+
"type": "OrderType"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "asset",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { Asset } from './asset';
|
|
12
13
|
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
13
14
|
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
14
|
-
import { TokenEnum } from './tokenEnum';
|
|
15
15
|
import { Wallet } from './wallet';
|
|
16
16
|
/**
|
|
17
17
|
* Detailed information about a specific order.
|
|
@@ -21,7 +21,7 @@ export declare class OrderDocument {
|
|
|
21
21
|
'userId': string;
|
|
22
22
|
'type': OrderDocument;
|
|
23
23
|
'amount'?: number;
|
|
24
|
-
'asset':
|
|
24
|
+
'asset': Asset;
|
|
25
25
|
'status'?: OrderDocument;
|
|
26
26
|
'targetWallet'?: Wallet;
|
|
27
27
|
'validatorKey'?: EthereumValidatorKey | null;
|
|
@@ -9,4 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Supported order types.
|
|
14
|
+
*/
|
|
15
|
+
export type OrderType = 'stake' | 'unstake' | 'withdraw';
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { Asset } from './asset';
|
|
13
13
|
/**
|
|
14
14
|
* Overview of a managed user\'s account portfolio.
|
|
15
15
|
*/
|
|
16
16
|
export declare class PortfolioEntity {
|
|
17
|
-
'asset':
|
|
17
|
+
'asset': Asset;
|
|
18
18
|
'totalAmount': string;
|
|
19
19
|
'stakedAmount': string;
|
|
20
20
|
static discriminator: string | undefined;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
13
|
-
import {
|
|
13
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
14
14
|
import { SettlementSteps } from './settlementSteps';
|
|
15
15
|
export declare class RFQDocumentBase {
|
|
16
16
|
'id': string;
|
|
17
|
-
'status':
|
|
17
|
+
'status': RFQDocumentStatus;
|
|
18
18
|
'total_balance': number;
|
|
19
19
|
'payment_address': string;
|
|
20
20
|
'estimated_all_validators_exited_at': Date;
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
import { Quote } from './quote';
|
|
13
13
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
14
14
|
import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidators';
|
|
15
|
-
import {
|
|
15
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
16
16
|
import { SettlementSteps } from './settlementSteps';
|
|
17
17
|
export declare class RFQDocumentBuyer {
|
|
18
18
|
'id': string;
|
|
19
|
-
'status':
|
|
19
|
+
'status': RFQDocumentStatus;
|
|
20
20
|
'total_balance': number;
|
|
21
21
|
'payment_address': string;
|
|
22
22
|
'estimated_all_validators_exited_at': Date;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type RFQDocumentBuyerStatusFilter = 'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired';
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
import { Quote } from './quote';
|
|
13
13
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
14
14
|
import { RFQDocumentSellerAllOfValidators } from './rFQDocumentSellerAllOfValidators';
|
|
15
|
-
import {
|
|
15
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
16
16
|
import { SettlementSteps } from './settlementSteps';
|
|
17
17
|
export declare class RFQDocumentSeller {
|
|
18
18
|
'id': string;
|
|
19
|
-
'status':
|
|
19
|
+
'status': RFQDocumentStatus;
|
|
20
20
|
'total_balance': number;
|
|
21
21
|
'payment_address': string;
|
|
22
22
|
'estimated_all_validators_exited_at': Date;
|
package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts}
RENAMED
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export type
|
|
12
|
+
export type RFQDocumentSellerStatusFilter = 'active' | 'accepted' | 'escrow_paid' | 'reward_recipient_settled' | 'escrow_released' | 'rejected' | 'expired';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type RFQDocumentStatus = 'active' | 'expired' | 'rejected' | 'finished';
|
|
@@ -9,19 +9,17 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
'amount'?: number;
|
|
12
|
+
import { Asset } from './asset';
|
|
13
|
+
/**
|
|
14
|
+
* Details about a smart contract including name, asset, address and type.
|
|
15
|
+
*/
|
|
16
|
+
export declare class SmartContract {
|
|
17
|
+
'name': string;
|
|
18
|
+
'asset': Asset;
|
|
19
|
+
'address': string;
|
|
20
|
+
'type'?: string;
|
|
21
|
+
'deployedAt': Date;
|
|
22
|
+
'deployedBy'?: string;
|
|
25
23
|
static discriminator: string | undefined;
|
|
26
24
|
static attributeTypeMap: Array<{
|
|
27
25
|
name: string;
|
|
@@ -34,9 +32,5 @@ export declare class BaseOrder {
|
|
|
34
32
|
type: string;
|
|
35
33
|
}[];
|
|
36
34
|
}
|
|
37
|
-
export declare namespace
|
|
38
|
-
/**
|
|
39
|
-
* Type of the order - can only be stake, unstake, or withdraw.
|
|
40
|
-
*/
|
|
41
|
-
type orderTypeEnum = 'stake' | 'unstake' | 'withdraw';
|
|
35
|
+
export declare namespace SmartContract {
|
|
42
36
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api.
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.SmartContract = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* Details about a smart contract including name, asset, address and type.
|
|
17
|
+
*/
|
|
18
|
+
class SmartContract {
|
|
19
|
+
static getAttributeTypeMap() {
|
|
20
|
+
return SmartContract.attributeTypeMap;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SmartContract = SmartContract;
|
|
24
|
+
SmartContract.discriminator = undefined;
|
|
25
|
+
SmartContract.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "name",
|
|
28
|
+
"baseName": "name",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "asset",
|
|
33
|
+
"baseName": "asset",
|
|
34
|
+
"type": "Asset"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "address",
|
|
38
|
+
"baseName": "address",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "type",
|
|
43
|
+
"baseName": "type",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "deployedAt",
|
|
48
|
+
"baseName": "deployedAt",
|
|
49
|
+
"type": "Date"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "deployedBy",
|
|
53
|
+
"baseName": "deployedBy",
|
|
54
|
+
"type": "string"
|
|
55
|
+
}
|
|
56
|
+
];
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { Asset } from './asset';
|
|
13
|
+
import { TransactionEventType } from './transactionEventType';
|
|
14
14
|
/**
|
|
15
15
|
* Details of transactions including type, amount, and asset.
|
|
16
16
|
*/
|
|
@@ -19,12 +19,12 @@ export declare class Transaction {
|
|
|
19
19
|
* The date and time when the transaction occurred.
|
|
20
20
|
*/
|
|
21
21
|
'eventTime': Date;
|
|
22
|
-
'eventType':
|
|
22
|
+
'eventType': TransactionEventType;
|
|
23
23
|
/**
|
|
24
24
|
* Asset amount involved in the transaction.
|
|
25
25
|
*/
|
|
26
26
|
'assetAmount': number;
|
|
27
|
-
'asset':
|
|
27
|
+
'asset': Asset;
|
|
28
28
|
/**
|
|
29
29
|
* Unique identifier for the order associated with the transaction.
|
|
30
30
|
*/
|
|
@@ -31,7 +31,7 @@ Transaction.attributeTypeMap = [
|
|
|
31
31
|
{
|
|
32
32
|
"name": "eventType",
|
|
33
33
|
"baseName": "eventType",
|
|
34
|
-
"type": "
|
|
34
|
+
"type": "TransactionEventType"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "assetAmount",
|
|
@@ -41,7 +41,7 @@ Transaction.attributeTypeMap = [
|
|
|
41
41
|
{
|
|
42
42
|
"name": "asset",
|
|
43
43
|
"baseName": "asset",
|
|
44
|
-
"type": "
|
|
44
|
+
"type": "Asset"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "orderId",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Transaction } from './transaction';
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class TransactionsforUser {
|
|
14
14
|
'transactions': Array<Transaction>;
|
|
15
15
|
/**
|
|
16
16
|
* Total number of pages
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
14
|
+
exports.TransactionsforUser = void 0;
|
|
15
|
+
class TransactionsforUser {
|
|
16
16
|
static getAttributeTypeMap() {
|
|
17
|
-
return
|
|
17
|
+
return TransactionsforUser.attributeTypeMap;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
exports.TransactionsforUser = TransactionsforUser;
|
|
21
|
+
TransactionsforUser.discriminator = undefined;
|
|
22
|
+
TransactionsforUser.attributeTypeMap = [
|
|
23
23
|
{
|
|
24
24
|
"name": "transactions",
|
|
25
25
|
"baseName": "transactions",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export type ValidatorContractType = 'default_validator' | 'tokenized_validator';
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
|
|
13
|
-
import {
|
|
13
|
+
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
14
14
|
export declare class ValidatorInfoValidatorType {
|
|
15
|
-
'key_holder'?:
|
|
15
|
+
'key_holder'?: ValidatorKeyHolder;
|
|
16
16
|
'contract'?: ValidatorInfoValidatorTypeContract;
|
|
17
17
|
static discriminator: string | undefined;
|
|
18
18
|
static attributeTypeMap: Array<{
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ValidatorContractType } from './validatorContractType';
|
|
13
13
|
export declare class ValidatorInfoValidatorTypeContract {
|
|
14
14
|
'address'?: string;
|
|
15
|
-
'contract_type'?:
|
|
15
|
+
'contract_type'?: ValidatorContractType;
|
|
16
16
|
static discriminator: string | undefined;
|
|
17
17
|
static attributeTypeMap: Array<{
|
|
18
18
|
name: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api.
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/model/accountEntity.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { SmartContract } from './smartContract';
|
|
13
14
|
import { Wallet } from './wallet';
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -20,6 +21,7 @@ export class AccountEntity {
|
|
|
20
21
|
'name'?: string;
|
|
21
22
|
'email'?: string;
|
|
22
23
|
'wallets'?: Array<Wallet>;
|
|
24
|
+
'smartContracts'?: Array<SmartContract>;
|
|
23
25
|
|
|
24
26
|
static discriminator: string | undefined = undefined;
|
|
25
27
|
|
|
@@ -43,6 +45,11 @@ export class AccountEntity {
|
|
|
43
45
|
"name": "wallets",
|
|
44
46
|
"baseName": "wallets",
|
|
45
47
|
"type": "Array<Wallet>"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "smartContracts",
|
|
51
|
+
"baseName": "smartContracts",
|
|
52
|
+
"type": "Array<SmartContract>"
|
|
46
53
|
} ];
|
|
47
54
|
|
|
48
55
|
static getAttributeTypeMap() {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { Asset } from './asset';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class AddLinkedWalletForUserRequest {
|
|
16
16
|
'walletAddress': string;
|
|
17
|
-
'walletType':
|
|
17
|
+
'walletType': Asset;
|
|
18
18
|
|
|
19
19
|
static discriminator: string | undefined = undefined;
|
|
20
20
|
|
|
@@ -27,14 +27,14 @@ export class AddLinkedWalletForManagedUserRequest {
|
|
|
27
27
|
{
|
|
28
28
|
"name": "walletType",
|
|
29
29
|
"baseName": "walletType",
|
|
30
|
-
"type": "
|
|
30
|
+
"type": "Asset"
|
|
31
31
|
} ];
|
|
32
32
|
|
|
33
33
|
static getAttributeTypeMap() {
|
|
34
|
-
return
|
|
34
|
+
return AddLinkedWalletForUserRequest.attributeTypeMap;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export namespace
|
|
38
|
+
export namespace AddLinkedWalletForUserRequest {
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { Asset } from './asset';
|
|
14
14
|
|
|
15
15
|
export class AddLinkedWalletRequest {
|
|
16
16
|
'walletAddress': string;
|
|
17
|
-
'walletType':
|
|
17
|
+
'walletType': Asset;
|
|
18
18
|
'walletName': string;
|
|
19
19
|
|
|
20
20
|
static discriminator: string | undefined = undefined;
|
|
@@ -28,7 +28,7 @@ export class AddLinkedWalletRequest {
|
|
|
28
28
|
{
|
|
29
29
|
"name": "walletType",
|
|
30
30
|
"baseName": "walletType",
|
|
31
|
-
"type": "
|
|
31
|
+
"type": "Asset"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "walletName",
|
package/model/depositAccount.ts
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { Asset } from './asset';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Details of a deposit account including type and address.
|
|
17
17
|
*/
|
|
18
18
|
export class DepositAccount {
|
|
19
|
-
'type':
|
|
19
|
+
'type': Asset;
|
|
20
20
|
/**
|
|
21
21
|
* The address of the deposit account.
|
|
22
22
|
*/
|
|
@@ -28,7 +28,7 @@ export class DepositAccount {
|
|
|
28
28
|
{
|
|
29
29
|
"name": "type",
|
|
30
30
|
"baseName": "type",
|
|
31
|
-
"type": "
|
|
31
|
+
"type": "Asset"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "address",
|