-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update docs * Restore code removed * Fix linter
- Loading branch information
1 parent
e032702
commit 0e0c43a
Showing
49 changed files
with
2,074 additions
and
1,322 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,9 +1,14 @@ | ||
// Import the Client class from '@xchainjs/xchain-evm' module | ||
import { Client as XchainEvmClient } from '@xchainjs/xchain-evm' | ||
|
||
// Import defaultArbParams constant from './const' file | ||
import { defaultArbParams } from './const' | ||
|
||
// Create a class called Client that extends the XchainEvmClient class | ||
export class Client extends XchainEvmClient { | ||
// Constructor function that takes an optional config parameter, defaulting to defaultArbParams | ||
constructor(config = defaultArbParams) { | ||
// Call the constructor of the parent class (XchainEvmClient) with the provided config | ||
super(config) | ||
} | ||
} |
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,2 +1,5 @@ | ||
// Export all elements from the 'client' module | ||
export * from './client' | ||
|
||
// Export all elements from the 'const' module | ||
export * from './const' |
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,17 @@ | ||
// Import the Client class from '@xchainjs/xchain-evm' module | ||
import { Client as XchainEvmClient } from '@xchainjs/xchain-evm' | ||
|
||
// Import defaultAvaxParams constant from './const' file | ||
import { defaultAvaxParams } from './const' | ||
|
||
// Define and export the Client class as the default export | ||
export default class Client extends XchainEvmClient { | ||
// Constructor function that takes an optional config parameter, defaulting to defaultAvaxParams | ||
constructor(config = defaultAvaxParams) { | ||
// Call the constructor of the parent class (XchainEvmClient) with the provided config | ||
super(config) | ||
} | ||
} | ||
|
||
// Export the Client class explicitly (not as a default export) | ||
export { Client } |
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,2 +1,5 @@ | ||
// Export all elements from the 'client' module | ||
export * from './client' | ||
|
||
// Export all elements from the 'const' module | ||
export * from './const' |
Oops, something went wrong.