@magic-ext/tezos 6.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var f=r=>m(r,"__esModule",{value:!0});var l=(r,n)=>{for(var e in n)m(r,e,{get:n[e],enumerable:!0})},z=(r,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of b(n))!h.call(r,t)&&(e||t!=="default")&&m(r,t,{get:()=>n[t],enumerable:!(i=g(n,t))||i.enumerable});return r};var C=(r=>(n,e)=>r&&r.get(n)||(e=z(f({}),n,1),r&&r.set(n,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var O={};l(O,{TezosExtension:()=>d});var p=require("@magic-sdk/commons"),d=class extends p.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,e,i,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:e,fee:i,derivationPath:t}});this.sendContractOriginationOperation=(n,e,i,t,s,o,a,u,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:i,derivationPath:t,storage_limit:s,gas_limit:o,code:a,storage:u,codeFormat:c}});this.sendContractInvocationOperation=(n,e,i,t,s,o,a,u,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:i,derivationPath:t,storageLimit:s,gasLimit:o,entrypoint:a,parameters:u,parameterFormat:c}});this.sendContractPing=(n,e,i,t,s,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:i,derivationPath:t,storageLimit:s,gasLimit:o}});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"}}};module.exports=C(O);
1
+ "use strict";var p=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var l=(i,t)=>{for(var n in t)p(i,n,{get:t[n],enumerable:!0})},C=(i,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of h(t))!f.call(i,r)&&r!==n&&p(i,r,{get:()=>t[r],enumerable:!(e=b(t,r))||e.enumerable});return i};var z=i=>C(p({},"__esModule",{value:!0}),i);var O={};l(O,{TezosExtension:()=>d});module.exports=z(O);var g=require("@magic-sdk/commons"),d=class extends g.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,e,r,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:e,fee:r,derivationPath:s}});this.sendContractOriginationOperation=(n,e,r,s,o,a,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:r,derivationPath:s,storage_limit:o,gas_limit:a,code:u,storage:c,codeFormat:m}});this.sendContractInvocationOperation=(n,e,r,s,o,a,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:r,derivationPath:s,storageLimit:o,gasLimit:a,entrypoint:u,parameters:c,parameterFormat:m}});this.sendContractPing=(n,e,r,s,o,a)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:r,derivationPath:s,storageLimit:o,gasLimit:a}});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"}}};
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { TezosConfig, ConfigType } from './type';\n\nexport class TezosExtension extends Extension.Internal<'tezos', TezosConfig> {\n name = 'tezos' as const;\n\n config: ConfigType;\n\n constructor(public tezosConfig: TezosConfig) {\n super();\n\n this.config = {\n rpcUrl: tezosConfig.rpcUrl,\n chainType: 'TEZOS',\n };\n }\n\n public sendTransactionOperation = (\n to: string,\n amount: number,\n fee: number,\n derivationPath: string,\n ): Promise<string> => {\n return this.request({\n id: 42,\n method: 'tezos_sendTransaction',\n jsonrpc: '2.0',\n params: {\n to,\n amount,\n fee,\n derivationPath,\n },\n });\n };\n\n public sendContractOriginationOperation = (\n amount: number,\n delegate: any,\n fee: number,\n derivationPath: string,\n storage_limit: number,\n gas_limit: number,\n code: string,\n storage: string,\n codeFormat: string,\n ): Promise<any> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractOriginationOperation',\n params: {\n amount,\n delegate,\n fee,\n derivationPath,\n storage_limit,\n gas_limit,\n code,\n storage,\n codeFormat,\n },\n });\n };\n\n public sendContractInvocationOperation = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n entrypoint: string | undefined,\n parameters: string | undefined,\n parameterFormat?: string,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractInvocationOperation',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n entrypoint,\n parameters,\n parameterFormat,\n },\n });\n };\n\n public sendContractPing = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractPing',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n },\n });\n };\n\n public sendDelegationOperation = (to: string, amount: number) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendDelegationOperation',\n params: {\n to,\n amount,\n },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_getAccount',\n params: [],\n });\n };\n}\n"],
5
- "mappings": "8gBAAA,2CAA0B,8BAGnB,eAA6B,aAAU,QAA+B,CAK3E,YAAmB,EAA0B,CAC3C,QADiB,mBAJnB,UAAO,QAaA,8BAA2B,CAChC,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,OAAQ,wBACR,QAAS,MACT,OAAQ,CACN,KACA,SACA,MACA,oBAKC,sCAAmC,CACxC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yCACR,OAAQ,CACN,SACA,WACA,MACA,iBACA,gBACA,YACA,OACA,UACA,gBAKC,qCAAkC,CACvC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,wCACR,OAAQ,CACN,WACA,SACA,MACA,iBACA,eACA,WACA,aACA,aACA,qBAKC,sBAAmB,CACxB,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yBACR,OAAQ,CACN,WACA,SACA,MACA,iBACA,eACA,cAKC,6BAA0B,CAAC,EAAY,IACrC,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,gCACR,OAAQ,CACN,KACA,YAKC,gBAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,KA3HV,KAAK,OAAS,CACZ,OA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I,GACJ,QAAS,MACT,OAAQ,gCACR,OAAQ,CACN,GAAAD,EACA,OAAAC,CACF,CACF,CAAC,EAGH,KAAO,WAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,CAAC,CACX,CAAC,EA5HD,KAAK,OAAS,CACZ,OAAQF,EAAY,OACpB,UAAW,OACb,CACF,CA0HF",
6
+ "names": ["src_exports", "__export", "TezosExtension", "__toCommonJS", "import_commons", "tezosConfig", "to", "amount", "fee", "derivationPath", "delegate", "storage_limit", "gas_limit", "code", "storage", "codeFormat", "contract", "storageLimit", "gasLimit", "entrypoint", "parameters", "parameterFormat"]
7
7
  }
