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

@onflow/sdk

Package Overview
Dependencies
Maintainers
8
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/sdk - npm Package Compare versions

Comparing version 0.0.44 to 0.0.45-alpha.1

2

dist/sdk.js

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

var e=require("@onflow/interaction"),r=require("@onflow/send"),t=require("@onflow/decode"),n=require("@onflow/util-template"),o=require("@onflow/sdk-build-authorizations"),i=require("@onflow/sdk-build-get-account"),u=require("@onflow/sdk-build-get-events"),s=require("@onflow/sdk-build-get-latest-block"),l=require("@onflow/sdk-build-get-block-by-id"),a=require("@onflow/sdk-build-get-block-by-height"),c=require("@onflow/sdk-build-transaction-status"),d=require("@onflow/sdk-build-limit"),p=require("@onflow/sdk-build-params"),f=require("@onflow/sdk-build-arguments"),b=require("@onflow/sdk-build-proposer"),g=require("@onflow/sdk-build-payer"),m=require("@onflow/sdk-build-ping"),y=require("@onflow/sdk-build-ref"),k=require("@onflow/sdk-build-script"),x=require("@onflow/sdk-build-transaction"),O=require("@onflow/sdk-build-validator"),P=require("@onflow/sdk-build-invariant"),j=require("@onflow/sdk-resolve-arguments"),v=require("@onflow/sdk-resolve-accounts"),w=require("@onflow/sdk-resolve-signatures"),q=require("@onflow/sdk-resolve-validators"),h=require("@onflow/sdk-resolve-ref-block-id"),B=require("@onflow/sdk-resolve-cadence"),A=e.pipe;Object.defineProperty(exports,"isBad",{enumerable:!0,get:function(){return e.isBad}}),Object.defineProperty(exports,"isOk",{enumerable:!0,get:function(){return e.isOk}}),Object.defineProperty(exports,"pipe",{enumerable:!0,get:function(){return e.pipe}}),Object.defineProperty(exports,"why",{enumerable:!0,get:function(){return e.why}}),Object.defineProperty(exports,"send",{enumerable:!0,get:function(){return r.send}}),Object.defineProperty(exports,"decode",{enumerable:!0,get:function(){return t.decode}}),Object.defineProperty(exports,"decodeResponse",{enumerable:!0,get:function(){return t.decodeResponse}}),Object.defineProperty(exports,"cadence",{enumerable:!0,get:function(){return n.template}}),Object.defineProperty(exports,"cdc",{enumerable:!0,get:function(){return n.template}}),Object.defineProperty(exports,"authorization",{enumerable:!0,get:function(){return o.authorization}}),Object.defineProperty(exports,"authorizations",{enumerable:!0,get:function(){return o.authorizations}}),Object.defineProperty(exports,"getAccount",{enumerable:!0,get:function(){return i.getAccount}}),Object.defineProperty(exports,"getEvents",{enumerable:!0,get:function(){return u.getEvents}}),Object.defineProperty(exports,"getLatestBlock",{enumerable:!0,get:function(){return s.getLatestBlock}}),Object.defineProperty(exports,"getBlockById",{enumerable:!0,get:function(){return l.getBlockById}}),Object.defineProperty(exports,"getBlockByHeight",{enumerable:!0,get:function(){return a.getBlockByHeight}}),Object.defineProperty(exports,"getTransactionStatus",{enumerable:!0,get:function(){return c.getTransactionStatus}}),Object.defineProperty(exports,"limit",{enumerable:!0,get:function(){return d.limit}}),Object.defineProperty(exports,"param",{enumerable:!0,get:function(){return p.param}}),Object.defineProperty(exports,"params",{enumerable:!0,get:function(){return p.params}}),Object.defineProperty(exports,"arg",{enumerable:!0,get:function(){return f.arg}}),Object.defineProperty(exports,"args",{enumerable:!0,get:function(){return f.args}}),Object.defineProperty(exports,"proposer",{enumerable:!0,get:function(){return b.proposer}}),Object.defineProperty(exports,"payer",{enumerable:!0,get:function(){return g.payer}}),Object.defineProperty(exports,"ping",{enumerable:!0,get:function(){return m.ping}}),Object.defineProperty(exports,"ref",{enumerable:!0,get:function(){return y.ref}}),Object.defineProperty(exports,"script",{enumerable:!0,get:function(){return k.script}}),Object.defineProperty(exports,"transaction",{enumerable:!0,get:function(){return x.transaction}}),Object.defineProperty(exports,"validator",{enumerable:!0,get:function(){return O.validator}}),Object.defineProperty(exports,"invariant",{enumerable:!0,get:function(){return P.invariant}}),Object.defineProperty(exports,"resolveArguments",{enumerable:!0,get:function(){return j.resolveArguments}}),Object.defineProperty(exports,"resolveAccounts",{enumerable:!0,get:function(){return v.resolveAccounts}}),Object.defineProperty(exports,"resolveSignatures",{enumerable:!0,get:function(){return w.resolveSignatures}}),Object.defineProperty(exports,"resolveValidators",{enumerable:!0,get:function(){return q.resolveValidators}}),Object.defineProperty(exports,"resolveRefBlockId",{enumerable:!0,get:function(){return h.resolveRefBlockId}}),exports.build=function(r){return void 0===r&&(r=[]),e.pipe(e.interaction(),r)},exports.resolve=A,exports.resolveParams=function(e){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),B.resolveCadence(e)};
var e=require("@onflow/interaction"),r=require("@onflow/send"),t=require("@onflow/decode"),n=require("@onflow/util-template"),o=require("@onflow/sdk-build-authorizations"),i=require("@onflow/sdk-build-at-block-height"),u=require("@onflow/sdk-build-at-block-id"),s=require("@onflow/sdk-build-get-account"),l=require("@onflow/sdk-build-get-events"),c=require("@onflow/sdk-build-get-events-at-block-height-range"),a=require("@onflow/sdk-build-get-block"),d=require("@onflow/sdk-build-get-latest-block"),f=require("@onflow/sdk-build-get-block-by-id"),p=require("@onflow/sdk-build-get-block-by-height"),b=require("@onflow/sdk-build-transaction-status"),g=require("@onflow/sdk-build-limit"),m=require("@onflow/sdk-build-params"),k=require("@onflow/sdk-build-arguments"),y=require("@onflow/sdk-build-proposer"),x=require("@onflow/sdk-build-payer"),O=require("@onflow/sdk-build-ping"),P=require("@onflow/sdk-build-ref"),j=require("@onflow/sdk-build-script"),v=require("@onflow/sdk-build-transaction"),w=require("@onflow/sdk-build-validator"),q=require("@onflow/sdk-build-invariant"),h=require("@onflow/sdk-resolve-arguments"),B=require("@onflow/sdk-resolve-accounts"),A=require("@onflow/sdk-resolve-signatures"),I=require("@onflow/sdk-resolve-validators"),R=require("@onflow/sdk-resolve-ref-block-id"),S=require("@onflow/sdk-resolve-cadence"),E=e.pipe;Object.defineProperty(exports,"isBad",{enumerable:!0,get:function(){return e.isBad}}),Object.defineProperty(exports,"isOk",{enumerable:!0,get:function(){return e.isOk}}),Object.defineProperty(exports,"pipe",{enumerable:!0,get:function(){return e.pipe}}),Object.defineProperty(exports,"why",{enumerable:!0,get:function(){return e.why}}),Object.defineProperty(exports,"send",{enumerable:!0,get:function(){return r.send}}),Object.defineProperty(exports,"decode",{enumerable:!0,get:function(){return t.decode}}),Object.defineProperty(exports,"decodeResponse",{enumerable:!0,get:function(){return t.decodeResponse}}),Object.defineProperty(exports,"cadence",{enumerable:!0,get:function(){return n.template}}),Object.defineProperty(exports,"cdc",{enumerable:!0,get:function(){return n.template}}),Object.defineProperty(exports,"authorization",{enumerable:!0,get:function(){return o.authorization}}),Object.defineProperty(exports,"authorizations",{enumerable:!0,get:function(){return o.authorizations}}),Object.defineProperty(exports,"atBlockHeight",{enumerable:!0,get:function(){return i.atBlockHeight}}),Object.defineProperty(exports,"atBlockId",{enumerable:!0,get:function(){return u.atBlockId}}),Object.defineProperty(exports,"getAccount",{enumerable:!0,get:function(){return s.getAccount}}),Object.defineProperty(exports,"getEvents",{enumerable:!0,get:function(){return l.getEvents}}),Object.defineProperty(exports,"getEventsAtBlockHeightRange",{enumerable:!0,get:function(){return c.getEventsAtBlockHeightRange}}),Object.defineProperty(exports,"getEventsAtBlockIds",{enumerable:!0,get:function(){return c.getEventsAtBlockIds}}),Object.defineProperty(exports,"getBlock",{enumerable:!0,get:function(){return a.getBlock}}),Object.defineProperty(exports,"getLatestBlock",{enumerable:!0,get:function(){return d.getLatestBlock}}),Object.defineProperty(exports,"getBlockById",{enumerable:!0,get:function(){return f.getBlockById}}),Object.defineProperty(exports,"getBlockByHeight",{enumerable:!0,get:function(){return p.getBlockByHeight}}),Object.defineProperty(exports,"getTransactionStatus",{enumerable:!0,get:function(){return b.getTransactionStatus}}),Object.defineProperty(exports,"limit",{enumerable:!0,get:function(){return g.limit}}),Object.defineProperty(exports,"param",{enumerable:!0,get:function(){return m.param}}),Object.defineProperty(exports,"params",{enumerable:!0,get:function(){return m.params}}),Object.defineProperty(exports,"arg",{enumerable:!0,get:function(){return k.arg}}),Object.defineProperty(exports,"args",{enumerable:!0,get:function(){return k.args}}),Object.defineProperty(exports,"proposer",{enumerable:!0,get:function(){return y.proposer}}),Object.defineProperty(exports,"payer",{enumerable:!0,get:function(){return x.payer}}),Object.defineProperty(exports,"ping",{enumerable:!0,get:function(){return O.ping}}),Object.defineProperty(exports,"ref",{enumerable:!0,get:function(){return P.ref}}),Object.defineProperty(exports,"script",{enumerable:!0,get:function(){return j.script}}),Object.defineProperty(exports,"transaction",{enumerable:!0,get:function(){return v.transaction}}),Object.defineProperty(exports,"validator",{enumerable:!0,get:function(){return w.validator}}),Object.defineProperty(exports,"invariant",{enumerable:!0,get:function(){return q.invariant}}),Object.defineProperty(exports,"resolveArguments",{enumerable:!0,get:function(){return h.resolveArguments}}),Object.defineProperty(exports,"resolveAccounts",{enumerable:!0,get:function(){return B.resolveAccounts}}),Object.defineProperty(exports,"resolveSignatures",{enumerable:!0,get:function(){return A.resolveSignatures}}),Object.defineProperty(exports,"resolveValidators",{enumerable:!0,get:function(){return I.resolveValidators}}),Object.defineProperty(exports,"resolveRefBlockId",{enumerable:!0,get:function(){return R.resolveRefBlockId}}),exports.build=function(r){return void 0===r&&(r=[]),e.pipe(e.interaction(),r)},exports.resolve=E,exports.resolveParams=function(e){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),S.resolveCadence(e)};
//# sourceMappingURL=sdk.js.map

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

