]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/stellar-util.js
Add experimental incomplete combined js libs
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / stellar-util.js
index a7032df331cc0e98b7067576e844690a03162122..d576a36c1b3d6041edeba0d7d67982f5354cbec7 100644 (file)
@@ -13146,7 +13146,7 @@ Cursor.prototype.fill = function(value, length)
        {
                length = this.buffer().length - this.tell();
        }
-       
+
        this.buffer().fill(value, this.tell(), this.tell() + length);
        this.seek('+', length);
 
@@ -42404,13 +42404,13 @@ Script.prototype.runInContext = function (context) {
     if (!(context instanceof Context)) {
         throw new TypeError("needs a 'context' argument.");
     }
-    
+
     var iframe = document.createElement('iframe');
     if (!iframe.style) iframe.style = {};
     iframe.style.display = 'none';
-    
+
     document.body.appendChild(iframe);
-    
+
     var win = iframe.contentWindow;
     var wEval = win.eval, wExecScript = win.execScript;
 
@@ -42419,7 +42419,7 @@ Script.prototype.runInContext = function (context) {
         wExecScript.call(win, 'null');
         wEval = win.eval;
     }
-    
+
     forEach(Object_keys(context), function (key) {
         win[key] = context[key];
     });
@@ -42428,11 +42428,11 @@ Script.prototype.runInContext = function (context) {
             win[key] = context[key];
         }
     });
-    
+
     var winKeys = Object_keys(win);
 
     var res = wEval.call(win, this.code);
-    
+
     forEach(Object_keys(win), function (key) {
         // Avoid copying circular objects like `top` and `window` by only
         // updating existing context properties or new properties in the `win`
@@ -42447,9 +42447,9 @@ Script.prototype.runInContext = function (context) {
             defineProp(context, key, win[key]);
         }
     });
-    
+
     document.body.removeChild(iframe);
-    
+
     return res;
 };
 
@@ -42503,7 +42503,14 @@ window.stellarUtil = {
     getKeypair: function (path, seed) {
         const result = edHd.derivePath(path, seed);
         return StellarBase.Keypair.fromRawEd25519Seed(result.key);
-    }
+    },
+    dummyNetwork: {
+        bip32: {public: 0, private: 0},
+        messagePrefix: '',
+        pubKeyHash: 0,
+        scriptHash: 0,
+        wif: 0,
+    },
 }
 
 },{"ed25519-hd-key":84,"stellar-base":412}]},{},[445]);