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

@magic-ext/tezos

Package Overview
Dependencies
Maintainers
9
Versions
698
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-ext/tezos - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

dist/es/index.mjs

19

CHANGELOG.md

@@ -0,1 +1,20 @@

# v3.0.0 (Tue Jan 25 2022)
#### 💥 Breaking Change
- Switch from `microbundle` to `esbuild` [#220](https://github.com/magiclabs/magic-js/pull/220) ([@smithki](https://github.com/smithki))
#### 🐛 Bug Fix
- Merge with master ([@smithki](https://github.com/smithki))
- Merge branch 'master' into feat/faster-builds ([@smithki](https://github.com/smithki))
- Modify CDN default exports ([@smithki](https://github.com/smithki))
- Support newly added Magic JS extensions in ESBuild ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v1.0.0 (Fri Dec 10 2021)

@@ -2,0 +21,0 @@

2

dist/cjs/index.js

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

var t=require("@magic-sdk/commons");function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}exports.TezosExtension=function(t){var n,o;function r(e){var n;return(n=t.call(this)||this).tezosConfig=void 0,n.name="tezos",n.config=void 0,n.sendTransactionOperation=function(t,e,o,r){return n.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:t,amount:e,fee:o,derivationPath:r}})},n.sendContractOriginationOperation=function(t,e,o,r,a,i,s,c,u){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:t,delegate:e,fee:o,derivationPath:r,storage_limit:a,gas_limit:i,code:s,storage:c,codeFormat:u}})},n.sendContractInvocationOperation=function(t,e,o,r,a,i,s,c,u){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:t,amount:e,fee:o,derivationPath:r,storageLimit:a,gasLimit:i,entrypoint:s,parameters:c,parameterFormat:u}})},n.sendContractPing=function(t,e,o,r,a,i){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:t,amount:e,fee:o,derivationPath:r,storageLimit:a,gasLimit:i}})},n.sendDelegationOperation=function(t,e){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:t,amount:e}})},n.getAccount=function(){return n.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]})},n.tezosConfig=e,n.config={rpcUrl:e.rpcUrl,chainType:"TEZOS"},n}return o=t,(n=r).prototype=Object.create(o.prototype),n.prototype.constructor=n,e(n,o),r}(t.Extension.Internal);
var b=Object.create;var a=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var p=e=>a(e,"__esModule",{value:!0});var C=(e,n)=>{p(e);for(var r in n)a(e,r,{get:n[r],enumerable:!0})},O=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of f(n))!z.call(e,t)&&t!=="default"&&a(e,t,{get:()=>n[t],enumerable:!(r=h(n,t))||r.enumerable});return e},T=e=>O(p(a(e!=null?b(l(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);C(exports,{TezosExtension:()=>g});var d=T(require("@magic-sdk/commons")),g=class extends d.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,t,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:t,derivationPath:s}});this.sendContractOriginationOperation=(n,r,t,s,i,o,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:t,derivationPath:s,storage_limit:i,gas_limit:o,code:u,storage:c,codeFormat:m}});this.sendContractInvocationOperation=(n,r,t,s,i,o,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:t,derivationPath:s,storageLimit:i,gasLimit:o,entrypoint:u,parameters:c,parameterFormat:m}});this.sendContractPing=(n,r,t,s,i,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:t,derivationPath:s,storageLimit:i,gasLimit:o}});this.sendDelegationOperation=(n,r)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:n,amount:r}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]});this.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"}}};
//# sourceMappingURL=index.js.map

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