import{pipe as o,interaction as e}from"@onflow/interaction";export{isBad,isOk,pipe,why}from"@onflow/interaction";export{send}from"@onflow/send";export{decode,decodeResponse}from"@onflow/decode";export{template as cadence,template as cdc}from"@onflow/util-template";export{authorization,authorizations}from"@onflow/sdk-build-authorizations";export{getAccount}from"@onflow/sdk-build-get-account";export{getEvents}from"@onflow/sdk-build-get-events";export{getLatestBlock}from"@onflow/sdk-build-get-latest-block";export{getBlockById}from"@onflow/sdk-build-get-block-by-id";export{getBlockByHeight}from"@onflow/sdk-build-get-block-by-height";export{getTransactionStatus}from"@onflow/sdk-build-transaction-status";export{limit}from"@onflow/sdk-build-limit";export{param,params}from"@onflow/sdk-build-params";export{arg,args}from"@onflow/sdk-build-arguments";export{proposer}from"@onflow/sdk-build-proposer";export{payer}from"@onflow/sdk-build-payer";export{ping}from"@onflow/sdk-build-ping";export{ref}from"@onflow/sdk-build-ref";export{script}from"@onflow/sdk-build-script";export{transaction}from"@onflow/sdk-build-transaction";export{validator}from"@onflow/sdk-build-validator";export{invariant}from"@onflow/sdk-build-invariant";export{resolveArguments}from"@onflow/sdk-resolve-arguments";export{resolveAccounts}from"@onflow/sdk-resolve-accounts";export{resolveSignatures}from"@onflow/sdk-resolve-signatures";export{resolveValidators}from"@onflow/sdk-resolve-validators";export{resolveRefBlockId}from"@onflow/sdk-resolve-ref-block-id";import{resolveCadence as r}from"@onflow/sdk-resolve-cadence";function t(r=[]){return o(e(),r)}const n=o;function s(o){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),r(o)}export{t as build,n as resolve,s as resolveParams};
import{pipe as o,interaction as e}from"@onflow/interaction";export{isBad,isOk,pipe,why}from"@onflow/interaction";export{send}from"@onflow/send";export{decode,decodeResponse}from"@onflow/decode";export{template as cadence,template as cdc}from"@onflow/util-template";export{authorization,authorizations}from"@onflow/sdk-build-authorizations";export{atBlockHeight}from"@onflow/sdk-build-at-block-height";export{atBlockId}from"@onflow/sdk-build-at-block-id";export{getAccount}from"@onflow/sdk-build-get-account";export{getEvents}from"@onflow/sdk-build-get-events";export{getEventsAtBlockHeightRange,getEventsAtBlockIds}from"@onflow/sdk-build-get-events-at-block-height-range";export{getBlock}from"@onflow/sdk-build-get-block";export{getLatestBlock}from"@onflow/sdk-build-get-latest-block";export{getBlockById}from"@onflow/sdk-build-get-block-by-id";export{getBlockByHeight}from"@onflow/sdk-build-get-block-by-height";export{getTransactionStatus}from"@onflow/sdk-build-transaction-status";export{limit}from"@onflow/sdk-build-limit";export{param,params}from"@onflow/sdk-build-params";export{arg,args}from"@onflow/sdk-build-arguments";export{proposer}from"@onflow/sdk-build-proposer";export{payer}from"@onflow/sdk-build-payer";export{ping}from"@onflow/sdk-build-ping";export{ref}from"@onflow/sdk-build-ref";export{script}from"@onflow/sdk-build-script";export{transaction}from"@onflow/sdk-build-transaction";export{validator}from"@onflow/sdk-build-validator";export{invariant}from"@onflow/sdk-build-invariant";export{resolveArguments}from"@onflow/sdk-resolve-arguments";export{resolveAccounts}from"@onflow/sdk-resolve-accounts";export{resolveSignatures}from"@onflow/sdk-resolve-signatures";export{resolveValidators}from"@onflow/sdk-resolve-validators";export{resolveRefBlockId}from"@onflow/sdk-resolve-ref-block-id";import{resolveCadence as r}from"@onflow/sdk-resolve-cadence";function t(r=[]){return o(e(),r)}const l=o;function n(o){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),r(o)}export{t as build,l as resolve,n as resolveParams};
//# sourceMappingURL=sdk.modern.js.map

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

