-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/parse-deeplink-url-at-start
- Loading branch information
Showing
24 changed files
with
286 additions
and
344 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "desktop", | ||
"productName": "Firefly Shimmer", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "Official wallet application of Shimmer", | ||
"main": "public/build/main.js", | ||
"repository": "[email protected]:iotaledger/firefly.git", | ||
|
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/lib/contexts/settings/constants/faq-url.constant.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const FAQ_URL = 'https://wiki.iota.org/use/wallets/firefly/faq-and-troubleshooting' | ||
export const FAQ_URL = 'https://firefly.iota.org/faq/' |
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
40 changes: 22 additions & 18 deletions
40
packages/shared/lib/core/layer-2/tests/parseLayer2MetadataForTransfer.test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,66 @@ | ||
import { Converter } from '@iota/util.js' | ||
import { parseLayer2MetadataForTransferV2 } from '../utils/parseLayer2MetadataForTransferV2' | ||
import { parseLayer2MetadataForTransfer } from '../utils/parseLayer2MetadataForTransfer' | ||
|
||
describe('Function: parseLayer2MetadataForTransferV2.ts', () => { | ||
describe('Function: parseLayer2MetadataForTransfer.ts', () => { | ||
it('should correctly parse metadata with base token', () => { | ||
const metadata = '0x00000000025e4b3ca1e3f423a0c21e0101611503807d707f59f1345e1063dbb64f2495d1491283a080c0843d' | ||
const metadata = | ||
'0x00025e4b3ca1e3f423914e010161350342f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f8080d293ad03' | ||
const metadataByteArray = Converter.hexToBytes(metadata) | ||
const expected = { | ||
senderContract: '0x0', | ||
targetContract: 'Accounts', | ||
contractFunction: 'transferAllowanceTo', | ||
gasBudget: '500000', | ||
ethereumAddress: '0x807d707f59f1345e1063dbb64f2495d1491283a0', | ||
baseTokens: '1000000', | ||
gasBudget: '10001', | ||
ethereumAddress: | ||
'0x42f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f', | ||
baseTokens: '900000000', | ||
nativeTokens: [], | ||
nfts: [], | ||
} | ||
const parsedMetadata = parseLayer2MetadataForTransferV2(metadataByteArray) | ||
const parsedMetadata = parseLayer2MetadataForTransfer(metadataByteArray) | ||
expect(parsedMetadata).toEqual(expected) | ||
}) | ||
|
||
it('should correctly parse metadata with native tokens', () => { | ||
const metadata = | ||
'0x00000000025e4b3ca1e3f423a0c21e01016115038cc8112290f8c350a60e1afdb8379c686e2a5bb3400108fcccc313acc182fc2c647dc98864062b163a8ee254231d7f029dc6be3a2de52e01000000000132' | ||
'0x00025e4b3ca1e3f423914e010161350342f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f4001086ac702fcfdc37b437e7ebb7a87d8acfb875be6b1ae3823bc61aa7896b852a6d5010000000001fa' | ||
const metadataByteArray = Converter.hexToBytes(metadata) | ||
const expected = { | ||
senderContract: '0x0', | ||
targetContract: 'Accounts', | ||
contractFunction: 'transferAllowanceTo', | ||
gasBudget: '500000', | ||
ethereumAddress: '0x8cc8112290f8c350a60e1afdb8379c686e2a5bb3', | ||
gasBudget: '10001', | ||
ethereumAddress: | ||
'0x42f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f', | ||
baseTokens: '0', | ||
nativeTokens: [ | ||
{ | ||
amount: '50', | ||
ID: ['0x08fcccc313acc182fc2c647dc98864062b163a8ee254231d7f029dc6be3a2de52e0100000000'], | ||
amount: '250', | ||
ID: ['0x086ac702fcfdc37b437e7ebb7a87d8acfb875be6b1ae3823bc61aa7896b852a6d50100000000'], | ||
}, | ||
], | ||
nfts: [], | ||
} | ||
const parsedMetadata = parseLayer2MetadataForTransferV2(metadataByteArray) | ||
const parsedMetadata = parseLayer2MetadataForTransfer(metadataByteArray) | ||
expect(parsedMetadata).toEqual(expected) | ||
}) | ||
|
||
it('should correctly parse metadata with nfts', () => { | ||
const metadata = | ||
'0x00000000025e4b3ca1e3f423a0c21e0101611503cbcd6d8659ed1998a452335ae53904dc0af1c99b200166b71141974aa368c9152a24d631494b46172ba05dd998eef553e7fa1218b704' | ||
'0x00025e4b3ca1e3f423e9cd01010161350342f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f2001bf5b7cd4e8ac582e246c25b6a89b4ab4ef0646d3291aa03d9a5313154b714a06' | ||
const metadataByteArray = Converter.hexToBytes(metadata) | ||
const expected = { | ||
senderContract: '0x0', | ||
targetContract: 'Accounts', | ||
contractFunction: 'transferAllowanceTo', | ||
gasBudget: '500000', | ||
ethereumAddress: '0xcbcd6d8659ed1998a452335ae53904dc0af1c99b', | ||
gasBudget: '26345', | ||
ethereumAddress: | ||
'0x42f7da9bdb55b3ec87e5ac1a1e6d88e16768663fde5eca3429eb6f579cc538acb82a77d6f89dae4611b81eac279fbf96d322001f', | ||
baseTokens: '0', | ||
nativeTokens: [], | ||
nfts: ['0x66b71141974aa368c9152a24d631494b46172ba05dd998eef553e7fa1218b704'], | ||
nfts: ['0xbf5b7cd4e8ac582e246c25b6a89b4ab4ef0646d3291aa03d9a5313154b714a06'], | ||
} | ||
const parsedMetadata = parseLayer2MetadataForTransferV2(metadataByteArray) | ||
const parsedMetadata = parseLayer2MetadataForTransfer(metadataByteArray) | ||
expect(parsedMetadata).toEqual(expected) | ||
}) | ||
}) |
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.