@k256/sdk 0.3.1 → 0.4.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/dist/index.cjs CHANGED
@@ -1009,6 +1009,11 @@ function readU16(view, o) {
1009
1009
  o.v += 2;
1010
1010
  return val;
1011
1011
  }
1012
+ function readF64(view, o) {
1013
+ const val = view.getFloat64(o.v, true);
1014
+ o.v += 8;
1015
+ return val;
1016
+ }
1012
1017
  function readU8(view, o) {
1013
1018
  const val = view.getUint8(o.v);
1014
1019
  o.v += 1;
@@ -1067,12 +1072,16 @@ function readGossipPeer(view, data, o) {
1067
1072
  lastVote: readU64(view, o),
1068
1073
  rootSlot: readU64(view, o),
1069
1074
  wallclock: readU64(view, o),
1070
- // Geo/ASN enrichment from IPinfo Lite MMDB (server-side)
1075
+ // Geo/ASN enrichment from MaxMind GeoLite2 (server-side)
1071
1076
  countryCode: readVecU8AsString(view, data, o),
1072
1077
  continentCode: readVecU8AsString(view, data, o),
1073
1078
  asn: readVecU8AsString(view, data, o),
1074
1079
  asName: readVecU8AsString(view, data, o),
1075
- asDomain: readVecU8AsString(view, data, o)
1080
+ city: readVecU8AsString(view, data, o),
1081
+ region: readVecU8AsString(view, data, o),
1082
+ latitude: readF64(view, o),
1083
+ longitude: readF64(view, o),
1084
+ timezone: readVecU8AsString(view, data, o)
1076
1085
  };
1077
1086
  }
1078
1087
  function readGossipPeerVec(view, data, o) {