import{pipe as o,interaction as e}from"@onflow/interaction";export{isBad,isOk,pipe,why}from"@onflow/interaction";export{send}from"@onflow/send";export{decode,decodeResponse}from"@onflow/decode";export{template as cadence,template as cdc}from"@onflow/util-template";export{authorization,authorizations}from"@onflow/sdk-build-authorizations";export{getAccount}from"@onflow/sdk-build-get-account";export{getEvents}from"@onflow/sdk-build-get-events";export{getLatestBlock}from"@onflow/sdk-build-get-latest-block";export{getBlockById}from"@onflow/sdk-build-get-block-by-id";export{getBlockByHeight}from"@onflow/sdk-build-get-block-by-height";export{getTransactionStatus}from"@onflow/sdk-build-transaction-status";export{limit}from"@onflow/sdk-build-limit";export{param,params}from"@onflow/sdk-build-params";export{arg,args}from"@onflow/sdk-build-arguments";export{proposer}from"@onflow/sdk-build-proposer";export{payer}from"@onflow/sdk-build-payer";export{ping}from"@onflow/sdk-build-ping";export{ref}from"@onflow/sdk-build-ref";export{script}from"@onflow/sdk-build-script";export{transaction}from"@onflow/sdk-build-transaction";export{validator}from"@onflow/sdk-build-validator";export{invariant}from"@onflow/sdk-build-invariant";export{resolveArguments}from"@onflow/sdk-resolve-arguments";export{resolveAccounts}from"@onflow/sdk-resolve-accounts";export{resolveSignatures}from"@onflow/sdk-resolve-signatures";export{resolveValidators}from"@onflow/sdk-resolve-validators";export{resolveRefBlockId}from"@onflow/sdk-resolve-ref-block-id";import{resolveCadence as r}from"@onflow/sdk-resolve-cadence";function t(r){return void 0===r&&(r=[]),o(e(),r)}var n=o;function s(o){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),r(o)}export{t as build,n as resolve,s as resolveParams};
import{pipe as o,interaction as e}from"@onflow/interaction";export{isBad,isOk,pipe,why}from"@onflow/interaction";export{send}from"@onflow/send";export{decode,decodeResponse}from"@onflow/decode";export{template as cadence,template as cdc}from"@onflow/util-template";export{authorization,authorizations}from"@onflow/sdk-build-authorizations";export{atBlockHeight}from"@onflow/sdk-build-at-block-height";export{atBlockId}from"@onflow/sdk-build-at-block-id";export{getAccount}from"@onflow/sdk-build-get-account";export{getEvents}from"@onflow/sdk-build-get-events";export{getEventsAtBlockHeightRange,getEventsAtBlockIds}from"@onflow/sdk-build-get-events-at-block-height-range";export{getBlock}from"@onflow/sdk-build-get-block";export{getLatestBlock}from"@onflow/sdk-build-get-latest-block";export{getBlockById}from"@onflow/sdk-build-get-block-by-id";export{getBlockByHeight}from"@onflow/sdk-build-get-block-by-height";export{getTransactionStatus}from"@onflow/sdk-build-transaction-status";export{limit}from"@onflow/sdk-build-limit";export{param,params}from"@onflow/sdk-build-params";export{arg,args}from"@onflow/sdk-build-arguments";export{proposer}from"@onflow/sdk-build-proposer";export{payer}from"@onflow/sdk-build-payer";export{ping}from"@onflow/sdk-build-ping";export{ref}from"@onflow/sdk-build-ref";export{script}from"@onflow/sdk-build-script";export{transaction}from"@onflow/sdk-build-transaction";export{validator}from"@onflow/sdk-build-validator";export{invariant}from"@onflow/sdk-build-invariant";export{resolveArguments}from"@onflow/sdk-resolve-arguments";export{resolveAccounts}from"@onflow/sdk-resolve-accounts";export{resolveSignatures}from"@onflow/sdk-resolve-signatures";export{resolveValidators}from"@onflow/sdk-resolve-validators";export{resolveRefBlockId}from"@onflow/sdk-resolve-ref-block-id";import{resolveCadence as r}from"@onflow/sdk-resolve-cadence";function t(r){return void 0===r&&(r=[]),o(e(),r)}var l=o;function n(o){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),r(o)}export{t as build,l as resolve,n as resolveParams};
//# sourceMappingURL=sdk.module.js.map

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@onflow/interaction"),require("@onflow/send"),require("@onflow/decode"),require("@onflow/util-template"),require("@onflow/sdk-build-authorizations"),require("@onflow/sdk-build-get-account"),require("@onflow/sdk-build-get-events"),require("@onflow/sdk-build-get-latest-block"),require("@onflow/sdk-build-get-block-by-id"),require("@onflow/sdk-build-get-block-by-height"),require("@onflow/sdk-build-transaction-status"),require("@onflow/sdk-build-limit"),require("@onflow/sdk-build-params"),require("@onflow/sdk-build-arguments"),require("@onflow/sdk-build-proposer"),require("@onflow/sdk-build-payer"),require("@onflow/sdk-build-ping"),require("@onflow/sdk-build-ref"),require("@onflow/sdk-build-script"),require("@onflow/sdk-build-transaction"),require("@onflow/sdk-build-validator"),require("@onflow/sdk-build-invariant"),require("@onflow/sdk-resolve-arguments"),require("@onflow/sdk-resolve-accounts"),require("@onflow/sdk-resolve-signatures"),require("@onflow/sdk-resolve-validators"),require("@onflow/sdk-resolve-ref-block-id"),require("@onflow/sdk-resolve-cadence")):"function"==typeof define&&define.amd?define(["exports","@onflow/interaction","@onflow/send","@onflow/decode","@onflow/util-template","@onflow/sdk-build-authorizations","@onflow/sdk-build-get-account","@onflow/sdk-build-get-events","@onflow/sdk-build-get-latest-block","@onflow/sdk-build-get-block-by-id","@onflow/sdk-build-get-block-by-height","@onflow/sdk-build-transaction-status","@onflow/sdk-build-limit","@onflow/sdk-build-params","@onflow/sdk-build-arguments","@onflow/sdk-build-proposer","@onflow/sdk-build-payer","@onflow/sdk-build-ping","@onflow/sdk-build-ref","@onflow/sdk-build-script","@onflow/sdk-build-transaction","@onflow/sdk-build-validator","@onflow/sdk-build-invariant","@onflow/sdk-resolve-arguments","@onflow/sdk-resolve-accounts","@onflow/sdk-resolve-signatures","@onflow/sdk-resolve-validators","@onflow/sdk-resolve-ref-block-id","@onflow/sdk-resolve-cadence"],r):r((e=e||self).sdk={},e.interaction,e.send,e.decode,e.utilTemplate,e.sdkBuildAuthorizations,e.sdkBuildGetAccount,e.sdkBuildGetEvents,e.sdkBuildGetLatestBlock,e.sdkBuildGetBlockById,e.sdkBuildGetBlockByHeight,e.sdkBuildTransactionStatus,e.sdkBuildLimit,e.sdkBuildParams,e.sdkBuildArguments,e.sdkBuildProposer,e.sdkBuildPayer,e.sdkBuildPing,e.sdkBuildRef,e.sdkBuildScript,e.sdkBuildTransaction,e.sdkBuildValidator,e.sdkBuildInvariant,e.sdkResolveArguments,e.sdkResolveAccounts,e.sdkResolveSignatures,e.sdkResolveValidators,e.sdkResolveRefBlockId,e.sdkResolveCadence)}(this,function(e,r,n,t,o,i,u,l,d,s,a,c,f,b,k,p,g,m,w,y,v,P,B,O,j,q,h,R,A){var S=r.pipe;Object.defineProperty(e,"isBad",{enumerable:!0,get:function(){return r.isBad}}),Object.defineProperty(e,"isOk",{enumerable:!0,get:function(){return r.isOk}}),Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return r.pipe}}),Object.defineProperty(e,"why",{enumerable:!0,get:function(){return r.why}}),Object.defineProperty(e,"send",{enumerable:!0,get:function(){return n.send}}),Object.defineProperty(e,"decode",{enumerable:!0,get:function(){return t.decode}}),Object.defineProperty(e,"decodeResponse",{enumerable:!0,get:function(){return t.decodeResponse}}),Object.defineProperty(e,"cadence",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"cdc",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"authorization",{enumerable:!0,get:function(){return i.authorization}}),Object.defineProperty(e,"authorizations",{enumerable:!0,get:function(){return i.authorizations}}),Object.defineProperty(e,"getAccount",{enumerable:!0,get:function(){return u.getAccount}}),Object.defineProperty(e,"getEvents",{enumerable:!0,get:function(){return l.getEvents}}),Object.defineProperty(e,"getLatestBlock",{enumerable:!0,get:function(){return d.getLatestBlock}}),Object.defineProperty(e,"getBlockById",{enumerable:!0,get:function(){return s.getBlockById}}),Object.defineProperty(e,"getBlockByHeight",{enumerable:!0,get:function(){return a.getBlockByHeight}}),Object.defineProperty(e,"getTransactionStatus",{enumerable:!0,get:function(){return c.getTransactionStatus}}),Object.defineProperty(e,"limit",{enumerable:!0,get:function(){return f.limit}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return b.param}}),Object.defineProperty(e,"params",{enumerable:!0,get:function(){return b.params}}),Object.defineProperty(e,"arg",{enumerable:!0,get:function(){return k.arg}}),Object.defineProperty(e,"args",{enumerable:!0,get:function(){return k.args}}),Object.defineProperty(e,"proposer",{enumerable:!0,get:function(){return p.proposer}}),Object.defineProperty(e,"payer",{enumerable:!0,get:function(){return g.payer}}),Object.defineProperty(e,"ping",{enumerable:!0,get:function(){return m.ping}}),Object.defineProperty(e,"ref",{enumerable:!0,get:function(){return w.ref}}),Object.defineProperty(e,"script",{enumerable:!0,get:function(){return y.script}}),Object.defineProperty(e,"transaction",{enumerable:!0,get:function(){return v.transaction}}),Object.defineProperty(e,"validator",{enumerable:!0,get:function(){return P.validator}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return B.invariant}}),Object.defineProperty(e,"resolveArguments",{enumerable:!0,get:function(){return O.resolveArguments}}),Object.defineProperty(e,"resolveAccounts",{enumerable:!0,get:function(){return j.resolveAccounts}}),Object.defineProperty(e,"resolveSignatures",{enumerable:!0,get:function(){return q.resolveSignatures}}),Object.defineProperty(e,"resolveValidators",{enumerable:!0,get:function(){return h.resolveValidators}}),Object.defineProperty(e,"resolveRefBlockId",{enumerable:!0,get:function(){return R.resolveRefBlockId}}),e.build=function(e){return void 0===e&&(e=[]),r.pipe(r.interaction(),e)},e.resolve=S,e.resolveParams=function(e){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),A.resolveCadence(e)}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@onflow/interaction"),require("@onflow/send"),require("@onflow/decode"),require("@onflow/util-template"),require("@onflow/sdk-build-authorizations"),require("@onflow/sdk-build-at-block-height"),require("@onflow/sdk-build-at-block-id"),require("@onflow/sdk-build-get-account"),require("@onflow/sdk-build-get-events"),require("@onflow/sdk-build-get-events-at-block-height-range"),require("@onflow/sdk-build-get-block"),require("@onflow/sdk-build-get-latest-block"),require("@onflow/sdk-build-get-block-by-id"),require("@onflow/sdk-build-get-block-by-height"),require("@onflow/sdk-build-transaction-status"),require("@onflow/sdk-build-limit"),require("@onflow/sdk-build-params"),require("@onflow/sdk-build-arguments"),require("@onflow/sdk-build-proposer"),require("@onflow/sdk-build-payer"),require("@onflow/sdk-build-ping"),require("@onflow/sdk-build-ref"),require("@onflow/sdk-build-script"),require("@onflow/sdk-build-transaction"),require("@onflow/sdk-build-validator"),require("@onflow/sdk-build-invariant"),require("@onflow/sdk-resolve-arguments"),require("@onflow/sdk-resolve-accounts"),require("@onflow/sdk-resolve-signatures"),require("@onflow/sdk-resolve-validators"),require("@onflow/sdk-resolve-ref-block-id"),require("@onflow/sdk-resolve-cadence")):"function"==typeof define&&define.amd?define(["exports","@onflow/interaction","@onflow/send","@onflow/decode","@onflow/util-template","@onflow/sdk-build-authorizations","@onflow/sdk-build-at-block-height","@onflow/sdk-build-at-block-id","@onflow/sdk-build-get-account","@onflow/sdk-build-get-events","@onflow/sdk-build-get-events-at-block-height-range","@onflow/sdk-build-get-block","@onflow/sdk-build-get-latest-block","@onflow/sdk-build-get-block-by-id","@onflow/sdk-build-get-block-by-height","@onflow/sdk-build-transaction-status","@onflow/sdk-build-limit","@onflow/sdk-build-params","@onflow/sdk-build-arguments","@onflow/sdk-build-proposer","@onflow/sdk-build-payer","@onflow/sdk-build-ping","@onflow/sdk-build-ref","@onflow/sdk-build-script","@onflow/sdk-build-transaction","@onflow/sdk-build-validator","@onflow/sdk-build-invariant","@onflow/sdk-resolve-arguments","@onflow/sdk-resolve-accounts","@onflow/sdk-resolve-signatures","@onflow/sdk-resolve-validators","@onflow/sdk-resolve-ref-block-id","@onflow/sdk-resolve-cadence"],t):t((e=e||self).sdk={},e.interaction,e.send,e.decode,e.utilTemplate,e.sdkBuildAuthorizations,e.sdkBuildAtBlockHeight,e.sdkBuildAtBlockId,e.sdkBuildGetAccount,e.sdkBuildGetEvents,e.sdkBuildGetEventsAtBlockHeightRange,e.sdkBuildGetBlock,e.sdkBuildGetLatestBlock,e.sdkBuildGetBlockById,e.sdkBuildGetBlockByHeight,e.sdkBuildTransactionStatus,e.sdkBuildLimit,e.sdkBuildParams,e.sdkBuildArguments,e.sdkBuildProposer,e.sdkBuildPayer,e.sdkBuildPing,e.sdkBuildRef,e.sdkBuildScript,e.sdkBuildTransaction,e.sdkBuildValidator,e.sdkBuildInvariant,e.sdkResolveArguments,e.sdkResolveAccounts,e.sdkResolveSignatures,e.sdkResolveValidators,e.sdkResolveRefBlockId,e.sdkResolveCadence)}(this,function(e,t,n,r,o,i,l,u,d,s,a,c,f,b,k,g,p,m,w,v,y,B,P,O,j,h,q,A,R,I,S,H,E){var T=t.pipe;Object.defineProperty(e,"isBad",{enumerable:!0,get:function(){return t.isBad}}),Object.defineProperty(e,"isOk",{enumerable:!0,get:function(){return t.isOk}}),Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return t.pipe}}),Object.defineProperty(e,"why",{enumerable:!0,get:function(){return t.why}}),Object.defineProperty(e,"send",{enumerable:!0,get:function(){return n.send}}),Object.defineProperty(e,"decode",{enumerable:!0,get:function(){return r.decode}}),Object.defineProperty(e,"decodeResponse",{enumerable:!0,get:function(){return r.decodeResponse}}),Object.defineProperty(e,"cadence",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"cdc",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"authorization",{enumerable:!0,get:function(){return i.authorization}}),Object.defineProperty(e,"authorizations",{enumerable:!0,get:function(){return i.authorizations}}),Object.defineProperty(e,"atBlockHeight",{enumerable:!0,get:function(){return l.atBlockHeight}}),Object.defineProperty(e,"atBlockId",{enumerable:!0,get:function(){return u.atBlockId}}),Object.defineProperty(e,"getAccount",{enumerable:!0,get:function(){return d.getAccount}}),Object.defineProperty(e,"getEvents",{enumerable:!0,get:function(){return s.getEvents}}),Object.defineProperty(e,"getEventsAtBlockHeightRange",{enumerable:!0,get:function(){return a.getEventsAtBlockHeightRange}}),Object.defineProperty(e,"getEventsAtBlockIds",{enumerable:!0,get:function(){return a.getEventsAtBlockIds}}),Object.defineProperty(e,"getBlock",{enumerable:!0,get:function(){return c.getBlock}}),Object.defineProperty(e,"getLatestBlock",{enumerable:!0,get:function(){return f.getLatestBlock}}),Object.defineProperty(e,"getBlockById",{enumerable:!0,get:function(){return b.getBlockById}}),Object.defineProperty(e,"getBlockByHeight",{enumerable:!0,get:function(){return k.getBlockByHeight}}),Object.defineProperty(e,"getTransactionStatus",{enumerable:!0,get:function(){return g.getTransactionStatus}}),Object.defineProperty(e,"limit",{enumerable:!0,get:function(){return p.limit}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return m.param}}),Object.defineProperty(e,"params",{enumerable:!0,get:function(){return m.params}}),Object.defineProperty(e,"arg",{enumerable:!0,get:function(){return w.arg}}),Object.defineProperty(e,"args",{enumerable:!0,get:function(){return w.args}}),Object.defineProperty(e,"proposer",{enumerable:!0,get:function(){return v.proposer}}),Object.defineProperty(e,"payer",{enumerable:!0,get:function(){return y.payer}}),Object.defineProperty(e,"ping",{enumerable:!0,get:function(){return B.ping}}),Object.defineProperty(e,"ref",{enumerable:!0,get:function(){return P.ref}}),Object.defineProperty(e,"script",{enumerable:!0,get:function(){return O.script}}),Object.defineProperty(e,"transaction",{enumerable:!0,get:function(){return j.transaction}}),Object.defineProperty(e,"validator",{enumerable:!0,get:function(){return h.validator}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return q.invariant}}),Object.defineProperty(e,"resolveArguments",{enumerable:!0,get:function(){return A.resolveArguments}}),Object.defineProperty(e,"resolveAccounts",{enumerable:!0,get:function(){return R.resolveAccounts}}),Object.defineProperty(e,"resolveSignatures",{enumerable:!0,get:function(){return I.resolveSignatures}}),Object.defineProperty(e,"resolveValidators",{enumerable:!0,get:function(){return S.resolveValidators}}),Object.defineProperty(e,"resolveRefBlockId",{enumerable:!0,get:function(){return H.resolveRefBlockId}}),e.build=function(e){return void 0===e&&(e=[]),t.pipe(t.interaction(),e)},e.resolve=T,e.resolveParams=function(e){return console.error("\n %cFCL/SDK Deprecation Notice\n ============================\n\n The resolver sdk.resolveParams is being replaced with the package @onflow/sdk-resolve-cadence\n You can learn more (including a guide on common transition paths) here: https://github.com/onflow/flow-js-sdk/blob/master/packages/sdk/TRANSITIONS.md#0002-deprecate-resolve-params-resolver\n\n ============================\n ","font-weight:bold;font-family:monospace;"),E.resolveCadence(e)}});
//# sourceMappingURL=sdk.umd.js.map
{
"name": "@onflow/sdk",
"version": "0.0.44",
"version": "0.0.45-alpha.1",
"description": "Flow SDK",

@@ -37,31 +37,36 @@ "license": "Apache-2.0",

"dependencies": {
"@onflow/decode": "0.0.10",
"@onflow/interaction": "0.0.10",
"@onflow/sdk-build-arguments": "0.0.0",
"@onflow/sdk-build-authorizations": "0.0.1",
"@onflow/sdk-build-get-account": "0.0.1",
"@onflow/sdk-build-get-block-by-height": "0.0.0",
"@onflow/sdk-build-get-block-by-id": "0.0.0",
"@onflow/sdk-build-get-events": "0.0.0",
"@onflow/sdk-build-get-latest-block": "0.0.0",
"@onflow/sdk-build-invariant": "0.0.0",
"@onflow/sdk-build-limit": "0.0.0",
"@onflow/sdk-build-params": "0.0.0",
"@onflow/sdk-build-payer": "0.0.0",
"@onflow/sdk-build-ping": "0.0.0",
"@onflow/sdk-build-proposer": "0.0.0",
"@onflow/sdk-build-ref": "0.0.0",
"@onflow/sdk-build-script": "0.0.0",
"@onflow/sdk-build-transaction": "0.0.0",
"@onflow/sdk-build-transaction-status": "0.0.0",
"@onflow/sdk-build-validator": "0.0.0",
"@onflow/sdk-resolve-accounts": "0.0.0",
"@onflow/sdk-resolve-arguments": "0.0.1",
"@onflow/sdk-resolve-cadence": "0.0.1",
"@onflow/sdk-resolve-ref-block-id": "0.0.7",
"@onflow/sdk-resolve-signatures": "0.0.5",
"@onflow/sdk-resolve-validators": "0.0.0",
"@onflow/send": "0.0.35",
"@onflow/decode": "0.0.11",
"@onflow/interaction": "0.0.11",
"@onflow/sdk-build-arguments": "0.0.1",
"@onflow/sdk-build-at-block-height": "0.0.1",
"@onflow/sdk-build-at-block-id": "0.0.1",
"@onflow/sdk-build-authorizations": "0.0.3",
"@onflow/sdk-build-get-account": "0.0.3",
"@onflow/sdk-build-get-block": "0.0.1",
"@onflow/sdk-build-get-block-by-height": "0.0.2",
"@onflow/sdk-build-get-block-by-id": "0.0.2",
"@onflow/sdk-build-get-events": "0.0.2",
"@onflow/sdk-build-get-events-at-block-height-range": "0.0.1",
"@onflow/sdk-build-get-events-at-block-ids": "0.0.1",
"@onflow/sdk-build-get-latest-block": "0.0.2",
"@onflow/sdk-build-invariant": "0.0.1",
"@onflow/sdk-build-limit": "0.0.1",
"@onflow/sdk-build-params": "0.0.1",
"@onflow/sdk-build-payer": "0.0.1",
"@onflow/sdk-build-ping": "0.0.1",
"@onflow/sdk-build-proposer": "0.0.1",
"@onflow/sdk-build-ref": "0.0.1",
"@onflow/sdk-build-script": "0.0.1",
"@onflow/sdk-build-transaction": "0.0.1",
"@onflow/sdk-build-transaction-status": "0.0.1",
"@onflow/sdk-build-validator": "0.0.1",
"@onflow/sdk-resolve-accounts": "0.0.1",
"@onflow/sdk-resolve-arguments": "0.0.2",
"@onflow/sdk-resolve-cadence": "0.0.2",
"@onflow/sdk-resolve-ref-block-id": "0.0.8",
"@onflow/sdk-resolve-signatures": "0.0.6",
"@onflow/sdk-resolve-validators": "0.0.1",
"@onflow/send": "0.0.36",
"@onflow/util-template": "0.0.1"
}
}

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

