@keystonehq/bc-ur-registry-avalanche 0.0.1 → 0.0.3

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.
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var bcUrRegistry = require('@keystonehq/bc-ur-registry');
6
6
  var uuid = require('uuid');
7
+ var buffer = require('buffer');
7
8
 
8
9
  const ExtendedRegistryTypes = {
9
10
  AVALANCHE_SIGN_REQUEST: /*#__PURE__*/new bcUrRegistry.RegistryType("avax-sign-request", 8301)
@@ -24,7 +25,7 @@ class AvalancheSignRequest extends bcUrRegistry.RegistryItem {
24
25
  static constructAvalancheRequest(data, uuidString) {
25
26
  return new AvalancheSignRequest({
26
27
  data,
27
- requestId: uuidString ? Buffer.from(uuid.parse(uuidString)) : undefined
28
+ requestId: uuidString ? buffer.Buffer.from(uuid.parse(uuidString)) : undefined
28
29
  });
29
30
  }
30
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bc-ur-registry-avalanche.cjs.development.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","requestId","data","DataItem","constructAvalancheRequest","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":";;;;;;;AAEO,MAAMA,qBAAqB,GAAG;EACnCC,sBAAsB,eAAE,IAAIC,yBAAY,CAAC,mBAAmB,EAAE,IAAI;CACnE;;MCKYC,oBAAqB,SAAQC,yBAAY;EAMpDC,YAAYC,IAAsB;IAChC,KAAK,EAAE;IAHT,oBAAe,GAAG,MAAMN,qBAAqB,CAACC,sBAAsB;IAQ7D,iBAAY,GAAG,MAAM,IAAI,CAACM,SAAS;IACnC,gBAAW,GAAG,MAAM,IAAI,CAACC,IAAI;IAE7B,eAAU,GAAG;MAClB,OAAO,IAAIC,qBAAQ,CAAC,IAAI,CAACD,IAAI,CAAC;KAC/B;IATC,IAAI,CAACD,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC/B,IAAI,CAACC,IAAI,GAAGF,IAAI,CAACE,IAAI;;EAUhB,OAAOE,yBAAyBA,CAACF,IAAY,EAAEG,UAAmB;IACvE,OAAO,IAAIR,oBAAoB,CAAC;MAC9BK,IAAI;MACJD,SAAS,EAAEI,UAAU,GACjBC,MAAM,CAACC,IAAI,CAACC,UAAU,CAACH,UAAU,CAAe,CAAC,GACjDI;KACL,CAAC;;;;AC9BNC,sBAAS,CACPC,MAAM,CAACC,MAAM,CAAClB,qBAAqB,CAAC,CACjCmB,MAAM,CAAEC,EAAE,IAAK,CAAC,CAACA,EAAE,CAACC,MAAM,EAAE,CAAC,CAC7BC,GAAG,CAAEF,EAAE,IAAKA,EAAE,CAACC,MAAM,EAAE,CAAa,CACxC;;;;;;;;;;;;"}
1
+ {"version":3,"file":"bc-ur-registry-avalanche.cjs.development.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\nimport { Buffer } from \"buffer\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","requestId","data","DataItem","constructAvalancheRequest","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":";;;;;;;;AAEO,MAAMA,qBAAqB,GAAG;EACnCC,sBAAsB,eAAE,IAAIC,yBAAY,CAAC,mBAAmB,EAAE,IAAI;CACnE;;MCMYC,oBAAqB,SAAQC,yBAAY;EAMpDC,YAAYC,IAAsB;IAChC,KAAK,EAAE;IAHT,oBAAe,GAAG,MAAMN,qBAAqB,CAACC,sBAAsB;IAQ7D,iBAAY,GAAG,MAAM,IAAI,CAACM,SAAS;IACnC,gBAAW,GAAG,MAAM,IAAI,CAACC,IAAI;IAE7B,eAAU,GAAG;MAClB,OAAO,IAAIC,qBAAQ,CAAC,IAAI,CAACD,IAAI,CAAC;KAC/B;IATC,IAAI,CAACD,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC/B,IAAI,CAACC,IAAI,GAAGF,IAAI,CAACE,IAAI;;EAUhB,OAAOE,yBAAyBA,CAACF,IAAY,EAAEG,UAAmB;IACvE,OAAO,IAAIR,oBAAoB,CAAC;MAC9BK,IAAI;MACJD,SAAS,EAAEI,UAAU,GACjBC,aAAM,CAACC,IAAI,CAACC,UAAU,CAACH,UAAU,CAAe,CAAC,GACjDI;KACL,CAAC;;;;AC/BNC,sBAAS,CACPC,MAAM,CAACC,MAAM,CAAClB,qBAAqB,CAAC,CACjCmB,MAAM,CAAEC,EAAE,IAAK,CAAC,CAACA,EAAE,CAACC,MAAM,EAAE,CAAC,CAC7BC,GAAG,CAAEF,EAAE,IAAKA,EAAE,CAACC,MAAM,EAAE,CAAa,CACxC;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@keystonehq/bc-ur-registry"),t=require("uuid");const s={AVALANCHE_SIGN_REQUEST:new e.RegistryType("avax-sign-request",8301)};class r extends e.RegistryItem{constructor(t){super(),this.getRegistryType=()=>s.AVALANCHE_SIGN_REQUEST,this.getRequestId=()=>this.requestId,this.getSignData=()=>this.data,this.toDataItem=()=>new e.DataItem(this.data),this.requestId=t.requestId,this.data=t.data}static constructAvalancheRequest(e,s){return new r({data:e,requestId:s?Buffer.from(t.parse(s)):void 0})}}e.patchTags(Object.values(s).filter(e=>!!e.getTag()).map(e=>e.getTag())),Object.keys(e).forEach((function(t){"default"!==t&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})})),exports.AvalancheSignRequest=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@keystonehq/bc-ur-registry"),t=require("uuid"),r=require("buffer");const s={AVALANCHE_SIGN_REQUEST:new e.RegistryType("avax-sign-request",8301)};class a extends e.RegistryItem{constructor(t){super(),this.getRegistryType=()=>s.AVALANCHE_SIGN_REQUEST,this.getRequestId=()=>this.requestId,this.getSignData=()=>this.data,this.toDataItem=()=>new e.DataItem(this.data),this.requestId=t.requestId,this.data=t.data}static constructAvalancheRequest(e,s){return new a({data:e,requestId:s?r.Buffer.from(t.parse(s)):void 0})}}e.patchTags(Object.values(s).filter(e=>!!e.getTag()).map(e=>e.getTag())),Object.keys(e).forEach((function(t){"default"!==t&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})})),exports.AvalancheSignRequest=a;
2
2
  //# sourceMappingURL=bc-ur-registry-avalanche.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bc-ur-registry-avalanche.cjs.production.min.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","super","this","requestId","data","DataItem","[object Object]","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":"kIAEO,MAAMA,EAAwB,CACnCC,uBAAwB,IAAIC,eAAa,oBAAqB,aCMnDC,UAA6BC,eAMxCC,YAAYC,GACVC,QAHFC,qBAAkB,IAAMR,EAAsBC,uBAQvCO,kBAAe,IAAMA,KAAKC,UAC1BD,iBAAc,IAAMA,KAAKE,KAEzBF,gBAAa,IACX,IAAIG,WAASH,KAAKE,MARzBF,KAAKC,UAAYH,EAAKG,UACtBD,KAAKE,KAAOJ,EAAKI,KAUZE,iCAAiCF,EAAcG,GACpD,OAAO,IAAIV,EAAqB,CAC9BO,KAAAA,EACAD,UAAWI,EACPC,OAAOC,KAAKC,QAAWH,SACvBI,KC7BVC,YACEC,OAAOC,OAAOpB,GACXqB,OAAQC,KAASA,EAAGC,UACpBC,IAAKF,GAAOA,EAAGC"}
