-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25ef097
commit 795d29c
Showing
5 changed files
with
348 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import type { SignerFactory } from 'rango-types'; | ||
|
||
import { DefaultEvmSigner } from '@rango-dev/signer-evm'; | ||
import { DefaultSignerFactory, TransactionType as TxType } from 'rango-types'; | ||
|
||
import ShapeShiftSnapBaseSigner from './signer/shapeShiftSnapBaseSigner'; | ||
import ShapeShiftSnapCosmosSigner from './signer/shapeShiftSnapCosmosSigner'; | ||
|
||
export default function getSigners(provider: any): SignerFactory { | ||
const signers = new DefaultSignerFactory(); | ||
signers.registerSigner(TxType.EVM, new DefaultEvmSigner(provider)); | ||
signers.registerSigner( | ||
TxType.TRANSFER, | ||
new ShapeShiftSnapBaseSigner(provider) | ||
); | ||
signers.registerSigner( | ||
TxType.COSMOS, | ||
new ShapeShiftSnapCosmosSigner(provider) | ||
); | ||
return signers; | ||
} |
Oops, something went wrong.