package/dist/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- 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,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:r,derivationPath:t,storage_limit:i,gas_limit:s,code:o,storage:a,codeFormat:u}});this.sendContractInvocationOperation=(n,e,r,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:i,gasLimit:s,entrypoint:o,parameters:a,parameterFormat:u}});this.sendContractPing=(n,e,r,t,i,s)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:i,gasLimit:s}});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};
1
+ import{Extension as m}from"@magic-sdk/commons";var c=class extends m.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,e,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:e,derivationPath:t}});this.sendContractOriginationOperation=(n,r,e,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:e,derivationPath:t,storage_limit:i,gas_limit:s,code:o,storage:a,codeFormat:u}});this.sendContractInvocationOperation=(n,r,e,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:e,derivationPath:t,storageLimit:i,gasLimit:s,entrypoint:o,parameters:a,parameterFormat:u}});this.sendContractPing=(n,r,e,t,i,s)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:e,derivationPath:t,storageLimit:i,gasLimit:s}});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"}}};export{c as TezosExtension};
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { TezosConfig, ConfigType } from './type';\n\nexport class TezosExtension extends Extension.Internal<'tezos', TezosConfig> {\n name = 'tezos' as const;\n\n config: ConfigType;\n\n constructor(public tezosConfig: TezosConfig) {\n super();\n\n this.config = {\n rpcUrl: tezosConfig.rpcUrl,\n chainType: 'TEZOS',\n };\n }\n\n public sendTransactionOperation = (\n to: string,\n amount: number,\n fee: number,\n derivationPath: string,\n ): Promise<string> => {\n return this.request({\n id: 42,\n method: 'tezos_sendTransaction',\n jsonrpc: '2.0',\n params: {\n to,\n amount,\n fee,\n derivationPath,\n },\n });\n };\n\n public sendContractOriginationOperation = (\n amount: number,\n delegate: any,\n fee: number,\n derivationPath: string,\n storage_limit: number,\n gas_limit: number,\n code: string,\n storage: string,\n codeFormat: string,\n ): Promise<any> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractOriginationOperation',\n params: {\n amount,\n delegate,\n fee,\n derivationPath,\n storage_limit,\n gas_limit,\n code,\n storage,\n codeFormat,\n },\n });\n };\n\n public sendContractInvocationOperation = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n entrypoint: string | undefined,\n parameters: string | undefined,\n parameterFormat?: string,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractInvocationOperation',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n entrypoint,\n parameters,\n parameterFormat,\n },\n });\n };\n\n public sendContractPing = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractPing',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n },\n });\n };\n\n public sendDelegationOperation = (to: string, amount: number) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendDelegationOperation',\n params: {\n to,\n amount,\n },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_getAccount',\n params: [],\n });\n };\n}\n"],
5
- "mappings": "AAAA,+CAGO,mBAA6B,GAAU,QAA+B,CAK3E,YAAmB,EAA0B,CAC3C,QADiB,mBAJnB,UAAO,QAaA,8B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,EACAC,EACAC,EACAC,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yCACR,OAAQ,CACN,OAAAR,EACA,SAAAG,EACA,IAAAF,EACA,eAAAC,EACA,cAAAE,EACA,UAAAC,EACA,KAAAC,EACA,QAAAC,EACA,WAAAC,CACF,CACF,CAAC,EAGH,KAAO,gCAAkC,CACvCC,EACAT,EACAC,EACAC,EACAQ,EACAC,EACAC,EACAC,EACAC,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,wCACR,OAAQ,CACN,SAAAL,EACA,OAAAT,EACA,IAAAC,EACA,eAAAC,EACA,aAAAQ,EACA,SAAAC,EACA,WAAAC,EACA,WAAAC,EACA,gBAAAC,CACF,CACF,CAAC,EAGH,KAAO,iBAAmB,CACxBL,EACAT,EACAC,EACAC,EACAQ,EACAC,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yBACR,OAAQ,CACN,SAAAF,EACA,OAAAT,EACA,IAAAC,EACA,eAAAC,EACA,aAAAQ,EACA,SAAAC,CACF,CACF,CAAC,EAGH,KAAO,wBAA0B,CAACZ,EAAYC,IACrC,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,gCACR,OAAQ,CACN,GAAAD,EACA,OAAAC,CACF,CACF,CAAC,EAGH,KAAO,WAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,CAAC,CACX,CAAC,EA5HD,KAAK,OAAS,CACZ,OAAQF,EAAY,OACpB,UAAW,OACb,CACF,CA0HF",
6
+ "names": ["Extension", "TezosExtension", "tezosConfig", "to", "amount", "fee", "derivationPath", "delegate", "storage_limit", "gas_limit", "code", "storage", "codeFormat", "contract", "storageLimit", "gasLimit", "entrypoint", "parameters", "parameterFormat"]
7
7
  }
