@magic-ext/polkadot 3.0.1 → 3.1.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
@@ -32,7 +32,7 @@ const magic = new Magic('YOUR_API_KEY', {
32
32
  ```
33
33
 
34
34
  ## Magic SDK
35
- See the [developer documentation](https://docs.magic.link) to learn how you can master the Magic SDK in a matter of minutes.
35
+ See the [developer documentation](https://magic.link/docs) to learn how you can master the Magic SDK in a matter of minutes.
36
36
 
37
37
 
38
38
  ## Usage
@@ -76,4 +76,4 @@ Send polkadot native currency
76
76
 
77
77
  console.log('transaction hash', tx)
78
78
  }
79
- ```
79
+ ```
@@ -1,2 +1,2 @@
1
- var e=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=r=>e(r,"__esModule",{value:!0});var m=(r,t)=>{for(var n in t)e(r,n,{get:t[n],enumerable:!0})},u=(r,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p(t))!d.call(r,o)&&(n||o!=="default")&&e(r,o,{get:()=>t[o],enumerable:!(s=a(t,o))||s.enumerable});return r};var g=(r=>(t,n)=>r&&r.get(t)||(n=u(l({}),t,1),r&&r.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var f={};m(f,{PolkadotExtension:()=>c});var i=require("@magic-sdk/commons"),c=class extends i.Extension.Internal{constructor(t){super();this.polkadotConfig=t;this.name="polkadot";this.sendTransaction=(t,n)=>this.request({id:42,jsonrpc:"2.0",method:"pdt_sendTransaction",params:{to:t,value:n}});this.contractCall=(t,n,s,o)=>this.request({id:42,jsonrpc:"2.0",method:"pdt_contractCall",params:{contractAddress:t,value:n,maxGas:s,data:o}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"pdt_getAccount",params:[]});this.config={rpcUrl:t.rpcUrl,chainType:"POLKADOT"}}};module.exports=g(f);
1
+ var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var d=r=>s(r,"__esModule",{value:!0});var l=(r,t)=>{for(var o in t)s(r,o,{get:t[o],enumerable:!0})},u=(r,t,o,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of p(t))!m.call(r,n)&&(o||n!=="default")&&s(r,n,{get:()=>t[n],enumerable:!(e=a(t,n))||e.enumerable});return r};var g=(r=>(t,o)=>r&&r.get(t)||(o=u(d({}),t,1),r&&r.set(t,o),o))(typeof WeakMap!="undefined"?new WeakMap:0);var f={};l(f,{PolkadotExtension:()=>c});var i=require("@magic-sdk/commons"),c=class extends i.Extension.Internal{constructor(t){super();this.polkadotConfig=t;this.name="polkadot";this.sendTransaction=(t,o)=>this.request({id:42,jsonrpc:"2.0",method:"pdt_sendTransaction",params:{to:t,value:o}});this.contractCall=(t,o,e,n)=>this.request({id:42,jsonrpc:"2.0",method:"pdt_contractCall",params:{contractAddress:t,value:o,maxGas:e,data:n}});this.getAccount=()=>this.request({id:42,jsonrpc:"2.0",method:"pdt_getAccount",params:[]});this.config={rpcUrl:t.rpcUrl,chainType:"POLKADOT"}}};module.exports=g(f);
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 { PolkadotConfig, ConfigType } from './type';\n\nexport class PolkadotExtension extends Extension.Internal<'polkadot', PolkadotConfig> {\n name = 'polkadot' as const;\n\n config: ConfigType;\n\n constructor(public polkadotConfig: PolkadotConfig) {\n super();\n\n this.config = {\n rpcUrl: polkadotConfig.rpcUrl,\n chainType: 'POLKADOT',\n };\n }\n\n public sendTransaction = (to: string, value: number): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_sendTransaction',\n params: { to, value },\n });\n };\n\n public contractCall = (contractAddress: string, value: number, maxGas: number, data: any): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_contractCall',\n params: { contractAddress, value, maxGas, data },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_getAccount',\n params: [],\n });\n };\n}\n"],
5
- "mappings": "8gBAAA,8CAA0B,8BAGnB,eAAgC,aAAU,QAAqC,CAKpF,YAAmB,EAAgC,CACjD,QADiB,sBAJnB,UAAO,WAaA,qBAAkB,CAAC,EAAY,IAC7B,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,sBACR,OAAQ,CAAE,KAAI,WAIX,kBAAe,CAAC,EAAyB,EAAe,EAAgB,IACtE,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,CAAE,kBAAiB,QAAO,SAAQ,UAIvC,gBAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,iBACR,OAAQ,KA7BV,KAAK,OAAS,CACZ,OAAQ,EAAe,OACvB,UAAW",
3
+ "sources": ["../../src/index.native.ts", "../../src/index.ts"],
4
+ "sourcesContent": ["export * from './index';\n", "import { Extension } from '@magic-sdk/commons';\nimport { PolkadotConfig, ConfigType } from './type';\n\nexport class PolkadotExtension extends Extension.Internal<'polkadot', PolkadotConfig> {\n name = 'polkadot' as const;\n\n config: ConfigType;\n\n constructor(public polkadotConfig: PolkadotConfig) {\n super();\n\n this.config = {\n rpcUrl: polkadotConfig.rpcUrl,\n chainType: 'POLKADOT',\n };\n }\n\n public sendTransaction = (to: string, value: number): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_sendTransaction',\n params: { to, value },\n });\n };\n\n public contractCall = (contractAddress: string, value: number, maxGas: number, data: any): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_contractCall',\n params: { contractAddress, value, maxGas, data },\n });\n };\n\n public getAccount = (): Promise<string> => {\n return this.request({\n id: 42,\n jsonrpc: '2.0',\n method: 'pdt_getAccount',\n params: [],\n });\n };\n}\n"],
5
+ "mappings": "8gBAAA,wCCAA,MAA0B,8BAGnB,eAAgC,aAAU,QAAqC,CAKpF,YAAmB,EAAgC,CACjD,QADiB,sBAJnB,UAAO,WAaA,qBAAkB,CAAC,EAAY,IAC7B,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,sBACR,OAAQ,CAAE,KAAI,WAIX,kBAAe,CAAC,EAAyB,EAAe,EAAgB,IACtE,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,mBACR,OAAQ,CAAE,kBAAiB,QAAO,SAAQ,UAIvC,gBAAa,IACX,KAAK,QAAQ,CAClB,GAAI,GACJ,QAAS,MACT,OAAQ,iBACR,OAAQ,KA7BV,KAAK,OAAS,CACZ,OAAQ,EAAe,OACvB,UAAW",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-ext/polkadot",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "magic polkadot 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": "^4.0.0"
31
+ "@magic-sdk/commons": "^4.1.0"
32
32
  },
33
- "gitHead": "d438b0b289fd4dd06a19bbb0f9f8d27bb067cea0"
33
+ "gitHead": "6aa5a25b33865cfe27444ca6094efade16a82f9f"
34
34
  }