UNPKG

@metamask/snaps-simulation

Version:

A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment

1 lines 1.17 kB
{"version":3,"file":"get-entropy-sources.mjs","sourceRoot":"","sources":["../../../src/methods/hooks/get-entropy-sources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,kCAAkC;IAChD,OAAO,GAAG,EAAE;QACV,OAAO;YACL;gBACE,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,gCAAgC;gBACtC,IAAI,EAAE,UAAmB;gBACzB,OAAO,EAAE,IAAI;aACd;YACD;gBACE,EAAE,EAAE,aAAa;gBACjB,IAAI,EAAE,oCAAoC;gBAC1C,IAAI,EAAE,UAAmB;gBACzB,OAAO,EAAE,KAAK;aACf;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Get the implementation of the `getEntropySources` hook.\n *\n * @returns The implementation of the `getEntropySources` hook. Right now, it\n * only returns two hard coded entropy source. In the future, it could return a\n * configurable list of entropy sources.\n */\nexport function getGetEntropySourcesImplementation() {\n return () => {\n return [\n {\n id: 'default',\n name: 'Default Secret Recovery Phrase',\n type: 'mnemonic' as const,\n primary: true,\n },\n {\n id: 'alternative',\n name: 'Alternative Secret Recovery Phrase',\n type: 'mnemonic' as const,\n primary: false,\n },\n ];\n };\n}\n"]}