-
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: organise imports and exports in layer-2 module (#522)
Co-authored-by: Tuditi <[email protected]>
- Loading branch information
1 parent
ce8e44f
commit 33d5e13
Showing
31 changed files
with
52 additions
and
64 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/shared/src/lib/core/activity/utils/helper/getLayer2ActivityInformation.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
2 changes: 1 addition & 1 deletion
2
packages/shared/src/lib/core/activity/utils/helper/getSubjectFromActivity.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
2 changes: 1 addition & 1 deletion
2
.../layer-2/utils/buildEvmTransactionData.ts → ...ayer-2/actions/buildEvmTransactionData.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.
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
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.
2 changes: 1 addition & 1 deletion
2
packages/shared/src/lib/core/layer-2/actions/getGasFeesForLayer1ToLayer2Transaction.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
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
export * from './buildEvmTransactionData' | ||
export * from './buildUnwrapAssetParameters' | ||
export * from './buildUnwrapAssetTargetAddress' | ||
export * from './estimateGasForLayer1ToLayer2Transaction' | ||
export * from './fetchSelectedAccountLayer2Balance' | ||
export * from './generateAndStoreEvmAddressForAccount' | ||
export * from './getDestinationNetworkFromAddress' | ||
export * from './getGasFeesForLayer1ToLayer2Transaction' | ||
export * from './getGasPriceInWei' | ||
export * from './getIscpTransferSmartContractData' | ||
export * from './getLayer2MetadataForTransfer' | ||
export * from './getLayer2NetworkFromAddress' | ||
export * from './pollLayer2Tokens' | ||
export * from './signEvmTransactionWithStronghold' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
packages/shared/src/lib/core/layer-2/helpers/encodeAssetAllowance.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
2 changes: 1 addition & 1 deletion
2
...core/layer-2/utils/evmAddressToAgentID.ts → ...re/layer-2/helpers/evmAddressToAgentId.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.
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
export * from './buildAssetAllowance' | ||
export * from './calculateGasFeeInGlow' | ||
export * from './encodeAddress' | ||
export * from './encodeAssetAllowance' | ||
export * from './encodeSmartContractParameters' | ||
export * from './evmAddressToAgentId' | ||
export * from './getAgentBalanceParameters' | ||
export * from './getEvmTransactionValueFromAmount' | ||
export * from './getSmartContractHexName' | ||
export * from './specialNativeTokenAmountEncoding' |
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
2 changes: 1 addition & 1 deletion
2
packages/shared/src/lib/core/layer-2/utils/calculateEstimatedGasFeeFromTransactionData.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
2 changes: 1 addition & 1 deletion
2
packages/shared/src/lib/core/layer-2/utils/calculateMaxGasFeeFromTransactionData.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
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,23 +1,9 @@ | ||
export * from './buildAssetAllowance' | ||
export * from './buildEvmTransactionData' | ||
export * from './buildUnwrapAssetParameters' | ||
export * from './buildUnwrapAssetTargetAddress' | ||
export * from './calculateEstimatedGasFeeFromTransactionData' | ||
export * from './calculateGasFeeInGlow' | ||
export * from './calculateMaxGasFeeFromTransactionData' | ||
export * from './evmAddressToAgentID' | ||
export * from './getAbiForContractType' | ||
export * from './getAgentBalanceParameters' | ||
export * from './getAmountFromEvmTransactionValue' | ||
export * from './getDestinationNetworkFromAddress' | ||
export * from './getErc20TokenMetadata' | ||
export * from './getErc20TransferSmartContractData' | ||
export * from './getEvmTransactionValueFromAmount' | ||
export * from './getIscpTransferSmartContractData' | ||
export * from './getLayer2NetworkFromAddress' | ||
export * from './getSmartContractHexName' | ||
export * from './parseLayer2Metadata' | ||
export * from './parseLayer2MetadataForTransfer' | ||
export * from './prepareEvmTransaction' | ||
export * from './signEvmTransactionWithStronghold' | ||
export * from './specialNativeTokenAmountEncoding' |
5 changes: 2 additions & 3 deletions
5
packages/shared/src/lib/core/layer-2/utils/prepareEvmTransaction.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
7 changes: 1 addition & 6 deletions
7
packages/shared/src/lib/core/network/classes/iscp-chain.class.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
14 changes: 7 additions & 7 deletions
14
...ges/shared/src/lib/core/wallet/actions/send/createEvmTransactionFromSendFlowParameters.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
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
15 changes: 4 additions & 11 deletions
15
packages/shared/src/lib/core/wallet/actions/unwrapStardustAsset.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