Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitski-provider

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitski-provider - npm Package Compare versions

Comparing version 0.6.0-alpha.0 to 0.6.0-alpha.1

7

coverage/coverage-final.json

@@ -6,8 +6,5 @@ {"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/bitski-engine.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/bitski-engine.ts","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":53}},"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":70}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":79}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":87}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":79}},"5":{"start":{"line":9,"column":0},"end":{"line":9,"column":85}},"6":{"start":{"line":11,"column":0},"end":{"line":11,"column":70}},"7":{"start":{"line":12,"column":0},"end":{"line":12,"column":86}},"8":{"start":{"line":17,"column":4},"end":{"line":17,"column":19}},"9":{"start":{"line":18,"column":4},"end":{"line":18,"column":44}},"10":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"11":{"start":{"line":20,"column":4},"end":{"line":20,"column":60}},"12":{"start":{"line":21,"column":4},"end":{"line":21,"column":50}},"13":{"start":{"line":23,"column":24},"end":{"line":23,"column":69}},"14":{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},"15":{"start":{"line":26,"column":6},"end":{"line":26,"column":47}},"16":{"start":{"line":29,"column":37},"end":{"line":29,"column":66}},"17":{"start":{"line":30,"column":4},"end":{"line":32,"column":7}},"18":{"start":{"line":31,"column":6},"end":{"line":31,"column":43}},"19":{"start":{"line":34,"column":4},"end":{"line":34,"column":47}},"20":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"21":{"start":{"line":37,"column":6},"end":{"line":37,"column":55}},"22":{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},"23":{"start":{"line":45,"column":6},"end":{"line":45,"column":44}},"24":{"start":{"line":47,"column":6},"end":{"line":47,"column":64}},"25":{"start":{"line":14,"column":0},"end":{"line":51,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":2},"end":{"line":16,"column":13}},"loc":{"start":{"line":16,"column":26},"end":{"line":39,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":30,"column":40},"end":{"line":30,"column":41}},"loc":{"start":{"line":30,"column":62},"end":{"line":32,"column":5}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":42,"column":9},"end":{"line":42,"column":12}},"loc":{"start":{"line":42,"column":44},"end":{"line":49,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":23,"column":26},"end":{"line":23,"column":33}},"type":"binary-expr","locations":[{"start":{"line":23,"column":26},"end":{"line":23,"column":33}},{"start":{"line":23,"column":37},"end":{"line":23,"column":68}}]},"1":{"loc":{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":27,"column":5}},{"start":{"line":25,"column":4},"end":{"line":27,"column":5}}]},"2":{"loc":{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":36,"column":4},"end":{"line":38,"column":5}},{"start":{"line":36,"column":4},"end":{"line":38,"column":5}}]},"3":{"loc":{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},{"start":{"line":44,"column":4},"end":{"line":48,"column":5}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":3,"5":3,"6":3,"7":3,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":0,"19":2,"20":2,"21":2,"22":1,"23":1,"24":0,"25":3},"f":{"0":2,"1":0,"2":1},"b":{"0":[2,2],"1":[2,0],"2":[2,0],"3":[1,0]}}

,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/auth/access-token.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/auth/access-token.ts","statementMap":{"0":{"start":{"line":6,"column":9},"end":{"line":6,"column":40}},"1":{"start":{"line":18,"column":4},"end":{"line":18,"column":23}},"2":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"3":{"start":{"line":20,"column":6},"end":{"line":20,"column":65}},"4":{"start":{"line":9,"column":4},"end":{"line":13,"column":5}},"5":{"start":{"line":10,"column":18},"end":{"line":10,"column":47}},"6":{"start":{"line":11,"column":24},"end":{"line":11,"column":44}},"7":{"start":{"line":12,"column":6},"end":{"line":12,"column":28}},"8":{"start":{"line":14,"column":4},"end":{"line":14,"column":17}},"9":{"start":{"line":4,"column":0},"end":{"line":23,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":13}},"loc":{"start":{"line":17,"column":47},"end":{"line":22,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":5}},"loc":{"start":{"line":8,"column":13},"end":{"line":15,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":21,"column":5}},{"start":{"line":19,"column":4},"end":{"line":21,"column":5}}]},"1":{"loc":{"start":{"line":9,"column":4},"end":{"line":13,"column":5}},"type":"if","locations":[{"start":{"line":9,"column":4},"end":{"line":13,"column":5}},{"start":{"line":9,"column":4},"end":{"line":13,"column":5}}]}},"s":{"0":3,"1":3,"2":3,"3":2,"4":3,"5":2,"6":2,"7":2,"8":1,"9":3},"f":{"0":3,"1":3},"b":{"0":[2,1],"1":[2,1]}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/authenticated-fetch.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/authenticated-fetch.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":70}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":68}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":91}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":29}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":54}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":51}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":41}},"8":{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":65}},"10":{"start":{"line":26,"column":6},"end":{"line":26,"column":67}},"11":{"start":{"line":31,"column":4},"end":{"line":36,"column":7}},"12":{"start":{"line":32,"column":25},"end":{"line":32,"column":70}},"13":{"start":{"line":33,"column":6},"end":{"line":33,"column":53}},"14":{"start":{"line":35,"column":6},"end":{"line":35,"column":17}},"15":{"start":{"line":40,"column":23},"end":{"line":40,"column":55}},"16":{"start":{"line":41,"column":4},"end":{"line":41,"column":51}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":81}},"18":{"start":{"line":45,"column":54},"end":{"line":45,"column":79}},"19":{"start":{"line":50,"column":23},"end":{"line":50,"column":45}},"20":{"start":{"line":52,"column":4},"end":{"line":52,"column":29}},"21":{"start":{"line":54,"column":23},"end":{"line":57,"column":5}},"22":{"start":{"line":59,"column":4},"end":{"line":59,"column":62}},"23":{"start":{"line":61,"column":25},"end":{"line":61,"column":39}},"24":{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},"25":{"start":{"line":63,"column":6},"end":{"line":63,"column":56}},"26":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"27":{"start":{"line":67,"column":6},"end":{"line":67,"column":54}},"28":{"start":{"line":70,"column":30},"end":{"line":74,"column":5}},"29":{"start":{"line":76,"column":4},"end":{"line":76,"column":29}},"30":{"start":{"line":80,"column":4},"end":{"line":100,"column":7}},"31":{"start":{"line":85,"column":12},"end":{"line":85,"column":48}},"32":{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},"33":{"start":{"line":89,"column":23},"end":{"line":89,"column":131}},"34":{"start":{"line":90,"column":36},"end":{"line":90,"column":53}},"35":{"start":{"line":91,"column":8},"end":{"line":91,"column":40}},"36":{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},"37":{"start":{"line":94,"column":8},"end":{"line":96,"column":11}},"38":{"start":{"line":95,"column":10},"end":{"line":95,"column":26}},"39":{"start":{"line":99,"column":6},"end":{"line":99,"column":30}},"40":{"start":{"line":104,"column":19},"end":{"line":104,"column":33}},"41":{"start":{"line":105,"column":4},"end":{"line":105,"column":70}},"42":{"start":{"line":105,"column":45},"end":{"line":105,"column":68}},"43":{"start":{"line":109,"column":4},"end":{"line":109,"column":78}},"44":{"start":{"line":109,"column":48},"end":{"line":109,"column":76}},"45":{"start":{"line":10,"column":0},"end":{"line":111,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":13}},"loc":{"start":{"line":15,"column":115},"end":{"line":20,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":9},"end":{"line":22,"column":21}},"loc":{"start":{"line":22,"column":41},"end":{"line":28,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":9},"end":{"line":30,"column":34}},"loc":{"start":{"line":30,"column":54},"end":{"line":37,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":31,"column":51},"end":{"line":31,"column":52}},"loc":{"start":{"line":31,"column":67},"end":{"line":34,"column":5}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":34,"column":13},"end":{"line":34,"column":14}},"loc":{"start":{"line":34,"column":23},"end":{"line":36,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":39,"column":9},"end":{"line":39,"column":36}},"loc":{"start":{"line":39,"column":56},"end":{"line":42,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":44,"column":12},"end":{"line":44,"column":33}},"loc":{"start":{"line":44,"column":42},"end":{"line":46,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":45,"column":42},"end":{"line":45,"column":43}},"loc":{"start":{"line":45,"column":54},"end":{"line":45,"column":79}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":12},"end":{"line":48,"column":29}},"loc":{"start":{"line":48,"column":60},"end":{"line":77,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":79,"column":12},"end":{"line":79,"column":22}},"loc":{"start":{"line":79,"column":53},"end":{"line":101,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":85,"column":4},"end":{"line":85,"column":5}},"loc":{"start":{"line":85,"column":12},"end":{"line":85,"column":48}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":86,"column":4},"end":{"line":86,"column":5}},"loc":{"start":{"line":86,"column":20},"end":{"line":100,"column":5}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":94,"column":63},"end":{"line":94,"column":65}},"loc":{"start":{"line":94,"column":68},"end":{"line":96,"column":9}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":103,"column":10},"end":{"line":103,"column":25}},"loc":{"start":{"line":103,"column":30},"end":{"line":106,"column":3}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":105,"column":33},"end":{"line":105,"column":34}},"loc":{"start":{"line":105,"column":45},"end":{"line":105,"column":68}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":108,"column":10},"end":{"line":108,"column":28}},"loc":{"start":{"line":108,"column":40},"end":{"line":110,"column":3}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":109,"column":36},"end":{"line":109,"column":37}},"loc":{"start":{"line":109,"column":48},"end":{"line":109,"column":76}}}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":113},"end":{"line":15,"column":115}},"type":"default-arg","locations":[{"start":{"line":15,"column":113},"end":{"line":15,"column":115}}]},"1":{"loc":{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},{"start":{"line":23,"column":4},"end":{"line":27,"column":5}}]},"2":{"loc":{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},{"start":{"line":62,"column":4},"end":{"line":64,"column":5}}]},"3":{"loc":{"start":{"line":62,"column":8},"end":{"line":62,"column":33}},"type":"binary-expr","locations":[{"start":{"line":62,"column":8},"end":{"line":62,"column":33}},{"start":{"line":62,"column":37},"end":{"line":62,"column":49}}]},"4":{"loc":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},{"start":{"line":66,"column":4},"end":{"line":68,"column":5}}]},"5":{"loc":{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},"type":"if","locations":[{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},{"start":{"line":88,"column":6},"end":{"line":92,"column":7}}]},"6":{"loc":{"start":{"line":88,"column":10},"end":{"line":88,"column":13}},"type":"binary-expr","locations":[{"start":{"line":88,"column":10},"end":{"line":88,"column":13}},{"start":{"line":88,"column":17},"end":{"line":88,"column":43}}]},"7":{"loc":{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},"type":"if","locations":[{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},{"start":{"line":93,"column":6},"end":{"line":97,"column":7}}]},"8":{"loc":{"start":{"line":93,"column":10},"end":{"line":93,"column":13}},"type":"binary-expr","locations":[{"start":{"line":93,"column":10},"end":{"line":93,"column":13}},{"start":{"line":93,"column":17},"end":{"line":93,"column":46}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":6,"5":6,"6":6,"7":6,"8":6,"9":1,"10":5,"11":1,"12":1,"13":1,"14":0,"15":5,"16":5,"17":6,"18":31,"19":6,"20":6,"21":6,"22":6,"23":6,"24":6,"25":0,"26":6,"27":1,"28":6,"29":6,"30":6,"31":12,"32":6,"33":1,"34":1,"35":1,"36":5,"37":2,"38":2,"39":3,"40":11,"41":11,"42":53,"43":2,"44":6,"45":3},"f":{"0":6,"1":6,"2":1,"3":1,"4":0,"5":5,"6":6,"7":31,"8":6,"9":6,"10":12,"11":6,"12":2,"13":11,"14":53,"15":2,"16":6},"b":{"0":[0],"1":[1,5],"2":[0,6],"3":[6,0],"4":[1,5],"5":[1,5],"6":[6,3],"7":[2,3],"8":[5,2]}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/authenticated-fetch.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/authenticated-fetch.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":70}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":68}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":91}},"4":{"start":{"line":16,"column":4},"end":{"line":16,"column":29}},"5":{"start":{"line":17,"column":4},"end":{"line":17,"column":54}},"6":{"start":{"line":18,"column":4},"end":{"line":18,"column":51}},"7":{"start":{"line":19,"column":4},"end":{"line":19,"column":41}},"8":{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},"9":{"start":{"line":24,"column":6},"end":{"line":24,"column":65}},"10":{"start":{"line":26,"column":6},"end":{"line":26,"column":67}},"11":{"start":{"line":31,"column":4},"end":{"line":36,"column":7}},"12":{"start":{"line":32,"column":25},"end":{"line":32,"column":70}},"13":{"start":{"line":33,"column":6},"end":{"line":33,"column":53}},"14":{"start":{"line":35,"column":6},"end":{"line":35,"column":17}},"15":{"start":{"line":40,"column":23},"end":{"line":40,"column":55}},"16":{"start":{"line":41,"column":4},"end":{"line":41,"column":51}},"17":{"start":{"line":45,"column":4},"end":{"line":45,"column":81}},"18":{"start":{"line":45,"column":54},"end":{"line":45,"column":79}},"19":{"start":{"line":50,"column":23},"end":{"line":50,"column":45}},"20":{"start":{"line":52,"column":4},"end":{"line":52,"column":29}},"21":{"start":{"line":54,"column":23},"end":{"line":57,"column":5}},"22":{"start":{"line":59,"column":4},"end":{"line":59,"column":62}},"23":{"start":{"line":61,"column":25},"end":{"line":61,"column":39}},"24":{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},"25":{"start":{"line":63,"column":6},"end":{"line":63,"column":55}},"26":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"27":{"start":{"line":67,"column":6},"end":{"line":67,"column":54}},"28":{"start":{"line":70,"column":30},"end":{"line":74,"column":5}},"29":{"start":{"line":76,"column":4},"end":{"line":76,"column":29}},"30":{"start":{"line":80,"column":4},"end":{"line":100,"column":7}},"31":{"start":{"line":85,"column":12},"end":{"line":85,"column":47}},"32":{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},"33":{"start":{"line":89,"column":23},"end":{"line":89,"column":131}},"34":{"start":{"line":90,"column":36},"end":{"line":90,"column":53}},"35":{"start":{"line":91,"column":8},"end":{"line":91,"column":40}},"36":{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},"37":{"start":{"line":94,"column":8},"end":{"line":96,"column":11}},"38":{"start":{"line":95,"column":10},"end":{"line":95,"column":26}},"39":{"start":{"line":99,"column":6},"end":{"line":99,"column":30}},"40":{"start":{"line":104,"column":19},"end":{"line":104,"column":33}},"41":{"start":{"line":105,"column":4},"end":{"line":105,"column":70}},"42":{"start":{"line":105,"column":45},"end":{"line":105,"column":68}},"43":{"start":{"line":109,"column":4},"end":{"line":109,"column":78}},"44":{"start":{"line":109,"column":48},"end":{"line":109,"column":76}},"45":{"start":{"line":10,"column":0},"end":{"line":111,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":13}},"loc":{"start":{"line":15,"column":115},"end":{"line":20,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":9},"end":{"line":22,"column":21}},"loc":{"start":{"line":22,"column":41},"end":{"line":28,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":9},"end":{"line":30,"column":34}},"loc":{"start":{"line":30,"column":54},"end":{"line":37,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":31,"column":51},"end":{"line":31,"column":52}},"loc":{"start":{"line":31,"column":67},"end":{"line":34,"column":5}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":34,"column":13},"end":{"line":34,"column":14}},"loc":{"start":{"line":34,"column":23},"end":{"line":36,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":39,"column":9},"end":{"line":39,"column":36}},"loc":{"start":{"line":39,"column":56},"end":{"line":42,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":44,"column":12},"end":{"line":44,"column":33}},"loc":{"start":{"line":44,"column":42},"end":{"line":46,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":45,"column":42},"end":{"line":45,"column":43}},"loc":{"start":{"line":45,"column":54},"end":{"line":45,"column":79}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":12},"end":{"line":48,"column":29}},"loc":{"start":{"line":48,"column":60},"end":{"line":77,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":79,"column":12},"end":{"line":79,"column":22}},"loc":{"start":{"line":79,"column":53},"end":{"line":101,"column":3}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":85,"column":4},"end":{"line":85,"column":5}},"loc":{"start":{"line":85,"column":12},"end":{"line":85,"column":47}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":86,"column":4},"end":{"line":86,"column":5}},"loc":{"start":{"line":86,"column":20},"end":{"line":100,"column":5}}},"12":{"name":"(anonymous_13)","decl":{"start":{"line":94,"column":63},"end":{"line":94,"column":65}},"loc":{"start":{"line":94,"column":68},"end":{"line":96,"column":9}}},"13":{"name":"(anonymous_14)","decl":{"start":{"line":103,"column":10},"end":{"line":103,"column":25}},"loc":{"start":{"line":103,"column":30},"end":{"line":106,"column":3}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":105,"column":33},"end":{"line":105,"column":34}},"loc":{"start":{"line":105,"column":45},"end":{"line":105,"column":68}}},"15":{"name":"(anonymous_16)","decl":{"start":{"line":108,"column":10},"end":{"line":108,"column":28}},"loc":{"start":{"line":108,"column":40},"end":{"line":110,"column":3}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":109,"column":36},"end":{"line":109,"column":37}},"loc":{"start":{"line":109,"column":48},"end":{"line":109,"column":76}}}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":113},"end":{"line":15,"column":115}},"type":"default-arg","locations":[{"start":{"line":15,"column":113},"end":{"line":15,"column":115}}]},"1":{"loc":{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":23,"column":4},"end":{"line":27,"column":5}},{"start":{"line":23,"column":4},"end":{"line":27,"column":5}}]},"2":{"loc":{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":64,"column":5}},{"start":{"line":62,"column":4},"end":{"line":64,"column":5}}]},"3":{"loc":{"start":{"line":62,"column":8},"end":{"line":62,"column":32}},"type":"binary-expr","locations":[{"start":{"line":62,"column":8},"end":{"line":62,"column":32}},{"start":{"line":62,"column":36},"end":{"line":62,"column":48}}]},"4":{"loc":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},{"start":{"line":66,"column":4},"end":{"line":68,"column":5}}]},"5":{"loc":{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},"type":"if","locations":[{"start":{"line":88,"column":6},"end":{"line":92,"column":7}},{"start":{"line":88,"column":6},"end":{"line":92,"column":7}}]},"6":{"loc":{"start":{"line":88,"column":10},"end":{"line":88,"column":13}},"type":"binary-expr","locations":[{"start":{"line":88,"column":10},"end":{"line":88,"column":13}},{"start":{"line":88,"column":17},"end":{"line":88,"column":43}}]},"7":{"loc":{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},"type":"if","locations":[{"start":{"line":93,"column":6},"end":{"line":97,"column":7}},{"start":{"line":93,"column":6},"end":{"line":97,"column":7}}]},"8":{"loc":{"start":{"line":93,"column":10},"end":{"line":93,"column":13}},"type":"binary-expr","locations":[{"start":{"line":93,"column":10},"end":{"line":93,"column":13}},{"start":{"line":93,"column":17},"end":{"line":93,"column":46}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":7,"5":7,"6":7,"7":7,"8":7,"9":2,"10":5,"11":2,"12":1,"13":1,"14":1,"15":5,"16":5,"17":7,"18":32,"19":6,"20":6,"21":6,"22":6,"23":6,"24":6,"25":1,"26":6,"27":1,"28":6,"29":6,"30":6,"31":12,"32":6,"33":1,"34":1,"35":1,"36":5,"37":2,"38":2,"39":3,"40":11,"41":11,"42":53,"43":2,"44":6,"45":3},"f":{"0":7,"1":7,"2":2,"3":1,"4":1,"5":5,"6":7,"7":32,"8":6,"9":6,"10":12,"11":6,"12":2,"13":11,"14":53,"15":2,"16":6},"b":{"0":[0],"1":[2,5],"2":[1,5],"3":[6,1],"4":[1,5],"5":[1,5],"6":[6,3],"7":[2,3],"8":[5,2]}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/nonce-tracker.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/nonce-tracker.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":71}},"1":{"start":{"line":13,"column":4},"end":{"line":13,"column":12}},"2":{"start":{"line":14,"column":4},"end":{"line":14,"column":48}},"3":{"start":{"line":18,"column":4},"end":{"line":28,"column":5}},"4":{"start":{"line":20,"column":8},"end":{"line":20,"column":63}},"5":{"start":{"line":21,"column":8},"end":{"line":21,"column":15}},"6":{"start":{"line":23,"column":8},"end":{"line":23,"column":57}},"7":{"start":{"line":24,"column":8},"end":{"line":24,"column":15}},"8":{"start":{"line":26,"column":8},"end":{"line":26,"column":15}},"9":{"start":{"line":27,"column":8},"end":{"line":27,"column":15}},"10":{"start":{"line":33,"column":21},"end":{"line":33,"column":73}},"11":{"start":{"line":35,"column":4},"end":{"line":38,"column":5}},"12":{"start":{"line":36,"column":6},"end":{"line":36,"column":13}},"13":{"start":{"line":37,"column":6},"end":{"line":37,"column":13}},"14":{"start":{"line":40,"column":20},"end":{"line":40,"column":51}},"15":{"start":{"line":41,"column":25},"end":{"line":41,"column":53}},"16":{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},"17":{"start":{"line":45,"column":6},"end":{"line":45,"column":30}},"18":{"start":{"line":46,"column":6},"end":{"line":46,"column":13}},"19":{"start":{"line":50,"column":4},"end":{"line":55,"column":7}},"20":{"start":{"line":51,"column":6},"end":{"line":53,"column":7}},"21":{"start":{"line":52,"column":8},"end":{"line":52,"column":45}},"22":{"start":{"line":54,"column":6},"end":{"line":54,"column":11}},"23":{"start":{"line":59,"column":19},"end":{"line":59,"column":35}},"24":{"start":{"line":60,"column":14},"end":{"line":60,"column":20}},"25":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"26":{"start":{"line":62,"column":6},"end":{"line":62,"column":25}},"27":{"start":{"line":64,"column":4},"end":{"line":64,"column":22}},"28":{"start":{"line":68,"column":4},"end":{"line":68,"column":29}},"29":{"start":{"line":72,"column":27},"end":{"line":72,"column":46}},"30":{"start":{"line":73,"column":22},"end":{"line":73,"column":40}},"31":{"start":{"line":74,"column":4},"end":{"line":74,"column":33}},"32":{"start":{"line":80,"column":4},"end":{"line":95,"column":7}},"33":{"start":{"line":81,"column":26},"end":{"line":81,"column":76}},"34":{"start":{"line":82,"column":29},"end":{"line":82,"column":46}},"35":{"start":{"line":83,"column":22},"end":{"line":83,"column":38}},"36":{"start":{"line":84,"column":6},"end":{"line":93,"column":7}},"37":{"start":{"line":85,"column":8},"end":{"line":89,"column":9}},"38":{"start":{"line":87,"column":28},"end":{"line":87,"column":58}},"39":{"start":{"line":88,"column":10},"end":{"line":88,"column":50}},"40":{"start":{"line":92,"column":8},"end":{"line":92,"column":40}},"41":{"start":{"line":94,"column":6},"end":{"line":94,"column":11}},"42":{"start":{"line":8,"column":0},"end":{"line":98,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":12,"column":2},"end":{"line":15,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":17,"column":9},"end":{"line":17,"column":21}},"loc":{"start":{"line":17,"column":41},"end":{"line":29,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":32,"column":12},"end":{"line":32,"column":40}},"loc":{"start":{"line":32,"column":60},"end":{"line":56,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":50,"column":9},"end":{"line":50,"column":10}},"loc":{"start":{"line":50,"column":29},"end":{"line":55,"column":5}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":12},"end":{"line":58,"column":16}},"loc":{"start":{"line":58,"column":29},"end":{"line":65,"column":3}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":12},"end":{"line":67,"column":18}},"loc":{"start":{"line":67,"column":31},"end":{"line":69,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":71,"column":12},"end":{"line":71,"column":20}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":78,"column":12},"end":{"line":78,"column":39}},"loc":{"start":{"line":78,"column":54},"end":{"line":96,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":80,"column":9},"end":{"line":80,"column":10}},"loc":{"start":{"line":80,"column":29},"end":{"line":95,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":6},"end":{"line":21,"column":15}},"type":"switch","locations":[{"start":{"line":19,"column":6},"end":{"line":21,"column":15}},{"start":{"line":22,"column":6},"end":{"line":24,"column":15}},{"start":{"line":25,"column":6},"end":{"line":27,"column":15}}]},"1":{"loc":{"start":{"line":33,"column":49},"end":{"line":33,"column":66}},"type":"cond-expr","locations":[{"start":{"line":33,"column":49},"end":{"line":33,"column":66}},{"start":{"line":33,"column":69},"end":{"line":33,"column":73}}]},"2":{"loc":{"start":{"line":35,"column":4},"end":{"line":38,"column":5}},"type":"if","locations":[{"start":{"line":35,"column":4},"end":{"line":38,"column":5}},{"start":{"line":35,"column":4},"end":{"line":38,"column":5}}]},"3":{"loc":{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":47,"column":5}},{"start":{"line":44,"column":4},"end":{"line":47,"column":5}}]},"4":{"loc":{"start":{"line":51,"column":6},"end":{"line":53,"column":7}},"type":"if","locations":[{"start":{"line":51,"column":6},"end":{"line":53,"column":7}},{"start":{"line":51,"column":6},"end":{"line":53,"column":7}}]},"5":{"loc":{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},"type":"if","locations":[{"start":{"line":61,"column":4},"end":{"line":63,"column":5}},{"start":{"line":61,"column":4},"end":{"line":63,"column":5}}]},"6":{"loc":{"start":{"line":81,"column":54},"end":{"line":81,"column":71}},"type":"cond-expr","locations":[{"start":{"line":81,"column":54},"end":{"line":81,"column":71}},{"start":{"line":81,"column":74},"end":{"line":81,"column":76}}]},"7":{"loc":{"start":{"line":84,"column":6},"end":{"line":93,"column":7}},"type":"if","locations":[{"start":{"line":84,"column":6},"end":{"line":93,"column":7}},{"start":{"line":84,"column":6},"end":{"line":93,"column":7}}]},"8":{"loc":{"start":{"line":85,"column":8},"end":{"line":89,"column":9}},"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":89,"column":9}},{"start":{"line":85,"column":8},"end":{"line":89,"column":9}}]},"9":{"loc":{"start":{"line":85,"column":12},"end":{"line":85,"column":26}},"type":"binary-expr","locations":[{"start":{"line":85,"column":12},"end":{"line":85,"column":26}},{"start":{"line":85,"column":30},"end":{"line":85,"column":37}}]}},"s":{"0":4,"1":6,"2":6,"3":5,"4":2,"5":2,"6":1,"7":1,"8":2,"9":2,"10":2,"11":2,"12":0,"13":0,"14":2,"15":2,"16":2,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":0,"41":1,"42":4},"f":{"0":6,"1":5,"2":2,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1},"b":{"0":[2,1,2],"1":[2,0],"2":[0,2],"3":[1,1],"4":[1,0],"5":[1,0],"6":[1,0],"7":[1,0],"8":[1,0],"9":[1,1]}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/transaction-validator.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/transaction-validator.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":71}},"1":{"start":{"line":12,"column":4},"end":{"line":21,"column":5}},"2":{"start":{"line":13,"column":6},"end":{"line":18,"column":9}},"3":{"start":{"line":14,"column":8},"end":{"line":14,"column":15}},"4":{"start":{"line":17,"column":8},"end":{"line":17,"column":15}},"5":{"start":{"line":20,"column":6},"end":{"line":20,"column":13}},"6":{"start":{"line":26,"column":19},"end":{"line":26,"column":39}},"7":{"start":{"line":28,"column":27},"end":{"line":28,"column":29}},"8":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"9":{"start":{"line":31,"column":6},"end":{"line":31,"column":30}},"10":{"start":{"line":34,"column":42},"end":{"line":34,"column":44}},"11":{"start":{"line":37,"column":4},"end":{"line":39,"column":5}},"12":{"start":{"line":38,"column":6},"end":{"line":38,"column":53}},"13":{"start":{"line":42,"column":4},"end":{"line":46,"column":5}},"14":{"start":{"line":43,"column":6},"end":{"line":43,"column":45}},"15":{"start":{"line":45,"column":6},"end":{"line":45,"column":42}},"16":{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},"17":{"start":{"line":50,"column":6},"end":{"line":50,"column":53}},"18":{"start":{"line":52,"column":6},"end":{"line":52,"column":39}},"19":{"start":{"line":56,"column":4},"end":{"line":60,"column":5}},"20":{"start":{"line":57,"column":6},"end":{"line":57,"column":51}},"21":{"start":{"line":59,"column":6},"end":{"line":59,"column":37}},"22":{"start":{"line":63,"column":19},"end":{"line":63,"column":46}},"23":{"start":{"line":66,"column":4},"end":{"line":66,"column":37}},"24":{"start":{"line":67,"column":4},"end":{"line":67,"column":34}},"25":{"start":{"line":68,"column":4},"end":{"line":68,"column":32}},"26":{"start":{"line":71,"column":4},"end":{"line":71,"column":36}},"27":{"start":{"line":72,"column":4},"end":{"line":72,"column":19}},"28":{"start":{"line":76,"column":20},"end":{"line":81,"column":5}},"29":{"start":{"line":82,"column":4},"end":{"line":82,"column":40}},"30":{"start":{"line":86,"column":20},"end":{"line":91,"column":5}},"31":{"start":{"line":92,"column":4},"end":{"line":92,"column":40}},"32":{"start":{"line":96,"column":20},"end":{"line":101,"column":5}},"33":{"start":{"line":102,"column":4},"end":{"line":102,"column":40}},"34":{"start":{"line":106,"column":20},"end":{"line":111,"column":5}},"35":{"start":{"line":112,"column":4},"end":{"line":112,"column":40}},"36":{"start":{"line":117,"column":4},"end":{"line":125,"column":7}},"37":{"start":{"line":118,"column":6},"end":{"line":124,"column":9}},"38":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"39":{"start":{"line":120,"column":10},"end":{"line":120,"column":22}},"40":{"start":{"line":122,"column":10},"end":{"line":122,"column":33}},"41":{"start":{"line":8,"column":0},"end":{"line":127,"column":1}}},"fnMap":{"0":{"name":"(anonymous_7)","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":21}},"loc":{"start":{"line":10,"column":41},"end":{"line":22,"column":3}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":51},"end":{"line":13,"column":52}},"loc":{"start":{"line":13,"column":63},"end":{"line":15,"column":7}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":15,"column":15},"end":{"line":15,"column":17}},"loc":{"start":{"line":15,"column":20},"end":{"line":18,"column":7}}},"3":{"name":"(anonymous_10)","decl":{"start":{"line":25,"column":18},"end":{"line":25,"column":42}},"loc":{"start":{"line":25,"column":51},"end":{"line":73,"column":3}}},"4":{"name":"(anonymous_12)","decl":{"start":{"line":75,"column":16},"end":{"line":75,"column":23}},"loc":{"start":{"line":75,"column":32},"end":{"line":83,"column":3}}},"5":{"name":"(anonymous_14)","decl":{"start":{"line":85,"column":16},"end":{"line":85,"column":26}},"loc":{"start":{"line":85,"column":27},"end":{"line":93,"column":3}}},"6":{"name":"(anonymous_16)","decl":{"start":{"line":95,"column":16},"end":{"line":95,"column":26}},"loc":{"start":{"line":95,"column":39},"end":{"line":103,"column":3}}},"7":{"name":"(anonymous_18)","decl":{"start":{"line":105,"column":16},"end":{"line":105,"column":31}},"loc":{"start":{"line":105,"column":32},"end":{"line":113,"column":3}}},"8":{"name":"(anonymous_20)","decl":{"start":{"line":116,"column":10},"end":{"line":116,"column":23}},"loc":{"start":{"line":116,"column":32},"end":{"line":126,"column":3}}},"9":{"name":"(anonymous_21)","decl":{"start":{"line":117,"column":23},"end":{"line":117,"column":24}},"loc":{"start":{"line":117,"column":43},"end":{"line":125,"column":5}}},"10":{"name":"(anonymous_22)","decl":{"start":{"line":118,"column":32},"end":{"line":118,"column":33}},"loc":{"start":{"line":118,"column":48},"end":{"line":124,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":4},"end":{"line":21,"column":5}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":21,"column":5}},{"start":{"line":12,"column":4},"end":{"line":21,"column":5}}]},"1":{"loc":{"start":{"line":26,"column":19},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":19},"end":{"line":26,"column":33}},{"start":{"line":26,"column":37},"end":{"line":26,"column":39}}]},"2":{"loc":{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":32,"column":5}},{"start":{"line":30,"column":4},"end":{"line":32,"column":5}}]},"3":{"loc":{"start":{"line":37,"column":4},"end":{"line":39,"column":5}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":39,"column":5}},{"start":{"line":37,"column":4},"end":{"line":39,"column":5}}]},"4":{"loc":{"start":{"line":42,"column":4},"end":{"line":46,"column":5}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":46,"column":5}},{"start":{"line":42,"column":4},"end":{"line":46,"column":5}}]},"5":{"loc":{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":53,"column":5}},{"start":{"line":49,"column":4},"end":{"line":53,"column":5}}]},"6":{"loc":{"start":{"line":56,"column":4},"end":{"line":60,"column":5}},"type":"if","locations":[{"start":{"line":56,"column":4},"end":{"line":60,"column":5}},{"start":{"line":56,"column":4},"end":{"line":60,"column":5}}]},"7":{"loc":{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},"type":"if","locations":[{"start":{"line":119,"column":8},"end":{"line":123,"column":9}},{"start":{"line":119,"column":8},"end":{"line":123,"column":9}}]}},"s":{"0":4,"1":9,"2":2,"3":2,"4":0,"5":7,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2,"12":0,"13":2,"14":2,"15":0,"16":2,"17":1,"18":1,"19":2,"20":2,"21":0,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":1,"29":1,"30":0,"31":0,"32":2,"33":2,"34":2,"35":2,"36":5,"37":5,"38":5,"39":0,"40":5,"41":4},"f":{"0":9,"1":2,"2":0,"3":2,"4":1,"5":0,"6":2,"7":2,"8":5,"9":5,"10":5},"b":{"0":[2,7],"1":[2,0],"2":[2,0],"3":[0,2],"4":[2,0],"5":[1,1],"6":[2,0],"7":[0,5]}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/mock-engine.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/mock-engine.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":71}},"2":{"start":{"line":6,"column":4},"end":{"line":6,"column":12}},"3":{"start":{"line":7,"column":4},"end":{"line":14,"column":8}},"4":{"start":{"line":16,"column":4},"end":{"line":39,"column":7}},"5":{"start":{"line":4,"column":0},"end":{"line":41,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":2},"end":{"line":null,"column":-1}},"loc":{"start":{"line":5,"column":2},"end":{"line":40,"column":3}}}},"branchMap":{},"s":{"0":1,"1":1,"2":6,"3":6,"4":6,"5":1},"f":{"0":6},"b":{}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/rpc-utils.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/rpc-utils.ts","statementMap":{"0":{"start":{"line":3,"column":2},"end":{"line":8,"column":4}},"1":{"start":{"line":2,"column":0},"end":{"line":9,"column":1}}},"fnMap":{"0":{"name":"createRequest","decl":{"start":{"line":2,"column":16},"end":{"line":2,"column":29}},"loc":{"start":{"line":2,"column":60},"end":{"line":9,"column":1}}}},"branchMap":{},"s":{"0":6,"1":1},"f":{"0":6},"b":{}}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/setup-jest.js": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/tests/util/setup-jest.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":42}}},"fnMap":{},"branchMap":{},"s":{"0":5,"1":5},"f":{},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"f501c77dee14008fe25d43ed83f4b50603e8dcdf"}
,"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/transaction-validator.ts": {"path":"/Users/jp/Work/Bitski/bitski-js/packages/provider/src/subproviders/transaction-validator.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":71}},"1":{"start":{"line":12,"column":4},"end":{"line":22,"column":5}},"2":{"start":{"line":13,"column":6},"end":{"line":19,"column":9}},"3":{"start":{"line":15,"column":8},"end":{"line":15,"column":15}},"4":{"start":{"line":18,"column":8},"end":{"line":18,"column":15}},"5":{"start":{"line":21,"column":6},"end":{"line":21,"column":13}},"6":{"start":{"line":27,"column":19},"end":{"line":27,"column":39}},"7":{"start":{"line":29,"column":27},"end":{"line":29,"column":29}},"8":{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},"9":{"start":{"line":32,"column":6},"end":{"line":32,"column":30}},"10":{"start":{"line":35,"column":42},"end":{"line":35,"column":44}},"11":{"start":{"line":38,"column":4},"end":{"line":41,"column":5}},"12":{"start":{"line":39,"column":23},"end":{"line":39,"column":47}},"13":{"start":{"line":40,"column":6},"end":{"line":40,"column":37}},"14":{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},"15":{"start":{"line":45,"column":6},"end":{"line":45,"column":45}},"16":{"start":{"line":47,"column":6},"end":{"line":47,"column":42}},"17":{"start":{"line":51,"column":4},"end":{"line":55,"column":5}},"18":{"start":{"line":52,"column":6},"end":{"line":52,"column":53}},"19":{"start":{"line":54,"column":6},"end":{"line":54,"column":39}},"20":{"start":{"line":58,"column":4},"end":{"line":62,"column":5}},"21":{"start":{"line":59,"column":6},"end":{"line":59,"column":51}},"22":{"start":{"line":61,"column":6},"end":{"line":61,"column":37}},"23":{"start":{"line":65,"column":19},"end":{"line":65,"column":46}},"24":{"start":{"line":68,"column":4},"end":{"line":68,"column":37}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":34}},"26":{"start":{"line":70,"column":4},"end":{"line":70,"column":32}},"27":{"start":{"line":73,"column":4},"end":{"line":73,"column":36}},"28":{"start":{"line":74,"column":4},"end":{"line":74,"column":19}},"29":{"start":{"line":78,"column":20},"end":{"line":83,"column":5}},"30":{"start":{"line":84,"column":4},"end":{"line":84,"column":40}},"31":{"start":{"line":88,"column":20},"end":{"line":93,"column":5}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":40}},"33":{"start":{"line":98,"column":20},"end":{"line":103,"column":5}},"34":{"start":{"line":104,"column":4},"end":{"line":104,"column":40}},"35":{"start":{"line":108,"column":20},"end":{"line":113,"column":5}},"36":{"start":{"line":114,"column":4},"end":{"line":114,"column":40}},"37":{"start":{"line":119,"column":4},"end":{"line":127,"column":7}},"38":{"start":{"line":120,"column":6},"end":{"line":126,"column":9}},"39":{"start":{"line":121,"column":8},"end":{"line":125,"column":9}},"40":{"start":{"line":122,"column":10},"end":{"line":122,"column":22}},"41":{"start":{"line":124,"column":10},"end":{"line":124,"column":33}},"42":{"start":{"line":8,"column":0},"end":{"line":129,"column":1}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":21}},"loc":{"start":{"line":10,"column":39},"end":{"line":23,"column":3}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":13,"column":51},"end":{"line":13,"column":53}},"loc":{"start":{"line":13,"column":56},"end":{"line":16,"column":7}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":16,"column":15},"end":{"line":16,"column":17}},"loc":{"start":{"line":16,"column":20},"end":{"line":19,"column":7}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":26,"column":12},"end":{"line":26,"column":16}},"loc":{"start":{"line":26,"column":51},"end":{"line":75,"column":3}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":77,"column":10},"end":{"line":77,"column":14}},"loc":{"start":{"line":77,"column":32},"end":{"line":85,"column":3}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":87,"column":10},"end":{"line":87,"column":14}},"loc":{"start":{"line":87,"column":27},"end":{"line":95,"column":3}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":97,"column":10},"end":{"line":97,"column":14}},"loc":{"start":{"line":97,"column":39},"end":{"line":105,"column":3}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":107,"column":10},"end":{"line":107,"column":14}},"loc":{"start":{"line":107,"column":32},"end":{"line":115,"column":3}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":118,"column":10},"end":{"line":118,"column":23}},"loc":{"start":{"line":118,"column":32},"end":{"line":128,"column":3}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":119,"column":23},"end":{"line":119,"column":24}},"loc":{"start":{"line":119,"column":43},"end":{"line":127,"column":5}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":120,"column":32},"end":{"line":120,"column":33}},"loc":{"start":{"line":120,"column":48},"end":{"line":126,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":4},"end":{"line":22,"column":5}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":22,"column":5}},{"start":{"line":12,"column":4},"end":{"line":22,"column":5}}]},"1":{"loc":{"start":{"line":12,"column":8},"end":{"line":12,"column":48}},"type":"binary-expr","locations":[{"start":{"line":12,"column":8},"end":{"line":12,"column":48}},{"start":{"line":12,"column":52},"end":{"line":12,"column":92}}]},"2":{"loc":{"start":{"line":27,"column":19},"end":{"line":27,"column":33}},"type":"binary-expr","locations":[{"start":{"line":27,"column":19},"end":{"line":27,"column":33}},{"start":{"line":27,"column":37},"end":{"line":27,"column":39}}]},"3":{"loc":{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},{"start":{"line":31,"column":4},"end":{"line":33,"column":5}}]},"4":{"loc":{"start":{"line":38,"column":4},"end":{"line":41,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":41,"column":5}},{"start":{"line":38,"column":4},"end":{"line":41,"column":5}}]},"5":{"loc":{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":48,"column":5}},{"start":{"line":44,"column":4},"end":{"line":48,"column":5}}]},"6":{"loc":{"start":{"line":51,"column":4},"end":{"line":55,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":55,"column":5}},{"start":{"line":51,"column":4},"end":{"line":55,"column":5}}]},"7":{"loc":{"start":{"line":58,"column":4},"end":{"line":62,"column":5}},"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":62,"column":5}},{"start":{"line":58,"column":4},"end":{"line":62,"column":5}}]},"8":{"loc":{"start":{"line":121,"column":8},"end":{"line":125,"column":9}},"type":"if","locations":[{"start":{"line":121,"column":8},"end":{"line":125,"column":9}},{"start":{"line":121,"column":8},"end":{"line":125,"column":9}}]}},"s":{"0":4,"1":16,"2":4,"3":3,"4":1,"5":12,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":2,"13":2,"14":4,"15":3,"16":1,"17":4,"18":2,"19":2,"20":4,"21":3,"22":1,"23":4,"24":3,"25":3,"26":3,"27":3,"28":3,"29":2,"30":2,"31":2,"32":2,"33":3,"34":3,"35":3,"36":3,"37":10,"38":10,"39":10,"40":2,"41":8,"42":4},"f":{"0":16,"1":3,"2":1,"3":4,"4":2,"5":2,"6":3,"7":3,"8":10,"9":10,"10":10},"b":{"0":[4,12],"1":[16,12],"2":[4,0],"3":[4,0],"4":[2,2],"5":[3,1],"6":[2,2],"7":[3,1],"8":[2,8]}}
}

