This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from PureStake/master
Release 1.4.1-b
- Loading branch information
Showing
21 changed files
with
435 additions
and
310 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
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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import {Task} from './fn/task'; | ||
import {Router} from './fn/router'; | ||
import { Task } from './fn/task'; | ||
import { Router } from './fn/router'; | ||
|
||
class Wrapper { | ||
private static instance: Wrapper; | ||
private task: Task = new Task(); | ||
private router: Router = new Router(); | ||
|
||
public connect: Function = this.task.connect; | ||
public sign: Function = this.task.sign; | ||
public signMultisig: Function = this.task.signMultisig; | ||
public send: Function = this.task.send; | ||
public accounts: Function = this.task.accounts; | ||
public algod: Function = this.task.algod; | ||
public indexer: Function = this.task.indexer; | ||
public subscribe: Function = this.task.subscribe; | ||
private static instance: Wrapper; | ||
private task: Task = new Task(); | ||
private router: Router = new Router(); | ||
|
||
public static getInstance(): Wrapper { | ||
if (!Wrapper.instance) { | ||
Wrapper.instance = new Wrapper(); | ||
} | ||
return Wrapper.instance; | ||
public connect: Function = this.task.connect; | ||
public sign: Function = this.task.sign; | ||
public signMultisig: Function = this.task.signMultisig; | ||
public send: Function = this.task.send; | ||
public accounts: Function = this.task.accounts; | ||
public algod: Function = this.task.algod; | ||
public indexer: Function = this.task.indexer; | ||
public subscribe: Function = this.task.subscribe; | ||
|
||
public static getInstance(): Wrapper { | ||
if (!Wrapper.instance) { | ||
Wrapper.instance = new Wrapper(); | ||
} | ||
return Wrapper.instance; | ||
} | ||
} | ||
|
||
export const AlgoSigner = Wrapper.getInstance(); | ||
export const AlgoSigner = Wrapper.getInstance(); |
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
Oops, something went wrong.