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 #402 from PureStake/master
Release 1.9.0
- Loading branch information
Showing
60 changed files
with
855 additions
and
3,230 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
template: | | ||
## Updates | ||
## Patch X.Y.Z | ||
$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
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,42 @@ | ||
import { Namespace } from './types'; | ||
|
||
interface ConfigTemplate { | ||
name: string; // Formatted name, used for titles | ||
ledgers: Array<string> | null; // Ledgers supported, null if there's no restriction | ||
api: string; // Templated URL to call for uncached aliases | ||
findAliasedAddresses: Function; // How to process the API response to get the aliased address | ||
// @TODO: add caching/expiry | ||
} | ||
|
||
const noop = (): void => { | ||
/* no-op */ | ||
}; | ||
|
||
export class AliasConfig { | ||
static [Namespace.AlgoSigner_Contacts]: ConfigTemplate = { | ||
name: 'AlgoSigner Contact', | ||
ledgers: null, | ||
api: '', | ||
findAliasedAddresses: noop, | ||
}; | ||
|
||
static [Namespace.AlgoSigner_Accounts]: ConfigTemplate = { | ||
name: 'AlgoSigner Account', | ||
ledgers: null, | ||
api: '', | ||
findAliasedAddresses: noop, | ||
}; | ||
|
||
public static getMatchingNamespaces(ledger: string): Array<any> { | ||
const matchingNamespaces: Array<string> = []; | ||
for (const n in Namespace) { | ||
if ( | ||
AliasConfig[n] && | ||
(AliasConfig[n].ledgers === null || AliasConfig[n].ledgers.includes(ledger)) | ||
) { | ||
matchingNamespaces.push(n); | ||
} | ||
} | ||
return matchingNamespaces; | ||
} | ||
} |
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,8 +1,10 @@ | ||
import { RequestError, Transaction, MultisigTransaction } from '@algosigner/common/types'; | ||
import { RequestError, WalletTransaction } from '@algosigner/common/types'; | ||
import { JsonPayload } from '@algosigner/common/messaging/types'; | ||
|
||
/* eslint-disable no-unused-vars */ | ||
export interface ITask { | ||
sign(p: Transaction, e: RequestError): Promise<JsonPayload>; | ||
signMultisig(p: MultisigTransaction, e: RequestError): Promise<JsonPayload>; | ||
signTxn( | ||
transactionsOrGroups: Array<WalletTransaction>, | ||
error: RequestError | ||
): Promise<JsonPayload>; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
packages/extension/src/background/messaging/internalMethods.test.ts
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.