@northstake/northstakeapi 1.0.25 → 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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/apis.ts +3 -1
  4. package/api/smartContractsApi.ts +513 -0
  5. package/api.ts +10 -0
  6. package/dist/api/apis.d.ts +3 -1
  7. package/dist/api/apis.js +3 -1
  8. package/dist/api/smartContractsApi.d.ts +125 -0
  9. package/dist/api/smartContractsApi.js +389 -0
  10. package/dist/api.d.ts +8 -0
  11. package/dist/api.js +9 -0
  12. package/dist/model/getSmartContractInternalTransactions200Response.d.ts +38 -0
  13. package/dist/model/getSmartContractInternalTransactions200Response.js +43 -0
  14. package/dist/model/getSmartContractMinedBlocks200Response.d.ts +38 -0
  15. package/dist/model/getSmartContractMinedBlocks200Response.js +43 -0
  16. package/dist/model/getSmartContractTransactions200Response.d.ts +38 -0
  17. package/dist/model/getSmartContractTransactions200Response.js +43 -0
  18. package/dist/model/internalTransaction.d.ts +34 -0
  19. package/dist/model/internalTransaction.js +58 -0
  20. package/dist/model/minedBlock.d.ts +31 -0
  21. package/dist/model/minedBlock.js +43 -0
  22. package/dist/model/models.d.ts +6 -0
  23. package/dist/model/models.js +18 -0
  24. package/dist/model/transaction.d.ts +72 -0
  25. package/dist/model/transaction.js +113 -0
  26. package/model/getSmartContractInternalTransactions200Response.ts +59 -0
  27. package/model/getSmartContractMinedBlocks200Response.ts +59 -0
  28. package/model/getSmartContractTransactions200Response.ts +59 -0
  29. package/model/internalTransaction.ts +70 -0
  30. package/model/minedBlock.ts +52 -0
  31. package/model/models.ts +30 -0
  32. package/model/transaction.ts +163 -0
  33. package/package.json +1 -1
@@ -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,13 @@ export * from './exitEstimateSeller';
24
24
  export * from './exitProposal';
25
25
  export * from './generateApiKeyRequest';
26
26
  export * from './getMarketplaceMetadata200Response';
27
+ export * from './getSmartContractInternalTransactions200Response';
28
+ export * from './getSmartContractMinedBlocks200Response';
29
+ export * from './getSmartContractTransactions200Response';
27
30
  export * from './getWithdrawalsResponse';
31
+ export * from './internalTransaction';
28
32
  export * from './listAllRFQsForFacilitator200Response';
33
+ export * from './minedBlock';
29
34
  export * from './provideEscrowHashForRFQDocumentRequest';
30
35
  export * from './quote';
31
36
  export * from './rFQBidFacilitator';
@@ -49,6 +54,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
49
54
  export * from './settlementSteps';
50
55
  export * from './smartContract';
51
56
  export * from './submittedQuote';
57
+ export * from './transaction';
52
58
  export * from './validatorInfo';
53
59
  export * from './validatorKeyHolder';
54
60
  export * from './validatorType';
@@ -157,12 +163,27 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
157
163
  import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
158
164
 
159
165
 
166
+ import { GetSmartContractInternalTransactions200Response } from './getSmartContractInternalTransactions200Response';
167
+
168
+
169
+ import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
170
+
171
+
172
+ import { GetSmartContractTransactions200Response } from './getSmartContractTransactions200Response';
173
+
174
+
160
175
  import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
161
176
 
162
177
 
178
+ import { InternalTransaction } from './internalTransaction';
179
+
180
+
163
181
  import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
164
182
 
165
183
 
184
+ import { MinedBlock } from './minedBlock';
185
+
186
+
166
187
  import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
167
188
 
168
189
 
@@ -232,6 +253,9 @@ import { SmartContract } from './smartContract';
232
253
  import { SubmittedQuote } from './submittedQuote';
233
254
 
234
255
 
256
+ import { Transaction } from './transaction';
257
+
258
+
235
259
  import { ValidatorInfo } from './validatorInfo';
236
260
 
237
261
 
