@sentio/sdk 2.40.0-rc.14 → 2.40.0-rc.16

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 (29) hide show
  1. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
  2. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +23 -0
  3. package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
  4. package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
  5. package/lib/eth/builtin/internal/erc1155-processor.js +8 -0
  6. package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
  7. package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
  8. package/lib/eth/builtin/internal/erc20-processor.js +18 -0
  9. package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
  10. package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
  11. package/lib/eth/builtin/internal/erc20bytes-processor.js +9 -0
  12. package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
  13. package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
  14. package/lib/eth/builtin/internal/erc721-processor.js +14 -0
  15. package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
  16. package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
  17. package/lib/eth/builtin/internal/weth9-processor.js +11 -0
  18. package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
  19. package/lib/eth/codegen/function-calls.d.ts.map +1 -1
  20. package/lib/eth/codegen/function-calls.js +1 -0
  21. package/lib/eth/codegen/function-calls.js.map +1 -1
  22. package/package.json +3 -3
  23. package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +23 -0
  24. package/src/eth/builtin/internal/erc1155-processor.ts +29 -0
  25. package/src/eth/builtin/internal/erc20-processor.ts +34 -0
  26. package/src/eth/builtin/internal/erc20bytes-processor.ts +9 -0
  27. package/src/eth/builtin/internal/erc721-processor.ts +32 -0
  28. package/src/eth/builtin/internal/weth9-processor.ts +11 -0
  29. package/src/eth/codegen/function-calls.ts +3 -0
@@ -135,6 +135,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
135
135
  return result.length == 1 ? result[0] : result;
136
136
  }
137
137
  }
138
+ console.debug("missing eth call:", "name");
138
139
  return await this.contract.getFunction("name()")(overrides || {});
139
140
  } catch (e) {
140
141
  const stack = new Error().stack;
@@ -167,6 +168,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
167
168
  return result.length == 1 ? result[0] : result;
168
169
  }
169
170
  }
171
+ console.debug("missing eth call:", "totalSupply");
170
172
  return await this.contract.getFunction("totalSupply()")(overrides || {});
171
173
  } catch (e) {
172
174
  const stack = new Error().stack;
@@ -197,6 +199,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
197
199
  return result.length == 1 ? result[0] : result;
198
200
  }
199
201
  }
202
+ console.debug("missing eth call:", "decimals");
200
203
  return await this.contract.getFunction("decimals()")(overrides || {});
201
204
  } catch (e) {
202
205
  const stack = new Error().stack;
@@ -228,6 +231,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
228
231
  return result.length == 1 ? result[0] : result;
229
232
  }
230
233
  }
234
+ console.debug("missing eth call:", "balanceOf", arg0);
231
235
  return await this.contract.getFunction("balanceOf(address)")(
232
236
  arg0,
233
237
  overrides || {}
@@ -261,6 +265,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
261
265
  return result.length == 1 ? result[0] : result;
262
266
  }
263
267
  }
268
+ console.debug("missing eth call:", "symbol");
264
269
  return await this.contract.getFunction("symbol()")(overrides || {});
265
270
  } catch (e) {
266
271
  const stack = new Error().stack;
@@ -293,6 +298,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
293
298
  return result.length == 1 ? result[0] : result;
294
299
  }
295
300
  }
301
+ console.debug("missing eth call:", "allowance", arg0, arg1);
296
302
  return await this.contract.getFunction("allowance(address,address)")(
297
303
  arg0,
298
304
  arg1,
@@ -332,6 +338,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
332
338
  return result.length == 1 ? result[0] : result;
333
339
  }
334
340
  }
341
+ console.debug("missing eth call:", "approve", guy, wad);
335
342
  return await this.contract
336
343
  .getFunction("approve(address,uint256)")
337
344
  .staticCall(guy, wad, overrides || {});
@@ -372,6 +379,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
372
379
  return result.length == 1 ? result[0] : result;
373
380
  }
374
381
  }
382
+ console.debug("missing eth call:", "transferFrom", src, dst, wad);
375
383
  return await this.contract
376
384
  .getFunction("transferFrom(address,address,uint256)")
377
385
  .staticCall(src, dst, wad, overrides || {});
@@ -406,6 +414,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
406
414
  return result.length == 1 ? result[0] : result;
407
415
  }
408
416
  }
417
+ console.debug("missing eth call:", "withdraw", wad);
409
418
  return await this.contract
410
419
  .getFunction("withdraw(uint256)")
411
420
  .staticCall(wad, overrides || {});
@@ -441,6 +450,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
441
450
  return result.length == 1 ? result[0] : result;
442
451
  }
443
452
  }
453
+ console.debug("missing eth call:", "transfer", dst, wad);
444
454
  return await this.contract
445
455
  .getFunction("transfer(address,uint256)")
446
456
  .staticCall(dst, wad, overrides || {});
@@ -472,6 +482,7 @@ export class WETH9ContractView extends ContractView<WETH9> {
472
482
  return result.length == 1 ? result[0] : result;
473
483
  }
474
484
  }
485
+ console.debug("missing eth call:", "deposit");
475
486
  return await this.contract
476
487
  .getFunction("deposit()")
477
488
  .staticCall(overrides || {});
@@ -59,6 +59,9 @@ export function generateViewFunction(view: boolean, fn: FunctionDeclaration, inc
59
59
  return result.length == 1? result[0]: result
60
60
  }
61
61
  }
62
+ console.debug("missing eth call:", "${fn.name}", ${
63
+ fn.inputs.length > 0 ? fn.inputs.map((input, index) => input.name || `arg${index}`).join(',') + ',' : ''
64
+ })
62
65
  return await ${func}${call}(${
63
66
  fn.inputs.length > 0 ? fn.inputs.map((input, index) => input.name || `arg${index}`).join(',') + ',' : ''
64
67
  } overrides || {})