@magic-ext/hedera 0.1.0-beta.1
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 +0 -0
- package/LICENSE +21 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +7 -0
- package/dist/es/index.mjs +2 -0
- package/dist/es/index.mjs.map +7 -0
- package/dist/extension.js +2 -0
- package/dist/react-native/index.native.js +2 -0
- package/dist/react-native/index.native.js.map +7 -0
- package/dist/types/MagicSigner.d.ts +90 -0
- package/dist/types/index.cdn.d.ts +2 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.native.d.ts +1 -0
- package/dist/types/types.d.ts +7 -0
- package/dist/types/utils.d.ts +12 -0
- package/package.json +35 -0
package/CHANGELOG.md
ADDED
|
File without changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018-present Magic Labs, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var f=t=>c(t,"__esModule",{value:!0});var H=(t,e)=>{for(var r in e)c(t,r,{get:e[r],enumerable:!0})},k=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of h(e))!b.call(t,n)&&(r||n!=="default")&&c(t,n,{get:()=>e[n],enumerable:!(s=d(e,n))||s.enumerable});return t};var m=(t=>(e,r)=>t&&t.get(e)||(r=k(f({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(t,e,r)=>new Promise((s,n)=>{var p=i=>{try{a(r.next(i))}catch(o){n(o)}},y=i=>{try{a(r.throw(i))}catch(o){n(o)}},a=i=>i.done?s(i.value):Promise.resolve(i.value).then(p,y);a((r=r.apply(t,e)).next())});var w={};H(w,{HederaExtension:()=>l});var g=require("@magic-sdk/commons");var l=class extends g.Extension.Internal{constructor(e){super();this.hederaConfig=e;this.name="hedera";this.config={};this.network=e.network,this.config={chainType:"HEDERA",network:e.network}}getPublicKey(){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_getPublicKey",[]))})}sign(e){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_sign",[{message:e}]))})}};module.exports=m(w);
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { HederaConfig, HederaPayloadMethod } from './types';\n\nexport class HederaExtension extends Extension.Internal<'hedera', any> {\n name = 'hedera' as const;\n config: any = {};\n network: string;\n\n constructor(public hederaConfig: HederaConfig) {\n super();\n\n this.network = hederaConfig.network;\n this.config = {\n chainType: 'HEDERA',\n network: hederaConfig.network,\n };\n }\n\n public async getPublicKey() {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaGetPublicKey, []));\n }\n\n public async sign(message: Uint8Array) {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaSign, [{ message }]));\n }\n}\n"],
|
|
5
|
+
"mappings": "2tBAAA,4CAA0B,8BAGnB,mBAA8B,aAAU,QAAwB,CAKrE,YAAmB,EAA4B,CAC7C,QADiB,oBAJnB,UAAO,SACP,YAAc,GAMZ,KAAK,QAAU,EAAa,QAC5B,KAAK,OAAS,CACZ,UAAW,SACX,QAAS,EAAa,SAIb,cAAe,gCAC1B,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAAwC,OAGxF,KAAK,EAAqB,gCACrC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,cAAgC,CAAC,CAAE",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var s=(a,t,r)=>new Promise((c,o)=>{var u=e=>{try{n(r.next(e))}catch(i){o(i)}},g=e=>{try{n(r.throw(e))}catch(i){o(i)}},n=e=>e.done?c(e.value):Promise.resolve(e.value).then(u,g);n((r=r.apply(a,t)).next())});import{Extension as l}from"@magic-sdk/commons";var p=class extends l.Internal{constructor(t){super();this.hederaConfig=t;this.name="hedera";this.config={};this.network=t.network,this.config={chainType:"HEDERA",network:t.network}}getPublicKey(){return s(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_getPublicKey",[]))})}sign(t){return s(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_sign",[{message:t}]))})}};export{p as HederaExtension};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { HederaConfig, HederaPayloadMethod } from './types';\n\nexport class HederaExtension extends Extension.Internal<'hedera', any> {\n name = 'hedera' as const;\n config: any = {};\n network: string;\n\n constructor(public hederaConfig: HederaConfig) {\n super();\n\n this.network = hederaConfig.network;\n this.config = {\n chainType: 'HEDERA',\n network: hederaConfig.network,\n };\n }\n\n public async getPublicKey() {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaGetPublicKey, []));\n }\n\n public async sign(message: Uint8Array) {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaSign, [{ message }]));\n }\n}\n"],
|
|
5
|
+
"mappings": "6MAAA,+CAGO,mBAA8B,GAAU,QAAwB,CAKrE,YAAmB,EAA4B,CAC7C,QADiB,oBAJnB,UAAO,SACP,YAAc,GAMZ,KAAK,QAAU,EAAa,QAC5B,KAAK,OAAS,CACZ,UAAW,SACX,QAAS,EAAa,SAIb,cAAe,gCAC1B,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAAwC,OAGxF,KAAK,EAAqB,gCACrC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,cAAgC,CAAC,CAAE",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var s=(a,t,r)=>new Promise((c,o)=>{var u=e=>{try{n(r.next(e))}catch(i){o(i)}},g=e=>{try{n(r.throw(e))}catch(i){o(i)}},n=e=>e.done?c(e.value):Promise.resolve(e.value).then(u,g);n((r=r.apply(a,t)).next())});import{Extension as l}from"@magic-sdk/commons";var p=class extends l.Internal{constructor(t){super();this.hederaConfig=t;this.name="hedera";this.config={};this.network=t.network,this.config={chainType:"HEDERA",network:t.network}}getPublicKey(){return s(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_getPublicKey",[]))})}sign(t){return s(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_sign",[{message:t}]))})}};export{p as HederaExtension};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { HederaConfig, HederaPayloadMethod } from './types';\n\nexport class HederaExtension extends Extension.Internal<'hedera', any> {\n name = 'hedera' as const;\n config: any = {};\n network: string;\n\n constructor(public hederaConfig: HederaConfig) {\n super();\n\n this.network = hederaConfig.network;\n this.config = {\n chainType: 'HEDERA',\n network: hederaConfig.network,\n };\n }\n\n public async getPublicKey() {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaGetPublicKey, []));\n }\n\n public async sign(message: Uint8Array) {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaSign, [{ message }]));\n }\n}\n"],
|
|
5
|
+
"mappings": "6MAAA,+CAGO,mBAA8B,GAAU,QAAwB,CAKrE,YAAmB,EAA4B,CAC7C,QADiB,oBAJnB,UAAO,SACP,YAAc,GAMZ,KAAK,QAAU,EAAa,QAC5B,KAAK,OAAS,CACZ,UAAW,SACX,QAAS,EAAa,SAIb,cAAe,gCAC1B,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAAwC,OAGxF,KAAK,EAAqB,gCACrC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,cAAgC,CAAC,CAAE",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var MagicHederaExtension=(()=>{var x=Object.create;var o=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var g=t=>o(t,"__esModule",{value:!0});var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),R=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},l=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of b(e))!w.call(t,n)&&(r||n!=="default")&&o(t,n,{get:()=>e[n],enumerable:!(s=H(e,n))||s.enumerable});return t},q=(t,e)=>l(g(o(t!=null?x(k(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),E=(t=>(e,r)=>t&&t.get(e)||(r=l(g({}),e,1),t&&t.set(e,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(t,e,r)=>new Promise((s,n)=>{var h=i=>{try{a(r.next(i))}catch(c){n(c)}},m=i=>{try{a(r.throw(i))}catch(c){n(c)}},a=i=>i.done?s(i.value):Promise.resolve(i.value).then(h,m);a((r=r.apply(t,e)).next())});var y=P((G,d)=>{d.exports=Magic});var A={};R(A,{default:()=>K});var f=q(y());var p=class extends f.Extension.Internal{constructor(e){super();this.hederaConfig=e;this.name="hedera";this.config={};this.network=e.network,this.config={chainType:"HEDERA",network:e.network}}getPublicKey(){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_getPublicKey",[]))})}sign(e){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_sign",[{message:e}]))})}};var K=p;return E(A);})();
|
|
2
|
+
if (MagicHederaExtension && MagicHederaExtension.default != null) { MagicHederaExtension = Object.assign(MagicHederaExtension.default, MagicHederaExtension); delete MagicHederaExtension.default; }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var b=r=>c(r,"__esModule",{value:!0});var m=(r,e)=>{for(var t in e)c(r,t,{get:e[t],enumerable:!0})},H=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of h(e))!f.call(r,n)&&(t||n!=="default")&&c(r,n,{get:()=>e[n],enumerable:!(s=d(e,n))||s.enumerable});return r};var k=(r=>(e,t)=>r&&r.get(e)||(t=H(b({}),e,1),r&&r.set(e,t),t))(typeof WeakMap!="undefined"?new WeakMap:0);var u=(r,e,t)=>new Promise((s,n)=>{var l=i=>{try{o(t.next(i))}catch(a){n(a)}},y=i=>{try{o(t.throw(i))}catch(a){n(a)}},o=i=>i.done?s(i.value):Promise.resolve(i.value).then(l,y);o((t=t.apply(r,e)).next())});var w={};m(w,{HederaExtension:()=>g});var p=require("@magic-sdk/commons");var g=class extends p.Extension.Internal{constructor(e){super();this.hederaConfig=e;this.name="hedera";this.config={};this.network=e.network,this.config={chainType:"HEDERA",network:e.network}}getPublicKey(){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_getPublicKey",[]))})}sign(e){return u(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("hedera_sign",[{message:e}]))})}};module.exports=k(w);
|
|
2
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.native.ts", "../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './index';\n", "import { Extension } from '@magic-sdk/commons';\nimport { HederaConfig, HederaPayloadMethod } from './types';\n\nexport class HederaExtension extends Extension.Internal<'hedera', any> {\n name = 'hedera' as const;\n config: any = {};\n network: string;\n\n constructor(public hederaConfig: HederaConfig) {\n super();\n\n this.network = hederaConfig.network;\n this.config = {\n chainType: 'HEDERA',\n network: hederaConfig.network,\n };\n }\n\n public async getPublicKey() {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaGetPublicKey, []));\n }\n\n public async sign(message: Uint8Array) {\n return this.request(this.utils.createJsonRpcRequestPayload(HederaPayloadMethod.HederaSign, [{ message }]));\n }\n}\n"],
|
|
5
|
+
"mappings": "2tBAAA,sCCAA,MAA0B,8BAGnB,mBAA8B,aAAU,QAAwB,CAKrE,YAAmB,EAA4B,CAC7C,QADiB,oBAJnB,UAAO,SACP,YAAc,GAMZ,KAAK,QAAU,EAAa,QAC5B,KAAK,OAAS,CACZ,UAAW,SACX,QAAS,EAAa,SAIb,cAAe,gCAC1B,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,sBAAwC,OAGxF,KAAK,EAAqB,gCACrC,MAAO,MAAK,QAAQ,KAAK,MAAM,4BAA4B,cAAgC,CAAC,CAAE",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { AccountId, SignerSignature, Transaction } from '@hashgraph/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* @implements {Signer}
|
|
4
|
+
*/
|
|
5
|
+
export declare class MagicSigner {
|
|
6
|
+
publicKey: any;
|
|
7
|
+
accountId: AccountId;
|
|
8
|
+
provider: any;
|
|
9
|
+
signer: any;
|
|
10
|
+
/**
|
|
11
|
+
* @param {AccountId | string} accountId
|
|
12
|
+
* @param {Provider=} provider
|
|
13
|
+
* @param {String} publicKey
|
|
14
|
+
* @param {function} signer
|
|
15
|
+
* @param {function} magicSign
|
|
16
|
+
*/
|
|
17
|
+
constructor(accountId: AccountId | string, provider: any, publicKey: string, magicSign: any, signer?: any);
|
|
18
|
+
/**
|
|
19
|
+
* @returns {Provider=}
|
|
20
|
+
*/
|
|
21
|
+
getProvider(): any;
|
|
22
|
+
/**
|
|
23
|
+
* @abstract
|
|
24
|
+
* @returns {AccountId}
|
|
25
|
+
*/
|
|
26
|
+
getAccountId(): AccountId;
|
|
27
|
+
/**
|
|
28
|
+
* @returns {Key}
|
|
29
|
+
*/
|
|
30
|
+
getAccountKey(): any;
|
|
31
|
+
/**
|
|
32
|
+
* @returns {LedgerId?}
|
|
33
|
+
*/
|
|
34
|
+
getLedgerId(): any;
|
|
35
|
+
/**
|
|
36
|
+
* @abstract
|
|
37
|
+
* @returns {{[key: string]: (string | AccountId)}}
|
|
38
|
+
*/
|
|
39
|
+
getNetwork(): any;
|
|
40
|
+
/**
|
|
41
|
+
* @abstract
|
|
42
|
+
* @returns {string[]}
|
|
43
|
+
*/
|
|
44
|
+
getMirrorNetwork(): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Uint8Array[]} messages
|
|
47
|
+
* @returns {Promise<SignerSignature[]>}
|
|
48
|
+
*/
|
|
49
|
+
sign(messages: Uint8Array[]): Promise<SignerSignature[]>;
|
|
50
|
+
/**
|
|
51
|
+
* @returns {Promise<AccountBalance>}
|
|
52
|
+
*/
|
|
53
|
+
getAccountBalance(): any;
|
|
54
|
+
/**
|
|
55
|
+
* @abstract
|
|
56
|
+
* @returns {Promise<AccountInfo>}
|
|
57
|
+
*/
|
|
58
|
+
getAccountInfo(): any;
|
|
59
|
+
/**
|
|
60
|
+
* @abstract
|
|
61
|
+
* @returns {Promise<TransactionRecord[]>}
|
|
62
|
+
*/
|
|
63
|
+
getAccountRecords(): any;
|
|
64
|
+
/**
|
|
65
|
+
* @template {Transaction} T
|
|
66
|
+
* @param {T} transaction
|
|
67
|
+
* @returns {Promise<T>}
|
|
68
|
+
*/
|
|
69
|
+
signTransaction(transaction: Transaction): Promise<Transaction>;
|
|
70
|
+
/**
|
|
71
|
+
* @template {Transaction} T
|
|
72
|
+
* @param {T} transaction
|
|
73
|
+
* @returns {Promise<T>}
|
|
74
|
+
*/
|
|
75
|
+
checkTransaction(transaction: Transaction): Promise<Transaction>;
|
|
76
|
+
/**
|
|
77
|
+
* @template {Transaction} T
|
|
78
|
+
* @param {T} transaction
|
|
79
|
+
* @returns {Promise<T>}
|
|
80
|
+
*/
|
|
81
|
+
populateTransaction(transaction: Transaction): Promise<Transaction>;
|
|
82
|
+
/**
|
|
83
|
+
* @template RequestT
|
|
84
|
+
* @template ResponseT
|
|
85
|
+
* @template OutputT
|
|
86
|
+
* @param {Executable<RequestT, ResponseT, OutputT>} request
|
|
87
|
+
* @returns {Promise<OutputT>}
|
|
88
|
+
*/
|
|
89
|
+
call(request: any): any;
|
|
90
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Extension } from '@magic-sdk/commons';
|
|
2
|
+
import { HederaConfig } from './types';
|
|
3
|
+
export declare class HederaExtension extends Extension.Internal<'hedera', any> {
|
|
4
|
+
hederaConfig: HederaConfig;
|
|
5
|
+
name: "hedera";
|
|
6
|
+
config: any;
|
|
7
|
+
network: string;
|
|
8
|
+
constructor(hederaConfig: HederaConfig);
|
|
9
|
+
getPublicKey(): Promise<any>;
|
|
10
|
+
sign(message: Uint8Array): Promise<any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* @param {Uint8Array} data
|
|
4
|
+
* @returns {string}
|
|
5
|
+
*/
|
|
6
|
+
export declare function encode(data: Uint8Array): string;
|
|
7
|
+
/**
|
|
8
|
+
* @param {string} text
|
|
9
|
+
* @returns {Uint8Array}
|
|
10
|
+
*/
|
|
11
|
+
export declare function decode(text: string): Buffer;
|
|
12
|
+
export declare function shuffle(array: any): void;
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@magic-ext/hedera",
|
|
3
|
+
"version": "0.1.0-beta.01",
|
|
4
|
+
"description": "magic hedera extension",
|
|
5
|
+
"author": "Magic <team@magic.link> (https://magic.link/)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/magiclabs/magic-js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"target": "neutral",
|
|
15
|
+
"cdnGlobalName": "MagicHederaExtension",
|
|
16
|
+
"main": "./dist/cjs/index.js",
|
|
17
|
+
"module": "./dist/es/index.js",
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"jsdelivr": "./dist/extension.js",
|
|
20
|
+
"react-native": "./dist/react-native/index.native.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
"import": "./dist/es/index.mjs",
|
|
23
|
+
"require": "./dist/cjs/index.js"
|
|
24
|
+
},
|
|
25
|
+
"externals": {
|
|
26
|
+
"include": [
|
|
27
|
+
"@magic-sdk/commons"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@magic-sdk/commons": "^5.0.0",
|
|
32
|
+
"@hashgraph/sdk": "^2.18.1"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {}
|
|
35
|
+
}
|