consts

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: GPL-2.0, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminEmail string

AdminEmail is the email of the platform's admin that is public

View Source
var AnchorAPI string

AnchorAPI is the URL of AnchorUSD's API

View Source
var AnchorUSDAddress string

AnchorUSDAddress is the address associated with AnchorUSD

View Source
var AnchorUSDCode string

AnchorUSDCode is the code for AnchorUSD's stablecoin

View Source
var AnchorUSDTrustLimit float64

AnchorUSDTrustLimit is the trust limit till which an account trusts AnchorUSD's stablecoin

View Source
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

View Source
var DbDir = ""

DbDir is the directory where the openx database (boltDB) is stored

View Source
var DbName = "opensolar.db"

DbName is the name of the openx database

View Source
var DebtAssetPrefix = "DebtAssets_"

DebtAssetPrefix is the prefix that will be hashed to give a recipient AssetID

View Source
var DefaultRPCPort = 8081

DefaultRPCPort is the default Insecure port on which openx starts

View Source
var EscrowPwd = "blah"

EscrowPwd is the password of the project escrows' seed

View Source
var FourWeeksInSecond = time.Duration(2419200 * time.Second)

FourWeeksInSecond is four weeks in seconds

View Source
var HomeDir = os.Getenv("HOME") + "/.opensolar"

HomeDir is the directory where opensolar projects, investors, entities, etc are stored

View Source
var InvestorAssetPrefix = "InvestorAssets_"

InvestorAssetPrefix is the prefix that will be hashed to give an investor AssetID

View Source
var IssuerSeedPwd = "blah"

IssuerSeedPwd is the password of the issuer's seed

View Source
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

View Source
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)

View Source
var Mainnet bool

Mainnet denotes if openx is running on Stellar mainnet / testnet

View Source
var OneHour = time.Duration(1 * 60 * 60)

OneHour is one hour in seconds

View Source
var OneWeek = 604800

OneWeek is one week in raw seconds

View Source
var OneWeekInSecond = time.Duration(604800 * time.Second)

OneWeekInSecond is one week in time seconds

View Source
var OpenSolarIssuerDir = ""

OpenSolarIssuerDir is the directory where project escrow seeds are stored

View Source
var OpenxURL = "http://localhost:8080"

OpenxURL is the openx URL that opensolar has to connect to

View Source
var PaybackAssetPrefix = "PaybackAssets_"

PaybackAssetPrefix is the prefix that will be hashed to give a payback AssetID

View Source
var PaybackInterval = time.Duration(1 * 60 * 60 * 24 * 30)

PaybackInterval is the default teller payback interval

View Source
var PlatformEmail string

PlatformEmail is the email of the platform used to send notifications related to openx

View Source
var PlatformEmailPass string

PlatformEmailPass is the password for the emial account linked above

View Source
var PlatformPublicKey string

PlatformPublicKey is the Stellar public key of the openx platform

View Source
var PlatformSeed string

PlatformSeed is the Stellar seed corresponding to the above Stellar public key

View Source
var PlatformSeedFile string

PlatformSeedFile is the location where PlatformSeedFile is stored and decrypted each time the platform is started

View Source
var ProjectReportThreshold = 10

ProjectReportThreshold is the threshold above which admins are allowed to flag the project

View Source
var SeedAssetPrefix = "SeedAssets_"

SeedAssetPrefix is the prefix that will be hashed to give an ivnestor his seed id

View Source
var SixWeeksInSecond = time.Duration(3628800 * time.Second)

SixWeeksInSecond is six weeks in seconds

View Source
var StablecoinCode string

StablecoinCode is the code of the in house stablecoin that openx possesses

View Source
var StablecoinPublicKey string

StablecoinPublicKey is the public Stellar address of our in house stablecoin

View Source
var TellerDeviceIDLen = 16

TellerDeviceIDLen is set to 16

View Source
var TellerHomeDir = HomeDir + "/teller" // the home directory of the teller executable

TellerHomeDir is the home directory of the teller

View Source
var TellerMaxLocalStorageSize = 2000

TellerMaxLocalStorageSize is the max file storage limit on the teller before we hash the entire thing to ipfs

View Source
var TellerPollInterval = time.Duration(3600 * 24 * time.Second)

TellerPollInterval is the frequency at which we poll the interval

View Source
var Tlsport = 443

Tlsport is the default SSL port on which openx starts

View Source
var TopSecretCode = "OPENSOLARTEST"

TopSecretCode is a test nuclear code that is used for testing

View Source
var TwoWeeksInSecond = time.Duration(1209600 * time.Second)

TwoWeeksInSecond is two weeks in seconds

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL