mirror of
https://github.com/transatoshi-mw/grin-web-wallet.git
synced 2025-10-07 00:02:47 +00:00
contents of zip
This commit is contained in:
61
scripts/output_information.js
Executable file
61
scripts/output_information.js
Executable file
@@ -0,0 +1,61 @@
|
||||
// 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;
|
Reference in New Issue
Block a user