1
+ {"version":3,"file":"bc-ur-registry-avalanche.cjs.production.min.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\nimport { Buffer } from \"buffer\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","super","this","requestId","data","DataItem","[object Object]","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":"sJAEO,MAAMA,EAAwB,CACnCC,uBAAwB,IAAIC,eAAa,oBAAqB,aCOnDC,UAA6BC,eAMxCC,YAAYC,GACVC,QAHFC,qBAAkB,IAAMR,EAAsBC,uBAQvCO,kBAAe,IAAMA,KAAKC,UAC1BD,iBAAc,IAAMA,KAAKE,KAEzBF,gBAAa,IACX,IAAIG,WAASH,KAAKE,MARzBF,KAAKC,UAAYH,EAAKG,UACtBD,KAAKE,KAAOJ,EAAKI,KAUZE,iCAAiCF,EAAcG,GACpD,OAAO,IAAIV,EAAqB,CAC9BO,KAAAA,EACAD,UAAWI,EACPC,SAAOC,KAAKC,QAAWH,SACvBI,KC9BVC,YACEC,OAAOC,OAAOpB,GACXqB,OAAQC,KAASA,EAAGC,UACpBC,IAAKF,GAAOA,EAAGC"}
@@ -1,6 +1,7 @@
1
1
  import { RegistryType, RegistryItem, DataItem, patchTags } from '@keystonehq/bc-ur-registry';
