-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add index files with exports into each feature directory #1
- Loading branch information
Showing
25 changed files
with
55 additions
and
66 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,5 @@ | ||
--- | ||
"niljs": patch | ||
--- | ||
|
||
Added index files inside feature directories to make root index with package exports clean |
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,4 @@ | ||
export * from "./WalletClient.js"; | ||
export * from "./PublicClient.js"; | ||
export * from "./types/ClientConfigs.js"; | ||
export * from "./types/ISendTransactionOptions.js"; |
2 changes: 1 addition & 1 deletion
2
src/types/ClientConfigs.ts → src/clients/types/ClientConfigs.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
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,4 @@ | ||
export * from "./fromHex.js"; | ||
export * from "./toHex.js"; | ||
export * from "./fromSsz.js"; | ||
export * from "./toSsz.js"; |
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,22 +1,5 @@ | ||
export { PublicClient } from "./clients/PublicClient.js"; | ||
export { WalletClient } from "./clients/WalletClient.js"; | ||
export type { | ||
IPublicClientConfig, | ||
IWalletClientConfig, | ||
} from "./types/ClientConfigs.ts"; | ||
export { Serializer } from "./encoding/Serializer.js"; | ||
export { LocalKeySigner } from "./signers/LocalKeySigner.js"; | ||
export * from "./utils/hex.js"; | ||
export * from "./utils/transaction.js"; | ||
|
||
// what is format of our transaction? | ||
// first, serialize body of tx | ||
// than sign it | ||
// than serialize signature+serizalized body | ||
// than send it to the network as hex data | ||
|
||
// we also need a schema for ssz | ||
|
||
// start testing with local node | ||
// we will have something public in the future. | ||
// or we can mock api in the future. | ||
export * from "./clients/index.js"; | ||
export * from "./signers/index.js"; | ||
export * from "./encoding/index.js"; | ||
export * from "./types/index.js"; | ||
export * from "./utils/index.js"; |
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,7 @@ | ||
export * from "./LocalKeySigner.js"; | ||
export * from "./verifySignature.js"; | ||
export * from "./getPublicKey.js"; | ||
export * from "./types/ILocalKeySignerConfig.js"; | ||
export * from "./types/IPrivateKey.js"; | ||
export * from "./types/ISigner.js"; | ||
export * from "./types/ISignature.js"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,6 @@ | ||
export * from "../clients/types/ClientConfigs.js"; | ||
export * from "./ITransaction.js"; | ||
export * from "../signers/types/ISigner.js"; | ||
export * from "../signers/types/IPrivateKey.js"; | ||
export * from "./IBlock.js"; | ||
export * from "../signers/types/ILocalKeySignerConfig.js"; |
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,3 @@ | ||
export * from "./assert.js"; | ||
export * from "./hex.js"; | ||
export * from "./transaction.js"; |
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,5 @@ | ||
const defaultRpcEndpoint = "http://127.0.0.1:8529"; | ||
|
||
const endpoint = process.env.RPC_ENDPOINT || defaultRpcEndpoint; | ||
const endpoint = process.env.RPC_ENDPOINT ?? defaultRpcEndpoint; | ||
|
||
export { endpoint }; |
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