@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,170 @@
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 { InternalTransaction } from './internalTransaction';
14
+
15
+ export class Transaction {
16
+ 'blockNumber': number;
17
+ 'timeStamp': Date;
18
+ 'hash': string;
19
+ 'nonce'?: number;
20
+ 'blockHash'?: string;
21
+ 'transactionIndex'?: number;
22
+ 'fromAddress': string;
23
+ 'toAddress': string;
24
+ /**
25
+ * Transaction value in eth
26
+ */
27
+ 'value': string;
28
+ /**
29
+ * Gas price in gwei per unit
30
+ */
31
+ 'gasPrice'?: string;
32
+ /**
33
+ * amount of gas used
34
+ */
35
+ 'gasUsed'?: string;
36
+ /**
37
+ * Transaction fee in eth (gasPrice * gasUsed)
38
+ */
39
+ 'transactionFee'?: string;
40
+ /**
41
+ * Whether the transaction failed or not
42
+ */
43
+ 'isError'?: boolean;
44
+ /**
45
+ * Transaction input data in hex
46
+ */
47
+ 'input'?: string;
48
+ /**
49
+ * Decoded transaction input data
50
+ */
51
+ 'inputDecoded'?: object;
52
+ /**
53
+ * The name of the function called in the transaction
54
+ */
55
+ 'functionName'?: string;
56
+ /**
57
+ * The signature of the function called in the transaction
58
+ */
59
+ 'functionSignature'?: string;
60
+ /**
61
+ * Decoded arguments passed to the function called in the transaction including argument names, types, and values
62
+ */
63
+ 'functionArgsDecoded'?: object;
64
+ 'internalTransactions': Array<InternalTransaction>;
65
+
66
+ static discriminator: string | undefined = undefined;
67
+
68
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
69
+ {
70
+ "name": "blockNumber",
71
+ "baseName": "blockNumber",
72
+ "type": "number"
73
+ },
74
+ {
75
+ "name": "timeStamp",
76
+ "baseName": "timeStamp",
77
+ "type": "Date"
78
+ },
79
+ {
80
+ "name": "hash",
81
+ "baseName": "hash",
82
+ "type": "string"
83
+ },
84
+ {
85
+ "name": "nonce",
86
+ "baseName": "nonce",
87
+ "type": "number"
88
+ },
89
+ {
90
+ "name": "blockHash",
91
+ "baseName": "blockHash",
92
+ "type": "string"
93
+ },
94
+ {
95
+ "name": "transactionIndex",
96
+ "baseName": "transactionIndex",
97
+ "type": "number"
98
+ },
99
+ {
100
+ "name": "fromAddress",
101
+ "baseName": "fromAddress",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "name": "toAddress",
106
+ "baseName": "toAddress",
107
+ "type": "string"
108
+ },
109
+ {
110
+ "name": "value",
111
+ "baseName": "value",
112
+ "type": "string"
113
+ },
114
+ {
115
+ "name": "gasPrice",
116
+ "baseName": "gasPrice",
117
+ "type": "string"
118
+ },
119
+ {
120
+ "name": "gasUsed",
121
+ "baseName": "gasUsed",
122
+ "type": "string"
123
+ },
124
+ {
125
+ "name": "transactionFee",
126
+ "baseName": "transactionFee",
127
+ "type": "string"
128
+ },
129
+ {
130
+ "name": "isError",
131
+ "baseName": "isError",
132
+ "type": "boolean"
133
+ },
134
+ {
135
+ "name": "input",
136
+ "baseName": "input",
137
+ "type": "string"
138
+ },
139
+ {
140
+ "name": "inputDecoded",
141
+ "baseName": "inputDecoded",
142
+ "type": "object"
143
+ },
144
+ {
145
+ "name": "functionName",
146
+ "baseName": "functionName",
147
+ "type": "string"
148
+ },
149
+ {
150
+ "name": "functionSignature",
151
+ "baseName": "functionSignature",
152
+ "type": "string"
153
+ },
154
+ {
155
+ "name": "functionArgsDecoded",
156
+ "baseName": "functionArgsDecoded",
157
+ "type": "object"
158
+ },
159
+ {
160
+ "name": "internalTransactions",
161
+ "baseName": "internalTransactions",
162
+ "type": "Array<InternalTransaction>"
163
+ } ];
164
+
165
+ static getAttributeTypeMap() {
166
+ return Transaction.attributeTypeMap;
167
+ }
168
+ }
169
+
170
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Northstake SDK",
5
5
  "main": "dist/api.js",
6
6
  "types": "dist/api.d.ts",