@magic-ext/tezos 3.0.1 → 4.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# v3.1.0 (Mon Mar 07 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Update READMEs with outdated context/hyperlinks ([@smithki](https://github.com/smithki))
|
|
6
|
+
|
|
7
|
+
#### 🏠 Internal
|
|
8
|
+
|
|
9
|
+
- Internal documentation updates (`BUILD_SYSTEM.md`) [#283](https://github.com/magiclabs/magic-js/pull/283) ([@smithki](https://github.com/smithki))
|
|
10
|
+
|
|
11
|
+
#### Authors: 1
|
|
12
|
+
|
|
13
|
+
- Ian K Smith ([@smithki](https://github.com/smithki))
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
1
17
|
# v3.0.1 (Tue Jan 25 2022)
|
|
2
18
|
|
|
3
19
|
#### 🐛 Bug Fix
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ const magic = new Magic('YOUR_API_KEY', {
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Magic SDK
|
|
36
|
-
See the [developer documentation](https://
|
|
36
|
+
See the [developer documentation](https://magic.link/docs) to learn how you can master the Magic SDK in a matter of minutes.
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
@@ -78,7 +78,7 @@ const handleSendContractOrigination = async () => {
|
|
|
78
78
|
{
|
|
79
79
|
"prim":"code",
|
|
80
80
|
"args":[
|
|
81
|
-
[
|
|
81
|
+
[
|
|
82
82
|
{ "prim":"CAR" },
|
|
83
83
|
{ "prim":"NIL", "args":[ { "prim":"operation" } ] },
|
|
84
84
|
{ "prim":"PAIR" }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var
|
|
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);
|
|
2
2
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
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,
|
|
3
|
+
"sources": ["../../src/index.native.ts", "../../src/index.ts"],
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-ext/tezos",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.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": "^
|
|
31
|
+
"@magic-sdk/commons": "^5.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "bc46bf8f2980f571450454904ce2854a3ede8ab4"
|
|
34
34
|
}
|