import{Extension as t}from"@magic-sdk/commons";function o(t,n){return(o=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t})(t,n)}var n=function(t){var n,e;function r(o){var n;return(n=t.call(this)||this).tezosConfig=void 0,n.name="tezos",n.config=void 0,n.sendTransactionOperation=function(t,o,e,r){return n.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:t,amount:o,fee:e,derivationPath:r}})},n.sendContractOriginationOperation=function(t,o,e,r,a,i,s,c,p){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:t,delegate:o,fee:e,derivationPath:r,storage_limit:a,gas_limit:i,code:s,storage:c,codeFormat:p}})},n.sendContractInvocationOperation=function(t,o,e,r,a,i,s,c,p){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:t,amount:o,fee:e,derivationPath:r,storageLimit:a,gasLimit:i,entrypoint:s,parameters:c,parameterFormat:p}})},n.sendContractPing=function(t,o,e,r,a,i){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:t,amount:o,fee:e,derivationPath:r,storageLimit:a,gasLimit:i}})},n.sendDelegationOperation=function(t,o){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:t,amount:o}})},n.getAccount=function(){return n.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]})},n.tezosConfig=o,n.config={rpcUrl:o.rpcUrl,chainType:"TEZOS"},n}return e=t,(n=r).prototype=Object.create(e.prototype),n.prototype.constructor=n,o(n,e),r}(t.Internal);export{n as TezosExtension};
import{Extension as c}from"@magic-sdk/commons";var m=class extends c.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,e,r,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:e,fee:r,derivationPath:t}});this.sendContractOriginationOperation=(n,e,r,t,s,i,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:r,derivationPath:t,storage_limit:s,gas_limit:i,code:o,storage:a,codeFormat:u}});this.sendContractInvocationOperation=(n,e,r,t,s,i,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:s,gasLimit:i,entrypoint:o,parameters:a,parameterFormat:u}});this.sendContractPing=(n,e,r,t,s,i)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:s,gasLimit:i}});this.sendDelegationOperation=(n,e)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:n,amount:e}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]});this.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"}}};export{m as TezosExtension};
//# sourceMappingURL=index.js.map

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

var MagicTezosExtension=function(t){function n(t,e){return(n=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,e)}return function(t){var e,o;function r(n){var e;return(e=t.call(this)||this).tezosConfig=void 0,e.name="tezos",e.config=void 0,e.sendTransactionOperation=function(t,n,o,r){return e.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:t,amount:n,fee:o,derivationPath:r}})},e.sendContractOriginationOperation=function(t,n,o,r,a,i,s,c,u){return e.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:t,delegate:n,fee:o,derivationPath:r,storage_limit:a,gas_limit:i,code:s,storage:c,codeFormat:u}})},e.sendContractInvocationOperation=function(t,n,o,r,a,i,s,c,u){return e.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:t,amount:n,fee:o,derivationPath:r,storageLimit:a,gasLimit:i,entrypoint:s,parameters:c,parameterFormat:u}})},e.sendContractPing=function(t,n,o,r,a,i){return e.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:t,amount:n,fee:o,derivationPath:r,storageLimit:a,gasLimit:i}})},e.sendDelegationOperation=function(t,n){return e.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:t,amount:n}})},e.getAccount=function(){return e.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]})},e.tezosConfig=n,e.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"},e}return o=t,(e=r).prototype=Object.create(o.prototype),e.prototype.constructor=e,n(e,o),r}(Magic.Extension.Internal)}();
var MagicTezosExtension=(()=>{var l=Object.create;var p=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var d=e=>p(e,"__esModule",{value:!0});var O=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var x=(e,n,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of z(n))!T.call(e,r)&&r!=="default"&&p(e,r,{get:()=>n[r],enumerable:!(t=h(n,r))||t.enumerable});return e},y=e=>x(d(p(e!=null?l(C(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var b=O((_,g)=>{g.exports=Magic});var j={};d(j);var f=y(b()),c=class extends f.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,t,r,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:t,fee:r,derivationPath:s}});this.sendContractOriginationOperation=(n,t,r,s,i,o,a,u,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:t,fee:r,derivationPath:s,storage_limit:i,gas_limit:o,code:a,storage:u,codeFormat:m}});this.sendContractInvocationOperation=(n,t,r,s,i,o,a,u,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:t,fee:r,derivationPath:s,storageLimit:i,gasLimit:o,entrypoint:a,parameters:u,parameterFormat:m}});this.sendContractPing=(n,t,r,s,i,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:t,fee:r,derivationPath:s,storageLimit:i,gasLimit:o}});this.sendDelegationOperation=(n,t)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:n,amount:t}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]});this.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"}}};module.exports=c;return j;})();

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