package/dist/es/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- 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,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:r,derivationPath:t,storage_limit:i,gas_limit:s,code:o,storage:a,codeFormat:u}});this.sendContractInvocationOperation=(n,e,r,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:i,gasLimit:s,entrypoint:o,parameters:a,parameterFormat:u}});this.sendContractPing=(n,e,r,t,i,s)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:r,derivationPath:t,storageLimit:i,gasLimit:s}});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};
1
+ import{Extension as m}from"@magic-sdk/commons";var c=class extends m.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,e,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:e,derivationPath:t}});this.sendContractOriginationOperation=(n,r,e,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:e,derivationPath:t,storage_limit:i,gas_limit:s,code:o,storage:a,codeFormat:u}});this.sendContractInvocationOperation=(n,r,e,t,i,s,o,a,u)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:e,derivationPath:t,storageLimit:i,gasLimit:s,entrypoint:o,parameters:a,parameterFormat:u}});this.sendContractPing=(n,r,e,t,i,s)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:e,derivationPath:t,storageLimit:i,gasLimit:s}});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"}}};export{c as TezosExtension};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { TezosConfig, ConfigType } from './type';\n\nexport class TezosExtension extends Extension.Internal<'tezos', TezosConfig> {\n name = 'tezos' as const;\n\n config: ConfigType;\n\n constructor(public tezosConfig: TezosConfig) {\n super();\n\n this.config = {\n rpcUrl: tezosConfig.rpcUrl,\n chainType: 'TEZOS',\n };\n }\n\n public sendTransactionOperation = (\n to: string,\n amount: number,\n fee: number,\n derivationPath: string,\n ): Promise<string> => {\n return this.request({\n id: 42,\n method: 'tezos_sendTransaction',\n jsonrpc: '2.0',\n params: {\n to,\n amount,\n fee,\n derivationPath,\n },\n });\n };\n\n public sendContractOriginationOperation = (\n amount: number,\n delegate: any,\n fee: number,\n derivationPath: string,\n storage_limit: number,\n gas_limit: number,\n code: string,\n storage: string,\n codeFormat: string,\n ): Promise<any> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractOriginationOperation',\n params: {\n amount,\n delegate,\n fee,\n derivationPath,\n storage_limit,\n gas_limit,\n code,\n storage,\n codeFormat,\n },\n });\n };\n\n public sendContractInvocationOperation = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n entrypoint: string | undefined,\n parameters: string | undefined,\n parameterFormat?: string,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractInvocationOperation',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n entrypoint,\n parameters,\n parameterFormat,\n },\n });\n };\n\n public sendContractPing = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractPing',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n },\n });\n };\n\n public sendDelegationOperation = (to: string, amount: number) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendDelegationOperation',\n params: {\n to,\n amount,\n },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_getAccount',\n params: [],\n });\n };\n}\n"],
5
- "mappings": "AAAA,+CAGO,mBAA6B,GAAU,QAA+B,CAK3E,YAAmB,EAA0B,CAC3C,QADiB,mBAJnB,UAAO,QAaA,8BAA2B,CAChC,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,OAAQ,wBACR,QAAS,MACT,OAAQ,CACN,KACA,SACA,MACA,oBAKC,sCAAmC,CACxC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yCACR,OAAQ,CACN,SACA,WACA,MACA,iBACA,gBACA,YACA,OACA,UACA,gBAKC,qCAAkC,CACvC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,wCACR,OAAQ,CACN,WACA,SACA,MACA,iBACA,eACA,WACA,aACA,aACA,qBAKC,sBAAmB,CACxB,EACA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H,KAAO,iBAAmB,CACxBL,EACAT,EACAC,EACAC,EACAQ,EACAC,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yBACR,OAAQ,CACN,SAAAF,EACA,OAAAT,EACA,IAAAC,EACA,eAAAC,EACA,aAAAQ,EACA,SAAAC,CACF,CACF,CAAC,EAGH,KAAO,wBAA0B,CAACZ,EAAYC,IACrC,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,gCACR,OAAQ,CACN,GAAAD,EACA,OAAAC,CACF,CACF,CAAC,EAGH,KAAO,WAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,CAAC,CACX,CAAC,EA5HD,KAAK,OAAS,CACZ,OAAQF,EAAY,OACpB,UAAW,OACb,CACF,CA0HF",
6
+ "names": ["Extension", "TezosExtension", "tezosConfig", "to", "amount", "fee", "derivationPath", "delegate", "storage_limit", "gas_limit", "code", "storage", "codeFormat", "contract", "storageLimit", "gasLimit", "entrypoint", "parameters", "parameterFormat"]
7
7
  }
