gamegold 5.2.2 → 5.2.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.
- package/lib/gamegold-worker.js +3 -3
- package/lib/gamegold.js +3 -3
- package/package.json +1 -1
package/lib/gamegold-worker.js
CHANGED
|
@@ -75,7 +75,7 @@ const path = require('path');var gpath = path.join(__dirname, '../../../', 'node
|
|
|
75
75
|
* policy.js - bitcoin constants for vallnet
|
|
76
76
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
77
77
|
* https://github.com/bookmansoft/gamegold
|
|
78
|
-
*/const i=r(0);r=r(7),t.BASE_PORT=2e3,t.setPort=function(e,r=0){e.port=r+100*e.typeId+t.BASE_PORT,e.httpPort=r+100*e.typeId+t.BASE_PORT+2,e.publicPort=r+100*e.typeId+t.BASE_PORT+3,e.wsport=r+100*e.typeId+t.BASE_PORT+4,e.stratumPort=r+100*e.typeId+t.BASE_PORT+5},t.MAX_TX_VERSION=2,t.MAX_TX_SIZE=r.MAX_BLOCK_SIZE/10,t.MAX_TX_WEIGHT=r.MAX_BLOCK_WEIGHT/10,t.MAX_TX_SIGOPS=r.MAX_BLOCK_SIGOPS/5,t.MAX_TX_SIGOPS_COST=r.MAX_BLOCK_SIGOPS_COST/5,t.BYTES_PER_SIGOP=20,t.MIN_RELAY=1e3,t.BARE_MULTISIG=!0,t.FREE_THRESHOLD
|
|
78
|
+
*/const i=r(0);r=r(7),t.BASE_PORT=2e3,t.setPort=function(e,r=0){e.port=r+100*e.typeId+t.BASE_PORT,e.httpPort=r+100*e.typeId+t.BASE_PORT+2,e.publicPort=r+100*e.typeId+t.BASE_PORT+3,e.wsport=r+100*e.typeId+t.BASE_PORT+4,e.stratumPort=r+100*e.typeId+t.BASE_PORT+5},t.MAX_TX_VERSION=2,t.MAX_TX_SIZE=r.MAX_BLOCK_SIZE/10,t.MAX_TX_WEIGHT=r.MAX_BLOCK_WEIGHT/10,t.MAX_TX_SIGOPS=r.MAX_BLOCK_SIGOPS/5,t.MAX_TX_SIGOPS_COST=r.MAX_BLOCK_SIGOPS_COST/5,t.BYTES_PER_SIGOP=20,t.MIN_RELAY=1e3,t.BARE_MULTISIG=!0,t.FREE_THRESHOLD=-1,t.MAX_P2SH_SIGOPS=15,t.MAX_OP_RETURN=2048,t.MAX_OP_INFO=2048,t.MAX_OP_RETURN_BYTES=t.MAX_OP_RETURN+3,t.MAX_P2WSH_STACK=100,t.MAX_P2WSH_PUSH=80,t.MAX_P2WSH_SIZE=3600,t.MEMPOOL_MAX_ANCESTORS=2e4,t.MEMPOOL_MAX_SIZE=1e3,t.MEMPOOL_EXPIRY_TIME=259200,t.MEMPOOL_MAX_ORPHANS=5e4,t.MIN_BLOCK_WEIGHT=8192,t.MAX_BLOCK_WEIGHT=1e7*r.WITNESS_SCALE_FACTOR,t.BLOCK_PRIORITY_WEIGHT=0,t.BLOCK_PRIORITY_THRESHOLD=t.FREE_THRESHOLD,t.getMinFee=function(e,r){if(null==r&&(r=t.MIN_RELAY),i(0<=e),i(0<=r),0===e)return 0;let a=Math.floor(r*e/1e3);return 0===a&&0<r?r:a},t.getRoundFee=function(e,r){if(null==r&&(r=t.MIN_RELAY),i(0<=e),i(0<=r),0===e)return 0;let a=r*Math.ceil(e/1e3);return 0===a&&0<r?r:a},t.getRate=function(e,t){return i(0<=e),i(0<=t),0===e?0:Math.floor(1e3*t/e)}},function(e,t,r){r=r(12).Buffer;var i={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}},a=(i.curve25519=i.ed25519,{dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}});a.curve25519=a.ed25519,r={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:r.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:r.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:r.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:r.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:r.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:r.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:r.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:r.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:r.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:r.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:r.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:r.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:r.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:r.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:r.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:r.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:r.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:r.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};e.exports={info:i,privInfo:a,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:r}},,function(e,t,r){"use strict";
|
|
79
79
|
/*!
|
|
80
80
|
* errors.js - error objects for vallnet
|
|
81
81
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
@@ -196,7 +196,7 @@ var i=r(126),a=i.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function n(e,t,
|
|
|
196
196
|
* pkg.js - package constants
|
|
197
197
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
198
198
|
* https://github.com/bookmansoft/gamegold
|
|
199
|
-
*/t.protocol="vallnet",t.version="v5.2.
|
|
199
|
+
*/t.protocol="vallnet",t.version="v5.2.3",t.url="https://github.com/bookmansoft/gamegold"},function(e,t,r){"use strict";
|
|
200
200
|
/*!
|
|
201
201
|
* common.js - p2p constants for vallnet
|
|
202
202
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
@@ -369,7 +369,7 @@ const i=r(20).opcodes;function a(e){let t=null;var r=a.list[e.type];return new(r
|
|
|
369
369
|
* mempoolentry.js - mempool entry object for vallnet
|
|
370
370
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
371
371
|
* https://github.com/bookmansoft/gamegold
|
|
372
|
-
*/const i=r(29),a=r(2),s=r(17),n=r(1),o=r(4),c=r(19);r(60),e.exports=class e{constructor(e){this.tx=null,this.height=-1,this.size=0,this.sigops=0,this.priority=0,this.fee=0,this.deltaFee=0,this.time=0,this.value=0,this.coinbase=!1,this.dependencies=!1,this.descFee=0,this.descSize=0,e&&this.fromOptions(e)}fromOptions(e){return this.tx=e.tx,this.height=e.height,this.size=e.size,this.sigops=e.sigops,this.priority=e.priority,this.fee=e.fee,this.deltaFee=e.deltaFee,this.time=e.time,this.value=e.value,this.coinbase=e.coinbase,this.dependencies=e.dependencies,this.descFee=e.descFee,this.descSize=e.descSize,this}static fromOptions(t){return(new e).fromOptions(t)}fromTX(e,t,r){var i=s.flags.STANDARD_VERIFY_FLAGS,n=e.getChainValue(t),o=(i=e.getSigopsCost(t,i),e.getSigopsSize(i)),c=e.getPriority(t,r,o),u=e.getFee(t);let h=!1;var l,p=e.isCoinbase();for({prevout:l}of e.inputs)if(-1===t.getHeight(l)){h=!0;break}return this.tx=e,this.height=r,this.size=o,this.sigops=i,this.priority=c,this.fee=u,this.deltaFee=u,this.time=a.now(),this.value=n,this.coinbase=p,this.dependencies=h,this.descFee=u,this.descSize=o,this}static fromTX(t,r,i){return(new e).fromTX(t,r,i)}hash(e){return this.tx.hash(e)}txid(){return this.tx.txid()}getPriority(e){return e=(e-this.height)*this.value/this.size,Math.max(0,this.priority+Math.floor(e))}getFee(){return this.fee}getDeltaFee(){return this.deltaFee}getRate(){return i.getRate(this.size,this.fee)}getDeltaRate(){return i.getRate(this.size,this.deltaFee)}getDescRate(){return i.getRate(this.descSize,this.descFee)}memUsage(){var e=this.tx;let t=0;t=(t=(t=(t=(t=t+176+48)+48+208)+80+88)+80+80)+48+32;for(const r of e.inputs){t=(t=(t=(t=t+120+104)+88+40)+80+32)+40*r.script.code.length;for(const e of r.script.code)e.data&&(t+=80);t=(t=t+96+32)+80*r.witness.items.length}t+=32;for(const r of e.outputs){t=(t=(t=t+104+40)+80+32)+40*r.script.code.length;for(const e of r.script.code)e.data&&(t+=80)}return t}isFree(e){return
|
|
372
|
+
*/const i=r(29),a=r(2),s=r(17),n=r(1),o=r(4),c=r(19);r(60),e.exports=class e{constructor(e){this.tx=null,this.height=-1,this.size=0,this.sigops=0,this.priority=0,this.fee=0,this.deltaFee=0,this.time=0,this.value=0,this.coinbase=!1,this.dependencies=!1,this.descFee=0,this.descSize=0,e&&this.fromOptions(e)}fromOptions(e){return this.tx=e.tx,this.height=e.height,this.size=e.size,this.sigops=e.sigops,this.priority=e.priority,this.fee=e.fee,this.deltaFee=e.deltaFee,this.time=e.time,this.value=e.value,this.coinbase=e.coinbase,this.dependencies=e.dependencies,this.descFee=e.descFee,this.descSize=e.descSize,this}static fromOptions(t){return(new e).fromOptions(t)}fromTX(e,t,r){var i=s.flags.STANDARD_VERIFY_FLAGS,n=e.getChainValue(t),o=(i=e.getSigopsCost(t,i),e.getSigopsSize(i)),c=e.getPriority(t,r,o),u=e.getFee(t);let h=!1;var l,p=e.isCoinbase();for({prevout:l}of e.inputs)if(-1===t.getHeight(l)){h=!0;break}return this.tx=e,this.height=r,this.size=o,this.sigops=i,this.priority=c,this.fee=u,this.deltaFee=u,this.time=a.now(),this.value=n,this.coinbase=p,this.dependencies=h,this.descFee=u,this.descSize=o,this}static fromTX(t,r,i){return(new e).fromTX(t,r,i)}hash(e){return this.tx.hash(e)}txid(){return this.tx.txid()}getPriority(e){return e=(e-this.height)*this.value/this.size,Math.max(0,this.priority+Math.floor(e))}getFee(){return this.fee}getDeltaFee(){return this.deltaFee}getRate(){return i.getRate(this.size,this.fee)}getDeltaRate(){return i.getRate(this.size,this.deltaFee)}getDescRate(){return i.getRate(this.descSize,this.descFee)}memUsage(){var e=this.tx;let t=0;t=(t=(t=(t=(t=t+176+48)+48+208)+80+88)+80+80)+48+32;for(const r of e.inputs){t=(t=(t=(t=t+120+104)+88+40)+80+32)+40*r.script.code.length;for(const e of r.script.code)e.data&&(t+=80);t=(t=t+96+32)+80*r.witness.items.length}t+=32;for(const r of e.outputs){t=(t=(t=t+104+40)+80+32)+40*r.script.code.length;for(const e of r.script.code)e.data&&(t+=80)}return t}isFree(e){return!0}getSize(){return this.tx.getSize()+42}toRaw(){var e=new o(this.getSize());return e.writeBytes(this.tx.toRaw()),e.writeU32(this.height),e.writeU32(this.size),e.writeU32(this.sigops),e.writeDouble(this.priority),e.writeU64(this.fee),e.writeU32(this.time),e.writeU64(this.value),e.writeU8(this.coinbase?1:0),e.writeU8(this.dependencies?1:0),e.render()}fromRaw(e){return e=new n(e),this.tx=c.fromReader(e),this.height=e.readU32(),this.size=e.readU32(),this.sigops=e.readU32(),this.priority=e.readDouble(),this.fee=e.readU64(),this.time=e.readU32(),this.value=e.readU64(),this.coinbase=1===e.readU8(),this.dependencies=1===e.readU8(),this.deltaFee=this.fee,this.descFee=this.fee,this.descSize=this.size,this}static fromRaw(t){return(new e).fromRaw(t)}}},function(e,t,r){
|
|
373
373
|
/*!
|
|
374
374
|
* selector.js
|
|
375
375
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
package/lib/gamegold.js
CHANGED
|
@@ -80,7 +80,7 @@ const path = require('path');var gpath = path.join(__dirname, '../../../', 'node
|
|
|
80
80
|
* policy.js - bitcoin constants for vallnet
|
|
81
81
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
82
82
|
* https://github.com/bookmansoft/gamegold
|
|
83
|
-
*/const r=i(0);i=i(7),t.BASE_PORT=2e3,t.setPort=function(e,i=0){e.port=i+100*e.typeId+t.BASE_PORT,e.httpPort=i+100*e.typeId+t.BASE_PORT+2,e.publicPort=i+100*e.typeId+t.BASE_PORT+3,e.wsport=i+100*e.typeId+t.BASE_PORT+4,e.stratumPort=i+100*e.typeId+t.BASE_PORT+5},t.MAX_TX_VERSION=2,t.MAX_TX_SIZE=i.MAX_BLOCK_SIZE/10,t.MAX_TX_WEIGHT=i.MAX_BLOCK_WEIGHT/10,t.MAX_TX_SIGOPS=i.MAX_BLOCK_SIGOPS/5,t.MAX_TX_SIGOPS_COST=i.MAX_BLOCK_SIGOPS_COST/5,t.BYTES_PER_SIGOP=20,t.MIN_RELAY=1e3,t.BARE_MULTISIG=!0,t.FREE_THRESHOLD
|
|
83
|
+
*/const r=i(0);i=i(7),t.BASE_PORT=2e3,t.setPort=function(e,i=0){e.port=i+100*e.typeId+t.BASE_PORT,e.httpPort=i+100*e.typeId+t.BASE_PORT+2,e.publicPort=i+100*e.typeId+t.BASE_PORT+3,e.wsport=i+100*e.typeId+t.BASE_PORT+4,e.stratumPort=i+100*e.typeId+t.BASE_PORT+5},t.MAX_TX_VERSION=2,t.MAX_TX_SIZE=i.MAX_BLOCK_SIZE/10,t.MAX_TX_WEIGHT=i.MAX_BLOCK_WEIGHT/10,t.MAX_TX_SIGOPS=i.MAX_BLOCK_SIGOPS/5,t.MAX_TX_SIGOPS_COST=i.MAX_BLOCK_SIGOPS_COST/5,t.BYTES_PER_SIGOP=20,t.MIN_RELAY=1e3,t.BARE_MULTISIG=!0,t.FREE_THRESHOLD=-1,t.MAX_P2SH_SIGOPS=15,t.MAX_OP_RETURN=2048,t.MAX_OP_INFO=2048,t.MAX_OP_RETURN_BYTES=t.MAX_OP_RETURN+3,t.MAX_P2WSH_STACK=100,t.MAX_P2WSH_PUSH=80,t.MAX_P2WSH_SIZE=3600,t.MEMPOOL_MAX_ANCESTORS=2e4,t.MEMPOOL_MAX_SIZE=1e3,t.MEMPOOL_EXPIRY_TIME=259200,t.MEMPOOL_MAX_ORPHANS=5e4,t.MIN_BLOCK_WEIGHT=8192,t.MAX_BLOCK_WEIGHT=1e7*i.WITNESS_SCALE_FACTOR,t.BLOCK_PRIORITY_WEIGHT=0,t.BLOCK_PRIORITY_THRESHOLD=t.FREE_THRESHOLD,t.getMinFee=function(e,i){if(null==i&&(i=t.MIN_RELAY),r(0<=e),r(0<=i),0===e)return 0;let s=Math.floor(i*e/1e3);return 0===s&&0<i?i:s},t.getRoundFee=function(e,i){if(null==i&&(i=t.MIN_RELAY),r(0<=e),r(0<=i),0===e)return 0;let s=i*Math.ceil(e/1e3);return 0===s&&0<i?i:s},t.getRate=function(e,t){return r(0<=e),r(0<=t),0===e?0:Math.floor(1e3*t/e)}},function(e,t,i){i=i(12).Buffer;var r={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}},s=(r.curve25519=r.ed25519,{dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}});s.curve25519=s.ed25519,i={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:i.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:i.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:i.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:i.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:i.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:i.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:i.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:i.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:i.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:i.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:i.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:i.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:i.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:i.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};e.exports={info:r,privInfo:s,hashAlgs:{md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},curves:i}},function(e,t,i){"use strict";
|
|
84
84
|
/*!
|
|
85
85
|
* Packet.js - Base Packet
|
|
86
86
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
@@ -206,7 +206,7 @@ var r=i(126),s=r.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function a(e,t,
|
|
|
206
206
|
* pkg.js - package constants
|
|
207
207
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
208
208
|
* https://github.com/bookmansoft/gamegold
|
|
209
|
-
*/t.protocol="vallnet",t.version="v5.2.
|
|
209
|
+
*/t.protocol="vallnet",t.version="v5.2.3",t.url="https://github.com/bookmansoft/gamegold"},function(e,t,i){"use strict";
|
|
210
210
|
/*!
|
|
211
211
|
* common.js - p2p constants for vallnet
|
|
212
212
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
@@ -383,7 +383,7 @@ const r=i(20).opcodes;function s(e){let t=null;var i=s.list[e.type];return new(i
|
|
|
383
383
|
* mempoolentry.js - mempool entry object for vallnet
|
|
384
384
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|
|
385
385
|
* https://github.com/bookmansoft/gamegold
|
|
386
|
-
*/const r=i(29),s=i(2),n=i(17),a=i(1),o=i(4),c=i(19);i(60),e.exports=class e{constructor(e){this.tx=null,this.height=-1,this.size=0,this.sigops=0,this.priority=0,this.fee=0,this.deltaFee=0,this.time=0,this.value=0,this.coinbase=!1,this.dependencies=!1,this.descFee=0,this.descSize=0,e&&this.fromOptions(e)}fromOptions(e){return this.tx=e.tx,this.height=e.height,this.size=e.size,this.sigops=e.sigops,this.priority=e.priority,this.fee=e.fee,this.deltaFee=e.deltaFee,this.time=e.time,this.value=e.value,this.coinbase=e.coinbase,this.dependencies=e.dependencies,this.descFee=e.descFee,this.descSize=e.descSize,this}static fromOptions(t){return(new e).fromOptions(t)}fromTX(e,t,i){var r=n.flags.STANDARD_VERIFY_FLAGS,a=e.getChainValue(t),o=(r=e.getSigopsCost(t,r),e.getSigopsSize(r)),c=e.getPriority(t,i,o),h=e.getFee(t);let u=!1;var l,p=e.isCoinbase();for({prevout:l}of e.inputs)if(-1===t.getHeight(l)){u=!0;break}return this.tx=e,this.height=i,this.size=o,this.sigops=r,this.priority=c,this.fee=h,this.deltaFee=h,this.time=s.now(),this.value=a,this.coinbase=p,this.dependencies=u,this.descFee=h,this.descSize=o,this}static fromTX(t,i,r){return(new e).fromTX(t,i,r)}hash(e){return this.tx.hash(e)}txid(){return this.tx.txid()}getPriority(e){return e=(e-this.height)*this.value/this.size,Math.max(0,this.priority+Math.floor(e))}getFee(){return this.fee}getDeltaFee(){return this.deltaFee}getRate(){return r.getRate(this.size,this.fee)}getDeltaRate(){return r.getRate(this.size,this.deltaFee)}getDescRate(){return r.getRate(this.descSize,this.descFee)}memUsage(){var e=this.tx;let t=0;t=(t=(t=(t=(t=t+176+48)+48+208)+80+88)+80+80)+48+32;for(const i of e.inputs){t=(t=(t=(t=t+120+104)+88+40)+80+32)+40*i.script.code.length;for(const e of i.script.code)e.data&&(t+=80);t=(t=t+96+32)+80*i.witness.items.length}t+=32;for(const i of e.outputs){t=(t=(t=t+104+40)+80+32)+40*i.script.code.length;for(const e of i.script.code)e.data&&(t+=80)}return t}isFree(e){return
|
|
386
|
+
*/const r=i(29),s=i(2),n=i(17),a=i(1),o=i(4),c=i(19);i(60),e.exports=class e{constructor(e){this.tx=null,this.height=-1,this.size=0,this.sigops=0,this.priority=0,this.fee=0,this.deltaFee=0,this.time=0,this.value=0,this.coinbase=!1,this.dependencies=!1,this.descFee=0,this.descSize=0,e&&this.fromOptions(e)}fromOptions(e){return this.tx=e.tx,this.height=e.height,this.size=e.size,this.sigops=e.sigops,this.priority=e.priority,this.fee=e.fee,this.deltaFee=e.deltaFee,this.time=e.time,this.value=e.value,this.coinbase=e.coinbase,this.dependencies=e.dependencies,this.descFee=e.descFee,this.descSize=e.descSize,this}static fromOptions(t){return(new e).fromOptions(t)}fromTX(e,t,i){var r=n.flags.STANDARD_VERIFY_FLAGS,a=e.getChainValue(t),o=(r=e.getSigopsCost(t,r),e.getSigopsSize(r)),c=e.getPriority(t,i,o),h=e.getFee(t);let u=!1;var l,p=e.isCoinbase();for({prevout:l}of e.inputs)if(-1===t.getHeight(l)){u=!0;break}return this.tx=e,this.height=i,this.size=o,this.sigops=r,this.priority=c,this.fee=h,this.deltaFee=h,this.time=s.now(),this.value=a,this.coinbase=p,this.dependencies=u,this.descFee=h,this.descSize=o,this}static fromTX(t,i,r){return(new e).fromTX(t,i,r)}hash(e){return this.tx.hash(e)}txid(){return this.tx.txid()}getPriority(e){return e=(e-this.height)*this.value/this.size,Math.max(0,this.priority+Math.floor(e))}getFee(){return this.fee}getDeltaFee(){return this.deltaFee}getRate(){return r.getRate(this.size,this.fee)}getDeltaRate(){return r.getRate(this.size,this.deltaFee)}getDescRate(){return r.getRate(this.descSize,this.descFee)}memUsage(){var e=this.tx;let t=0;t=(t=(t=(t=(t=t+176+48)+48+208)+80+88)+80+80)+48+32;for(const i of e.inputs){t=(t=(t=(t=t+120+104)+88+40)+80+32)+40*i.script.code.length;for(const e of i.script.code)e.data&&(t+=80);t=(t=t+96+32)+80*i.witness.items.length}t+=32;for(const i of e.outputs){t=(t=(t=t+104+40)+80+32)+40*i.script.code.length;for(const e of i.script.code)e.data&&(t+=80)}return t}isFree(e){return!0}getSize(){return this.tx.getSize()+42}toRaw(){var e=new o(this.getSize());return e.writeBytes(this.tx.toRaw()),e.writeU32(this.height),e.writeU32(this.size),e.writeU32(this.sigops),e.writeDouble(this.priority),e.writeU64(this.fee),e.writeU32(this.time),e.writeU64(this.value),e.writeU8(this.coinbase?1:0),e.writeU8(this.dependencies?1:0),e.render()}fromRaw(e){return e=new a(e),this.tx=c.fromReader(e),this.height=e.readU32(),this.size=e.readU32(),this.sigops=e.readU32(),this.priority=e.readDouble(),this.fee=e.readU64(),this.time=e.readU32(),this.value=e.readU64(),this.coinbase=1===e.readU8(),this.dependencies=1===e.readU8(),this.deltaFee=this.fee,this.descFee=this.fee,this.descSize=this.size,this}static fromRaw(t){return(new e).fromRaw(t)}}},function(e,t,i){
|
|
387
387
|
/*!
|
|
388
388
|
* selector.js
|
|
389
389
|
* Copyright (c) 2019-2022, Bookman Software (MIT License).
|