-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hancheng/split-application-wallet-entry' into feat-user…
…-guide * hancheng/split-application-wallet-entry: (63 commits) chore: ui style fix: ui style chore: add comment fix: style fix: dialog title text center feat: add new theme color (#6094) refactor: move queryPersonaByProfile refactor: rename a field fix: little fix chore: persona connect chore: cleanup usage of toText chore: better type of signWithPersona refactor: post db types (#6172) fix: import make styles path in theme package (#6174) [Release] New release 2.7.0 (minor) (#6142) chore: update event chore(eslint): prefer object-shorthand (#6171) feat: recommend feature app fix: typo (#6173) refactor: xdai features EIP1559 (#6170) ...
- Loading branch information
Showing
457 changed files
with
8,002 additions
and
5,271 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,6 +239,7 @@ | |
"titlebar", | ||
"tokelau", | ||
"tokenid", | ||
"topbar", | ||
"traderjoe", | ||
"transak", | ||
"trisolaris", | ||
|
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,36 @@ | ||
/** @internal */ | ||
export function hex2buffer(hexString: string, padded?: boolean) { | ||
if (hexString.length % 2) { | ||
hexString = '0' + hexString | ||
} | ||
let res = new Uint8Array(hexString.length / 2) | ||
// eslint-disable-next-line no-plusplus | ||
for (let i = 0; i < hexString.length; i++) { | ||
// eslint-disable-next-line no-plusplus | ||
const c = hexString.slice(i, ++i + 1) | ||
res[(i - 1) / 2] = Number.parseInt(c, 16) | ||
} | ||
// BN padding | ||
if (padded) { | ||
let len = res.length | ||
len = len > 32 ? (len > 48 ? 66 : 48) : 32 | ||
if (res.length < len) { | ||
res = concat(new Uint8Array(len - res.length), res) | ||
} | ||
} | ||
return res | ||
} | ||
|
||
/** @internal */ | ||
function concat(...buf: (Uint8Array | number[])[]) { | ||
const res = new Uint8Array(buf.map((item) => item.length).reduce((prev, cur) => prev + cur)) | ||
let offset = 0 | ||
buf.forEach((item, index) => { | ||
// eslint-disable-next-line no-plusplus | ||
for (let i = 0; i < item.length; i++) { | ||
res[offset + i] = item[i] | ||
} | ||
offset += item.length | ||
}) | ||
return res | ||
} |
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.