var t=require("@magic-sdk/commons");function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}exports.TezosExtension=function(t){var n,o;function r(e){var n;return(n=t.call(this)||this).tezosConfig=void 0,n.name="tezos",n.config=void 0,n.sendTransactionOperation=function(t,e,o,r){return n.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:t,amount:e,fee:o,derivationPath:r}})},n.sendContractOriginationOperation=function(t,e,o,r,a,i,s,c,u){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:t,delegate:e,fee:o,derivationPath:r,storage_limit:a,gas_limit:i,code:s,storage:c,codeFormat:u}})},n.sendContractInvocationOperation=function(t,e,o,r,a,i,s,c,u){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:t,amount:e,fee:o,derivationPath:r,storageLimit:a,gasLimit:i,entrypoint:s,parameters:c,parameterFormat:u}})},n.sendContractPing=function(t,e,o,r,a,i){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:t,amount:e,fee:o,derivationPath:r,storageLimit:a,gasLimit:i}})},n.sendDelegationOperation=function(t,e){return n.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:t,amount:e}})},n.getAccount=function(){return n.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]})},n.tezosConfig=e,n.config={rpcUrl:e.rpcUrl,chainType:"TEZOS"},n}return o=t,(n=r).prototype=Object.create(o.prototype),n.prototype.constructor=n,e(n,o),r}(t.Extension.Internal);
var b=Object.create;var a=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var p=e=>a(e,"__esModule",{value:!0});var C=(e,n)=>{p(e);for(var r in n)a(e,r,{get:n[r],enumerable:!0})},O=(e,n,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of f(n))!z.call(e,t)&&t!=="default"&&a(e,t,{get:()=>n[t],enumerable:!(r=h(n,t))||r.enumerable});return e},T=e=>O(p(a(e!=null?b(l(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);C(exports,{TezosExtension:()=>g});var d=T(require("@magic-sdk/commons")),g=class extends d.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,t,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:t,derivationPath:s}});this.sendContractOriginationOperation=(n,r,t,s,i,o,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:t,derivationPath:s,storage_limit:i,gas_limit:o,code:u,storage:c,codeFormat:m}});this.sendContractInvocationOperation=(n,r,t,s,i,o,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:t,derivationPath:s,storageLimit:i,gasLimit:o,entrypoint:u,parameters:c,parameterFormat:m}});this.sendContractPing=(n,r,t,s,i,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:t,derivationPath:s,storageLimit:i,gasLimit:o}});this.sendDelegationOperation=(n,r)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:n,amount:r}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]});this.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"}}};
//# sourceMappingURL=index.native.js.map
import { TezosExtension } from './index';
export { TezosExtension as default };
export type { TezosExtension as default };

@@ -0,0 +0,0 @@ import { Extension } from '@magic-sdk/commons';

{
"name": "@magic-ext/tezos",
"version": "2.0.0",
"version": "3.0.0",
"description": "magic tezos extension",

@@ -14,3 +14,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)",

],
"target": "web",
"target": "neutral",
"cdnGlobalName": "MagicTezosExtension",

@@ -23,3 +23,3 @@ "main": "./dist/cjs/index.js",

"exports": {
"import": "./dist/modern/index.mjs",
"import": "./dist/es/index.mjs",
"require": "./dist/cjs/index.js"

@@ -33,5 +33,5 @@ },

"devDependencies": {
"@magic-sdk/commons": "^3.0.0"
"@magic-sdk/commons": "^4.0.0"
},
"gitHead": "a85f41892cbd7985ee1743764f7f905b89004eaa"
"gitHead": "5a1afc093cfec98bdcfb232cb2878510014da70a"
}

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