-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and rename
graphql-client
package to blockchain-providers
(
#70) * rename `graphql-client` to `blockchain-providers` * add `getUTxOSetFrom` function and improve TSDocs * fix build * refactor * update pnpm-lock * add mempool fetching * add unconfirmed query * add `streamUnspentBoxes` method * add tests * remove unused utxo set function * compact gql test vectors * Move IBlockchainProvider from common to blockchain-providers * add query by address * refactor * fetch from mempool only * add changeset and export from main package * add `createCustomOperation` method * refactor test * refactor ErgoGraphQLProvider createCustomOperation to createOperation
- Loading branch information
Showing
42 changed files
with
2,772 additions
and
3,876 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,7 @@ | ||
--- | ||
"@fleet-sdk/blockchain-providers": minor | ||
--- | ||
|
||
Introduce `@fleet-sdk/blockchain-providers` package | ||
|
||
- Add `ErgoGraphQLProvider` provider |
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,3 +1,4 @@ | ||
node_modules | ||
coverage | ||
dist | ||
dist | ||
mockedGraphQLResponses.json |
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,2 +1,5 @@ | ||
import _boxes from "./mockedGraphQLBoxResponses.json"; | ||
|
||
export * from "./mockedBoxes"; | ||
export * from "./mockedTransactions"; | ||
export const mockedGraphQLBoxes = _boxes; |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# @fleet-sdk/blockchain-providers [![License](https://badgen.net/github/license/fleet-sdk/fleet/)](https://github.com/fleet-sdk/fleet/blob/master/LICENSE) [![npm](https://badgen.net/npm/v/@fleet-sdk/blockchain-providers)](https://www.npmjs.com/package/@fleet-sdk/blockchain-providers) | ||
|
||
Blockchain data client for ergo-graphql. | ||
|
||
## Build | ||
|
||
```sh | ||
pnpm --filter blockchain-providers build | ||
``` | ||
|
||
## Test | ||
|
||
```sh | ||
pnpm test:unit blockchain-providers | ||
``` |
4 changes: 2 additions & 2 deletions
4
packages/graphql-client/package.json → packages/blockchain-providers/package.json
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.