2
2
  export * from '@keystonehq/bc-ur-registry';
3
3
  import { parse } from 'uuid';
4
+ import { Buffer } from 'buffer';
4
5
 
5
6
  const ExtendedRegistryTypes = {
6
7
  AVALANCHE_SIGN_REQUEST: /*#__PURE__*/new RegistryType("avax-sign-request", 8301)
@@ -1 +1 @@
1
- {"version":3,"file":"bc-ur-registry-avalanche.esm.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","requestId","data","DataItem","constructAvalancheRequest","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":";;;;AAEO,MAAMA,qBAAqB,GAAG;EACnCC,sBAAsB,eAAE,IAAIC,YAAY,CAAC,mBAAmB,EAAE,IAAI;CACnE;;MCKYC,oBAAqB,SAAQC,YAAY;EAMpDC,YAAYC,IAAsB;IAChC,KAAK,EAAE;IAHT,oBAAe,GAAG,MAAMN,qBAAqB,CAACC,sBAAsB;IAQ7D,iBAAY,GAAG,MAAM,IAAI,CAACM,SAAS;IACnC,gBAAW,GAAG,MAAM,IAAI,CAACC,IAAI;IAE7B,eAAU,GAAG;MAClB,OAAO,IAAIC,QAAQ,CAAC,IAAI,CAACD,IAAI,CAAC;KAC/B;IATC,IAAI,CAACD,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC/B,IAAI,CAACC,IAAI,GAAGF,IAAI,CAACE,IAAI;;EAUhB,OAAOE,yBAAyBA,CAACF,IAAY,EAAEG,UAAmB;IACvE,OAAO,IAAIR,oBAAoB,CAAC;MAC9BK,IAAI;MACJD,SAAS,EAAEI,UAAU,GACjBC,MAAM,CAACC,IAAI,CAACC,KAAU,CAACH,UAAU,CAAe,CAAC,GACjDI;KACL,CAAC;;;;AC9BNC,SAAS,CACPC,MAAM,CAACC,MAAM,CAAClB,qBAAqB,CAAC,CACjCmB,MAAM,CAAEC,EAAE,IAAK,CAAC,CAACA,EAAE,CAACC,MAAM,EAAE,CAAC,CAC7BC,GAAG,CAAEF,EAAE,IAAKA,EAAE,CAACC,MAAM,EAAE,CAAa,CACxC;;;;"}
1
+ {"version":3,"file":"bc-ur-registry-avalanche.esm.js","sources":["../src/RegistryType.ts","../src/AvalancheSignRequest.ts","../src/index.ts"],"sourcesContent":["import { RegistryType } from \"@keystonehq/bc-ur-registry\";\n\nexport const ExtendedRegistryTypes = {\n AVALANCHE_SIGN_REQUEST: new RegistryType(\"avax-sign-request\", 8301),\n};\n","import { DataItem, RegistryItem } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nimport * as uuid from \"uuid\";\nimport { Buffer } from \"buffer\";\n\ntype signRequestProps = {\n requestId?: Buffer;\n data: Buffer;\n};\n\nexport class AvalancheSignRequest extends RegistryItem {\n private requestId?: Buffer;\n private data: Buffer;\n\n getRegistryType = () => ExtendedRegistryTypes.AVALANCHE_SIGN_REQUEST;\n\n constructor(args: signRequestProps) {\n super();\n this.requestId = args.requestId;\n this.data = args.data;\n }\n\n public getRequestId = () => this.requestId;\n public getSignData = () => this.data;\n\n public toDataItem = () => {\n return new DataItem(this.data);\n };\n\n public static constructAvalancheRequest(data: Buffer, uuidString?: string) {\n return new AvalancheSignRequest({\n data,\n requestId: uuidString\n ? Buffer.from(uuid.parse(uuidString) as Uint8Array)\n : undefined,\n });\n }\n}\n","import { patchTags } from \"@keystonehq/bc-ur-registry\";\nimport { ExtendedRegistryTypes } from \"./RegistryType\";\nexport * from \"@keystonehq/bc-ur-registry\";\n\npatchTags(\n Object.values(ExtendedRegistryTypes)\n .filter((rt) => !!rt.getTag())\n .map((rt) => rt.getTag()) as number[]\n);\n\nexport { AvalancheSignRequest } from \"./AvalancheSignRequest\";\n"],"names":["ExtendedRegistryTypes","AVALANCHE_SIGN_REQUEST","RegistryType","AvalancheSignRequest","RegistryItem","constructor","args","requestId","data","DataItem","constructAvalancheRequest","uuidString","Buffer","from","uuid","undefined","patchTags","Object","values","filter","rt","getTag","map"],"mappings":";;;;;AAEO,MAAMA,qBAAqB,GAAG;EACnCC,sBAAsB,eAAE,IAAIC,YAAY,CAAC,mBAAmB,EAAE,IAAI;CACnE;;MCMYC,oBAAqB,SAAQC,YAAY;EAMpDC,YAAYC,IAAsB;IAChC,KAAK,EAAE;IAHT,oBAAe,GAAG,MAAMN,qBAAqB,CAACC,sBAAsB;IAQ7D,iBAAY,GAAG,MAAM,IAAI,CAACM,SAAS;IACnC,gBAAW,GAAG,MAAM,IAAI,CAACC,IAAI;IAE7B,eAAU,GAAG;MAClB,OAAO,IAAIC,QAAQ,CAAC,IAAI,CAACD,IAAI,CAAC;KAC/B;IATC,IAAI,CAACD,SAAS,GAAGD,IAAI,CAACC,SAAS;IAC/B,IAAI,CAACC,IAAI,GAAGF,IAAI,CAACE,IAAI;;EAUhB,OAAOE,yBAAyBA,CAACF,IAAY,EAAEG,UAAmB;IACvE,OAAO,IAAIR,oBAAoB,CAAC;MAC9BK,IAAI;MACJD,SAAS,EAAEI,UAAU,GACjBC,MAAM,CAACC,IAAI,CAACC,KAAU,CAACH,UAAU,CAAe,CAAC,GACjDI;KACL,CAAC;;;;AC/BNC,SAAS,CACPC,MAAM,CAACC,MAAM,CAAClB,qBAAqB,CAAC,CACjCmB,MAAM,CAAEC,EAAE,IAAK,CAAC,CAACA,EAAE,CAACC,MAAM,EAAE,CAAC,CAC7BC,GAAG,CAAEF,EAAE,IAAKA,EAAE,CAACC,MAAM,EAAE,CAAa,CACxC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystonehq/bc-ur-registry-avalanche",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "bc-ur-registry extension for Avalanche",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,6 +12,12 @@
12
12
  "src",
13
13
  "dist"
14
14
  ],
15
+ "scripts": {
16
+ "clean": "rm -rf ./dist",
17
+ "start": "tsdx watch",
18
+ "build": "tsdx build",
19
+ "test": "jest --passWithNoTests"
20
+ },
15
21
  "publishConfig": {
16
22
  "access": "public"
17
23
  },
@@ -19,6 +25,7 @@
19
25
  "license": "ISC",
20
26
  "dependencies": {
21
27
  "@keystonehq/bc-ur-registry": "^0.6.4",
28
+ "buffer": "^6.0.3",
22
29
  "uuid": "^8.3.2"
23
30
  },
24
31
  "devDependencies": {
@@ -26,11 +33,5 @@
26
33
  "@types/uuid": "^8.3.1",
27
34
  "tsdx": "^0.14.1",
28
35
  "typescript": "^4.6.2"
29
- },
30
- "scripts": {
31
- "clean": "rm -rf ./dist",
32
- "start": "tsdx watch",
33
- "build": "tsdx build",
34
- "test": "jest --passWithNoTests"
35
36
  }
36
37
  }
@@ -1,6 +1,7 @@
1
1
  import { DataItem, RegistryItem } from "@keystonehq/bc-ur-registry";
2
2
  import { ExtendedRegistryTypes } from "./RegistryType";
3
3
  import * as uuid from "uuid";
4
+ import { Buffer } from "buffer";
4
5
 
5
6
  type signRequestProps = {
6
7
  requestId?: Buffer;