Skip to content
Snippets Groups Projects
  1. Oct 05, 2016
  2. Oct 04, 2016
  3. Sep 30, 2016
  4. Sep 20, 2016
  5. Sep 16, 2016
    • yamadapc's avatar
      Nest test-suite for extension · c4a70f2b
      yamadapc authored
      c4a70f2b
    • yamadapc's avatar
      Add failing skipped tests for #14 · 85869f50
      yamadapc authored
      85869f50
    • yamadapc's avatar
      Add .tern-port to .gitignore · 3d88a599
      yamadapc authored
      3d88a599
    • yamadapc's avatar
      Potential fix for setSubscribeCallback · ff66fc9f
      yamadapc authored
      I don't know what this function is supposed to do; definitely this is
      more correct than what's there.
      
      This closes #22.
      ff66fc9f
    • Fabien's avatar
      Merge pull request #24 from yamadapc/dev · 265c3fbc
      Fabien authored
      Initial implementation of API method codegen
      265c3fbc
    • yamadapc's avatar
      Initial implementation of API method codegen · 4019a816
      yamadapc authored
      Doesn't mess with the exported API. Adds a `lib/api-from-methods` module
      exporting all API methods that use the
      `this.send(apiName, options, callback)` scheme.
      
      The generated functions work as follows. For every method in
      `methods.json`, two functions are generated:
      
      - `camelCaseMethodWith`
      - `camelCaseMethod`
      
      The usages are:
      
      ```javascript
      api.camelCaseMethodWith(options, callback);
      ```
      
      And:
      ```javascript
      api.camelCaseMethod(param1, param2, callback);
      ```
      
      `options` currently holds parameters with their names generated from the
      source `lib/api.js` variable names. For example:
      
      ```javascript
      api.getBlockWith({
        blockNum: 1, // <- because `lib/api.js` called the variable `blockNum`
      }, function (err, operation) {
        console.log(err, operation);
      });
      
      api.getBlock(1, function (err, operation) {
        console.log(err, operation);
      });
      ```
      
      Further improvements could be made to the method data and generated code. Namely:
      - It'll require a `json-loader` or way to require `.json` files on
        browser bundlers
      - It doesn't handle #22
      - When there's no error but the `data.id` mismatches the iterator, the
        callback isn't called; this is a weird design decision
      
      This closes #23.
      4019a816
    • adcpm's avatar
      Change version · 7f128137
      adcpm authored
      7f128137
    • adcpm's avatar
      Merge changes and update browser libs · c4a8217a
      adcpm authored
      c4a8217a
    • adcpm's avatar
      Update version and contributors · 1cd7a73b
      adcpm authored
      1cd7a73b
    • Fabien's avatar
      Merge pull request #21 from yamadapc/dev · 2521e3e7
      Fabien authored
      Lousy macro patch to #20
      2521e3e7
    • yamadapc's avatar
      Lousy macro patch to #20 · 82e7af16
      yamadapc authored
      Fixes errors in `Steem.send` callbacks when `data` isn't
      defined. Changes what happens when an error is thrown, since `data`
      isn't always passed to API-level callbacks.
      82e7af16
  6. Sep 03, 2016
Loading