-
Notifications
You must be signed in to change notification settings - Fork 0
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 #11 from CityOfZion/CU-86a0cb0v0
CU-86a0cb0v0 - Add support to TestNet
- Loading branch information
Showing
56 changed files
with
5,178 additions
and
2,574 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"printWidth": 120, | ||
"arrowParens": "avoid", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"endOfLine": "lf" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,9 +1,11 @@ | ||
export class BlockchainAlreadyExist extends Error { | ||
constructor(blockchainName: string) { | ||
super(`The blockchain ${blockchainName} already exist`); | ||
} | ||
} | ||
|
||
export const exceptions = { | ||
invalidBlockchainService: (message?: string) => { | ||
throw new Error(`Invalid blockchainServices => ${message}`); | ||
}, | ||
blockchainAlreadyExist: (blockchainName: string) => { | ||
throw new Error(`The blockchain ${blockchainName} already exist`); | ||
export class InvalidBlockchainService extends Error { | ||
constructor(message?: string) { | ||
super(`Invalid blockchainServices => ${message}`); | ||
} | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
packages/blockchain-service/src/exchanges/flamingo/Flamingo.ts
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/blockchain-service/src/exchanges/flamingo/FlamingoResponses.ts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/blockchain-service/src/exchanges/flamingo/FlamingoRoutes.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 +1,13 @@ | ||
import { BlockchainService, Claimable, NeoNameService } from "./interfaces" | ||
import { BlockchainService, CalculableFee, Claimable, NeoNameService } from './interfaces' | ||
|
||
export function hasNNS(service: BlockchainService): service is NeoNameService & BlockchainService { | ||
return "getNNSRecord" in service && "getOwnerOfNNS" in service && "validateNNSFormat" in service | ||
return 'getNNSRecord' in service && 'getOwnerOfNNS' in service && 'validateNNSFormat' in service | ||
} | ||
|
||
export function isClaimable(service: BlockchainService): service is Claimable & BlockchainService { | ||
return "claim" in service && "tokenClaim" in service && "getUnclaimed" in service.dataService | ||
} | ||
return 'claim' in service && 'tokenClaim' in service && 'getUnclaimed' in service.dataService | ||
} | ||
|
||
export function isCalculableFee(service: BlockchainService): service is CalculableFee & BlockchainService { | ||
return 'calculateTransferFee' in service | ||
} |
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,6 +1,8 @@ | ||
// @ts-ignore | ||
const SDK = typeof window !== 'undefined' ? require('../polyfills/asteroid-sdk') : require('@moonlight-io/asteroid-sdk-js') | ||
import type AsteroidSDK from '@moonlight-io/asteroid-sdk-js' | ||
|
||
export {SDK} | ||
export const keychain = new SDK.Keychain() | ||
const SDK: typeof AsteroidSDK = | ||
// @ts-ignore | ||
typeof window !== 'undefined' ? require('../polyfills/asteroid-sdk') : require('@moonlight-io/asteroid-sdk-js') | ||
|
||
export { SDK } | ||
export const keychain = new SDK.Keychain() |
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,5 +1,4 @@ | ||
export * from './interfaces' | ||
export * from './BSAgreggator' | ||
export * from './exchanges' | ||
export * from "./functions" | ||
export * from "./helpers" | ||
export * from './functions' | ||
export * from './helpers' |
Oops, something went wrong.