package/dist/extension.js CHANGED
@@ -1,2 +1,2 @@
1
- var MagicTezosExtension=(()=>{var l=Object.create;var a=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var d=e=>a(e,"__esModule",{value:!0});var j=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),q=(e,n)=>{for(var r in n)a(e,r,{get:n[r],enumerable:!0})},g=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of C(n))!T.call(e,t)&&(r||t!=="default")&&a(e,t,{get:()=>n[t],enumerable:!(i=z(n,t))||i.enumerable});return e},x=(e,n)=>g(d(a(e!=null?l(O(e)):{},"default",!n&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),_=(e=>(n,r)=>e&&e.get(n)||(r=g(d({}),n,1),e&&e.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var f=j((I,b)=>{b.exports=Magic});var P={};q(P,{default:()=>y});var h=x(f()),m=class extends h.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,i,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:i,derivationPath:t}});this.sendContractOriginationOperation=(n,r,i,t,s,o,u,p,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:i,derivationPath:t,storage_limit:s,gas_limit:o,code:u,storage:p,codeFormat:c}});this.sendContractInvocationOperation=(n,r,i,t,s,o,u,p,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:i,derivationPath:t,storageLimit:s,gasLimit:o,entrypoint:u,parameters:p,parameterFormat:c}});this.sendContractPing=(n,r,i,t,s,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:i,derivationPath:t,storageLimit:s,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"}}};var y=m;return _(P);})();
1
+ "use strict";var MagicTezosExtension=(()=>{var l=Object.create;var u=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var j=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),q=(r,e)=>{for(var n in e)u(r,n,{get:e[n],enumerable:!0})},g=(r,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of C(e))!T.call(r,t)&&t!==n&&u(r,t,{get:()=>e[t],enumerable:!(i=z(e,t))||i.enumerable});return r};var _=(r,e,n)=>(n=r!=null?l(O(r)):{},g(e||!r||!r.__esModule?u(n,"default",{value:r,enumerable:!0}):n,r)),x=r=>g(u({},"__esModule",{value:!0}),r);var f=j((v,b)=>{b.exports=Magic});var P={};q(P,{default:()=>y});var h=_(f()),p=class extends h.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,i,t,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:i,fee:t,derivationPath:s}});this.sendContractOriginationOperation=(n,i,t,s,o,a,c,m,d)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:i,fee:t,derivationPath:s,storage_limit:o,gas_limit:a,code:c,storage:m,codeFormat:d}});this.sendContractInvocationOperation=(n,i,t,s,o,a,c,m,d)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:i,fee:t,derivationPath:s,storageLimit:o,gasLimit:a,entrypoint:c,parameters:m,parameterFormat:d}});this.sendContractPing=(n,i,t,s,o,a)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:i,fee:t,derivationPath:s,storageLimit:o,gasLimit:a}});this.sendDelegationOperation=(n,i)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendDelegationOperation",params:{to:n,amount:i}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"tezos_getAccount",params:[]});this.config={rpcUrl:n.rpcUrl,chainType:"TEZOS"}}};var y=p;return x(P);})();
2
2
  if (MagicTezosExtension && MagicTezosExtension.default != null) { MagicTezosExtension = Object.assign(MagicTezosExtension.default, MagicTezosExtension); delete MagicTezosExtension.default; }