@@ -358,8 +382,13 @@ let typeMap: {[index: string]: any} = {
358
382
  "ExitProposal": ExitProposal,
359
383
  "GenerateApiKeyRequest": GenerateApiKeyRequest,
360
384
  "GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
385
+ "GetSmartContractInternalTransactions200Response": GetSmartContractInternalTransactions200Response,
386
+ "GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
387
+ "GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
361
388
  "GetWithdrawalsResponse": GetWithdrawalsResponse,
389
+ "InternalTransaction": InternalTransaction,
362
390
  "ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
391
+ "MinedBlock": MinedBlock,
363
392
  "ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
364
393
  "Quote": Quote,
365
394
  "RFQBidFacilitator": RFQBidFacilitator,
@@ -378,6 +407,7 @@ let typeMap: {[index: string]: any} = {
378
407
  "SettlementSteps": SettlementSteps,
379
408
  "SmartContract": SmartContract,
380
409
  "SubmittedQuote": SubmittedQuote,
410
+ "Transaction": Transaction,
381
411
  "ValidatorInfo": ValidatorInfo,
382
412
  "ValidatorWithdrawal": ValidatorWithdrawal,
383
413
  "Wallet": Wallet,
@@ -0,0 +1,163 @@
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 Transaction {
15
+ 'blockNumber': number;
16
+ 'timeStamp': Date;
17
+ 'hash': string;
18
+ 'nonce'?: number;
19
+ 'blockHash'?: string;
20
+ 'transactionIndex'?: number;
21
+ 'fromAddress': string;
22
+ 'toAddress': string;
23
+ /**
24
+ * Transaction value in eth
25
+ */
26
+ 'value': string;
27
+ /**
28
+ * Gas price in gwei per unit
29
+ */
30
+ 'gasPrice'?: string;
31
+ /**
32
+ * amount of gas used
33
+ */
34
+ 'gasUsed'?: string;
35
+ /**
36
+ * Transaction fee in eth (gasPrice * gasUsed)
37
+ */
38
+ 'transactionFee'?: string;
39
+ /**
40
+ * Whether the transaction failed or not
41
+ */
42
+ 'isError'?: boolean;
43
+ /**
44
+ * Transaction input data in hex
45
+ */
46
+ 'input'?: string;
47
+ /**
48
+ * Decoded transaction input data
49
+ */
50
+ 'inputDecoded'?: object;
51
+ /**
52
+ * The name of the function called in the transaction
53
+ */
54
+ 'functionName'?: string;
55
+ /**
56
+ * The signature of the function called in the transaction
57
+ */
58
+ 'functionSignature'?: string;
59
+ /**
60
+ * Decoded arguments passed to the function called in the transaction including argument names, types, and values
61
+ */
62
+ 'functionArgsDecoded'?: object;
63
+
64
+ static discriminator: string | undefined = undefined;
65
+
66
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
67
+ {
68
+ "name": "blockNumber",
69
+ "baseName": "blockNumber",
70
+ "type": "number"
71
+ },
72
+ {
73
+ "name": "timeStamp",
74
+ "baseName": "timeStamp",
75
+ "type": "Date"
76
+ },
77
+ {
78
+ "name": "hash",
79
+ "baseName": "hash",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "name": "nonce",
84
+ "baseName": "nonce",
85
+ "type": "number"
86
+ },
87
+ {
88
+ "name": "blockHash",
89
+ "baseName": "blockHash",
90
+ "type": "string"
91
+ },
92
+ {
93
+ "name": "transactionIndex",
94
+ "baseName": "transactionIndex",
95
+ "type": "number"
96
+ },
97
+ {
98
+ "name": "fromAddress",
99
+ "baseName": "fromAddress",
100
+ "type": "string"
101
+ },
102
+ {
103
+ "name": "toAddress",
104
+ "baseName": "toAddress",
105
+ "type": "string"
106
+ },
107
+ {
108
+ "name": "value",
109
+ "baseName": "value",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "name": "gasPrice",
114
+ "baseName": "gasPrice",
115
+ "type": "string"
116
+ },
117
+ {
118
+ "name": "gasUsed",
119
+ "baseName": "gasUsed",
120
+ "type": "string"
121
+ },
122
+ {
123
+ "name": "transactionFee",
124
+ "baseName": "transactionFee",
125
+ "type": "string"
126
+ },
127
+ {
128
+ "name": "isError",
129
+ "baseName": "isError",
130
+ "type": "boolean"
131
+ },
132
+ {
133
+ "name": "input",
134
+ "baseName": "input",
135
+ "type": "string"
136
+ },
137
+ {
138
+ "name": "inputDecoded",
139
+ "baseName": "inputDecoded",
140
+ "type": "object"
141
+ },
142
+ {
143
+ "name": "functionName",
144
+ "baseName": "functionName",
145
+ "type": "string"
146
+ },
147
+ {
148
+ "name": "functionSignature",
149
+ "baseName": "functionSignature",
150
+ "type": "string"
151
+ },
152
+ {
153
+ "name": "functionArgsDecoded",
154
+ "baseName": "functionArgsDecoded",
155
+ "type": "object"
156
+ } ];
157
+
158
+ static getAttributeTypeMap() {
159
+ return Transaction.attributeTypeMap;
160
+ }
161
+ }
162
+
163
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Northstake SDK",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",