@magic-ext/avalanche
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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 (Thu Dec 09 2021) | ||
@@ -2,0 +21,0 @@ |
@@ -1,2 +0,2 @@ | ||
var n=require("@magic-sdk/commons");function t(n,r){return(t=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,r)}exports.AvalancheExtension=function(n){var r,e;function o(t){var r;return(r=n.call(this)||this).avalancheConfig=void 0,r.name="avax",r.config={},r.signTransaction=function(n,t,e,o,a){return r.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:t,toAddresses:e,fromAddresses:o,changeAddresses:a}})},r.avalancheConfig=t,r.config={rpcUrl:t.rpcUrl,chainType:"AVAX",options:{chainId:t.chainId,networkId:t.networkId}},r}return e=n,(r=o).prototype=Object.create(e.prototype),r.prototype.constructor=r,t(r,e),o}(n.Extension.Internal); | ||
var m=Object.create;var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var a=r=>i(r,"__esModule",{value:!0});var y=(r,n)=>{a(r);for(var s in n)i(r,s,{get:n[s],enumerable:!0})},A=(r,n,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of d(n))!x.call(r,t)&&t!=="default"&&i(r,t,{get:()=>n[t],enumerable:!(s=g(n,t))||s.enumerable});return r},I=r=>A(a(i(r!=null?m(u(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);y(exports,{AvalancheExtension:()=>c});var o=I(require("@magic-sdk/commons")),c=class extends o.Extension.Internal{constructor(n){super();this.avalancheConfig=n;this.name="avax";this.config={};this.signTransaction=(n,s,t,e,p)=>this.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:s,toAddresses:t,fromAddresses:e,changeAddresses:p}});this.config={rpcUrl:n.rpcUrl,chainType:"AVAX",options:{chainId:n.chainId,networkId:n.networkId}}}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import{Extension as n}from"@magic-sdk/commons";function r(n,t){return(r=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(n,t)}var t=function(n){var t,o;function e(r){var t;return(t=n.call(this)||this).avalancheConfig=void 0,t.name="avax",t.config={},t.signTransaction=function(n,r,o,e,a){return t.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:r,toAddresses:o,fromAddresses:e,changeAddresses:a}})},t.avalancheConfig=r,t.config={rpcUrl:r.rpcUrl,chainType:"AVAX",options:{chainId:r.chainId,networkId:r.networkId}},t}return o=n,(t=e).prototype=Object.create(o.prototype),t.prototype.constructor=t,r(t,o),e}(n.Internal);export{t as AvalancheExtension}; | ||
import{Extension as a}from"@magic-sdk/commons";var o=class extends a.Internal{constructor(r){super();this.avalancheConfig=r;this.name="avax";this.config={};this.signTransaction=(r,n,s,t,i)=>this.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:r,assetId:n,toAddresses:s,fromAddresses:t,changeAddresses:i}});this.config={rpcUrl:r.rpcUrl,chainType:"AVAX",options:{chainId:r.chainId,networkId:r.networkId}}}};export{o as AvalancheExtension}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
var MagicSolanaExtension=function(n){function t(n,r){return(t=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,r)}return function(n){var r,o;function e(t){var r;return(r=n.call(this)||this).avalancheConfig=void 0,r.name="avax",r.config={},r.signTransaction=function(n,t,o,e,a){return r.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:t,toAddresses:o,fromAddresses:e,changeAddresses:a}})},r.avalancheConfig=t,r.config={rpcUrl:t.rpcUrl,chainType:"AVAX",options:{chainId:t.chainId,networkId:t.networkId}},r}return o=n,(r=e).prototype=Object.create(o.prototype),r.prototype.constructor=r,t(r,o),e}(Magic.Extension.Internal)}(); | ||
var MagicSolanaExtension=(()=>{var d=Object.create;var o=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var i=r=>o(r,"__esModule",{value:!0});var y=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports);var f=(r,n,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of u(n))!l.call(r,t)&&t!=="default"&&o(r,t,{get:()=>n[t],enumerable:!(s=g(n,t))||s.enumerable});return r},h=r=>f(i(o(r!=null?d(A(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var c=y((b,e)=>{e.exports=Magic});var v={};i(v);var p=h(c()),a=class extends p.Extension.Internal{constructor(n){super();this.avalancheConfig=n;this.name="avax";this.config={};this.signTransaction=(n,s,t,m,x)=>this.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:s,toAddresses:t,fromAddresses:m,changeAddresses:x}});this.config={rpcUrl:n.rpcUrl,chainType:"AVAX",options:{chainId:n.chainId,networkId:n.networkId}}}};module.exports=a;return v;})(); |
@@ -1,2 +0,2 @@ | ||
var n=require("@magic-sdk/commons");function t(n,r){return(t=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,r)}exports.AvalancheExtension=function(n){var r,e;function o(t){var r;return(r=n.call(this)||this).avalancheConfig=void 0,r.name="avax",r.config={},r.signTransaction=function(n,t,e,o,a){return r.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:t,toAddresses:e,fromAddresses:o,changeAddresses:a}})},r.avalancheConfig=t,r.config={rpcUrl:t.rpcUrl,chainType:"AVAX",options:{chainId:t.chainId,networkId:t.networkId}},r}return e=n,(r=o).prototype=Object.create(e.prototype),r.prototype.constructor=r,t(r,e),o}(n.Extension.Internal); | ||
var m=Object.create;var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var a=r=>i(r,"__esModule",{value:!0});var y=(r,n)=>{a(r);for(var s in n)i(r,s,{get:n[s],enumerable:!0})},A=(r,n,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of d(n))!x.call(r,t)&&t!=="default"&&i(r,t,{get:()=>n[t],enumerable:!(s=g(n,t))||s.enumerable});return r},I=r=>A(a(i(r!=null?m(u(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);y(exports,{AvalancheExtension:()=>c});var o=I(require("@magic-sdk/commons")),c=class extends o.Extension.Internal{constructor(n){super();this.avalancheConfig=n;this.name="avax";this.config={};this.signTransaction=(n,s,t,e,p)=>this.request({id:42,jsonrpc:"2.0",method:"ava_signTransaction",params:{sendAmount:n,assetId:s,toAddresses:t,fromAddresses:e,changeAddresses:p}});this.config={rpcUrl:n.rpcUrl,chainType:"AVAX",options:{chainId:n.chainId,networkId:n.networkId}}}}; | ||
//# sourceMappingURL=index.native.js.map |
import { AvalancheExtension } from './index'; | ||
export { AvalancheExtension as default }; | ||
export type { AvalancheExtension as default }; |
@@ -0,0 +0,0 @@ import { Extension } from '@magic-sdk/commons'; |
{ | ||
"name": "@magic-ext/avalanche", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "magic avalanche extension", | ||
@@ -14,3 +14,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
], | ||
"target": "web", | ||
"target": "neutral", | ||
"cdnGlobalName": "MagicSolanaExtension", | ||
@@ -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
13424
16
44