@@ -1,8 +0,2 @@

/// <reference path="../types/web3-provider-engine.d.ts" />
import Web3ProviderEngine from 'web3-provider-engine';
import CacheSubprovider from 'web3-provider-engine/subproviders/cache';
import DefaultFixtures from 'web3-provider-engine/subproviders/default-fixture';
import InflightCacheSubprovider from 'web3-provider-engine/subproviders/inflight-cache';
import SanitizingSubprovider from 'web3-provider-engine/subproviders/sanitizer';
import SubscriptionSubprovider from 'web3-provider-engine/subproviders/subscriptions';
import { BlockCacheSubprovider, default as Web3ProviderEngine, DefaultFixtureSubprovider, InflightCacheSubprovider, SanitizerSubprovider, SubscriptionSubprovider, } from '@bitski/provider-engine';
import { NonceTrackerSubprovider } from './subproviders/nonce-tracker';

@@ -13,9 +7,9 @@ import { TransactionValidatorSubprovider } from './subproviders/transaction-validator';

super(options);
this.addProvider(new DefaultFixtures());
this.addProvider(new DefaultFixtureSubprovider());
this.addProvider(new NonceTrackerSubprovider());
this.addProvider(new TransactionValidatorSubprovider());
this.addProvider(new SanitizingSubprovider());
this.addProvider(new SanitizerSubprovider());
const enableCache = !(options && options.disableCaching === true);
if (enableCache) {
this.addProvider(new CacheSubprovider());
this.addProvider(new BlockCacheSubprovider());
}

