@northstake/northstakeapi 1.0.25 → 1.0.27

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.
@@ -0,0 +1,43 @@
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.MinedBlock = void 0;
15
+ class MinedBlock {
16
+ static getAttributeTypeMap() {
17
+ return MinedBlock.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.MinedBlock = MinedBlock;
21
+ MinedBlock.discriminator = undefined;
22
+ MinedBlock.attributeTypeMap = [
23
+ {
24
+ "name": "blockNumber",
25
+ "baseName": "blockNumber",
26
+ "type": "number"
27
+ },
28
+ {
29
+ "name": "blockReward",
30
+ "baseName": "blockReward",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "timeStamp",
35
+ "baseName": "timeStamp",
36
+ "type": "Date"
37
+ },
38
+ {
39
+ "name": "address",
40
+ "baseName": "address",
41
+ "type": "string"
42
+ }
43
+ ];
@@ -21,8 +21,12 @@ export * from './exitEstimateSeller';
21
21
  export * from './exitProposal';
22
22
  export * from './generateApiKeyRequest';
23
23
  export * from './getMarketplaceMetadata200Response';
24
+ export * from './getSmartContractMinedBlocks200Response';
25
+ export * from './getSmartContractTransactions200Response';
24
26
  export * from './getWithdrawalsResponse';
27
+ export * from './internalTransaction';
25
28
  export * from './listAllRFQsForFacilitator200Response';
29
+ export * from './minedBlock';
26
30
  export * from './provideEscrowHashForRFQDocumentRequest';
27
31
  export * from './quote';
28
32
  export * from './rFQBidFacilitator';
@@ -46,6 +50,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
46
50
  export * from './settlementSteps';
47
51
  export * from './smartContract';
48
52
  export * from './submittedQuote';
53
+ export * from './transaction';
49
54
  export * from './validatorInfo';
50
55
  export * from './validatorKeyHolder';
51
56
  export * from './validatorType';
@@ -50,8 +50,12 @@ __exportStar(require("./exitEstimateSeller"), exports);
50
50
  __exportStar(require("./exitProposal"), exports);
51
51
  __exportStar(require("./generateApiKeyRequest"), exports);
52
52
  __exportStar(require("./getMarketplaceMetadata200Response"), exports);
53
+ __exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
54
+ __exportStar(require("./getSmartContractTransactions200Response"), exports);
53
55
  __exportStar(require("./getWithdrawalsResponse"), exports);
56
+ __exportStar(require("./internalTransaction"), exports);
54
57
  __exportStar(require("./listAllRFQsForFacilitator200Response"), exports);
58
+ __exportStar(require("./minedBlock"), exports);
55
59
  __exportStar(require("./provideEscrowHashForRFQDocumentRequest"), exports);
56
60
  __exportStar(require("./quote"), exports);
57
61
  __exportStar(require("./rFQBidFacilitator"), exports);
@@ -75,6 +79,7 @@ __exportStar(require("./registerWithdrawalRecipientSettlementRequest"), exports)
75
79
  __exportStar(require("./settlementSteps"), exports);
76
80
  __exportStar(require("./smartContract"), exports);
77
81
  __exportStar(require("./submittedQuote"), exports);
82
+ __exportStar(require("./transaction"), exports);
78
83
  __exportStar(require("./validatorInfo"), exports);
79
84
  __exportStar(require("./validatorKeyHolder"), exports);
80
85
  __exportStar(require("./validatorType"), exports);
@@ -124,8 +129,12 @@ const exitEstimateSeller_1 = require("./exitEstimateSeller");
124
129
  const exitProposal_1 = require("./exitProposal");
125
130
  const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
126
131
  const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
132
+ const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
133
+ const getSmartContractTransactions200Response_1 = require("./getSmartContractTransactions200Response");
127
134
  const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
135
+ const internalTransaction_1 = require("./internalTransaction");
128
136
  const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
137
+ const minedBlock_1 = require("./minedBlock");
129
138
  const provideEscrowHashForRFQDocumentRequest_1 = require("./provideEscrowHashForRFQDocumentRequest");
130
139
  const quote_1 = require("./quote");
131
140
  const rFQBidFacilitator_1 = require("./rFQBidFacilitator");
@@ -144,6 +153,7 @@ const registerWithdrawalRecipientSettlementRequest_1 = require("./registerWithdr
144
153
  const settlementSteps_1 = require("./settlementSteps");
145
154
  const smartContract_1 = require("./smartContract");
146
155
  const submittedQuote_1 = require("./submittedQuote");
156
+ const transaction_1 = require("./transaction");
147
157
  const validatorInfo_1 = require("./validatorInfo");
148
158
  const validatorWithdrawal_1 = require("./validatorWithdrawal");
149
159
  const wallet_1 = require("./wallet");
@@ -211,8 +221,12 @@ let typeMap = {
211
221
  "ExitProposal": exitProposal_1.ExitProposal,
212
222
  "GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
213
223
  "GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
224
+ "GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
225
+ "GetSmartContractTransactions200Response": getSmartContractTransactions200Response_1.GetSmartContractTransactions200Response,
214
226
  "GetWithdrawalsResponse": getWithdrawalsResponse_1.GetWithdrawalsResponse,
227
+ "InternalTransaction": internalTransaction_1.InternalTransaction,
215
228
  "ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
229
+ "MinedBlock": minedBlock_1.MinedBlock,
216
230
  "ProvideEscrowHashForRFQDocumentRequest": provideEscrowHashForRFQDocumentRequest_1.ProvideEscrowHashForRFQDocumentRequest,
217
231
  "Quote": quote_1.Quote,
218
232
  "RFQBidFacilitator": rFQBidFacilitator_1.RFQBidFacilitator,
@@ -231,6 +245,7 @@ let typeMap = {
231
245
  "SettlementSteps": settlementSteps_1.SettlementSteps,
232
246
  "SmartContract": smartContract_1.SmartContract,
233
247
  "SubmittedQuote": submittedQuote_1.SubmittedQuote,
248
+ "Transaction": transaction_1.Transaction,
234
249
  "ValidatorInfo": validatorInfo_1.ValidatorInfo,
235
250
  "ValidatorWithdrawal": validatorWithdrawal_1.ValidatorWithdrawal,
236
251
  "Wallet": wallet_1.Wallet,
@@ -0,0 +1,74 @@
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
+ import { InternalTransaction } from './internalTransaction';
13
+ export declare class Transaction {
14
+ 'blockNumber': number;
15
+ 'timeStamp': Date;
16
+ 'hash': string;
17
+ 'nonce'?: number;
18
+ 'blockHash'?: string;
19
+ 'transactionIndex'?: number;
20
+ 'fromAddress': string;
21
+ 'toAddress': string;
22
+ /**
23
+ * Transaction value in eth
24
+ */
25
+ 'value': string;
26
+ /**
27
+ * Gas price in gwei per unit
28
+ */
29
+ 'gasPrice'?: string;
30
+ /**
31
+ * amount of gas used
32
+ */
33
+ 'gasUsed'?: string;
34
+ /**
35
+ * Transaction fee in eth (gasPrice * gasUsed)
36
+ */
37
+ 'transactionFee'?: string;
38
+ /**
39
+ * Whether the transaction failed or not
40
+ */
41
+ 'isError'?: boolean;
42
+ /**
43
+ * Transaction input data in hex
44
+ */
45
+ 'input'?: string;
46
+ /**
47
+ * Decoded transaction input data
48
+ */
49
+ 'inputDecoded'?: object;
50
+ /**
51
+ * The name of the function called in the transaction
52
+ */
53
+ 'functionName'?: string;
54
+ /**
55
+ * The signature of the function called in the transaction
56
+ */
57
+ 'functionSignature'?: string;
58
+ /**
59
+ * Decoded arguments passed to the function called in the transaction including argument names, types, and values
60
+ */
61
+ 'functionArgsDecoded'?: object;
62
+ 'internalTransactions': Array<InternalTransaction>;
63
+ static discriminator: string | undefined;
64
+ static attributeTypeMap: Array<{
65
+ name: string;
66
+ baseName: string;
67
+ type: string;
68
+ }>;
69
+ static getAttributeTypeMap(): {
70
+ name: string;
71
+ baseName: string;
72
+ type: string;
73
+ }[];
74
+ }
@@ -0,0 +1,118 @@
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.Transaction = void 0;
15
+ class Transaction {
16
+ static getAttributeTypeMap() {
17
+ return Transaction.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.Transaction = Transaction;
21
+ Transaction.discriminator = undefined;
22
+ Transaction.attributeTypeMap = [
23
+ {
24
+ "name": "blockNumber",
25
+ "baseName": "blockNumber",
26
+ "type": "number"
27
+ },
28
+ {
29
+ "name": "timeStamp",
30
+ "baseName": "timeStamp",
31
+ "type": "Date"
32
+ },
33
+ {
34
+ "name": "hash",
35
+ "baseName": "hash",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "nonce",
40
+ "baseName": "nonce",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "blockHash",
45
+ "baseName": "blockHash",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "transactionIndex",
50
+ "baseName": "transactionIndex",
51
+ "type": "number"
52
+ },
53
+ {
54
+ "name": "fromAddress",
55
+ "baseName": "fromAddress",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "toAddress",
60
+ "baseName": "toAddress",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "value",
65
+ "baseName": "value",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "name": "gasPrice",
70
+ "baseName": "gasPrice",
71
+ "type": "string"
72
+ },
73
+ {
74
+ "name": "gasUsed",
75
+ "baseName": "gasUsed",
76
+ "type": "string"
77
+ },
78
+ {
79
+ "name": "transactionFee",
80
+ "baseName": "transactionFee",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "name": "isError",
85
+ "baseName": "isError",
86
+ "type": "boolean"
87
+ },
88
+ {
89
+ "name": "input",
90
+ "baseName": "input",
91
+ "type": "string"
92
+ },
93
+ {
94
+ "name": "inputDecoded",
95
+ "baseName": "inputDecoded",
96
+ "type": "object"
97
+ },
98
+ {
99
+ "name": "functionName",
100
+ "baseName": "functionName",
101
+ "type": "string"
102
+ },
103
+ {
104
+ "name": "functionSignature",
105
+ "baseName": "functionSignature",
106
+ "type": "string"
107
+ },
108
+ {
109
+ "name": "functionArgsDecoded",
110
+ "baseName": "functionArgsDecoded",
111
+ "type": "object"
112
+ },
113
+ {
114
+ "name": "internalTransactions",
115
+ "baseName": "internalTransactions",
116
+ "type": "Array<InternalTransaction>"
117
+ }
118
+ ];
@@ -0,0 +1,59 @@
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 { MinedBlock } from './minedBlock';
14
+
15
+ export class GetSmartContractMinedBlocks200Response {
16
+ 'blocks': Array<MinedBlock>;
17
+ /**
18
+ * Total number of mined blocks
19
+ */
20
+ 'total': number;
21
+ /**
22
+ * Total number of pages
23
+ */
24
+ 'pages': number;
25
+ /**
26
+ * Current page number
27
+ */
28
+ 'currentPage': number;
29
+
30
+ static discriminator: string | undefined = undefined;
31
+
32
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
+ {
34
+ "name": "blocks",
35
+ "baseName": "blocks",
36
+ "type": "Array<MinedBlock>"
37
+ },
38
+ {
39
+ "name": "total",
40
+ "baseName": "total",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "pages",
45
+ "baseName": "pages",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "currentPage",
50
+ "baseName": "currentPage",
51
+ "type": "number"
52
+ } ];
53
+
54
+ static getAttributeTypeMap() {
55
+ return GetSmartContractMinedBlocks200Response.attributeTypeMap;
56
+ }
57
+ }
58
+
59
+
@@ -0,0 +1,59 @@
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 { Transaction } from './transaction';
14
+
15
+ export class GetSmartContractTransactions200Response {
16
+ 'transactions': Array<Transaction>;
17
+ /**
18
+ * Total number of transactions
19
+ */
20
+ 'total': number;
21
+ /**
22
+ * Total number of pages
23
+ */
24
+ 'pages': number;
25
+ /**
26
+ * Current page number
27
+ */
28
+ 'currentPage': number;
29
+
30
+ static discriminator: string | undefined = undefined;
31
+
32
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
33
+ {
34
+ "name": "transactions",
35
+ "baseName": "transactions",
36
+ "type": "Array<Transaction>"
37
+ },
38
+ {
39
+ "name": "total",
40
+ "baseName": "total",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "pages",
45
+ "baseName": "pages",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "currentPage",
50
+ "baseName": "currentPage",
51
+ "type": "number"
52
+ } ];
53
+
54
+ static getAttributeTypeMap() {
55
+ return GetSmartContractTransactions200Response.attributeTypeMap;
56
+ }
57
+ }
58
+
59
+
@@ -0,0 +1,70 @@
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 InternalTransaction {
15
+ 'blockNumber': number;
16
+ 'timeStamp': Date;
17
+ 'hash': string;
18
+ 'fromAddress': string;
19
+ 'toAddress': string;
20
+ /**
21
+ * Transaction value in ETH
22
+ */
23
+ 'value': string;
24
+ 'isError'?: boolean;
25
+
26
+ static discriminator: string | undefined = undefined;
27
+
28
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
29
+ {
30
+ "name": "blockNumber",
31
+ "baseName": "blockNumber",
32
+ "type": "number"
33
+ },
34
+ {
35
+ "name": "timeStamp",
36
+ "baseName": "timeStamp",
37
+ "type": "Date"
38
+ },
39
+ {
40
+ "name": "hash",
41
+ "baseName": "hash",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "name": "fromAddress",
46
+ "baseName": "fromAddress",
47
+ "type": "string"
48
+ },
49
+ {
50
+ "name": "toAddress",
51
+ "baseName": "toAddress",
52
+ "type": "string"
53
+ },
54
+ {
55
+ "name": "value",
56
+ "baseName": "value",
57
+ "type": "string"
58
+ },
59
+ {
60
+ "name": "isError",
61
+ "baseName": "isError",
62
+ "type": "boolean"
63
+ } ];
64
+
65
+ static getAttributeTypeMap() {
66
+ return InternalTransaction.attributeTypeMap;
67
+ }
68
+ }
69
+
70
+
@@ -0,0 +1,52 @@
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 MinedBlock {
15
+ 'blockNumber': number;
16
+ /**
17
+ * Block reward in ETH
18
+ */
19
+ 'blockReward': string;
20
+ 'timeStamp': Date;
21
+ 'address': string;
22
+
23
+ static discriminator: string | undefined = undefined;
24
+
25
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
26
+ {
27
+ "name": "blockNumber",
28
+ "baseName": "blockNumber",
29
+ "type": "number"
30
+ },
31
+ {
32
+ "name": "blockReward",
33
+ "baseName": "blockReward",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "name": "timeStamp",
38
+ "baseName": "timeStamp",
39
+ "type": "Date"
40
+ },
41
+ {
42
+ "name": "address",
43
+ "baseName": "address",
44
+ "type": "string"
45
+ } ];
46
+
47
+ static getAttributeTypeMap() {
48
+ return MinedBlock.attributeTypeMap;
49
+ }
50
+ }
51
+
52
+
package/model/models.ts CHANGED
@@ -24,8 +24,12 @@ export * from './exitEstimateSeller';
24
24
  export * from './exitProposal';
25
25
  export * from './generateApiKeyRequest';
26
26
  export * from './getMarketplaceMetadata200Response';
27
+ export * from './getSmartContractMinedBlocks200Response';
28
+ export * from './getSmartContractTransactions200Response';
27
29
  export * from './getWithdrawalsResponse';
30
+ export * from './internalTransaction';
28
31
  export * from './listAllRFQsForFacilitator200Response';
32
+ export * from './minedBlock';
29
33
  export * from './provideEscrowHashForRFQDocumentRequest';
30
34
  export * from './quote';
31
35
  export * from './rFQBidFacilitator';
@@ -49,6 +53,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
49
53
  export * from './settlementSteps';
50
54
  export * from './smartContract';
51
55
  export * from './submittedQuote';
56
+ export * from './transaction';
52
57
  export * from './validatorInfo';
53
58
  export * from './validatorKeyHolder';
54
59
  export * from './validatorType';
@@ -157,12 +162,24 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
157
162
  import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
158
163
 
159
164
 
165
+ import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
166
+
167
+
168
+ import { GetSmartContractTransactions200Response } from './getSmartContractTransactions200Response';
169
+
170
+
160
171
  import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
161
172
 
162
173
 
174
+ import { InternalTransaction } from './internalTransaction';
175
+
176
+
163
177
  import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
164
178
 
165
179
 
180
+ import { MinedBlock } from './minedBlock';
181
+
182
+
166
183
  import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
167
184
 
168
185
 
@@ -232,6 +249,9 @@ import { SmartContract } from './smartContract';
232
249
  import { SubmittedQuote } from './submittedQuote';
233
250
 
234
251
 
252
+ import { Transaction } from './transaction';
253
+
254
+
235
255
  import { ValidatorInfo } from './validatorInfo';
236
256
 
237
257
 
@@ -358,8 +378,12 @@ let typeMap: {[index: string]: any} = {
358
378
  "ExitProposal": ExitProposal,
359
379
  "GenerateApiKeyRequest": GenerateApiKeyRequest,
360
380
  "GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
381
+ "GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
382
+ "GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
361
383
  "GetWithdrawalsResponse": GetWithdrawalsResponse,
384
+ "InternalTransaction": InternalTransaction,
362
385
  "ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
386
+ "MinedBlock": MinedBlock,
363
387
  "ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
364
388
  "Quote": Quote,
365
389
  "RFQBidFacilitator": RFQBidFacilitator,
@@ -378,6 +402,7 @@ let typeMap: {[index: string]: any} = {
378
402
  "SettlementSteps": SettlementSteps,
379
403
  "SmartContract": SmartContract,
380
404
  "SubmittedQuote": SubmittedQuote,
405
+ "Transaction": Transaction,
381
406
  "ValidatorInfo": ValidatorInfo,
382
407
  "ValidatorWithdrawal": ValidatorWithdrawal,
383
408
  "Wallet": Wallet,