@onflow/fcl
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,2 @@ | ||
var n=require("@qvvg/mario"),r=require("@qvvg/templar"),t=n.pipe;exports.isUnknown=function(n){return 1&n.tag},exports.isScript=function(n){return 2&n.tag},exports.isTransaction=function(n){return 4&n.tag},exports.isGetTransaction=function(n){return 8&n.tag},exports.build=function(r){return n.pipe(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),r)},exports.resolve=t,exports.script=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return e.assigns.code=r.t7l.apply(void 0,t),e.tag=2,n.Ok(e)}},exports.transaction=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return e.assigns.code=r.t7l.apply(void 0,t),e.tag=4,n.Ok(e)}},exports.params=function(r){return void 0===r&&(r=[]),function(t){return t.assigns.params=r.reduce(function(n,r){var t;return Object.assign({},n,((t={})[r.key]=r.value,t))},{}),n.Ok(t)}},exports.param=function(n,r){return{key:n,value:r}},exports.payer=function(r){return function(r){return r.assigns.payerAuthorization=payerAuthorization,n.Ok(r)}},exports.authorizations=function(r){return void 0===r&&(r=[]),function(t){return t.assigns.authorizations=r,n.Ok(t)}},exports.authorization=function(n,r){return{acct:n,signFn:r}},exports.resolveParams=function(r){return"function"==typeof r.assigns.code&&(r.assigns.code=r.assigns.code(r.assigns.params)),n.Ok(r)}; | ||
var n=require("@qvvg/mario"),r=require("@qvvg/templar"),t=n.pipe;exports.isUnknown=function(n){return 1&n.tag},exports.isScript=function(n){return 2&n.tag},exports.isTransaction=function(n){return 4&n.tag},exports.isGetTransaction=function(n){return 8&n.tag},exports.build=function(r){return n.pipe(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),r)},exports.resolve=t,exports.script=function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];return function(s){return s.assigns.code=r.t7l.apply(void 0,t),s.tag=2,n.Ok(s)}},exports.transaction=function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];return function(s){return s.assigns.code=r.t7l.apply(void 0,t),s.tag=4,n.Ok(s)}},exports.params=function(r){return void 0===r&&(r=[]),function(t){return t.assigns.params=r.reduce(function(n,r){var t;return Object.assign({},n,((t={})[r.key]=r.value,t))},{}),n.Ok(t)}},exports.param=function(n,r){return{key:n,value:r}},exports.payer=function(r){return function(t){return t.assigns.payerAuthorization=r,n.Ok(t)}},exports.authorizations=function(r){return void 0===r&&(r=[]),function(t){return t.assigns.authorizations=r,n.Ok(t)}},exports.authorization=function(n,r){return{acct:n,signFn:r}},exports.resolveParams=function(r){return"function"==typeof r.assigns.code&&(r.assigns.code=r.assigns.code(r.assigns.params)),n.Ok(r)}; | ||
//# sourceMappingURL=fcl.js.map |
@@ -1,2 +0,2 @@ | ||
import{pipe as n,Ok as r}from"@qvvg/mario";import{t7l as t}from"@qvvg/templar";var u=function(n){return 1&n.tag},i=function(n){return 2&n.tag},o=function(n){return 4&n.tag},a=function(n){return 8&n.tag},e=function(r){return n(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),r)},s=n,c=function(){for(var n=[],u=arguments.length;u--;)n[u]=arguments[u];return function(u){return u.assigns.code=t.apply(void 0,n),u.tag=2,r(u)}},f=function(){for(var n=[],u=arguments.length;u--;)n[u]=arguments[u];return function(u){return u.assigns.code=t.apply(void 0,n),u.tag=4,r(u)}},g=function(n){return void 0===n&&(n=[]),function(t){return t.assigns.params=n.reduce(function(n,r){var t;return Object.assign({},n,((t={})[r.key]=r.value,t))},{}),r(t)}},p=function(n,r){return{key:n,value:r}},v=function(n){return function(n){return n.assigns.payerAuthorization=payerAuthorization,r(n)}},l=function(n){return void 0===n&&(n=[]),function(t){return t.assigns.authorizations=n,r(t)}},d=function(n,r){return{acct:n,signFn:r}},y=function(n){return"function"==typeof n.assigns.code&&(n.assigns.code=n.assigns.code(n.assigns.params)),r(n)};export{u as isUnknown,i as isScript,o as isTransaction,a as isGetTransaction,e as build,s as resolve,c as script,f as transaction,g as params,p as param,v as payer,l as authorizations,d as authorization,y as resolveParams}; | ||
import{pipe as n,Ok as r}from"@qvvg/mario";import{t7l as t}from"@qvvg/templar";var u=function(n){return 1&n.tag},i=function(n){return 2&n.tag},o=function(n){return 4&n.tag},a=function(n){return 8&n.tag},e=function(r){return n(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),r)},s=n,c=function(){for(var n=[],u=arguments.length;u--;)n[u]=arguments[u];return function(u){return u.assigns.code=t.apply(void 0,n),u.tag=2,r(u)}},f=function(){for(var n=[],u=arguments.length;u--;)n[u]=arguments[u];return function(u){return u.assigns.code=t.apply(void 0,n),u.tag=4,r(u)}},g=function(n){return void 0===n&&(n=[]),function(t){return t.assigns.params=n.reduce(function(n,r){var t;return Object.assign({},n,((t={})[r.key]=r.value,t))},{}),r(t)}},p=function(n,r){return{key:n,value:r}},v=function(n){return function(t){return t.assigns.payerAuthorization=n,r(t)}},l=function(n){return void 0===n&&(n=[]),function(t){return t.assigns.authorizations=n,r(t)}},d=function(n,r){return{acct:n,signFn:r}},m=function(n){return"function"==typeof n.assigns.code&&(n.assigns.code=n.assigns.code(n.assigns.params)),r(n)};export{u as isUnknown,i as isScript,o as isTransaction,a as isGetTransaction,e as build,s as resolve,c as script,f as transaction,g as params,p as param,v as payer,l as authorizations,d as authorization,m as resolveParams}; | ||
//# sourceMappingURL=fcl.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@qvvg/mario"),require("@qvvg/templar")):"function"==typeof define&&define.amd?define(["exports","@qvvg/mario","@qvvg/templar"],t):t(n.fcl={},n.mario,n.templar)}(this,function(n,t,r){var i=t.pipe;n.isUnknown=function(n){return 1&n.tag},n.isScript=function(n){return 2&n.tag},n.isTransaction=function(n){return 4&n.tag},n.isGetTransaction=function(n){return 8&n.tag},n.build=function(n){return t.pipe(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),n)},n.resolve=i,n.script=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return function(i){return i.assigns.code=r.t7l.apply(void 0,n),i.tag=2,t.Ok(i)}},n.transaction=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return function(i){return i.assigns.code=r.t7l.apply(void 0,n),i.tag=4,t.Ok(i)}},n.params=function(n){return void 0===n&&(n=[]),function(r){return r.assigns.params=n.reduce(function(n,t){var r;return Object.assign({},n,((r={})[t.key]=t.value,r))},{}),t.Ok(r)}},n.param=function(n,t){return{key:n,value:t}},n.payer=function(n){return function(n){return n.assigns.payerAuthorization=payerAuthorization,t.Ok(n)}},n.authorizations=function(n){return void 0===n&&(n=[]),function(r){return r.assigns.authorizations=n,t.Ok(r)}},n.authorization=function(n,t){return{acct:n,signFn:t}},n.resolveParams=function(n){return"function"==typeof n.assigns.code&&(n.assigns.code=n.assigns.code(n.assigns.params)),t.Ok(n)}}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@qvvg/mario"),require("@qvvg/templar")):"function"==typeof define&&define.amd?define(["exports","@qvvg/mario","@qvvg/templar"],t):t(n.fcl={},n.mario,n.templar)}(this,function(n,t,r){var i=t.pipe;n.isUnknown=function(n){return 1&n.tag},n.isScript=function(n){return 2&n.tag},n.isTransaction=function(n){return 4&n.tag},n.isGetTransaction=function(n){return 8&n.tag},n.build=function(n){return t.pipe(JSON.parse('{\n "tag":1,\n "payload":null,\n "signatures":[],\n "payer":null,\n "assigns":{}\n}'),n)},n.resolve=i,n.script=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return function(i){return i.assigns.code=r.t7l.apply(void 0,n),i.tag=2,t.Ok(i)}},n.transaction=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return function(i){return i.assigns.code=r.t7l.apply(void 0,n),i.tag=4,t.Ok(i)}},n.params=function(n){return void 0===n&&(n=[]),function(r){return r.assigns.params=n.reduce(function(n,t){var r;return Object.assign({},n,((r={})[t.key]=t.value,r))},{}),t.Ok(r)}},n.param=function(n,t){return{key:n,value:t}},n.payer=function(n){return function(r){return r.assigns.payerAuthorization=n,t.Ok(r)}},n.authorizations=function(n){return void 0===n&&(n=[]),function(r){return r.assigns.authorizations=n,t.Ok(r)}},n.authorization=function(n,t){return{acct:n,signFn:t}},n.resolveParams=function(n){return"function"==typeof n.assigns.code&&(n.assigns.code=n.assigns.code(n.assigns.params)),t.Ok(n)}}); | ||
//# sourceMappingURL=fcl.umd.js.map |
{ | ||
"name": "@onflow/fcl", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Flow Client Library", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -48,3 +48,3 @@ import {pipe, Ok} from "@qvvg/mario" | ||
export const payer = authorization => ix => { | ||
ix.assigns.payerAuthorization = payerAuthorization | ||
ix.assigns.payerAuthorization = authorization | ||
return Ok(ix) | ||
@@ -51,0 +51,0 @@ } |
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
15473