@magic-ext/conflux
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,13 @@ | ||
# v1.1.2 (Wed Jun 29 2022) | ||
#### 🐛 Bug Fix | ||
- update conflux constructor [#328](https://github.com/magiclabs/magic-js/pull/328) ([@hcote](https://github.com/hcote)) | ||
#### Authors: 1 | ||
- Hunter Cote ([@hcote](https://github.com/hcote)) | ||
--- | ||
# v1.0.0 (Tue Jan 25 2022) | ||
@@ -2,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var h=t=>c(t,"__esModule",{value:!0});var b=(t,a)=>{for(var e in a)c(t,e,{get:a[e],enumerable:!0})},y=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of x(a))!R.call(t,n)&&(e||n!=="default")&&c(t,n,{get:()=>a[n],enumerable:!(o=m(a,n))||o.enumerable});return t};var G=(t=>(a,e)=>t&&t.get(a)||(e=y(h({}),a,1),t&&t.set(a,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(t,a,e)=>new Promise((o,n)=>{var f=r=>{try{i(e.next(r))}catch(s){n(s)}},p=r=>{try{i(e.throw(r))}catch(s){n(s)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(f,p);i((e=e.apply(t,a)).next())});var g={};b(g,{ConfluxExtension:()=>d});var l=require("@magic-sdk/commons");var d=class extends l.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",a))})}};module.exports=G(g); | ||
var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var y=o=>i(o,"__esModule",{value:!0});var g=(o,n)=>{for(var r in n)i(o,r,{get:n[r],enumerable:!0})},T=(o,n,r,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of C(n))!m.call(o,t)&&(r||t!=="default")&&i(o,t,{get:()=>n[t],enumerable:!(s=d(n,t))||s.enumerable});return o};var h=(o=>(n,r)=>o&&o.get(n)||(r=T(y({}),n,1),o&&o.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(o,n,r)=>new Promise((s,t)=>{var p=e=>{try{c(r.next(e))}catch(a){t(a)}},x=e=>{try{c(r.throw(e))}catch(a){t(a)}},c=e=>e.done?s(e.value):Promise.resolve(e.value).then(p,x);c((r=r.apply(o,n)).next())});var I={};g(I,{ConfluxExtension:()=>f});var l=require("@magic-sdk/commons");var f=class extends l.Extension.Internal{constructor(n){super();this.confluxConfig=n;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:n.rpcUrl,networkId:n.networkId}}}sendTransaction(n){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",n))})}};module.exports=h(I); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var s=(o,a,e)=>new Promise((c,i)=>{var u=t=>{try{n(e.next(t))}catch(r){i(r)}},l=t=>{try{n(e.throw(t))}catch(r){i(r)}},n=t=>t.done?c(t.value):Promise.resolve(t.value).then(u,l);n((e=e.apply(o,a)).next())});import{Extension as d}from"@magic-sdk/commons";var f=class extends d.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return s(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",a))})}};export{f as ConfluxExtension}; | ||
var a=(s,o,r)=>new Promise((i,c)=>{var u=n=>{try{t(r.next(n))}catch(e){c(e)}},l=n=>{try{t(r.throw(n))}catch(e){c(e)}},t=n=>n.done?i(n.value):Promise.resolve(n.value).then(u,l);t((r=r.apply(s,o)).next())});import{Extension as f}from"@magic-sdk/commons";var p=class extends f.Internal{constructor(o){super();this.confluxConfig=o;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:o.rpcUrl,networkId:o.networkId}}}sendTransaction(o){return a(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",o))})}};export{p as ConfluxExtension}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var MagicConfluxExtension=(()=>{var b=Object.create;var i=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var l=t=>i(t,"__esModule",{value:!0});var S=(t,a)=>()=>(a||t((a={exports:{}}).exports,a),a.exports),T=(t,a)=>{for(var e in a)i(t,e,{get:a[e],enumerable:!0})},f=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of y(a))!G.call(t,n)&&(e||n!=="default")&&i(t,n,{get:()=>a[n],enumerable:!(o=g(a,n))||o.enumerable});return t},I=(t,a)=>f(l(i(t!=null?b(C(t)):{},"default",!a&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),P=(t=>(a,e)=>t&&t.get(a)||(e=f(l({}),a,1),t&&t.set(a,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var d=(t,a,e)=>new Promise((o,n)=>{var R=r=>{try{s(e.next(r))}catch(u){n(u)}},h=r=>{try{s(e.throw(r))}catch(u){n(u)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(R,h);s((e=e.apply(t,a)).next())});var x=S((E,p)=>{p.exports=Magic});var U={};T(U,{default:()=>c});var m=I(x());var c=class extends m.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return d(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",a))})}};return P(U);})(); | ||
var MagicConfluxExtension=(()=>{var y=Object.create;var a=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var f=o=>a(o,"__esModule",{value:!0});var b=(o,n)=>()=>(n||o((n={exports:{}}).exports,n),n.exports),k=(o,n)=>{for(var r in n)a(o,r,{get:n[r],enumerable:!0})},l=(o,n,r,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of h(n))!U.call(o,t)&&(r||t!=="default")&&a(o,t,{get:()=>n[t],enumerable:!(s=T(n,t))||s.enumerable});return o},w=(o,n)=>l(f(a(o!=null?y(I(o)):{},"default",!n&&o&&o.__esModule?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o),q=(o=>(n,r)=>o&&o.get(n)||(r=l(f({}),n,1),o&&o.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var p=(o,n,r)=>new Promise((s,t)=>{var C=e=>{try{i(r.next(e))}catch(c){t(c)}},g=e=>{try{i(r.throw(e))}catch(c){t(c)}},i=e=>e.done?s(e.value):Promise.resolve(e.value).then(C,g);i((r=r.apply(o,n)).next())});var d=b((S,x)=>{x.exports=Magic});var E={};k(E,{default:()=>u});var m=w(d());var u=class extends m.Extension.Internal{constructor(n){super();this.confluxConfig=n;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:n.rpcUrl,networkId:n.networkId}}}sendTransaction(n){return p(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",n))})}};return q(E);})(); | ||
if (MagicConfluxExtension && MagicConfluxExtension.default != null) { MagicConfluxExtension = Object.assign(MagicConfluxExtension.default, MagicConfluxExtension); delete MagicConfluxExtension.default; } |
@@ -1,2 +0,2 @@ | ||
var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var h=t=>c(t,"__esModule",{value:!0});var b=(t,a)=>{for(var e in a)c(t,e,{get:a[e],enumerable:!0})},y=(t,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of x(a))!R.call(t,n)&&(e||n!=="default")&&c(t,n,{get:()=>a[n],enumerable:!(o=m(a,n))||o.enumerable});return t};var G=(t=>(a,e)=>t&&t.get(a)||(e=y(h({}),a,1),t&&t.set(a,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(t,a,e)=>new Promise((o,n)=>{var f=r=>{try{i(e.next(r))}catch(s){n(s)}},p=r=>{try{i(e.throw(r))}catch(s){n(s)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(f,p);i((e=e.apply(t,a)).next())});var g={};b(g,{ConfluxExtension:()=>d});var l=require("@magic-sdk/commons");var d=class extends l.Extension.Internal{constructor(a){super();this.confluxConfig=a;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:a.rpcUrl,chainId:a.chainId,defaultGasPrice:a.defaultGasPrice,defaultGasRatio:a.defaultGasRatio,defaultStorageRatio:a.defaultStorageRatio}}}sendTransaction(a){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",a))})}};module.exports=G(g); | ||
var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var y=o=>i(o,"__esModule",{value:!0});var g=(o,n)=>{for(var r in n)i(o,r,{get:n[r],enumerable:!0})},T=(o,n,r,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of m(n))!C.call(o,t)&&(r||t!=="default")&&i(o,t,{get:()=>n[t],enumerable:!(s=d(n,t))||s.enumerable});return o};var h=(o=>(n,r)=>o&&o.get(n)||(r=T(y({}),n,1),o&&o.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(o,n,r)=>new Promise((s,t)=>{var p=e=>{try{c(r.next(e))}catch(a){t(a)}},x=e=>{try{c(r.throw(e))}catch(a){t(a)}},c=e=>e.done?s(e.value):Promise.resolve(e.value).then(p,x);c((r=r.apply(o,n)).next())});var I={};g(I,{ConfluxExtension:()=>l});var f=require("@magic-sdk/commons");var l=class extends f.Extension.Internal{constructor(n){super();this.confluxConfig=n;this.name="conflux";this.config={};this.config={chainType:"CONFLUX",options:{rpcUrl:n.rpcUrl,networkId:n.networkId}}}sendTransaction(n){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("cfx_sendTransaction",n))})}};module.exports=h(I); | ||
//# sourceMappingURL=index.native.js.map |
export interface ConfluxConfig { | ||
rpcUrl: string; | ||
chainId: number; | ||
defaultGasPrice?: number; | ||
defaultGasRatio?: number; | ||
defaultStorageRatio?: number; | ||
networkId?: number; | ||
} | ||
@@ -8,0 +5,0 @@ export declare enum ConfluxPayloadMethod { |
{ | ||
"name": "@magic-ext/conflux", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "magic conflux extension", | ||
@@ -33,3 +33,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
}, | ||
"gitHead": "376264068d4f5a2c5a61ac131a3c2e0bc2bef101" | ||
"gitHead": "e2753f01058cfe035caef65fcf0fb92c81e290f1" | ||
} |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
12796
46