@onflow/fcl
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,2 +0,2 @@ | ||
var e=require("@qvvg/mario"),t=require("@qvvg/templar"),r=require("@onflow/interaction"),o=require("@onflow/assigns"),n=e.pipe,i=e.pipe([function(e){return o.update("code",function(t){return"function"==typeof t?t(o.get(e,"params",{})):t})(e)}]);exports.pipe=e.pipe,exports.Ok=e.Ok,exports.Nope=e.Nope,exports.isNope=e.isNope,exports.isOk=e.isOk,exports.getValue=e.getValue,exports.getReason=e.getReason,exports.getError=e.getError,exports.log=e.log,exports.__=e.__,exports.isUnknown=r.isUnknown,exports.isScript=r.isScript,exports.isTransaction=r.isTransaction,exports.isGetTransaction=r.isGetTransaction,exports.build=function(t){return e.pipe(r.interaction(),t)},exports.resolve=n,exports.script=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e.pipe([r.makeScript,o.put("code",t.t7l.apply(void 0,n))])},exports.transaction=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return e.pipe([r.makeTransaction,o.put("code",t.t7l.apply(void 0,n))])},exports.getTransaction=function(t){return e.pipe([r.makeGetTransaction,o.put("hash",t)])},exports.params=function(t){return void 0===t&&(t=[]),e.pipe([o.put("params",(r=t,void 0===r&&(r=[]),r.reduce(function(e,t){var r;return Object.assign({},e,((r={})[t.key]=t.value,r))},{})))]);var r},exports.param=function(e,t){return{key:e,value:t}},exports.payer=function(t){return e.pipe([o.put("payerAuthorization",t)])},exports.authorizations=function(t){return void 0===t&&(t=[]),e.pipe([o.put("authorizations",t)])},exports.authorization=function(e,t){return{acct:e,signFn:t}},exports.resolveParams=i; | ||
var t=require("@qvvg/mario"),e=require("@qvvg/templar"),r=require("@onflow/interaction"),o=require("@onflow/assigns"),n=t.pipe,p=t.pipe([function(t){return o.update("code",function(e){return"function"==typeof e?e(o.get(t,"params",{})):e})(t)}]);exports.pipe=t.pipe,exports.Ok=t.Ok,exports.Nope=t.Nope,exports.isNope=t.isNope,exports.isOk=t.isOk,exports.getValue=t.getValue,exports.getReason=t.getReason,exports.getError=t.getError,exports.log=t.log,exports.__=t.__,exports.isUnknown=r.isUnknown,exports.isScript=r.isScript,exports.isTransaction=r.isTransaction,exports.isGetTransaction=r.isGetTransaction,exports.isGetAccount=r.isGetAccount,exports.isGetEvents=r.isGetEvents,exports.isGetLatestBlock=r.isGetLatestBlock,exports.isPing=r.isPing,exports.build=function(e){return t.pipe(r.interaction(),e)},exports.resolve=n,exports.script=function(){for(var n=[],p=arguments.length;p--;)n[p]=arguments[p];return t.pipe([r.makeScript,o.put("code",e.t7l.apply(void 0,n))])},exports.transaction=function(){for(var n=[],p=arguments.length;p--;)n[p]=arguments[p];return t.pipe([r.makeTransaction,o.put("code",e.t7l.apply(void 0,n))])},exports.getTransaction=function(e){return t.pipe([r.makeGetTransaction,o.put("hash",e)])},exports.params=function(e){return void 0===e&&(e=[]),t.pipe([o.put("params",(r=e,void 0===r&&(r=[]),r.reduce(function(t,e){var r;return Object.assign({},t,((r={})[e.key]=e.value,r))},{})))]);var r},exports.param=function(t,e){return{key:t,value:e}},exports.payer=function(e){return t.pipe([o.put("payerAuthorization",e)])},exports.authorizations=function(e){return void 0===e&&(e=[]),t.pipe([o.put("authorizations",e)])},exports.authorization=function(t,e){return{acct:t,signFn:e}},exports.getAccount=function(e){return t.pipe([r.makeGetAccount,o.put("address",e)])},exports.getEvents=function(e,n,p){return t.pipe([r.makeGetEvents,o.put("eventType",e),o.put("startBlock",n),o.put("endBlock",p)])},exports.getLatestBlock=function(e){return t.pipe([r.makeGetLatestBlock,o.put("isSealed",e)])},exports.ping=function(){return t.pipe([r.makePing])},exports.resolveParams=p; | ||
//# sourceMappingURL=fcl.js.map |
@@ -1,2 +0,2 @@ | ||
import{pipe as n}from"@qvvg/mario";export{pipe,Ok,Nope,isNope,isOk,getValue,getReason,getError,log,__}from"@qvvg/mario";import{t7l as r}from"@qvvg/templar";import{interaction as o,makeScript as t,makeTransaction as i,makeGetTransaction as e}from"@onflow/interaction";export{isUnknown,isScript,isTransaction,isGetTransaction}from"@onflow/interaction";import{put as a,update as u,get as c}from"@onflow/assigns";var f=function(r){return n(o(),r)},p=n,s=function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return n([t,a("code",r.apply(void 0,o))])},v=function(){for(var o=[],t=arguments.length;t--;)o[t]=arguments[t];return n([i,a("code",r.apply(void 0,o))])},m=function(r){return n([e,a("hash",r)])},g=function(r){return void 0===r&&(r=[]),n([a("params",(o=r,void 0===o&&(o=[]),o.reduce(function(n,r){var o;return Object.assign({},n,((o={})[r.key]=r.value,o))},{})))]);var o},l=function(n,r){return{key:n,value:r}},d=function(r){return n([a("payerAuthorization",r)])},h=function(r){return void 0===r&&(r=[]),n([a("authorizations",r)])},y=function(n,r){return{acct:n,signFn:r}},k=n([function(n){return u("code",function(r){return"function"==typeof r?r(c(n,"params",{})):r})(n)}]);export{f as build,p as resolve,s as script,v as transaction,m as getTransaction,g as params,l as param,d as payer,h as authorizations,y as authorization,k as resolveParams}; | ||
import{pipe as n}from"@qvvg/mario";export{pipe,Ok,Nope,isNope,isOk,getValue,getReason,getError,log,__}from"@qvvg/mario";import{t7l as r}from"@qvvg/templar";import{interaction as t,makeScript as o,makeTransaction as e,makeGetTransaction as i,makeGetAccount as u,makeGetEvents as a,makeGetLatestBlock as c,makePing as f}from"@onflow/interaction";export{isUnknown,isScript,isTransaction,isGetTransaction,isGetAccount,isGetEvents,isGetLatestBlock,isPing}from"@onflow/interaction";import{put as s,update as p,get as v}from"@onflow/assigns";var l=function(r){return n(t(),r)},m=n,d=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return n([o,s("code",r.apply(void 0,t))])},g=function(){for(var t=[],o=arguments.length;o--;)t[o]=arguments[o];return n([e,s("code",r.apply(void 0,t))])},k=function(r){return n([i,s("hash",r)])},y=function(r){return void 0===r&&(r=[]),n([s("params",(t=r,void 0===t&&(t=[]),t.reduce(function(n,r){var t;return Object.assign({},n,((t={})[r.key]=r.value,t))},{})))]);var t},h=function(n,r){return{key:n,value:r}},w=function(r){return n([s("payerAuthorization",r)])},G=function(r){return void 0===r&&(r=[]),n([s("authorizations",r)])},q=function(n,r){return{acct:n,signFn:r}},x=function(r){return n([u,s("address",r)])},B=function(r,t,o){return n([a,s("eventType",r),s("startBlock",t),s("endBlock",o)])},O=function(r){return n([c,s("isSealed",r)])},T=function(){return n([f])},z=n([function(n){return p("code",function(r){return"function"==typeof r?r(v(n,"params",{})):r})(n)}]);export{l as build,m as resolve,d as script,g as transaction,k as getTransaction,y as params,h as param,w as payer,G as authorizations,q as authorization,x as getAccount,B as getEvents,O as getLatestBlock,T as ping,z as resolveParams}; | ||
//# sourceMappingURL=fcl.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@qvvg/mario"),require("@qvvg/templar"),require("@onflow/interaction"),require("@onflow/assigns")):"function"==typeof define&&define.amd?define(["exports","@qvvg/mario","@qvvg/templar","@onflow/interaction","@onflow/assigns"],e):e(n.fcl={},n.mario,n.templar,n.interaction,n.assigns)}(this,function(n,e,t,i,r){var o=e.pipe,a=e.pipe([function(n){return r.update("code",function(e){return"function"==typeof e?e(r.get(n,"params",{})):e})(n)}]);n.pipe=e.pipe,n.Ok=e.Ok,n.Nope=e.Nope,n.isNope=e.isNope,n.isOk=e.isOk,n.getValue=e.getValue,n.getReason=e.getReason,n.getError=e.getError,n.log=e.log,n.__=e.__,n.isUnknown=i.isUnknown,n.isScript=i.isScript,n.isTransaction=i.isTransaction,n.isGetTransaction=i.isGetTransaction,n.build=function(n){return e.pipe(i.interaction(),n)},n.resolve=o,n.script=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return e.pipe([i.makeScript,r.put("code",t.t7l.apply(void 0,n))])},n.transaction=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return e.pipe([i.makeTransaction,r.put("code",t.t7l.apply(void 0,n))])},n.getTransaction=function(n){return e.pipe([i.makeGetTransaction,r.put("hash",n)])},n.params=function(n){return void 0===n&&(n=[]),e.pipe([r.put("params",(t=n,void 0===t&&(t=[]),t.reduce(function(n,e){var t;return Object.assign({},n,((t={})[e.key]=e.value,t))},{})))]);var t},n.param=function(n,e){return{key:n,value:e}},n.payer=function(n){return e.pipe([r.put("payerAuthorization",n)])},n.authorizations=function(n){return void 0===n&&(n=[]),e.pipe([r.put("authorizations",n)])},n.authorization=function(n,e){return{acct:n,signFn:e}},n.resolveParams=a}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@qvvg/mario"),require("@qvvg/templar"),require("@onflow/interaction"),require("@onflow/assigns")):"function"==typeof define&&define.amd?define(["exports","@qvvg/mario","@qvvg/templar","@onflow/interaction","@onflow/assigns"],e):e(t.fcl={},t.mario,t.templar,t.interaction,t.assigns)}(this,function(t,e,n,i,o){var r=e.pipe,a=e.pipe([function(t){return o.update("code",function(e){return"function"==typeof e?e(o.get(t,"params",{})):e})(t)}]);t.pipe=e.pipe,t.Ok=e.Ok,t.Nope=e.Nope,t.isNope=e.isNope,t.isOk=e.isOk,t.getValue=e.getValue,t.getReason=e.getReason,t.getError=e.getError,t.log=e.log,t.__=e.__,t.isUnknown=i.isUnknown,t.isScript=i.isScript,t.isTransaction=i.isTransaction,t.isGetTransaction=i.isGetTransaction,t.isGetAccount=i.isGetAccount,t.isGetEvents=i.isGetEvents,t.isGetLatestBlock=i.isGetLatestBlock,t.isPing=i.isPing,t.build=function(t){return e.pipe(i.interaction(),t)},t.resolve=r,t.script=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return e.pipe([i.makeScript,o.put("code",n.t7l.apply(void 0,t))])},t.transaction=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return e.pipe([i.makeTransaction,o.put("code",n.t7l.apply(void 0,t))])},t.getTransaction=function(t){return e.pipe([i.makeGetTransaction,o.put("hash",t)])},t.params=function(t){return void 0===t&&(t=[]),e.pipe([o.put("params",(n=t,void 0===n&&(n=[]),n.reduce(function(t,e){var n;return Object.assign({},t,((n={})[e.key]=e.value,n))},{})))]);var n},t.param=function(t,e){return{key:t,value:e}},t.payer=function(t){return e.pipe([o.put("payerAuthorization",t)])},t.authorizations=function(t){return void 0===t&&(t=[]),e.pipe([o.put("authorizations",t)])},t.authorization=function(t,e){return{acct:t,signFn:e}},t.getAccount=function(t){return e.pipe([i.makeGetAccount,o.put("address",t)])},t.getEvents=function(t,n,r){return e.pipe([i.makeGetEvents,o.put("eventType",t),o.put("startBlock",n),o.put("endBlock",r)])},t.getLatestBlock=function(t){return e.pipe([i.makeGetLatestBlock,o.put("isSealed",t)])},t.ping=function(){return e.pipe([i.makePing])},t.resolveParams=a}); | ||
//# sourceMappingURL=fcl.umd.js.map |
{ | ||
"name": "@onflow/fcl", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Flow Client Library", | ||
@@ -37,3 +37,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@onflow/interaction": "0.0.1", | ||
"@onflow/interaction": "0.0.2", | ||
"@onflow/assigns": "0.0.3", | ||
@@ -40,0 +40,0 @@ "@qvvg/mario": "1.3.0", |
@@ -8,2 +8,6 @@ import {pipe, Ok, __} from "@qvvg/mario" | ||
makeGetTransaction, | ||
makeGetAccount, | ||
makeGetEvents, | ||
makeGetLatestBlock, | ||
makePing, | ||
} from "@onflow/interaction" | ||
@@ -17,2 +21,6 @@ import {put, update, get} from "@onflow/assigns" | ||
isGetTransaction, | ||
isGetAccount, | ||
isGetEvents, | ||
isGetLatestBlock, | ||
isPing, | ||
} from "@onflow/interaction" | ||
@@ -37,11 +45,22 @@ | ||
/* BUILDERS */ | ||
export const script = (...args) => pipe([makeScript, put("code", t7l(...args))]) | ||
export const script = (...args) => | ||
pipe([ | ||
makeScript, | ||
put("code", t7l(...args)) | ||
]) | ||
export const transaction = (...args) => | ||
pipe([makeTransaction, put("code", t7l(...args))]) | ||
pipe([ | ||
makeTransaction, put("code", t7l(...args)) | ||
]) | ||
export const getTransaction = hash => | ||
pipe([makeGetTransaction, put("hash", hash)]) | ||
pipe([ | ||
makeGetTransaction, put("hash", hash) | ||
]) | ||
export const params = (px = []) => pipe([put("params", toMap(px))]) | ||
export const params = (px = []) => | ||
pipe([ | ||
put("params", toMap(px)) | ||
]) | ||
@@ -53,5 +72,9 @@ export const param = (key, value) => { | ||
export const payer = authorization => | ||
pipe([put("payerAuthorization", authorization)]) | ||
pipe([ | ||
put("payerAuthorization", authorization) | ||
]) | ||
export const authorizations = (ax = []) => pipe([put("authorizations", ax)]) | ||
export const authorizations = (ax = []) => pipe([ | ||
put("authorizations", ax) | ||
]) | ||
@@ -62,2 +85,27 @@ export const authorization = (acct, signFn) => { | ||
export const getAccount = address => | ||
pipe([ | ||
makeGetAccount, | ||
put("address", address), | ||
]) | ||
export const getEvents = (eventType, startBlock, endBlock) => | ||
pipe([ | ||
makeGetEvents, | ||
put("eventType", eventType), | ||
put("startBlock", startBlock), | ||
put("endBlock", endBlock), | ||
]) | ||
export const getLatestBlock = isSealed => | ||
pipe([ | ||
makeGetLatestBlock, | ||
put("isSealed", isSealed) | ||
]) | ||
export const ping = () => | ||
pipe([ | ||
makePing | ||
]) | ||
/* RESOLVERS */ | ||
@@ -64,0 +112,0 @@ export const resolveParams = pipe([ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21378
178
+ Added@onflow/interaction@0.0.2(transitive)
- Removed@onflow/interaction@0.0.1(transitive)
Updated@onflow/interaction@0.0.2