@magic-ext/bitcoin 8.0.0 → 8.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-ext/bitcoin",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "magic bitcoin 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": "^9.
|
|
31
|
+
"@magic-sdk/commons": "^9.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d2439bad1fd448d1109b642b777db7220e7c3608"
|
|
34
34
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var x=(i,t)=>{for(var n in t)a(i,n,{get:t[n],enumerable:!0})},y=(i,t,n,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of T(t))!b.call(i,r)&&r!==n&&a(i,r,{get:()=>t[r],enumerable:!(c=m(t,r))||c.enumerable});return i};var B=i=>y(a({},"__esModule",{value:!0}),i);var g=(i,t,n)=>new Promise((c,r)=>{var l=o=>{try{s(n.next(o))}catch(e){r(e)}},f=o=>{try{s(n.throw(o))}catch(e){r(e)}},s=o=>o.done?c(o.value):Promise.resolve(o.value).then(l,f);s((n=n.apply(i,t)).next())});var h={};x(h,{BitcoinExtension:()=>p});module.exports=B(h);var u=require("@magic-sdk/commons");var p=class extends u.Extension.Internal{constructor(n){super();this.bitcoinConfig=n;this.name="bitcoin";this.config={};this.config={rpcUrl:n.rpcUrl,chainType:"BITCOIN",options:{network:n.network}}}signTransaction(n,c){return g(this,null,function*(){return this.request(this.utils.createJsonRpcRequestPayload("btc_signTransaction",[n,c]))})}};
|
|
2
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
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 { BitcoinConfig, BitcoinPayloadMethod } from './types';\n\nexport class BitcoinExtension extends Extension.Internal<'bitcoin', any> {\n name = 'bitcoin' as const;\n config: any = {};\n\n constructor(public bitcoinConfig: BitcoinConfig) {\n super();\n\n this.config = {\n rpcUrl: bitcoinConfig.rpcUrl,\n chainType: 'BITCOIN',\n options: {\n network: bitcoinConfig.network,\n },\n };\n }\n\n public async signTransaction(txn: string, inputIndex: number) {\n return this.request(\n this.utils.createJsonRpcRequestPayload(BitcoinPayloadMethod.BitcoinSignTransaction, [txn, inputIndex]),\n );\n }\n}\n"],
|
|
5
|
-
"mappings": "snBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAA0B,8BAGnB,IAAMC,EAAN,cAA+B,YAAU,QAAyB,CAIvE,YAAmBC,EAA8B,CAC/C,MAAM,EADW,mBAAAA,EAHnB,UAAO,UACP,YAAc,CAAC,EAKb,KAAK,OAAS,CACZ,OAAQA,EAAc,OACtB,UAAW,UACX,QAAS,CACP,QAASA,EAAc,OACzB,CACF,CACF,CAEa,gBAAgBC,EAAaC,EAAoB,QAAAC,EAAA,sBAC5D,OAAO,KAAK,QACV,KAAK,MAAM,kDAAyE,CAACF,EAAKC,CAAU,CAAC,CACvG,CACF,GACF",
|
|
6
|
-
"names": ["index_native_exports", "__export", "BitcoinExtension", "__toCommonJS", "import_commons", "BitcoinExtension", "bitcoinConfig", "txn", "inputIndex", "__async"]
|
|
7
|
-
}
|