# @onflow/sdk
---
title: SDK
description: A collection of modules that make interacting with Flow easier
---
A collection of modules that make interacting with [Flow](https://onflow.org) easier.
# Status
## Status
- **Last Updated:** August 13th 2020

@@ -13,3 +16,3 @@ - **Stable:** Yes

# Install
## Install

@@ -20,3 +23,3 @@ ```bash

# Flow JS-SDK
## Flow JS-SDK

@@ -47,3 +50,3 @@ #### Introduction

The Flow JS-SDK exposes what we call a _build_ function, and a suite of _builder_ functions. The build function consumes as its argument an array of builder functions within it. Each builder function consumes information that you know, and that you want to place into the interaction.
The Flow JS-SDK exposes what we call a _build_ function, and a suite of _builder_ functions. The build function consumes as its argument an array of builder functions within it. Each builder function consumes information that you know, and that you want to place into the interaction.

@@ -141,3 +144,3 @@ Example 1

In Example 4 we Build an Execute Script Interaction by using the script builder to specify a Cadence script and the args and arg builders to specify some arguments to pass into the Cadence Script. To Resolve this built interaction, we pipe'd the built interaction through an array of resolvers. The resolveParams resolver encoded the Cadence script into a format the Flow Blockchain accepts, and the resolveArguments resolver prepared the arguments into the correct encoding that the Flow Blockchain accepts.
In Example 4 we Build an Execute Script Interaction by using the script builder to specify a Cadence script and the args and arg builders to specify some arguments to pass into the Cadence Script. To Resolve this built interaction, we pipe'd the built interaction through an array of resolvers. The resolveParams resolver encoded the Cadence script into a format the Flow Blockchain accepts, and the resolveArguments resolver prepared the arguments into the correct encoding that the Flow Blockchain accepts.

@@ -179,3 +182,3 @@ Example 5

Once an Interaction has been _Built_ and, if necessary, _Resolved_ it can then be _Sent_ to the Flow Blockchain. Fortunately, sending to the Flow Blockchain is simple. The Flow JS-SDK exposes a Send function which consumes an Interaction and some configuration, and returns a data structure called a _Response_ (more on this later).
Once an Interaction has been _Built_ and, if necessary, _Resolved_ it can then be _Sent_ to the Flow Blockchain. Fortunately, sending to the Flow Blockchain is simple. The Flow JS-SDK exposes a Send function which consumes an Interaction and some configuration, and returns a data structure called a _Response_ (more on this later).

@@ -258,3 +261,3 @@ Example 6

Custom Decoders are declared by passing a configuration object of key value pairs into the decode function. The keys included in this object correspond to the Cadence type you wish to provide a custom decoder for, and the value must be an asyncronous function which returns your desired JavaScript value for the type. The keys in this object can optionally be regex values declared by writing a regular expression between two forward slashes (ie: "/my-regex-exp/").
Custom Decoders are declared by passing a configuration object of key value pairs into the decode function. The keys included in this object correspond to the Cadence type you wish to provide a custom decoder for, and the value must be an asyncronous function which returns your desired JavaScript value for the type. The keys in this object can optionally be regex values declared by writing a regular expression between two forward slashes (ie: "/my-regex-exp/").

@@ -297,4 +300,4 @@ Example 8

this.y = y
this.created_at = Date.now()
}
this.created_at = Date.now()
}
}

@@ -357,3 +360,3 @@

The SDK additionally supplies builders to construct interactions of many different types to interact with the Access Node's various APIs.
The SDK additionally supplies builders to construct interactions of many different types to interact with the Access Node's various APIs.

@@ -409,3 +412,3 @@ Please reference the provided example project `react-simple` for example code.

```javascript
```javascript
import * as sdk from "@onflow/sdk"

@@ -412,0 +415,0 @@ import * as types from "@onflow/types"

@@ -14,4 +14,9 @@ // Base

export {authorizations, authorization} from "@onflow/sdk-build-authorizations"
export {atBlockHeight} from "@onflow/sdk-build-at-block-height"
export {atBlockId} from "@onflow/sdk-build-at-block-id"
export {getAccount} from "@onflow/sdk-build-get-account"
export {getEvents} from "@onflow/sdk-build-get-events"
export {getEventsAtBlockHeightRange} from "@onflow/sdk-build-get-events-at-block-height-range"
export {getEventsAtBlockIds} from "@onflow/sdk-build-get-events-at-block-height-range"
export {getBlock} from "@onflow/sdk-build-get-block"
export {getLatestBlock} from "@onflow/sdk-build-get-latest-block"

@@ -18,0 +23,0 @@ export {getBlockById} from "@onflow/sdk-build-get-block-by-id"

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