contents of zip

This commit is contained in:
transatoshi
2024-12-20 18:08:44 -08:00
parent aeb2b99db7
commit f03ed73d2b
261 changed files with 208197 additions and 0 deletions

64
scripts/height.js Executable file
View File

@@ -0,0 +1,64 @@
// Use strict
"use strict";
// Classes
// Height class
class Height {
// Public
// Constructor
constructor(height, hash = Height.NO_HASH) {
// Set height
this.setHeight(height);
// Set hash
this.setHash(hash);
}
// Set height
setHeight(height) {
// Set height
this.height = height;
}
// Get height
getHeight() {
// Return height
return this.height;
}
// Set hash
setHash(hash) {
// Set hash
this.hash = hash;
}
// Get hash
getHash() {
// Return hash
return this.hash;
}
// Private
// No hash
static get NO_HASH() {
// Return no hash
return "";
}
}
// Main function
// Set global object's height
globalThis["Height"] = Height;