Skip to content

Commit

Permalink
refactor: static factory method for request templates
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Aug 25, 2023
1 parent 6d7ece9 commit 9245cd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
"dependencies": {
"witnet-solidity-bridge": "https://github.com/witnet/witnet-solidity-bridge#0.7.x",
"witnet-utils": "~1.0.7"
"witnet-utils": "~1.0.8"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
Expand Down
10 changes: 4 additions & 6 deletions src/bin/witnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,17 @@ module.exports = {
/////// REQUEST TEMPLATES ///////////////////////////////////////////////////////
// path: { ... path: {
// WitnetRequestTemplateXXX: Witnet.RequestTemplate({
// specs: {
// retrieve: [ retrievals['retrieval-artifact-name-x'], ... ],
// aggregate?: Witnet.Reducers..,
// tally?: Witnet.Reducers..,
// },
// retrieve: [ retrievals['retrieval-artifact-name-x'], ... ],
// aggregate?: Witnet.Reducers..,
// tally?: Witnet.Reducers..,
// tests?: {
// "test-description-1": [
// [ "..", ... ], // retrieval #0 args (string[])
// ...
// ],
// ...
// }
// },
// }),
// ...
// }, ... },
};
Expand Down

0 comments on commit 9245cd3

Please sign in to comment.