@@ -22,0 +16,0 @@ const filterAndSubsSubprovider = new SubscriptionSubprovider();

@@ -0,4 +1,3 @@

import { FetchSubprovider } from '@bitski/provider-engine';
import retry from 'async/retry';
import FetchSubprovider from 'web3-provider-engine/subproviders/fetch';
import createPayload from 'web3-provider-engine/util/create-payload';
import { AUTHENTICATED_METHODS, RETRIABLE_ERRORS, UNAUTHORIZED_ERRORS } from '../constants';

@@ -10,3 +9,3 @@ /*

constructor(rpcUrl, debug, accessTokenProvider, defaultHeaders = {}) {
super({ rpcUrl, debug });
super({ rpcUrl });
this.authenticatedMethods = AUTHENTICATED_METHODS;

@@ -41,3 +40,3 @@ this.accessTokenProvider = accessTokenProvider;

// overwrite id to not conflict with other concurrent users
const newPayload = createPayload(payload);
const newPayload = this.createPayload(payload);
// remove extra parameter from request

@@ -44,0 +43,0 @@ delete newPayload.origin;

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';
/**

@@ -3,0 +3,0 @@ * A subprovider that tracks and automatically increments the nonce on the client.

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';
/**

@@ -3,0 +3,0 @@ * A subprovider that automatically populates missing transaction details.

@@ -1,7 +0,6 @@

/// <reference path="../types/web3-provider-engine.d.ts" />
import { default as Web3ProviderEngine } from '@bitski/provider-engine';
import { JSONRPCRequestPayload } from 'ethereum-protocol';
import Web3ProviderEngine from 'web3-provider-engine';
export declare class BitskiEngine extends Web3ProviderEngine {
constructor(options: any);
constructor(options?: any);
send(payload: JSONRPCRequestPayload): void;
}

@@ -1,4 +0,7 @@

/// <reference path="../types/web3-provider-engine.d.ts" />
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};

@@ -11,3 +14,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "web3-provider-engine", "web3-provider-engine/subproviders/cache", "web3-provider-engine/subproviders/default-fixture", "web3-provider-engine/subproviders/inflight-cache", "web3-provider-engine/subproviders/sanitizer", "web3-provider-engine/subproviders/subscriptions", "./subproviders/nonce-tracker", "./subproviders/transaction-validator"], factory);
define(["require", "exports", "@bitski/provider-engine", "./subproviders/nonce-tracker", "./subproviders/transaction-validator"], factory);
}

@@ -17,22 +20,17 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
const web3_provider_engine_1 = __importDefault(require("web3-provider-engine"));
const cache_1 = __importDefault(require("web3-provider-engine/subproviders/cache"));
const default_fixture_1 = __importDefault(require("web3-provider-engine/subproviders/default-fixture"));
const inflight_cache_1 = __importDefault(require("web3-provider-engine/subproviders/inflight-cache"));
const sanitizer_1 = __importDefault(require("web3-provider-engine/subproviders/sanitizer"));
const subscriptions_1 = __importDefault(require("web3-provider-engine/subproviders/subscriptions"));
const provider_engine_1 = __importStar(require("@bitski/provider-engine"));
const nonce_tracker_1 = require("./subproviders/nonce-tracker");
const transaction_validator_1 = require("./subproviders/transaction-validator");
class BitskiEngine extends web3_provider_engine_1.default {
class BitskiEngine extends provider_engine_1.default {
constructor(options) {
super(options);
this.addProvider(new default_fixture_1.default());
this.addProvider(new provider_engine_1.DefaultFixtureSubprovider());
this.addProvider(new nonce_tracker_1.NonceTrackerSubprovider());
this.addProvider(new transaction_validator_1.TransactionValidatorSubprovider());
this.addProvider(new sanitizer_1.default());
this.addProvider(new provider_engine_1.SanitizerSubprovider());
const enableCache = !(options && options.disableCaching === true);
if (enableCache) {
this.addProvider(new cache_1.default());
this.addProvider(new provider_engine_1.BlockCacheSubprovider());
}
const filterAndSubsSubprovider = new subscriptions_1.default();
const filterAndSubsSubprovider = new provider_engine_1.SubscriptionSubprovider();
filterAndSubsSubprovider.on('data', (err, notification) => {

@@ -43,3 +41,3 @@ this.emit('data', err, notification);

if (enableCache) {
this.addProvider(new inflight_cache_1.default());
this.addProvider(new provider_engine_1.InflightCacheSubprovider());
}

@@ -46,0 +44,0 @@ }

@@ -1,2 +0,2 @@

import FetchSubprovider from 'web3-provider-engine/subproviders/fetch';
import { FetchSubprovider } from '@bitski/provider-engine';
import { AccessTokenProvider } from '../auth/access-token-provider';

@@ -3,0 +3,0 @@ export declare class AuthenticatedFetchSubprovider extends FetchSubprovider {

@@ -10,3 +10,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "async/retry", "web3-provider-engine/subproviders/fetch", "web3-provider-engine/util/create-payload", "../constants"], factory);
define(["require", "exports", "@bitski/provider-engine", "async/retry", "../constants"], factory);
}

@@ -16,5 +16,4 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
const provider_engine_1 = require("@bitski/provider-engine");
const retry_1 = __importDefault(require("async/retry"));
const fetch_1 = __importDefault(require("web3-provider-engine/subproviders/fetch"));
const create_payload_1 = __importDefault(require("web3-provider-engine/util/create-payload"));
const constants_1 = require("../constants");

@@ -24,5 +23,5 @@ /*

*/
class AuthenticatedFetchSubprovider extends fetch_1.default {
class AuthenticatedFetchSubprovider extends provider_engine_1.FetchSubprovider {
constructor(rpcUrl, debug, accessTokenProvider, defaultHeaders = {}) {
super({ rpcUrl, debug });
super({ rpcUrl });
this.authenticatedMethods = constants_1.AUTHENTICATED_METHODS;

@@ -57,3 +56,3 @@ this.accessTokenProvider = accessTokenProvider;

// overwrite id to not conflict with other concurrent users
const newPayload = create_payload_1.default(payload);
const newPayload = this.createPayload(payload);
// remove extra parameter from request

@@ -60,0 +59,0 @@ delete newPayload.origin;

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';
/**

@@ -3,0 +3,0 @@ * A subprovider that tracks and automatically increments the nonce on the client.

@@ -1,4 +0,1 @@

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
(function (factory) {

@@ -10,3 +7,3 @@ if (typeof module === "object" && typeof module.exports === "object") {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "web3-provider-engine/subproviders/subprovider"], factory);
define(["require", "exports", "@bitski/provider-engine"], factory);
}

@@ -16,3 +13,3 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
const subprovider_1 = __importDefault(require("web3-provider-engine/subproviders/subprovider"));
const provider_engine_1 = require("@bitski/provider-engine");
/**

@@ -23,3 +20,3 @@ * A subprovider that tracks and automatically increments the nonce on the client.

*/
class NonceTrackerSubprovider extends subprovider_1.default {
class NonceTrackerSubprovider extends provider_engine_1.Subprovider {
constructor() {

@@ -26,0 +23,0 @@ super();

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';
/**

@@ -3,0 +3,0 @@ * A subprovider that automatically populates missing transaction details.

@@ -1,4 +0,1 @@

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
(function (factory) {

@@ -10,3 +7,3 @@ if (typeof module === "object" && typeof module.exports === "object") {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "web3-provider-engine/subproviders/subprovider"], factory);
define(["require", "exports", "@bitski/provider-engine"], factory);
}

@@ -16,3 +13,3 @@ })(function (require, exports) {

Object.defineProperty(exports, "__esModule", { value: true });
const subprovider_1 = __importDefault(require("web3-provider-engine/subproviders/subprovider"));
const provider_engine_1 = require("@bitski/provider-engine");
/**

@@ -23,3 +20,3 @@ * A subprovider that automatically populates missing transaction details.

*/
class TransactionValidatorSubprovider extends subprovider_1.default {
class TransactionValidatorSubprovider extends provider_engine_1.Subprovider {
handleRequest(payload, next, _) {

@@ -26,0 +23,0 @@ // Only handle transactions

@@ -12,3 +12,3 @@ {

},
"version": "0.6.0-alpha.0",
"version": "0.6.0-alpha.1",
"scripts": {

@@ -21,5 +21,5 @@ "test": "jest",

"dependencies": {
"@bitski/provider-engine": "^0.2.0",
"@types/ethereum-protocol": "^1.0.0",
"json-rpc-error": "^2.0.0",
"web3-provider-engine": "github:BitskiCo/provider-engine#master"
"json-rpc-error": "^2.0.0"
},

@@ -29,3 +29,3 @@ "devDependencies": {

},
"gitHead": "a0a0658a3baba517a998c8e207f7b6d4aac0f85a"
"gitHead": "fd59632778769962b3d10a89a608a471d4aeac07"
}

@@ -1,10 +0,10 @@

/// <reference path="../types/web3-provider-engine.d.ts" />
import {
BlockCacheSubprovider,
default as Web3ProviderEngine,
DefaultFixtureSubprovider,
InflightCacheSubprovider,
SanitizerSubprovider,
SubscriptionSubprovider,
} from '@bitski/provider-engine';
import { JSONRPCRequestPayload } from 'ethereum-protocol';
import Web3ProviderEngine from 'web3-provider-engine';
import CacheSubprovider from 'web3-provider-engine/subproviders/cache';
import DefaultFixtures from 'web3-provider-engine/subproviders/default-fixture';
import InflightCacheSubprovider from 'web3-provider-engine/subproviders/inflight-cache';
import SanitizingSubprovider from 'web3-provider-engine/subproviders/sanitizer';
import SubscriptionSubprovider from 'web3-provider-engine/subproviders/subscriptions';

@@ -16,8 +16,8 @@ import { NonceTrackerSubprovider } from './subproviders/nonce-tracker';

constructor(options: any) {
constructor(options?: any) {
super(options);
this.addProvider(new DefaultFixtures());
this.addProvider(new DefaultFixtureSubprovider());
this.addProvider(new NonceTrackerSubprovider());
this.addProvider(new TransactionValidatorSubprovider());
this.addProvider(new SanitizingSubprovider());
this.addProvider(new SanitizerSubprovider());

@@ -27,3 +27,3 @@ const enableCache = !(options && options.disableCaching === true);

if (enableCache) {
this.addProvider(new CacheSubprovider());
this.addProvider(new BlockCacheSubprovider());
}

@@ -30,0 +30,0 @@

@@ -0,4 +1,3 @@

import { FetchSubprovider } from '@bitski/provider-engine';
import retry from 'async/retry';
import FetchSubprovider from 'web3-provider-engine/subproviders/fetch';
import createPayload from 'web3-provider-engine/util/create-payload';
import { AccessTokenProvider } from '../auth/access-token-provider';

@@ -16,3 +15,3 @@ import { AUTHENTICATED_METHODS, RETRIABLE_ERRORS, UNAUTHORIZED_ERRORS } from '../constants';

constructor(rpcUrl: string, debug: boolean, accessTokenProvider: AccessTokenProvider, defaultHeaders: object = {}) {
super({ rpcUrl, debug });
super({ rpcUrl });
this.authenticatedMethods = AUTHENTICATED_METHODS;

@@ -51,3 +50,3 @@ this.accessTokenProvider = accessTokenProvider;

// overwrite id to not conflict with other concurrent users
const newPayload = createPayload(payload);
const newPayload = this.createPayload(payload);
// remove extra parameter from request

@@ -54,0 +53,0 @@ delete newPayload.origin;

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import Subprovider from 'web3-provider-engine/subproviders/subprovider';
import { Subprovider } from '@bitski/provider-engine';

@@ -3,0 +3,0 @@ /**

@@ -30,2 +30,3 @@ import { AuthenticatedFetchSubprovider } from '../src/index';

engine.addProvider(fetchProvider);
engine.start();
return engine;

@@ -32,0 +33,0 @@ }

@@ -1,10 +0,22 @@

import { BitskiEngine } from '../src';
import { FixtureSubprovider } from '@bitski/provider-engine';
import { BitskiEngine } from '../src/bitski-engine';
function createEngine(): BitskiEngine {
const engine = new BitskiEngine();
engine.addProvider(new FixtureSubprovider({
eth_blockNumber: '0x0',
eth_getBlockByNumber: false,
}));
engine.start();
engine._blockTracker.emit('latest', '0x1');
return engine;
}
test('it exists', () => {
const engine = new BitskiEngine({});
const engine = createEngine();
expect(engine).toBeDefined();
});
test('it forwards sends when callback is present', () => {
const engine = new BitskiEngine({});
engine.start();
const engine = createEngine();
const spy = jest.spyOn(engine, 'sendAsync');

@@ -11,0 +23,0 @@ // @ts-ignore

@@ -1,3 +0,3 @@

import Web3ProviderEngine from 'web3-provider-engine';
import FixtureSubprovider from 'web3-provider-engine/subproviders/fixture';
import Web3ProviderEngine from '@bitski/provider-engine';
import { FixtureSubprovider } from '@bitski/provider-engine';
import { NonceTrackerSubprovider } from '../src/subproviders/nonce-tracker';

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

import Web3ProviderEngine from 'web3-provider-engine';
import FixtureSubprovider from 'web3-provider-engine/subproviders/fixture';
import Web3ProviderEngine from '@bitski/provider-engine';
import { FixtureSubprovider } from '@bitski/provider-engine';
import { TransactionValidatorSubprovider } from '../src/subproviders/transaction-validator';

@@ -4,0 +4,0 @@

@@ -1,3 +0,3 @@

import Web3ProviderEngine from 'web3-provider-engine';
import FixtureProvider from 'web3-provider-engine/subproviders/fixture';
import Web3ProviderEngine from '@bitski/provider-engine';
import { FixtureSubprovider } from '@bitski/provider-engine';

@@ -7,3 +7,4 @@ export class MockEngine extends Web3ProviderEngine {

super();
super.addProvider(new FixtureProvider({
this.addProvider(new FixtureSubprovider({
eth_blockNumber: '0x0',
eth_getBlockByNumber: false,

@@ -16,28 +17,11 @@ eth_hashrate: '0x00',

}));
// @ts-ignore
this._blockTracker.emit('block', {
difficulty: '0x00',
extraData: '0x00',
gasLimit: '0x00',
gasUsed: '0x00',
hash: '0x00',
logsBloom: '0x00',
minGasPrice: '0x00',
miner: '0x00',
number: '0x00',
parentHash: '0x00',
sealFields: [
'0x00',
'0x00',
],
sha3Uncles: '0x00',
size: '0x00',
stateRoot: '0x00',
timestamp: '0x00',
totalDifficulty: '0x00',
transactions: [],
transactionsRoot: '0x00',
uncles: [],
});
}
public start() {
super.start();
// Emit a block after a short delay to start requests
setTimeout(() => {
this._blockTracker.emit('latest', '0x1');
}, 500);
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc