@@ -36,7 +36,7 @@ describe('api', function() {
36
36
done ( ) ;
37
37
} ) ;
38
38
} ) ;
39
- it ( 'txlist' , function ( done ) {
39
+ it ( 'txlist' , function ( done ) {
40
40
var api = init ( ) ;
41
41
var txlist = api . account . txlist ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
42
42
txlist . then ( function ( res ) {
@@ -47,12 +47,10 @@ describe('api', function() {
47
47
it ( 'txlistinternal by hash' , function ( done ) {
48
48
var api = init ( ) ;
49
49
var txlist = api . account . txlistinternal ( '0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170' ) ;
50
- txlist
51
- . then ( function ( res ) {
52
- assert . ok ( res ) ;
53
- done ( ) ;
54
- } )
55
- . catch ( done ) ;
50
+ txlist . then ( function ( res ) {
51
+ assert . ok ( res ) ;
52
+ done ( ) ;
53
+ } ) . catch ( done ) ;
56
54
} ) ;
57
55
it ( 'txlistinternal by address' , function ( done ) {
58
56
var api = init ( ) ;
@@ -65,7 +63,7 @@ describe('api', function() {
65
63
it ( 'balance' , function ( done ) {
66
64
var api = init ( ) ;
67
65
var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
68
- balance . then ( function ( res ) {
66
+ balance . then ( function ( res ) {
69
67
assert . ok ( res ) ;
70
68
done ( ) ;
71
69
} ) ;
@@ -80,18 +78,19 @@ describe('api', function() {
80
78
} ) ;
81
79
} ) ;
82
80
describe ( 'stats' , function ( ) {
83
- it ( 'ethsupply' , function ( done ) {
81
+ it ( 'ethsupply' , function ( done ) {
84
82
var api = init ( ) ;
85
83
var supply = api . stats . ethsupply ( ) ;
86
- supply . then ( function ( res ) {
84
+ supply . then ( function ( res ) {
87
85
assert . ok ( res ) ;
88
86
done ( ) ;
89
87
} ) ;
90
88
} ) ;
91
- it ( 'tokensupply by tokenname' , function ( done ) {
89
+
90
+ it ( 'tokensupply by tokenname' , function ( done ) {
92
91
var api = init ( ) ;
93
92
var supply = api . stats . tokensupply ( 'MKR' ) ;
94
- supply . then ( function ( res ) {
93
+ supply . then ( function ( res ) {
95
94
assert . ok ( res ) ;
96
95
done ( ) ;
97
96
} ) ;
@@ -104,7 +103,8 @@ describe('api', function() {
104
103
done ( ) ;
105
104
} ) . catch ( done ) ;
106
105
} ) ;
107
- it ( 'ethprice' , function ( done ) {
106
+
107
+ it ( 'ethprice' , function ( done ) {
108
108
var api = init ( ) ;
109
109
var price = api . stats . ethprice ( ) ;
110
110
price . then ( function ( res ) {
@@ -113,30 +113,37 @@ describe('api', function() {
113
113
} ) . catch ( done ) ;
114
114
} ) ;
115
115
} ) ;
116
- it ( 'block.getblockreward' , function ( done ) {
116
+
117
+
118
+ it ( 'block.getblockreward' , function ( done ) {
117
119
var api = init ( ) ;
118
120
var blockreward = api . block . getblockreward ( ) ;
119
121
blockreward . then ( function ( res ) {
120
122
assert . ok ( res ) ;
121
123
done ( ) ;
122
124
} ) ;
123
125
} ) ;
124
- it ( 'transaction.getstatus' , function ( done ) {
126
+
127
+ it ( 'transaction.getstatus' , function ( done ) {
125
128
var api = init ( ) ;
126
129
var status = api . transaction . getstatus ( '0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a' ) ;
127
130
status . then ( function ( res ) {
128
131
assert . ok ( res ) ;
129
132
done ( ) ;
130
133
} ) ;
131
134
} ) ;
132
- xit ( 'contract.getabi' , function ( done ) {
135
+
136
+ xit ( 'contract.getabi' , function ( done ) {
133
137
var api = init ( ) ;
134
138
var abi = api . contract . getabi ( '0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413' ) ;
135
139
abi . then ( function ( res ) {
136
140
assert . ok ( res ) ;
137
141
done ( ) ;
138
142
} ) ;
139
143
} ) ;
144
+
145
+
146
+
140
147
describe ( 'proxy' , function ( ) {
141
148
it ( 'proxy.eth_blockNumber' , function ( done ) {
142
149
var api = init ( ) ;
@@ -146,71 +153,83 @@ describe('api', function() {
146
153
done ( ) ;
147
154
} ) ;
148
155
} ) ;
149
- it ( 'proxy.eth_getBlockByNumber' , function ( done ) {
156
+
157
+
158
+ it ( 'proxy.eth_getBlockByNumber' , function ( done ) {
150
159
var api = init ( ) ;
151
160
var res = api . proxy . eth_getBlockByNumber ( '0x10d4f' ) ;
152
161
res . then ( function ( res ) {
153
162
assert . ok ( res ) ;
154
163
done ( ) ;
155
164
} ) ;
156
165
} ) ;
157
- it ( 'proxy.eth_getUncleByBlockNumberAndIndex' , function ( done ) {
166
+
167
+
168
+ it ( 'proxy.eth_getUncleByBlockNumberAndIndex' , function ( done ) {
158
169
var api = init ( ) ;
159
170
var res = api . proxy . eth_getUncleByBlockNumberAndIndex ( '0x210A9B' , '0x0' ) ;
160
171
res . then ( function ( res ) {
161
172
assert . ok ( res ) ;
162
173
done ( ) ;
163
174
} ) ;
164
175
} ) ;
165
- it ( 'proxy.eth_getBlockTransactionCountByNumber' , function ( done ) {
176
+
177
+ it ( 'proxy.eth_getBlockTransactionCountByNumber' , function ( done ) {
166
178
var api = init ( ) ;
167
179
var res = api . proxy . eth_getBlockTransactionCountByNumber ( '0x10FB78' ) ;
168
180
res . then ( function ( res ) {
169
181
assert . ok ( res ) ;
170
182
done ( ) ;
171
183
} ) ;
172
184
} ) ;
173
- it ( 'proxy.eth_getTransactionByHash' , function ( done ) {
185
+
186
+ it ( 'proxy.eth_getTransactionByHash' , function ( done ) {
174
187
var api = init ( ) ;
175
188
var res = api . proxy . eth_getTransactionByHash ( '0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1' ) ;
176
189
res . then ( function ( res ) {
177
190
assert . ok ( res ) ;
178
191
done ( ) ;
179
192
} ) ;
180
193
} ) ;
181
- it ( 'proxy.eth_getTransactionByBlockNumberAndIndex' , function ( done ) {
194
+
195
+
196
+ it ( 'proxy.eth_getTransactionByBlockNumberAndIndex' , function ( done ) {
182
197
var api = init ( ) ;
183
198
var res = api . proxy . eth_getTransactionByBlockNumberAndIndex ( '0x10d4f' , '0x0' ) ;
184
199
res . then ( function ( res ) {
185
200
assert . ok ( res ) ;
186
201
done ( ) ;
187
202
} ) ;
188
203
} ) ;
189
- it ( 'proxy.eth_getTransactionCount' , function ( done ) {
204
+
205
+ it ( 'proxy.eth_getTransactionCount' , function ( done ) {
190
206
var api = init ( ) ;
191
207
var res = api . proxy . eth_getTransactionCount ( '0x2910543af39aba0cd09dbb2d50200b3e800a63d2' ) ;
192
208
res . then ( function ( res ) {
193
209
assert . ok ( res ) ;
194
210
done ( ) ;
195
211
} ) ;
196
212
} ) ;
197
- xit ( 'proxy.eth_sendRawTransaction' , function ( done ) {
213
+
214
+ xit ( 'proxy.eth_sendRawTransaction' , function ( done ) {
198
215
var api = init ( ) ;
199
216
var res = api . proxy . eth_sendRawTransaction ( '0xf904808000831cfde080' ) ;
200
217
res . then ( function ( res ) {
201
218
assert . ok ( res ) ;
202
219
done ( ) ;
203
220
} ) ;
204
221
} ) ;
205
- it ( 'proxy.eth_getTransactionReceipt' , function ( done ) {
222
+
223
+ it ( 'proxy.eth_getTransactionReceipt' , function ( done ) {
206
224
var api = init ( ) ;
207
225
var res = api . proxy . eth_getTransactionReceipt ( '0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1' ) ;
208
226
res . then ( function ( res ) {
209
227
assert . ok ( res ) ;
210
228
done ( ) ;
211
229
} ) ;
212
230
} ) ;
213
- it ( 'proxy.eth_call' , function ( done ) {
231
+
232
+ it ( 'proxy.eth_call' , function ( done ) {
214
233
var api = init ( ) ;
215
234
var res = api . proxy . eth_call (
216
235
'0xAEEF46DB4855E25702F8237E8f403FddcaF931C0' ,
@@ -222,31 +241,35 @@ describe('api', function() {
222
241
done ( ) ;
223
242
} ) ;
224
243
} ) ;
225
- it ( 'proxy.eth_getCode' , function ( done ) {
244
+
245
+ it ( 'proxy.eth_getCode' , function ( done ) {
226
246
var api = init ( ) ;
227
247
var res = api . proxy . eth_getCode ( '0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c' , 'latest' ) ;
228
248
res . then ( function ( res ) {
229
249
assert . ok ( res ) ;
230
250
done ( ) ;
231
251
} ) ;
232
252
} ) ;
233
- it ( 'proxy.eth_getStorageAt' , function ( done ) {
253
+
254
+ it ( 'proxy.eth_getStorageAt' , function ( done ) {
234
255
var api = init ( ) ;
235
256
var res = api . proxy . eth_getStorageAt ( '0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd' , '0x0' , 'latest' ) ;
236
257
res . then ( function ( res ) {
237
258
assert . ok ( res ) ;
238
259
done ( ) ;
239
260
} ) ;
240
261
} ) ;
241
- it ( 'proxy.eth_gasPrice' , function ( done ) {
262
+
263
+ it ( 'proxy.eth_gasPrice' , function ( done ) {
242
264
var api = init ( ) ;
243
265
var res = api . proxy . eth_gasPrice ( ) ;
244
266
res . then ( function ( res ) {
245
267
assert . ok ( res ) ;
246
268
done ( ) ;
247
269
} ) ;
248
270
} ) ;
249
- xit ( 'proxy.eth_estimateGas' , function ( done ) {
271
+
272
+ xit ( 'proxy.eth_estimateGas' , function ( done ) {
250
273
var api = init ( ) ;
251
274
var res = api . proxy . eth_estimateGas (
252
275
'0xf0160428a8552ac9bb7e050d90eeade4ddd52843' ,
0 commit comments