@magic-ext/cosmos
Advanced tools
Comparing version 3.0.1 to 3.1.0-beta.1
@@ -1,2 +0,2 @@ | ||
var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var l=r=>p(r,"__esModule",{value:!0});var h=(r,n)=>{for(var s in n)p(r,s,{get:n[s],enumerable:!0})},b=(r,n,s,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y(n))!S.call(r,o)&&(s||o!=="default")&&p(r,o,{get:()=>n[o],enumerable:!(e=f(n,o))||e.enumerable});return r};var x=(r=>(n,s)=>r&&r.get(n)||(s=b(l({}),n,1),r&&r.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var t=(r,n,s)=>new Promise((e,o)=>{var d=i=>{try{c(s.next(i))}catch(a){o(a)}},u=i=>{try{c(s.throw(i))}catch(a){o(a)}},c=i=>i.done?e(i.value):Promise.resolve(i.value).then(d,u);c((s=s.apply(r,n)).next())});var C={};h(C,{CosmosExtension:()=>m});var g=require("@magic-sdk/commons");var m=class extends g.Extension.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:s}})});this.sign=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:s}})});this.sendTokens=(n,s,e,o)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:s,denom:e,memo:o}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};module.exports=x(C); | ||
var d=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var A=r=>d(r,"__esModule",{value:!0});var S=(r,n)=>{for(var s in n)d(r,s,{get:n[s],enumerable:!0})},l=(r,n,s,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of f(n))!y.call(r,e)&&(s||e!=="default")&&d(r,e,{get:()=>n[e],enumerable:!(c=h(n,e))||c.enumerable});return r};var b=(r=>(n,s)=>r&&r.get(n)||(s=l(A({}),n,1),r&&r.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var t=(r,n,s)=>new Promise((c,e)=>{var m=i=>{try{o(s.next(i))}catch(a){e(a)}},u=i=>{try{o(s.throw(i))}catch(a){e(a)}},o=i=>i.done?c(i.value):Promise.resolve(i.value).then(m,u);o((s=s.apply(r,n)).next())});var C={};S(C,{CosmosExtension:()=>p});var g=require("@magic-sdk/commons");var p=class extends g.Extension.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:s}})});this.sign=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:s}})});this.changeAddress=n=>t(this,null,function*(){return this.request({id:41,jsonrpc:"2.0",method:"cos_changeAddress",params:{prefix:n}})});this.sendTokens=(n,s,c,e)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:s,denom:c,memo:e}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};module.exports=b(C); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var i=(a,s,n)=>new Promise((e,o)=>{var p=r=>{try{t(n.next(r))}catch(c){o(c)}},g=r=>{try{t(n.throw(r))}catch(c){o(c)}},t=r=>r.done?e(r.value):Promise.resolve(r.value).then(p,g);t((n=n.apply(a,s)).next())});import{Extension as m}from"@magic-sdk/commons";var d=class extends m.Internal{constructor(s){super();this.cosmosConfig=s;this.name="cosmos";this.config={};this.signAndBroadcast=(s,n)=>i(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:s,fee:n}})});this.sign=(s,n)=>i(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:s,fee:n}})});this.sendTokens=(s,n,e,o)=>i(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:s,transferAmount:n,denom:e,memo:o}})});this.config={rpcUrl:s.rpcUrl,chainType:"COSMOS"}}};export{d as CosmosExtension}; | ||
var e=(a,n,s)=>new Promise((c,i)=>{var d=r=>{try{t(s.next(r))}catch(o){i(o)}},g=r=>{try{t(s.throw(r))}catch(o){i(o)}},t=r=>r.done?c(r.value):Promise.resolve(r.value).then(d,g);t((s=s.apply(a,n)).next())});import{Extension as p}from"@magic-sdk/commons";var m=class extends p.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,s)=>e(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:s}})});this.sign=(n,s)=>e(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:s}})});this.changeAddress=n=>e(this,null,function*(){return this.request({id:41,jsonrpc:"2.0",method:"cos_changeAddress",params:{prefix:n}})});this.sendTokens=(n,s,c,i)=>e(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:s,denom:c,memo:i}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};export{m as CosmosExtension}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var MagicCosmosExtension=(()=>{var S=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var m=s=>e(s,"__esModule",{value:!0});var k=(s,n)=>()=>(n||s((n={exports:{}}).exports,n),n.exports),A=(s,n)=>{for(var r in n)e(s,r,{get:n[r],enumerable:!0})},d=(s,n,r,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C(n))!T.call(s,o)&&(r||o!=="default")&&e(s,o,{get:()=>n[o],enumerable:!(t=h(n,o))||t.enumerable});return s},B=(s,n)=>d(m(e(s!=null?S(b(s)):{},"default",!n&&s&&s.__esModule?{get:()=>s.default,enumerable:!0}:{value:s,enumerable:!0})),s),j=(s=>(n,r)=>s&&s.get(n)||(r=d(m({}),n,1),s&&s.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var c=(s,n,r)=>new Promise((t,o)=>{var x=i=>{try{a(r.next(i))}catch(p){o(p)}},y=i=>{try{a(r.throw(i))}catch(p){o(p)}},a=i=>i.done?t(i.value):Promise.resolve(i.value).then(x,y);a((r=r.apply(s,n)).next())});var f=k((E,u)=>{u.exports=Magic});var U={};A(U,{default:()=>q});var l=B(f());var g=class extends l.Extension.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,r)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:r}})});this.sign=(n,r)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:r}})});this.sendTokens=(n,r,t,o)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:r,denom:t,memo:o}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};var q=g;return j(U);})(); | ||
var MagicCosmosExtension=(()=>{var y=Object.create;var c=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var g=n=>c(n,"__esModule",{value:!0});var T=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports),j=(n,s)=>{for(var r in s)c(n,r,{get:s[r],enumerable:!0})},m=(n,s,r,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let e of S(s))!b.call(n,e)&&(r||e!=="default")&&c(n,e,{get:()=>s[e],enumerable:!(o=A(s,e))||o.enumerable});return n},k=(n,s)=>m(g(c(n!=null?y(C(n)):{},"default",!s&&n&&n.__esModule?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n),q=(n=>(s,r)=>n&&n.get(s)||(r=m(g({}),s,1),n&&n.set(s,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var t=(n,s,r)=>new Promise((o,e)=>{var l=i=>{try{a(r.next(i))}catch(p){e(p)}},x=i=>{try{a(r.throw(i))}catch(p){e(p)}},a=i=>i.done?o(i.value):Promise.resolve(i.value).then(l,x);a((r=r.apply(n,s)).next())});var h=T((E,u)=>{u.exports=Magic});var _={};j(_,{default:()=>B});var f=k(h());var d=class extends f.Extension.Internal{constructor(s){super();this.cosmosConfig=s;this.name="cosmos";this.config={};this.signAndBroadcast=(s,r)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:s,fee:r}})});this.sign=(s,r)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:s,fee:r}})});this.changeAddress=s=>t(this,null,function*(){return this.request({id:41,jsonrpc:"2.0",method:"cos_changeAddress",params:{prefix:s}})});this.sendTokens=(s,r,o,e)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:s,transferAmount:r,denom:o,memo:e}})});this.config={rpcUrl:s.rpcUrl,chainType:"COSMOS"}}};var B=d;return q(_);})(); | ||
if (MagicCosmosExtension && MagicCosmosExtension.default != null) { MagicCosmosExtension = Object.assign(MagicCosmosExtension.default, MagicCosmosExtension); delete MagicCosmosExtension.default; } |
@@ -1,2 +0,2 @@ | ||
var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var l=r=>p(r,"__esModule",{value:!0});var h=(r,n)=>{for(var s in n)p(r,s,{get:n[s],enumerable:!0})},b=(r,n,s,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of y(n))!S.call(r,o)&&(s||o!=="default")&&p(r,o,{get:()=>n[o],enumerable:!(e=f(n,o))||e.enumerable});return r};var x=(r=>(n,s)=>r&&r.get(n)||(s=b(l({}),n,1),r&&r.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var t=(r,n,s)=>new Promise((e,o)=>{var d=i=>{try{c(s.next(i))}catch(a){o(a)}},u=i=>{try{c(s.throw(i))}catch(a){o(a)}},c=i=>i.done?e(i.value):Promise.resolve(i.value).then(d,u);c((s=s.apply(r,n)).next())});var C={};h(C,{CosmosExtension:()=>m});var g=require("@magic-sdk/commons");var m=class extends g.Extension.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:s}})});this.sign=(n,s)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:s}})});this.sendTokens=(n,s,e,o)=>t(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:s,denom:e,memo:o}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};module.exports=x(C); | ||
var p=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var A=r=>p(r,"__esModule",{value:!0});var S=(r,n)=>{for(var s in n)p(r,s,{get:n[s],enumerable:!0})},l=(r,n,s,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of f(n))!y.call(r,e)&&(s||e!=="default")&&p(r,e,{get:()=>n[e],enumerable:!(t=h(n,e))||t.enumerable});return r};var b=(r=>(n,s)=>r&&r.get(n)||(s=l(A({}),n,1),r&&r.set(n,s),s))(typeof WeakMap!="undefined"?new WeakMap:0);var c=(r,n,s)=>new Promise((t,e)=>{var m=i=>{try{o(s.next(i))}catch(a){e(a)}},u=i=>{try{o(s.throw(i))}catch(a){e(a)}},o=i=>i.done?t(i.value):Promise.resolve(i.value).then(m,u);o((s=s.apply(r,n)).next())});var x={};S(x,{CosmosExtension:()=>g});var d=require("@magic-sdk/commons");var g=class extends d.Extension.Internal{constructor(n){super();this.cosmosConfig=n;this.name="cosmos";this.config={};this.signAndBroadcast=(n,s)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_signAndBroadcast",params:{message:n,fee:s}})});this.sign=(n,s)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sign",params:{message:n,fee:s}})});this.changeAddress=n=>c(this,null,function*(){return this.request({id:41,jsonrpc:"2.0",method:"cos_changeAddress",params:{prefix:n}})});this.sendTokens=(n,s,t,e)=>c(this,null,function*(){return this.request({id:42,jsonrpc:"2.0",method:"cos_sendTokens",params:{recipientAddress:n,transferAmount:s,denom:t,memo:e}})});this.config={rpcUrl:n.rpcUrl,chainType:"COSMOS"}}};module.exports=b(x); | ||
//# sourceMappingURL=index.native.js.map |
@@ -10,3 +10,4 @@ import { Extension } from '@magic-sdk/commons'; | ||
sign: (message: any, fee: any) => Promise<any>; | ||
changeAddress: (prefix: string) => Promise<any>; | ||
sendTokens: (recipientAddress: string, transferAmount: string | number, denom: string, memo?: string | undefined) => Promise<any>; | ||
} |
@@ -7,3 +7,4 @@ export interface CosmosConfig { | ||
SignAndBroadcast = "cos_signAndBroadcast", | ||
SendTokens = "cos_sendTokens" | ||
SendTokens = "cos_sendTokens", | ||
ChangeAddress = "cos_changeAddress" | ||
} |
{ | ||
"name": "@magic-ext/cosmos", | ||
"version": "3.0.1", | ||
"version": "3.1.0-beta.01", | ||
"description": "magic cosmos extension", | ||
@@ -32,4 +32,3 @@ "author": "Magic <team@magic.link> (https://magic.link/)", | ||
"@magic-sdk/commons": "^4.0.0" | ||
}, | ||
"gitHead": "d438b0b289fd4dd06a19bbb0f9f8d27bb067cea0" | ||
} | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19843
59
4
1