Files
grin-web-wallet/scripts/output_information.js
2024-12-20 18:08:44 -08:00

62 lines
887 B
JavaScript
Executable File

// Use strict
"use strict";
// Classes
// Output information class
class OutputInformation {
// Public
// Constructor
constructor(output, amount, identifier, switchType) {
// Set output
this.output = output;
// Set amount
this.amount = amount;
// Set identifier
this.identifier = identifier;
// Set switch type
this.switchType = switchType;
}
// Get output
getOutput() {
// Return output
return this.output;
}
// Get amount
getAmount() {
// Return amount
return this.amount;
}
// Get identifier
getIdentifier() {
// Return identifier
return this.identifier;
}
// Get switch type
getSwitchType() {
// Return switch type
return this.switchType;
}
}
// Main function
// Set global object's output information
globalThis["OutputInformation"] = OutputInformation;