-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate burner-core for reading balances
- Loading branch information
Showing
9 changed files
with
79 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import BurnerCore from '@burner-wallet/core'; | ||
import { InjectedSigner, LocalSigner } from '@burner-wallet/core/src/signers'; | ||
import { InfuraGateway, InjectedGateway, XDaiGateway } from '@burner-wallet/core/src/gateways'; | ||
import { eth, dai, xdai } from '@burner-wallet/assets'; | ||
|
||
// TODO: Move all keys to env variable | ||
const infuraKey = 'e0ea6e73570246bbb3d4bd042c4b5dac'; | ||
|
||
const core = new BurnerCore({ | ||
signers: [new InjectedSigner(), new LocalSigner()], | ||
gateways: [ | ||
new InjectedGateway(), | ||
new InfuraGateway(infuraKey), | ||
new XDaiGateway(), | ||
], | ||
assets: [xdai, dai, eth], | ||
}); | ||
|
||
export default core; |
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters