@magic-ext/harmony 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
@@ -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
@@ -64,7 +64,7 @@ By passing transaction payload to `magic.harmony.sendTransaction()` method, it w
64
64
  ### Deploy Contract
65
65
  By passing deploy contract payload to `magic.harmony.sendTransaction()` method, it will automatically sign the transaction with current user and
66
66
  generate transaction object including signature, then send to Harmony node.
67
-
67
+
68
68
  ```js
69
69
  const bin = '608060405234801561001057600080fd5b5060c68061001f6000396000f3fe6080604052348015600f576000' +
70
70
  '80fd5b506004361060325760003560e01c80636057361d146037578063b05784b8146062575b600080fd5b6060600480' +
@@ -1,2 +1,2 @@
1
- var e=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=r=>e(r,"__esModule",{value:!0});var H=(r,n)=>{for(var a in n)e(r,a,{get:n[a],enumerable:!0})},T=(r,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of u(n))!d.call(r,i)&&(a||i!=="default")&&e(r,i,{get:()=>n[i],enumerable:!(t=l(n,i))||t.enumerable});return r};var x=(r=>(n,a)=>r&&r.get(n)||(a=T(f({}),n,1),r&&r.set(n,a),a))(typeof WeakMap!="undefined"?new WeakMap:0);var p=(r,n,a)=>new Promise((t,i)=>{var h=o=>{try{s(a.next(o))}catch(c){i(c)}},g=o=>{try{s(a.throw(o))}catch(c){i(c)}},s=o=>o.done?t(o.value):Promise.resolve(o.value).then(h,g);s((a=a.apply(r,n)).next())});var I={};H(I,{HarmonyExtension:()=>m});var y=require("@magic-sdk/commons");var m=class extends y.Extension.Internal{constructor(n){super();this.harmonyConfig=n;this.name="harmony";this.config={};this.config={rpcUrl:n.rpcUrl,chainType:"HARMONY",options:{chainId:n.chainId}}}sendTransaction(n){return p(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hmy_sendTransaction",n))})}};module.exports=x(I);
1
+ var e=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var d=r=>e(r,"__esModule",{value:!0});var x=(r,n)=>{for(var a in n)e(r,a,{get:n[a],enumerable:!0})},H=(r,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of u(n))!f.call(r,o)&&(a||o!=="default")&&e(r,o,{get:()=>n[o],enumerable:!(t=l(n,o))||t.enumerable});return r};var T=(r=>(n,a)=>r&&r.get(n)||(a=H(d({}),n,1),r&&r.set(n,a),a))(typeof WeakMap!="undefined"?new WeakMap:0);var p=(r,n,a)=>new Promise((t,o)=>{var h=i=>{try{s(a.next(i))}catch(c){o(c)}},g=i=>{try{s(a.throw(i))}catch(c){o(c)}},s=i=>i.done?t(i.value):Promise.resolve(i.value).then(h,g);s((a=a.apply(r,n)).next())});var I={};x(I,{HarmonyExtension:()=>y});var m=require("@magic-sdk/commons");var y=class extends m.Extension.Internal{constructor(n){super();this.harmonyConfig=n;this.name="harmony";this.config={};this.config={rpcUrl:n.rpcUrl,chainType:"HARMONY",options:{chainId:n.chainId}}}sendTransaction(n){return p(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hmy_sendTransaction",n))})}};module.exports=T(I);
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 { HarmonyPayloadMethod, HarmonyConfig } from './types';\n\nexport class HarmonyExtension extends Extension.Internal<'harmony', any> {\n name = 'harmony' as const;\n config: any = {};\n\n constructor(public harmonyConfig: HarmonyConfig) {\n super();\n\n this.config = {\n rpcUrl: harmonyConfig.rpcUrl,\n chainType: 'HARMONY',\n options: {\n chainId: harmonyConfig.chainId,\n },\n };\n }\n\n public async sendTransaction(params: any) {\n return this.request(this.utils.createJsonRpcRequestPayload(HarmonyPayloadMethod.HarmonySignTransaction, params));\n }\n}\n"],
5
- "mappings": "2tBAAA,6CAA0B,8BAGnB,mBAA+B,aAAU,QAAyB,CAIvE,YAAmB,EAA8B,CAC/C,QADiB,qBAHnB,UAAO,UACP,YAAc,GAKZ,KAAK,OAAS,CACZ,OAAQ,EAAc,OACtB,UAAW,UACX,QAAS,CACP,QAAS,EAAc,UAKhB,gBAAgB,EAAa,gCACxC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAA6C",
3
+ "sources": ["../../src/index.native.ts", "../../src/index.ts"],
4
+ "sourcesContent": ["export * from './index';\n", "import { Extension } from '@magic-sdk/commons';\nimport { HarmonyPayloadMethod, HarmonyConfig } from './types';\n\nexport class HarmonyExtension extends Extension.Internal<'harmony', any> {\n name = 'harmony' as const;\n config: any = {};\n\n constructor(public harmonyConfig: HarmonyConfig) {\n super();\n\n this.config = {\n rpcUrl: harmonyConfig.rpcUrl,\n chainType: 'HARMONY',\n options: {\n chainId: harmonyConfig.chainId,\n },\n };\n }\n\n public async sendTransaction(params: any) {\n return this.request(this.utils.createJsonRpcRequestPayload(HarmonyPayloadMethod.HarmonySignTransaction, params));\n }\n}\n"],
5
+ "mappings": "2tBAAA,uCCAA,MAA0B,8BAGnB,mBAA+B,aAAU,QAAyB,CAIvE,YAAmB,EAA8B,CAC/C,QADiB,qBAHnB,UAAO,UACP,YAAc,GAKZ,KAAK,OAAS,CACZ,OAAQ,EAAc,OACtB,UAAW,UACX,QAAS,CACP,QAAS,EAAc,UAKhB,gBAAgB,EAAa,gCACxC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAA6C",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-ext/harmony",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "magic harmony extension",
5
5
  "author": "Magic <hello@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  ]
31
31
  },
32
32
  "devDependencies": {
33
- "@magic-sdk/commons": "^4.0.0"
33
+ "@magic-sdk/commons": "^5.0.0"
34
34
  },
35
- "gitHead": "d438b0b289fd4dd06a19bbb0f9f8d27bb067cea0"
35
+ "gitHead": "bc46bf8f2980f571450454904ce2854a3ede8ab4"
36
36
  }