global.wallet
.GoodWallet.js
. Currently all concerns are handled on the same module.SoftwareWalletProvider.js
.web3.eth.accounts.wallet
using MultipleAddressWallet.js
. Initialization of the address is pretty straight-forward, just take a look./src/index.js
is loaded. Index.js loads /src/init.js
object, which is responsible for loading the 2 main infrastructure components of the client: (1) User Storage module and (2) GoodWallet module, which is loaded GoodWallet from /lib/wallet/GoodWallet.js
The class is exported as a singleton, using a singleton pattern on the export in GoodWallet.js
:global.wallet
. The only method called on the constructor is init()
.WalletFactory.js
, which is calling the relevant wallet provider based on the provider parameter (currently only SoftwareWallet is supported).Claim()
method