-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transactions interpretation utils #38
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
798c0be
Merge pull request #17 from multiversx/development
CiprianDraghici 9f66cbb
Added transactions utils
razvantomegea 4e491dd
Added store and tests
razvantomegea 2989894
added services and apiCalls
razvantomegea 2f46a5c
Added tests and refactoring
razvantomegea 01caef8
Merge branch 'refs/heads/development' into rt/feature/transactions
razvantomegea f744464
Removed unused code
razvantomegea f2cb8f9
fix
razvantomegea 51bdb7b
Updated
razvantomegea 26c3c9f
Removed endpoints
razvantomegea 590c727
Added getTransactionByHash.ts
razvantomegea 9d77761
Added getTransactionsByHashes.ts
razvantomegea ed513b3
Lint, test, and build fixes
razvantomegea 293ca88
refactor
razvantomegea 7d7723d
refactor
razvantomegea d5d96f2
CHANGELOG.md
razvantomegea 025f6e5
pre-merge-unit-tests.yml
razvantomegea ef82ddf
Fix config 1
arhtudormorar da7adaa
Fix config 2
arhtudormorar 4d53f81
Fix config 3
arhtudormorar 13eaebd
Work on custom providers
arhtudormorar bcfa723
Code compiling
arhtudormorar d1b1d93
Improve custom providers
arhtudormorar 1966b1b
Call with config
arhtudormorar ed1ea42
Project building
arhtudormorar 533b3f3
Merge remote-tracking branch 'refs/remotes/origin/ag/feature/create-p…
razvantomegea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,40 @@ | ||
name: "Jest Unit Tests" | ||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'src/**' | ||
- '**.js' | ||
- '**.ts' | ||
- '**.json' | ||
repository_dispatch: | ||
types: run-unit-tests | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run-unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
if: ${{ !github.event.pull_request.draft }} | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Setup yarn | ||
run: npm install -g yarn | ||
- name: Clean up | ||
run: | | ||
rm -rf node_modules build | ||
- name: Install Dependencies | ||
run: yarn install | ||
- name: Build | ||
run: yarn build | ||
- name: Run unit tests | ||
run: yarn test --silent |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './configuration'; | ||
export * from './endpoints'; | ||
export * from './transactions'; |
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,2 @@ | ||
export * from './getTransactionByHash'; | ||
export * from './getTransactionsByHashes'; |
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,8 +1,9 @@ | ||
export * from './network.constants'; | ||
export * from './placeholders.constants'; | ||
export * from './storage.constants'; | ||
export * from './window.constants'; | ||
export * from './browser.constants'; | ||
export * from './errorMessages.constants'; | ||
export * from './mvx.constants'; | ||
export * from './ledger.constants'; | ||
export * from './network.constants'; | ||
export * from './placeholders.constants'; | ||
export * from './storage.constants'; | ||
export * from './transactions.constants'; | ||
export * from './window.constants'; |
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,14 +1,7 @@ | ||
export const GAS_PRICE_MODIFIER = 0.01; | ||
export const GAS_PER_DATA_BYTE = 1500; | ||
export const GAS_LIMIT = 50000; | ||
/** | ||
* Extra gas limit for guarded transactions | ||
*/ | ||
export const EXTRA_GAS_LIMIT_GUARDED_TX = 50000; | ||
export const GAS_PRICE = 1000000000; | ||
export const ALL_SHARDS_SHARD_ID = 4294967280; | ||
export const CROSS_SHARD_ROUNDS = 5; | ||
export const DECIMALS = 18; | ||
export const DIGITS = 4; | ||
export const VERSION = 1; | ||
export const LEDGER_CONTRACT_DATA_ENABLED_VALUE = 1; | ||
export const METACHAIN_SHARD_ID = 4294967295; | ||
export const ALL_SHARDS_SHARD_ID = 4294967280; | ||
export const VERSION = 1; |
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,12 @@ | ||
export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast'; | ||
export const AVERAGE_TX_DURATION_MS = 6000; | ||
export const CROSS_SHARD_ROUNDS = 5; | ||
export const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec | ||
export const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min | ||
export const CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION = 20000; | ||
export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast'; | ||
export const EXTRA_GAS_LIMIT_GUARDED_TX = 50_000; | ||
export const GAS_LIMIT = 50_000; | ||
export const GAS_PER_DATA_BYTE = 1_500; | ||
export const GAS_PRICE = 1_000_000_000; | ||
export const GAS_PRICE_MODIFIER = 0.01; | ||
export const REFUNDED_GAS = 'refundedGas'; | ||
export const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min | ||
export const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec | ||
export const WALLET_SIGN_SESSION = 'signSession'; |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this?