Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AdminEmail string
AdminEmail is the email of the platform's admin that is public
var AnchorAPI string
AnchorAPI is the URL of AnchorUSD's API
var AnchorUSDAddress string
AnchorUSDAddress is the address associated with AnchorUSD
var AnchorUSDCode string
AnchorUSDCode is the code for AnchorUSD's stablecoin
var AnchorUSDTrustLimit float64
AnchorUSDTrustLimit is the trust limit till which an account trusts AnchorUSD's stablecoin
var CutDownPeriod = time.Duration(4838400 * time.Second)
CutDownPeriod is the period where we cut down power to the recipient and instead redirect it to the grid
var DbDir = ""
DbDir is the directory where the openx database (boltDB) is stored
var DbName = "opensolar.db"
DbName is the name of the openx database
var DebtAssetPrefix = "DebtAssets_"
DebtAssetPrefix is the prefix that will be hashed to give a recipient AssetID
var DefaultRPCPort = 8081
DefaultRPCPort is the default Insecure port on which openx starts
var EscrowPwd = "blah"
EscrowPwd is the password of the project escrows' seed
var FourWeeksInSecond = time.Duration(2419200 * time.Second)
FourWeeksInSecond is four weeks in seconds
var HomeDir = os.Getenv("HOME") + "/.opensolar"
HomeDir is the directory where opensolar projects, investors, entities, etc are stored
var InvestorAssetPrefix = "InvestorAssets_"
InvestorAssetPrefix is the prefix that will be hashed to give an investor AssetID
var IssuerSeedPwd = "blah"
IssuerSeedPwd is the password of the issuer's seed
var LockInterval = int64(1 * 60 * 60 * 24 * 3)
LockInterval is the time a recipient is given to unlock the project and redeem investment, right now at 3 days
var LoginRefreshInterval = time.Duration(1200 * 60 * time.Second)
LoginRefreshInterval is the frequency at which the teller's credentials are updated (ie if you change your password, wait 5 minutes for the teller to disconnect)
var Mainnet bool
Mainnet denotes if openx is running on Stellar mainnet / testnet
var OneHour = time.Duration(1 * 60 * 60)
OneHour is one hour in seconds
var OneWeek = 604800
OneWeek is one week in raw seconds
var OneWeekInSecond = time.Duration(604800 * time.Second)
OneWeekInSecond is one week in time seconds
var OpenSolarIssuerDir = ""
OpenSolarIssuerDir is the directory where project escrow seeds are stored
var OpenxURL = "http://localhost:8080"
OpenxURL is the openx URL that opensolar has to connect to
var PaybackAssetPrefix = "PaybackAssets_"
PaybackAssetPrefix is the prefix that will be hashed to give a payback AssetID
var PaybackInterval = time.Duration(1 * 60 * 60 * 24 * 30)
PaybackInterval is the default teller payback interval
var PlatformEmail string
PlatformEmail is the email of the platform used to send notifications related to openx
var PlatformEmailPass string
PlatformEmailPass is the password for the emial account linked above
var PlatformPublicKey string
PlatformPublicKey is the Stellar public key of the openx platform
var PlatformSeed string
PlatformSeed is the Stellar seed corresponding to the above Stellar public key
var PlatformSeedFile string
PlatformSeedFile is the location where PlatformSeedFile is stored and decrypted each time the platform is started
var ProjectReportThreshold = 10
ProjectReportThreshold is the threshold above which admins are allowed to flag the project
var SeedAssetPrefix = "SeedAssets_"
SeedAssetPrefix is the prefix that will be hashed to give an ivnestor his seed id
var SixWeeksInSecond = time.Duration(3628800 * time.Second)
SixWeeksInSecond is six weeks in seconds
var StablecoinCode string
StablecoinCode is the code of the in house stablecoin that openx possesses
var StablecoinPublicKey string
StablecoinPublicKey is the public Stellar address of our in house stablecoin
var TellerDeviceIDLen = 16
TellerDeviceIDLen is set to 16
var TellerHomeDir = HomeDir + "/teller" // the home directory of the teller executable
TellerHomeDir is the home directory of the teller
var TellerMaxLocalStorageSize = 2000
TellerMaxLocalStorageSize is the max file storage limit on the teller before we hash the entire thing to ipfs
var TellerPollInterval = time.Duration(3600 * 24 * time.Second)
TellerPollInterval is the frequency at which we poll the interval
var Tlsport = 443
Tlsport is the default SSL port on which openx starts
var TopSecretCode = "OPENSOLARTEST"
TopSecretCode is a test nuclear code that is used for testing
var TwoWeeksInSecond = time.Duration(1209600 * time.Second)
TwoWeeksInSecond is two weeks in seconds
Functions ¶
This section is empty.
Types ¶
This section is empty.