@@ -1,2 +1,2 @@
1
- var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=e=>m(e,"__esModule",{value:!0});var l=(e,n)=>{for(var r in n)m(e,r,{get:n[r],enumerable:!0})},z=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of b(n))!f.call(e,t)&&(r||t!=="default")&&m(e,t,{get:()=>n[t],enumerable:!(i=g(n,t))||i.enumerable});return e};var C=(e=>(n,r)=>e&&e.get(n)||(r=z(h({}),n,1),e&&e.set(n,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var O={};l(O,{TezosExtension:()=>d});var p=require("@magic-sdk/commons"),d=class extends p.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,r,i,t)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:r,fee:i,derivationPath:t}});this.sendContractOriginationOperation=(n,r,i,t,s,o,a,u,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:r,fee:i,derivationPath:t,storage_limit:s,gas_limit:o,code:a,storage:u,codeFormat:c}});this.sendContractInvocationOperation=(n,r,i,t,s,o,a,u,c)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:r,fee:i,derivationPath:t,storageLimit:s,gasLimit:o,entrypoint:a,parameters:u,parameterFormat:c}});this.sendContractPing=(n,r,i,t,s,o)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:r,fee:i,derivationPath:t,storageLimit:s,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"}}};module.exports=C(O);
1
+ "use strict";var p=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var l=(i,t)=>{for(var n in t)p(i,n,{get:t[n],enumerable:!0})},C=(i,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f(t))!h.call(i,r)&&r!==n&&p(i,r,{get:()=>t[r],enumerable:!(e=b(t,r))||e.enumerable});return i};var z=i=>C(p({},"__esModule",{value:!0}),i);var O={};l(O,{TezosExtension:()=>d});module.exports=z(O);var g=require("@magic-sdk/commons"),d=class extends g.Extension.Internal{constructor(n){super();this.tezosConfig=n;this.name="tezos";this.sendTransactionOperation=(n,e,r,s)=>this.request({id:42,method:"tezos_sendTransaction",jsonrpc:"2.0",params:{to:n,amount:e,fee:r,derivationPath:s}});this.sendContractOriginationOperation=(n,e,r,s,o,a,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractOriginationOperation",params:{amount:n,delegate:e,fee:r,derivationPath:s,storage_limit:o,gas_limit:a,code:u,storage:c,codeFormat:m}});this.sendContractInvocationOperation=(n,e,r,s,o,a,u,c,m)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractInvocationOperation",params:{contract:n,amount:e,fee:r,derivationPath:s,storageLimit:o,gasLimit:a,entrypoint:u,parameters:c,parameterFormat:m}});this.sendContractPing=(n,e,r,s,o,a)=>this.request({id:42,jsonrpc:"2.0",method:"tezos_sendContractPing",params:{contract:n,amount:e,fee:r,derivationPath:s,storageLimit:o,gasLimit:a}});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"}}};
2
2
  //# sourceMappingURL=index.native.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.native.ts", "../../src/index.ts"],
4
4
  "sourcesContent": ["export * from './index';\n", "import { Extension } from '@magic-sdk/commons';\nimport { TezosConfig, ConfigType } from './type';\n\nexport class TezosExtension extends Extension.Internal<'tezos', TezosConfig> {\n name = 'tezos' as const;\n\n config: ConfigType;\n\n constructor(public tezosConfig: TezosConfig) {\n super();\n\n this.config = {\n rpcUrl: tezosConfig.rpcUrl,\n chainType: 'TEZOS',\n };\n }\n\n public sendTransactionOperation = (\n to: string,\n amount: number,\n fee: number,\n derivationPath: string,\n ): Promise<string> => {\n return this.request({\n id: 42,\n method: 'tezos_sendTransaction',\n jsonrpc: '2.0',\n params: {\n to,\n amount,\n fee,\n derivationPath,\n },\n });\n };\n\n public sendContractOriginationOperation = (\n amount: number,\n delegate: any,\n fee: number,\n derivationPath: string,\n storage_limit: number,\n gas_limit: number,\n code: string,\n storage: string,\n codeFormat: string,\n ): Promise<any> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractOriginationOperation',\n params: {\n amount,\n delegate,\n fee,\n derivationPath,\n storage_limit,\n gas_limit,\n code,\n storage,\n codeFormat,\n },\n });\n };\n\n public sendContractInvocationOperation = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n entrypoint: string | undefined,\n parameters: string | undefined,\n parameterFormat?: string,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractInvocationOperation',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n entrypoint,\n parameters,\n parameterFormat,\n },\n });\n };\n\n public sendContractPing = (\n contract: string,\n amount: number,\n fee: number,\n derivationPath: string | undefined,\n storageLimit: number,\n gasLimit: number,\n ) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendContractPing',\n params: {\n contract,\n amount,\n fee,\n derivationPath,\n storageLimit,\n gasLimit,\n },\n });\n };\n\n public sendDelegationOperation = (to: string, amount: number) => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_sendDelegationOperation',\n params: {\n to,\n amount,\n },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'tezos_getAccount',\n params: [],\n });\n };\n}\n"],
5
- "mappings": "8gBAAA,qCCAA,MAA0B,8BAGnB,eAA6B,aAAU,QAA+B,CAK3E,YAAmB,EAA0B,CAC3C,QADiB,mBAJnB,UAAO,QAaA,8BAA2B,CAChC,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,OAAQ,wBACR,QAAS,MACT,OAAQ,CACN,KACA,SACA,MACA,oBAKC,sCAAmC,CACxC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yCACR,OAAQ,CACN,SACA,WACA,MACA,iBACA,gBACA,YACA,OACA,UACA,gBAKC,qCAAkC,CACvC,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,wCACR,OAAQ,CACN,WACA,SACA,MACA,iBACA,eACA,WACA,aACA,aACA,qBAKC,sBAAmB,CACxB,EACA,EACA,EACA,EACA,EACA,IAEO,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,yBACR,OAAQ,CACN,WACA,SACA,MACA,iBACA,eACA,cAKC,6BAA0B,CAAC,EAAY,IACrC,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,gCACR,OAAQ,CACN,KACA,YAKC,gBAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,KA3HV,KAAK,OAAS,CACZ,OAAQ,EAAY,OACpB,UAAW",
6
- "names": []
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAA0B,8BAGbC,EAAN,cAA6B,YAAU,QAA+B,CAK3E,YAAmBC,EAA0B,CAC3C,MAAM,EADW,iBAAAA,EAJnB,UAAO,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ACb,CACF,CA0HF",
6
+ "names": ["index_native_exports", "__export", "TezosExtension", "__toCommonJS", "import_commons", "TezosExtension", "tezosConfig", "to", "amount", "fee", "derivationPath", "delegate", "storage_limit", "gas_limit", "code", "storage", "codeFormat", "contract", "storageLimit", "gasLimit", "entrypoint", "parameters", "parameterFormat"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-ext/tezos",
3
- "version": "6.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "magic tezos extension",
5
5
  "author": "Magic <team@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  ]
29
29
  },
30
30
  "devDependencies": {
31
- "@magic-sdk/commons": "^7.0.0"
31
+ "@magic-sdk/commons": "^9.0.0"
32
32
  },
33
- "gitHead": "96a8edeb9e9dbb39ff47b5c9c41348b1965da560"
33
+ "gitHead": "4f0dd0871531afe5db7b966ec2ab502943cf8679"
34
34
  }