@northstake/northstakeapi 1.0.24 → 1.0.26
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 +6 -36
- package/.openapi-generator/VERSION +1 -1
- package/api/apis.ts +3 -23
- package/api/{managedUsersApi.ts → smartContractsApi.ts} +118 -53
- package/api.ts +9 -69
- package/dist/api/apis.d.ts +3 -23
- package/dist/api/apis.js +3 -23
- package/dist/api/smartContractsApi.d.ts +125 -0
- package/dist/api/{managedUsersApi.js → smartContractsApi.js} +90 -49
- package/dist/api.d.ts +7 -47
- package/dist/api.js +8 -58
- package/dist/model/{getTransactionsResponse.d.ts → getSmartContractInternalTransactions200Response.d.ts} +7 -7
- package/dist/model/{transactionsforUser.js → getSmartContractInternalTransactions200Response.js} +11 -11
- package/dist/model/{allManagedUsersResponse.d.ts → getSmartContractMinedBlocks200Response.d.ts} +4 -4
- package/dist/model/{allManagedUsersResponse.js → getSmartContractMinedBlocks200Response.js} +9 -9
- package/dist/model/{transactionsforUser.d.ts → getSmartContractTransactions200Response.d.ts} +5 -5
- package/dist/model/{getTransactionsResponse.js → getSmartContractTransactions200Response.js} +10 -10
- package/dist/model/{stakeStep.d.ts → internalTransaction.d.ts} +9 -7
- package/dist/model/internalTransaction.js +58 -0
- package/dist/model/{managedUser.d.ts → minedBlock.d.ts} +8 -6
- package/dist/model/minedBlock.js +43 -0
- package/dist/model/models.d.ts +5 -25
- package/dist/model/models.js +15 -67
- package/dist/model/transaction.d.ts +40 -17
- package/dist/model/transaction.js +74 -17
- package/dist/model/webhookPayloadData.d.ts +2 -10
- package/dist/model/webhookPayloadData.js +2 -12
- package/model/{transactionsforUser.ts → getSmartContractInternalTransactions200Response.ts} +13 -13
- package/model/{allManagedUsersResponse.ts → getSmartContractMinedBlocks200Response.ts} +8 -8
- package/model/{getTransactionsResponse.ts → getSmartContractTransactions200Response.ts} +10 -10
- package/model/internalTransaction.ts +70 -0
- package/model/{depositAddress.ts → minedBlock.ts} +19 -13
- package/model/models.ts +17 -114
- package/model/transaction.ts +114 -31
- package/model/webhookPayloadData.ts +4 -23
- package/package.json +1 -1
- package/api/depositAddressesApi.ts +0 -267
- package/api/managedUsersDepositAddressesApi.ts +0 -186
- package/api/managedUsersLinkedWalletsApi.ts +0 -369
- package/api/managedUsersOrdersApi.ts +0 -462
- package/api/managedUsersPortfolioApi.ts +0 -186
- package/api/managedUsersTransactionsApi.ts +0 -222
- package/api/managedUsersValidatorsApi.ts +0 -302
- package/api/ordersApi.ts +0 -432
- package/api/portfolioApi.ts +0 -180
- package/api/transactionsApi.ts +0 -215
- package/dist/api/depositAddressesApi.d.ts +0 -64
- package/dist/api/depositAddressesApi.js +0 -207
- package/dist/api/managedUsersApi.d.ts +0 -94
- package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
- package/dist/api/managedUsersDepositAddressesApi.js +0 -146
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
- package/dist/api/managedUsersLinkedWalletsApi.js +0 -290
- package/dist/api/managedUsersOrdersApi.d.ts +0 -94
- package/dist/api/managedUsersOrdersApi.js +0 -364
- package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
- package/dist/api/managedUsersPortfolioApi.js +0 -146
- package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
- package/dist/api/managedUsersTransactionsApi.js +0 -170
- package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
- package/dist/api/managedUsersValidatorsApi.js +0 -233
- package/dist/api/ordersApi.d.ts +0 -90
- package/dist/api/ordersApi.js +0 -333
- package/dist/api/portfolioApi.d.ts +0 -50
- package/dist/api/portfolioApi.js +0 -140
- package/dist/api/transactionsApi.d.ts +0 -66
- package/dist/api/transactionsApi.js +0 -164
- package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
- package/dist/model/addLinkedWalletForUserRequest.js +0 -33
- package/dist/model/createManagedUserRequest.d.ts +0 -25
- package/dist/model/createManagedUserRequest.js +0 -28
- package/dist/model/depositAddress.d.ts +0 -35
- package/dist/model/depositAddress.js +0 -36
- package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
- package/dist/model/depositAddressesForUserResponse.js +0 -33
- package/dist/model/managedUser.js +0 -36
- package/dist/model/managedUserDetails.d.ts +0 -31
- package/dist/model/managedUserDetails.js +0 -41
- package/dist/model/order.d.ts +0 -42
- package/dist/model/order.js +0 -48
- package/dist/model/orderDocument.d.ts +0 -50
- package/dist/model/orderDocument.js +0 -71
- package/dist/model/orderDocumentSteps.d.ts +0 -30
- package/dist/model/orderDocumentSteps.js +0 -33
- package/dist/model/orderType.d.ts +0 -15
- package/dist/model/orderType.js +0 -13
- package/dist/model/orderUpdatePayload.d.ts +0 -36
- package/dist/model/orderUpdatePayload.js +0 -38
- package/dist/model/portfolioEntity.d.ts +0 -33
- package/dist/model/portfolioEntity.js +0 -41
- package/dist/model/stakeStep.js +0 -33
- package/dist/model/stakeStepElement.d.ts +0 -30
- package/dist/model/stakeStepElement.js +0 -33
- package/dist/model/stepStatus.d.ts +0 -15
- package/dist/model/stepStatus.js +0 -13
- package/dist/model/transactionEventType.d.ts +0 -15
- package/dist/model/transactionEventType.js +0 -13
- package/dist/model/unstakeStep.d.ts +0 -32
- package/dist/model/unstakeStep.js +0 -33
- package/dist/model/unstakeStepElement.d.ts +0 -30
- package/dist/model/unstakeStepElement.js +0 -33
- package/dist/model/unstakeStepType.d.ts +0 -15
- package/dist/model/unstakeStepType.js +0 -13
- package/dist/model/withdrawalStep.d.ts +0 -32
- package/dist/model/withdrawalStep.js +0 -33
- package/dist/model/withdrawalStepElement.d.ts +0 -30
- package/dist/model/withdrawalStepElement.js +0 -33
- package/dist/model/withdrawalStepType.d.ts +0 -15
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/addLinkedWalletForUserRequest.ts +0 -40
- package/model/createManagedUserRequest.ts +0 -31
- package/model/depositAddressesForUserResponse.ts +0 -38
- package/model/managedUser.ts +0 -40
- package/model/managedUserDetails.ts +0 -47
- package/model/order.ts +0 -68
- package/model/orderDocument.ts +0 -106
- package/model/orderDocumentSteps.ts +0 -44
- package/model/orderType.ts +0 -21
- package/model/orderUpdatePayload.ts +0 -52
- package/model/portfolioEntity.ts +0 -49
- package/model/stakeStep.ts +0 -43
- package/model/stakeStepElement.ts +0 -41
- package/model/stepStatus.ts +0 -21
- package/model/transactionEventType.ts +0 -23
- package/model/unstakeStep.ts +0 -43
- package/model/unstakeStepElement.ts +0 -41
- package/model/unstakeStepType.ts +0 -32
- package/model/withdrawalStep.ts +0 -43
- package/model/withdrawalStepElement.ts +0 -41
- package/model/withdrawalStepType.ts +0 -24
package/model/stakeStep.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
export class StakeStep {
|
|
15
|
-
/**
|
|
16
|
-
* Specifies current status of the staking process.
|
|
17
|
-
*/
|
|
18
|
-
'type'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The timestamp when the step was processed.
|
|
21
|
-
*/
|
|
22
|
-
'timestamp'?: Date;
|
|
23
|
-
|
|
24
|
-
static discriminator: string | undefined = undefined;
|
|
25
|
-
|
|
26
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
27
|
-
{
|
|
28
|
-
"name": "type",
|
|
29
|
-
"baseName": "type",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "timestamp",
|
|
34
|
-
"baseName": "timestamp",
|
|
35
|
-
"type": "Date"
|
|
36
|
-
} ];
|
|
37
|
-
|
|
38
|
-
static getAttributeTypeMap() {
|
|
39
|
-
return StakeStep.attributeTypeMap;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
import { StakeStep } from './stakeStep';
|
|
14
|
-
import { StepStatus } from './stepStatus';
|
|
15
|
-
|
|
16
|
-
export class StakeStepElement {
|
|
17
|
-
'steps'?: Array<StakeStep>;
|
|
18
|
-
'status'?: StepStatus;
|
|
19
|
-
|
|
20
|
-
static discriminator: string | undefined = undefined;
|
|
21
|
-
|
|
22
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
-
{
|
|
24
|
-
"name": "steps",
|
|
25
|
-
"baseName": "steps",
|
|
26
|
-
"type": "Array<StakeStep>"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "status",
|
|
30
|
-
"baseName": "status",
|
|
31
|
-
"type": "StepStatus"
|
|
32
|
-
} ];
|
|
33
|
-
|
|
34
|
-
static getAttributeTypeMap() {
|
|
35
|
-
return StakeStepElement.attributeTypeMap;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export namespace StakeStepElement {
|
|
40
|
-
}
|
|
41
|
-
|
package/model/stepStatus.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Current status of the staking processing sequence.
|
|
16
|
-
*/
|
|
17
|
-
export type StepStatus =
|
|
18
|
-
'running' |
|
|
19
|
-
'done' |
|
|
20
|
-
'failed';
|
|
21
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Supported transaction types.
|
|
16
|
-
*/
|
|
17
|
-
export type TransactionEventType =
|
|
18
|
-
'stake' |
|
|
19
|
-
'unstake' |
|
|
20
|
-
'withdrawal' |
|
|
21
|
-
'deposit' |
|
|
22
|
-
'reward';
|
|
23
|
-
|
package/model/unstakeStep.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
import { UnstakeStepType } from './unstakeStepType';
|
|
14
|
-
|
|
15
|
-
export class UnstakeStep {
|
|
16
|
-
'type'?: UnstakeStepType;
|
|
17
|
-
/**
|
|
18
|
-
* The timestamp when unstaking was processed.
|
|
19
|
-
*/
|
|
20
|
-
'timestamp'?: Date;
|
|
21
|
-
|
|
22
|
-
static discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "type",
|
|
27
|
-
"baseName": "type",
|
|
28
|
-
"type": "UnstakeStepType"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "timestamp",
|
|
32
|
-
"baseName": "timestamp",
|
|
33
|
-
"type": "Date"
|
|
34
|
-
} ];
|
|
35
|
-
|
|
36
|
-
static getAttributeTypeMap() {
|
|
37
|
-
return UnstakeStep.attributeTypeMap;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export namespace UnstakeStep {
|
|
42
|
-
}
|
|
43
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
import { StepStatus } from './stepStatus';
|
|
14
|
-
import { UnstakeStep } from './unstakeStep';
|
|
15
|
-
|
|
16
|
-
export class UnstakeStepElement {
|
|
17
|
-
'steps'?: Array<UnstakeStep>;
|
|
18
|
-
'status'?: StepStatus;
|
|
19
|
-
|
|
20
|
-
static discriminator: string | undefined = undefined;
|
|
21
|
-
|
|
22
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
-
{
|
|
24
|
-
"name": "steps",
|
|
25
|
-
"baseName": "steps",
|
|
26
|
-
"type": "Array<UnstakeStep>"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "status",
|
|
30
|
-
"baseName": "status",
|
|
31
|
-
"type": "StepStatus"
|
|
32
|
-
} ];
|
|
33
|
-
|
|
34
|
-
static getAttributeTypeMap() {
|
|
35
|
-
return UnstakeStepElement.attributeTypeMap;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export namespace UnstakeStepElement {
|
|
40
|
-
}
|
|
41
|
-
|
package/model/unstakeStepType.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the status of the unstaking process.
|
|
16
|
-
*/
|
|
17
|
-
export type UnstakeStepType =
|
|
18
|
-
'unstake_transaction_requested' |
|
|
19
|
-
'unstake_transaction_submitted' |
|
|
20
|
-
'unstake_transaction_finalized' |
|
|
21
|
-
'transfer_to_liquid_submitted' |
|
|
22
|
-
'transfer_to_liquid_finalized' |
|
|
23
|
-
'standardized' |
|
|
24
|
-
'postgres_registered_unstake' |
|
|
25
|
-
'postgres_registered_release' |
|
|
26
|
-
'done' |
|
|
27
|
-
'reward_transfer_submitted' |
|
|
28
|
-
'reward_transfer_finalized' |
|
|
29
|
-
'withdrawal_transaction_submitted' |
|
|
30
|
-
'withdrawal_transaction_finalized' |
|
|
31
|
-
'rewards_distributed';
|
|
32
|
-
|
package/model/withdrawalStep.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
import { WithdrawalStepType } from './withdrawalStepType';
|
|
14
|
-
|
|
15
|
-
export class WithdrawalStep {
|
|
16
|
-
'type'?: WithdrawalStepType;
|
|
17
|
-
/**
|
|
18
|
-
* The timestamp when withdrawal was processed.
|
|
19
|
-
*/
|
|
20
|
-
'timestamp'?: Date;
|
|
21
|
-
|
|
22
|
-
static discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "type",
|
|
27
|
-
"baseName": "type",
|
|
28
|
-
"type": "WithdrawalStepType"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "timestamp",
|
|
32
|
-
"baseName": "timestamp",
|
|
33
|
-
"type": "Date"
|
|
34
|
-
} ];
|
|
35
|
-
|
|
36
|
-
static getAttributeTypeMap() {
|
|
37
|
-
return WithdrawalStep.attributeTypeMap;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export namespace WithdrawalStep {
|
|
42
|
-
}
|
|
43
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
import { StepStatus } from './stepStatus';
|
|
14
|
-
import { WithdrawalStep } from './withdrawalStep';
|
|
15
|
-
|
|
16
|
-
export class WithdrawalStepElement {
|
|
17
|
-
'steps'?: Array<WithdrawalStep>;
|
|
18
|
-
'status'?: StepStatus;
|
|
19
|
-
|
|
20
|
-
static discriminator: string | undefined = undefined;
|
|
21
|
-
|
|
22
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
-
{
|
|
24
|
-
"name": "steps",
|
|
25
|
-
"baseName": "steps",
|
|
26
|
-
"type": "Array<WithdrawalStep>"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "status",
|
|
30
|
-
"baseName": "status",
|
|
31
|
-
"type": "StepStatus"
|
|
32
|
-
} ];
|
|
33
|
-
|
|
34
|
-
static getAttributeTypeMap() {
|
|
35
|
-
return WithdrawalStepElement.attributeTypeMap;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export namespace WithdrawalStepElement {
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Specifies the status of the withdrawal process.
|
|
16
|
-
*/
|
|
17
|
-
export type WithdrawalStepType =
|
|
18
|
-
'postgres_reserved_tokens' |
|
|
19
|
-
'transferred_to_address' |
|
|
20
|
-
'finalized_withdrawal_transfer' |
|
|
21
|
-
'postgres_registered_withdrawal' |
|
|
22
|
-
'done' |
|
|
23
|
-
'waiting_for_auth';
|
|
24
|
-
|