Skip to content
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

Nexus #107

Open
wants to merge 259 commits into
base: main
Choose a base branch
from
Open

Nexus #107

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
cb0ad4d
Fix token field reset on chain change
jmrossy Oct 31, 2023
9e6733b
Update hardcoded gas
nambrot Oct 31, 2023
eafb91d
Only use micro unit for cosmos tokens
jmrossy Oct 31, 2023
2be5d38
Charge 1 untrn
nambrot Oct 31, 2023
fb13d41
Update to TIA
nambrot Oct 31, 2023
094720a
Add Celestia logo
nambrot Oct 31, 2023
fdd70c9
Add logo
nambrot Nov 1, 2023
5e31ef1
Fix regex breaking url format
jmrossy Nov 1, 2023
9f9a6f7
Disable hyp explorer link
jmrossy Nov 1, 2023
62bcd15
Add Manta logo
nambrot Nov 1, 2023
ca16371
Mobile responsiveness improvements
jmrossy Nov 1, 2023
61390ed
Implement new tx modal design
jmrossy Nov 1, 2023
e6471e3
Arb
nambrot Nov 3, 2023
50afa2c
Tia.n
nambrot Nov 3, 2023
0e119d6
Merge pull request #70 from hyperlane-xyz/nambrot/nexus-arb
nambrot Nov 4, 2023
b920459
Add nexus guide
nambrot Nov 4, 2023
6b38ea6
Escape
nambrot Nov 4, 2023
3db1bba
Merge pull request #71 from hyperlane-xyz/nambrot/add-nexus-guide
nambrot Nov 4, 2023
e7c4189
Default to Arbitrum
nambrot Nov 4, 2023
5568a5c
Update EvmWalletContext.tsx
nambrot Nov 4, 2023
2feaef8
Merge pull request #72 from hyperlane-xyz/nambrot-patch-1
nambrot Nov 4, 2023
cec5a5a
Increase cosmos IGP quote and use it in transfer creation
jmrossy Nov 7, 2023
7f81e71
Adjust for IGP payments in TIA
nambrot Nov 7, 2023
4fb3079
Merge pull request #73 from hyperlane-xyz/cosmos-igp
nambrot Nov 7, 2023
dad184f
Quick friendlier IGP message
tkporter Nov 8, 2023
a58d506
nit
tkporter Nov 8, 2023
8ce101d
nit
tkporter Nov 8, 2023
db6d750
fix build
tkporter Nov 8, 2023
f65d05c
Merge pull request #74 from hyperlane-xyz/trevor/quick-igp-friendlier…
tkporter Nov 8, 2023
ee74c95
IBC Route support (#69)
jmrossy Nov 8, 2023
f7712bd
Disable IBC to Warp routes
jmrossy Nov 8, 2023
4bd1cbf
maintenance
nambrot Nov 8, 2023
3925cf1
Revert "maintenance"
nambrot Nov 8, 2023
476a04f
Re-enable ibc to warp routes
jmrossy Nov 9, 2023
b1fd854
Improve gas balance validation
jmrossy Nov 9, 2023
6781e7b
Merge branch 'main' into neutron
jmrossy Nov 9, 2023
88e8d99
Enable auto token selection
jmrossy Nov 9, 2023
6b39c0e
Check user's IGP payment token
tkporter Nov 10, 2023
6972918
Merge pull request #78 from hyperlane-xyz/trevor/fix-igp-quote-nov-10
tkporter Nov 10, 2023
081497a
Merge branch 'main' into neutron
jmrossy Nov 13, 2023
c7132f5
Merge branch 'main' into neutron
jmrossy Nov 13, 2023
60ab011
Merge branch 'main' into neutron
jmrossy Nov 14, 2023
17137ab
Update _document.tsx
Skunkchain Nov 14, 2023
4f10041
Merge branch 'main' into neutron
jmrossy Nov 21, 2023
8161f9c
Merge branch 'main' into neutron
jmrossy Nov 21, 2023
84dd0b4
Self button fix (#87)
jmrossy Nov 21, 2023
2dde5d9
Ignore addresses
tkporter Dec 10, 2023
5aa0676
Disable ledger connector
jmrossy Dec 14, 2023
27bd436
Merge branch 'neutron' of github.com:hyperlane-xyz/hyperlane-warp-ui-…
jmrossy Dec 14, 2023
c9a86bd
Viction and Eclipsefi (#95)
jmrossy Dec 22, 2023
c1b5aa2
Merge branch 'main' into main-to-neutron
jmrossy Dec 22, 2023
0794580
Merge pull request #96 from hyperlane-xyz/main-to-neutron
jmrossy Dec 22, 2023
c1dbb3d
Update TipCard.tsx
avious00 Dec 22, 2023
e82696e
removed chevron
avious00 Dec 22, 2023
11d5c38
shortened copy
avious00 Dec 22, 2023
f23353a
Update TipCard.tsx
nambrot Dec 22, 2023
d4c4c93
Change logo for ECLIP
nambrot Dec 22, 2023
b11a595
Merge pull request #97 from hyperlane-xyz/avious00-tipcard-tia
nambrot Dec 22, 2023
2cab63e
Update TipCard.tsx
nambrot Dec 28, 2023
2fc87ca
Revert "Update TipCard.tsx"
nambrot Dec 28, 2023
73b9c2b
Revert "Ignore addresses"
jmrossy Jan 3, 2024
8893bd9
Merge branch 'main' into main-to-neutron
jmrossy Jan 3, 2024
fcce8bc
Add blacklisted addresses
jmrossy Jan 3, 2024
9e732c2
Format tip card
jmrossy Jan 3, 2024
7066aaf
Merge pull request #102 from hyperlane-xyz/main-to-neutron
jmrossy Jan 3, 2024
49928fd
Merge branch 'main' into main-to-neutron
jmrossy Jan 5, 2024
23811bb
Merge pull request #104 from hyperlane-xyz/main-to-neutron
jmrossy Jan 5, 2024
0d92435
Fix igp quotes for ibc-based routes
jmrossy Jan 5, 2024
3f45712
Merge pull request #105 from hyperlane-xyz/two-hop-igp-fix
jmrossy Jan 5, 2024
4dadb2f
Update tip card
jmrossy Jan 9, 2024
0add7ae
Merge pull request #112 from hyperlane-xyz/rossy/trigger-nexus-deploy
jmrossy Jan 9, 2024
cc06c51
Merge branch 'main' into main-to-nexus
jmrossy Jan 16, 2024
2f9e14a
Merge pull request #118 from hyperlane-xyz/main-to-nexus
jmrossy Jan 16, 2024
101a4ae
Update cosmjs injective patch to avoid sdk dep
jmrossy Jan 22, 2024
242963c
Merge branch 'main' into main-to-nexus
jmrossy Jan 23, 2024
f8e93ef
Merge pull request #122 from hyperlane-xyz/main-to-nexus
jmrossy Jan 23, 2024
0fe0ffd
Fixes for patch and logging
jmrossy Jan 23, 2024
b3ea1cb
Merge branch 'main' into injective-testnet
jmrossy Jan 23, 2024
f9736f1
Finish minor refactoring for injective support
jmrossy Jan 24, 2024
cf94b87
Use mainnet configs
jmrossy Jan 25, 2024
6a2f6da
Merge branch 'injective-testnet' into injective-to-nexus
jmrossy Jan 26, 2024
abef2d0
Update static inj igp quote
jmrossy Jan 26, 2024
b7fff75
Merge branch 'nexus' into injective-to-nexus
jmrossy Jan 26, 2024
3f36b63
Fix Celestia chain metadata
jmrossy Jan 26, 2024
080ecfd
Define WarpCore spec
jmrossy Jan 28, 2024
f0f7c80
Handle remote router decimal fetching failures in route traversal
jmrossy Jan 29, 2024
fdfad6f
Minor spec tweaks
jmrossy Jan 29, 2024
5b8b432
Add static IGP quote for celestia
jmrossy Jan 29, 2024
4571e5e
Merge branch 'main' into injective-to-nexus
jmrossy Jan 29, 2024
44d5bde
Define token config for inEVM
jmrossy Jan 30, 2024
408ca29
Replace favicon
jmrossy Feb 1, 2024
bbbc645
Collapse route info into Token class
jmrossy Feb 5, 2024
1a9283a
Update inEVM logo
jmrossy Feb 8, 2024
8def680
Add USDC and USDT route
jmrossy Feb 7, 2024
f580679
Merge branch 'main' into warp-core
jmrossy Feb 9, 2024
0db8a6d
Implement Token and TokenAmount classes
jmrossy Feb 9, 2024
19462b2
Start WarpCore implementation
jmrossy Feb 10, 2024
c650553
Implement remaining WarpCore methods
jmrossy Feb 13, 2024
2842a8d
Start replacing internals with WarpCore
jmrossy Feb 20, 2024
b7e6ea3
More progress on WarpCore migration
jmrossy Feb 22, 2024
69a8a03
Finish WarpCore migration
jmrossy Feb 22, 2024
f8220cd
Fixes for balance checking and token selection
jmrossy Feb 22, 2024
90d885e
Use tokenIndex in form values due to circular ref
jmrossy Feb 22, 2024
7a033c7
Merge branch 'warp-core' into nexus-warp-core
jmrossy Feb 23, 2024
80c2bb2
Fixes from merge conflicts
jmrossy Feb 23, 2024
315c6b8
Clear old tokens
jmrossy Feb 23, 2024
5f4489c
Configure warp tokens
jmrossy Feb 24, 2024
ac151fd
Updates for new Token connection shape
jmrossy Feb 26, 2024
aebb353
Merge branch 'warp-core' into nexus-warp-core
jmrossy Feb 26, 2024
cbf6547
Form bug fixes
jmrossy Feb 26, 2024
c9e4a58
Finish token definitions
jmrossy Feb 26, 2024
15a7361
Form bug fixes
jmrossy Feb 26, 2024
6eeb016
Merge branch 'nexus' into injective-to-nexus
jmrossy Feb 26, 2024
7d878b4
Merge pull request #126 from hyperlane-xyz/injective-to-nexus
jmrossy Feb 27, 2024
7ee046b
Update to 3.8.0-beta0
jmrossy Feb 27, 2024
395579e
Merge branch 'warp-core' into nexus-warp-core
jmrossy Feb 27, 2024
b686a19
Run prettier
jmrossy Feb 27, 2024
3e831ec
Run prettier
jmrossy Feb 27, 2024
720bc6c
Fix jest CI failure
jmrossy Feb 27, 2024
8b800e6
Merge branch 'warp-core' into nexus-warp-core
jmrossy Feb 27, 2024
6876460
Merge branch 'nexus' into nexus-warp-core
jmrossy Feb 27, 2024
488d4d9
Add configs for injective routes
jmrossy Feb 27, 2024
86e7b30
Migrate viction routes to warp-core
jmrossy Feb 28, 2024
43a24d6
Merge branch 'main' into nexus-remove-snap
jmrossy Mar 8, 2024
632bb28
Merge pull request #143 from hyperlane-xyz/nexus-remove-snap
jmrossy Mar 8, 2024
6e9d88e
Tweak sentry filters
jmrossy Mar 9, 2024
49448e3
Merge branch 'nexus' of github.com:hyperlane-xyz/hyperlane-warp-ui-te…
jmrossy Mar 9, 2024
b61a253
Merge branch 'main' into nexus-warp-core
jmrossy Mar 13, 2024
f49657f
Merge branch 'nexus' into nexus-warp-core
jmrossy Mar 13, 2024
1b8e060
Configure celestia gas price
jmrossy Mar 13, 2024
46bad8f
Fix Eclip logo uri
jmrossy Mar 13, 2024
a7809bc
Merge pull request #136 from hyperlane-xyz/nexus-warp-core
jmrossy Mar 13, 2024
528fcf4
Disable viction routes
jmrossy Mar 13, 2024
544f2d9
Merge branch 'main' into nexus-msg-id
jmrossy Mar 15, 2024
fbf721a
Merge pull request #146 from hyperlane-xyz/nexus-msg-id
jmrossy Mar 15, 2024
5aef98a
Enable viction routes
jmrossy Mar 19, 2024
7b2e8d1
Merge branch 'main' into nexus
jmrossy Mar 26, 2024
f81dc5f
Merge branch 'main' into nexus
jmrossy Apr 1, 2024
3ec5c7a
Add usdc
tkporter Apr 12, 2024
7720dd1
change native token
tkporter Apr 15, 2024
28f5907
Hide tip box
jmrossy Apr 15, 2024
de11f85
Merge branch 'nexus' into trevor/ancient8-nexus
tkporter Apr 15, 2024
5229772
Merge pull request #154 from hyperlane-xyz/trevor/ancient8-nexus
tkporter Apr 15, 2024
2ed89bc
Reduce sentry sampling rate
jmrossy May 2, 2024
ae01b7b
twitter link from hyperlane_xyz to hyperlane
avious00 May 29, 2024
d16f8a3
Merge branch 'main' into nexus
jmrossy Jun 8, 2024
f742536
Define route whitelist
jmrossy Jun 8, 2024
966becb
Remove unneeded logo images
jmrossy Jun 8, 2024
83da5f9
Fixes for logo images
jmrossy Jun 12, 2024
634659b
Merge branch 'main' into main-to-nexus
jmrossy Jun 12, 2024
ec397e1
Lockdown image and style sources (#198)
jmrossy Jul 23, 2024
adcc11f
Resolve yarn conflicts
jmrossy Jul 23, 2024
262f440
Lockdown image and style sources (#198)
jmrossy Jun 8, 2024
791fb5b
Resolve yarn.lock conflicts
jmrossy Jul 23, 2024
2067fda
Merge pull request #199 from hyperlane-xyz/nexus-image-patch
jmrossy Jul 23, 2024
c1f87e0
Merge branch 'main' into main-to-nexus
jmrossy Aug 2, 2024
d61e37f
Create new Injective patch for CosmJs 0.32.4
jmrossy Aug 2, 2024
48bc71e
Fix missing const in celestia 2-hop route config and increase cosmos …
jmrossy Aug 2, 2024
b9050ff
Merge branch 'main' into main-to-nexus
jmrossy Aug 4, 2024
b09355a
Merge branch 'nexus' into main-to-nexus
jmrossy Aug 4, 2024
fdd2d00
Run prettier
jmrossy Aug 4, 2024
cd537bb
Increase cosmos gas prices
jmrossy Aug 5, 2024
5c1b4a0
Merge pull request #168 from hyperlane-xyz/main-to-nexus
jmrossy Aug 5, 2024
fe8c555
Merge branch 'main' of https://github.com/hyperlane-xyz/hyperlane-war…
ltyu Aug 22, 2024
33a1419
Merge pull request #220 from hyperlane-xyz/ltyu/main-to-nexus
ltyu Aug 23, 2024
1a5bcde
Merge branch 'main' into main-to-nexus
jmrossy Sep 18, 2024
e3bd86e
Merge branch 'main' into main-to-nexus
jmrossy Sep 18, 2024
77481dc
Remove non-hyperlane branding and add SVM routes
jmrossy Sep 18, 2024
4c6b3ca
Merge branch 'main' into main-to-nexus
jmrossy Sep 18, 2024
33a9f0e
Merge branch 'main' into nexus-svm-routes
jmrossy Sep 18, 2024
26b7860
Enable new svm routes
jmrossy Sep 18, 2024
0d2a300
Merge branch 'main' into main-to-nexus
jmrossy Sep 18, 2024
1794aad
Merge branch 'main' into nexus-svm-routes
jmrossy Sep 18, 2024
0153ba3
Disable SOL route
jmrossy Sep 18, 2024
a5f686b
Merge pull request #245 from hyperlane-xyz/main-to-nexus
cmcewen Sep 18, 2024
f7c30ec
Merge branch 'nexus' into nexus-svm-routes
jmrossy Sep 18, 2024
25d31d5
Merge pull request #247 from hyperlane-xyz/nexus-svm-routes
cmcewen Sep 18, 2024
34701fd
Trigger Build
cmcewen Sep 18, 2024
0393c3e
Enable SOL route
yorhodes Sep 18, 2024
9f4f701
Install beta release
yorhodes Sep 18, 2024
3f80b2f
Merge pull request #250 from hyperlane-xyz/nexus-sol
daniel-savu Sep 19, 2024
3d9ac4a
fix: temporarily disable a few routes
cmcewen Sep 19, 2024
156fb1b
fix: reenable sol route
cmcewen Sep 19, 2024
f1f76b1
Merge pull request #251 from hyperlane-xyz/cmcewen/sol-route
cmcewen Sep 19, 2024
fdc08c0
fix: update registry
cmcewen Sep 19, 2024
f7eee12
feat: update to registry v4.3.5 (#253)
paulbalaji Sep 19, 2024
6fbde56
disable USDC eclipse/solana/eth
paulbalaji Sep 19, 2024
201eb06
update to registry v4.3.6
paulbalaji Sep 19, 2024
5a6227f
enable tETH eclipse<>ethereum
paulbalaji Sep 19, 2024
b2458d0
chore: enable tETH eclipse<>ethereum
paulbalaji Sep 19, 2024
77bf07e
Merge branch 'nexus' into paulbalaji-patch-1
paulbalaji Sep 19, 2024
0524946
fix: disable USDC eclipse/solana/eth
paulbalaji Sep 19, 2024
c640fa5
chore: enable USDC eclipse/solana/eth (#257)
paulbalaji Sep 19, 2024
640483b
temporarily disable USDC sealevel
tkporter Sep 20, 2024
3dfadef
Merge pull request #258 from hyperlane-xyz/trevor/disable-solana-usdc
tkporter Sep 20, 2024
ea3dd77
feat: add back solana USDC
tkporter Sep 20, 2024
7a15c16
Merge pull request #259 from hyperlane-xyz/trevor/enable-solana-usdc
tkporter Sep 20, 2024
e333b53
Merge branch 'main' into main-to-nexus
jmrossy Sep 20, 2024
d6db09e
Merge pull request #261 from hyperlane-xyz/main-to-nexus
jmrossy Sep 20, 2024
bd5080a
Rollback to 5.2.1-beta.0
jmrossy Sep 20, 2024
14cdbfc
Merge pull request #265 from hyperlane-xyz/nexus-5.2.1-beta.0
jmrossy Sep 20, 2024
5347ef9
Merge branch 'main' into main-to-nexus
jmrossy Sep 25, 2024
9ed4413
Merge pull request #268 from hyperlane-xyz/main-to-nexus
jmrossy Sep 25, 2024
ff2907f
Merge branch 'main' into main-to-nexus
jmrossy Sep 26, 2024
a90aa91
Restore icon colors to default
jmrossy Sep 26, 2024
49d9dff
Tweak header size
jmrossy Sep 26, 2024
0997db4
Merge branch 'rossy/more-theme-fixes' into main-to-nexus
jmrossy Sep 26, 2024
ba76d4b
Merge pull request #269 from hyperlane-xyz/main-to-nexus
jmrossy Sep 26, 2024
a1053fa
Merge branch 'main' into main-to-nexus
jmrossy Sep 27, 2024
572c58f
Merge pull request #275 from hyperlane-xyz/main-to-nexus
jmrossy Sep 27, 2024
1f47d5f
feat: add lumia warp route
cmcewen Oct 17, 2024
376856d
Rename classes prop to className
jmrossy Oct 16, 2024
9495c61
Merge pull request #295 from hyperlane-xyz/cmcewen/lumia
cmcewen Oct 17, 2024
87de68a
feat: add TIA and stTIA Stride warp routes
tkporter Oct 25, 2024
1b33541
Merge pull request #303 from hyperlane-xyz/trevor/add-tia-sttia-nexus
tkporter Oct 28, 2024
122424c
feat: eclipse batch 2
daniel-savu Nov 1, 2024
e4a40f6
bump registry
daniel-savu Nov 1, 2024
417cec3
fix: usdt route id
daniel-savu Nov 1, 2024
e166953
another fix
daniel-savu Nov 1, 2024
f18449b
Merge pull request #306 from hyperlane-xyz/dan/nexus-eclipse-2
daniel-savu Nov 1, 2024
cfd5fcd
feat: support native IBC transfers to/from Celestia for Stride/Eclips…
tkporter Nov 5, 2024
d59380d
Update src/consts/warpRoutes.ts
tkporter Nov 5, 2024
d3e8261
Merge pull request #309 from hyperlane-xyz/trevor/stride-tia-from-cel…
tkporter Nov 5, 2024
c93a3d9
feat: add weETHs
tkporter Nov 6, 2024
07fbbc8
Merge branch 'main' into main-to-nexus
jmrossy Nov 21, 2024
af45230
Fix issue from conflict with app name image
jmrossy Nov 21, 2024
dce296f
Merge pull request #336 from hyperlane-xyz/main-to-nexus
jmrossy Nov 25, 2024
9f5c286
feat: add ezSOL and apxETH
tkporter Nov 29, 2024
72e47f9
remove ezSOL
tkporter Nov 29, 2024
260f630
Merge pull request #342 from hyperlane-xyz/trevor/nexus-ezsol-apxeth
tkporter Dec 6, 2024
5fccfe3
Merge branch 'nexus' of github.com:hyperlane-xyz/hyperlane-warp-ui-te…
tkporter Dec 7, 2024
c61e77d
Merge pull request #312 from hyperlane-xyz/trevor/weETHs
tkporter Dec 7, 2024
b4ae220
feat: update registry version with new apxETH logo
tkporter Dec 10, 2024
8ad3b97
Merge pull request #348 from hyperlane-xyz/trevor/fix-apxeth-symbol
tkporter Dec 10, 2024
88835d4
feat: add ezSOL
tkporter Dec 13, 2024
1e78370
Merge pull request #354 from hyperlane-xyz/trevor/nexus-ezsol
tkporter Dec 13, 2024
dbc5173
feat: add uBTC route to nexus
xeno097 Dec 18, 2024
2b187b7
chore: removed console log
xeno097 Dec 18, 2024
3a35b2e
feat: add appchain base usdc route to nexus
xeno097 Dec 18, 2024
7e81281
chore: bump registry version
xeno097 Dec 18, 2024
c4ff07e
Merge pull request #357 from hyperlane-xyz/xeno/add-ubtc-route
xeno097 Dec 18, 2024
2eb03f0
Merge branch 'nexus' of github.com:hyperlane-xyz/hyperlane-warp-ui-te…
xeno097 Dec 19, 2024
e22081b
Merge pull request #358 from hyperlane-xyz/xeno/add-appchain-base-usd…
xeno097 Dec 19, 2024
bd3d33e
feat: added kySOL warp route to whitelist
xeno097 Dec 19, 2024
143a403
Merge pull request #359 from hyperlane-xyz/xeno/add-kySOL-warp-routes
xeno097 Dec 19, 2024
9fa8724
chore: Upgrade hyp packages to 8.0.0-beta.0
jmrossy Dec 27, 2024
d3d78c7
Merge pull request #362 from hyperlane-xyz/nexus-8.0.0-beta.0
jmrossy Dec 27, 2024
6f456e4
feat: allow RPC override for injective
tkporter Jan 7, 2025
5ef3acc
whoops
tkporter Jan 7, 2025
16681db
Merge pull request #369 from hyperlane-xyz/trevor/inj-rpcs
tkporter Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 180 additions & 0 deletions .yarn/patches/@cosmjs-cosmwasm-stargate-npm-0.32.4-f9dd51429c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
diff --git a/build/cosmwasmclient.js b/build/cosmwasmclient.js
index af8341db5333963a258b3476eb60690afca3473f..1fdb3081b454e5a69db7137f870f0f446f2cccf2 100644
--- a/build/cosmwasmclient.js
+++ b/build/cosmwasmclient.js
@@ -10,6 +10,112 @@ const utils_1 = require("@cosmjs/utils");
const abci_1 = require("cosmjs-types/cosmos/base/abci/v1beta1/abci");
const types_1 = require("cosmjs-types/cosmwasm/wasm/v1/types");
const modules_1 = require("./modules");
+
+/* Code copied in from injective SDK to avoid importing all 9Mb of the library */
+// node_modules/@injectivelabs/core-proto-ts/cjs/google/protobuf/any.js
+const minimal_1 = require("protobufjs/minimal");
+const Any = {
+ decode(input, length) {
+ const reader = input instanceof minimal_1.Reader ? input : minimal_1.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = { typeUrl: "", value: new Uint8Array(0) };
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+ message.typeUrl = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+ message.value = reader.bytes();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+ };
+ // node_modules/@injectivelabs/core-proto-ts/cjs/cosmos/auth/v1beta1/auth.js
+const BaseAccount = {
+ decode(input, length) {
+ const reader = input instanceof minimal_1.Reader ? input : minimal_1.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = { address: "", pubKey: undefined, accountNumber: "0", sequence: "0" };
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+ message.address = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+ message.pubKey = Any.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 24) {
+ break;
+ }
+ message.accountNumber = reader.uint64().toString();
+ continue;
+ case 4:
+ if (tag !== 32) {
+ break;
+ }
+ message.sequence = reader.uint64().toString();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+};
+// node_modules/@injectivelabs/core-proto-ts/cjs/injective/types/v1beta1/account.js
+const EthAccount = {
+ decode(input, length) {
+ const reader = input instanceof minimal_1.Reader ? input : minimal_1.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = { baseAccount: undefined, codeHash: new Uint8Array(0) };
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+ message.baseAccount = BaseAccount.decode(reader, reader.uint32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+ message.codeHash = reader.bytes();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+};
+
class CosmWasmClient {
/**
* Creates an instance by connecting to the given CometBFT RPC endpoint.
@@ -67,9 +173,28 @@ class CosmWasmClient {
const status = await this.forceGetCometClient().status();
return status.syncInfo.latestBlockHeight;
}
+ decodeInjectiveAccount(injAccount){
+ const account = EthAccount.decode(injAccount.value);
+ const baseAccount = account.baseAccount;
+ const pubKey = baseAccount.pubKey;
+ return {
+ address: baseAccount.address,
+ pubkey: pubKey
+ ? {
+ type: '/injective.crypto.v1beta1.ethsecp256k1.PubKey',
+ value: Buffer.from(pubKey.value).toString('base64'),
+ }
+ : null,
+ accountNumber: parseInt(baseAccount.accountNumber, 10),
+ sequence: parseInt(baseAccount.sequence, 10),
+ };
+ }
async getAccount(searchAddress) {
try {
const account = await this.forceGetQueryClient().auth.account(searchAddress);
+ if (searchAddress.startsWith('inj')) {
+ return this.decodeInjectiveAccount(account);
+ }
return account ? (0, stargate_1.accountFromAny)(account) : null;
}
catch (error) {
diff --git a/build/signingcosmwasmclient.js b/build/signingcosmwasmclient.js
index 6eb95bb672698df8feba51dc5a06d33bbed616c5..5a9d32f6af5ad44435ac15534501efdc344609d8 100644
--- a/build/signingcosmwasmclient.js
+++ b/build/signingcosmwasmclient.js
@@ -93,6 +93,9 @@ class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient {
throw new Error("Failed to retrieve account from signer");
}
const pubkey = (0, amino_1.encodeSecp256k1Pubkey)(accountFromSigner.pubkey);
+ if (signerAddress.startsWith('inj')) {
+ pubkey['typeUrl'] = '/injective.crypto.v1beta1.ethsecp256k1.PubKey';
+ }
const { sequence } = await this.getSequence(signerAddress);
const { gasInfo } = await this.forceGetQueryClient().tx.simulate(anyMsgs, memo, pubkey, sequence);
(0, utils_1.assertDefined)(gasInfo);
@@ -116,7 +119,8 @@ class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient {
if ((0, stargate_1.isDeliverTxFailure)(result)) {
throw new Error(createDeliverTxResponseErrorMessage(result));
}
- const codeIdAttr = findAttribute(result.events, "store_code", "code_id");
+ const rawCodeIdAttr = findAttribute(result.events, "cosmwasm.wasm.v1.EventCodeStored", "store_code", "code_id");
+ const codeIdAttr = { value: rawCodeIdAttr.value.replace(/\"/g, "") };
return {
checksum: (0, encoding_1.toHex)((0, crypto_1.sha256)(wasmCode)),
originalSize: wasmCode.length,
@@ -397,6 +401,9 @@ class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient {
throw new Error("Failed to retrieve account from signer");
}
const pubkey = (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(accountFromSigner.pubkey));
+ if (signerAddress.startsWith('inj')) {
+ pubkey['typeUrl'] = '/injective.crypto.v1beta1.ethsecp256k1.PubKey';
+ }
const signMode = signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
const signDoc = (0, amino_1.makeSignDoc)(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight);
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@hyperlane-xyz/warp-ui-template",
"description": "A web app template for building Hyperlane Warp Route UIs",
"version": "7.1.0",
"version": "8.0.0-beta.0",
"author": "J M Rossy",
"dependencies": {
"@chakra-ui/next-js": "^2.4.2",
"@chakra-ui/react": "^2.8.2",
"@cosmjs/cosmwasm-stargate": "^0.32.4",
"@cosmjs/cosmwasm-stargate": "patch:@cosmjs/cosmwasm-stargate@npm%3A0.32.4#~/.yarn/patches/@cosmjs-cosmwasm-stargate-npm-0.32.4-f9dd51429c.patch",
"@cosmjs/stargate": "^0.32.4",
"@cosmos-kit/core": "^2.13.1",
"@cosmos-kit/cosmostation": "^2.11.2",
Expand All @@ -17,10 +17,10 @@
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@headlessui/react": "^2.2.0",
"@hyperlane-xyz/registry": "6.1.0",
"@hyperlane-xyz/sdk": "7.1.0",
"@hyperlane-xyz/utils": "7.1.0",
"@hyperlane-xyz/widgets": "7.1.0",
"@hyperlane-xyz/registry": "6.10.0",
"@hyperlane-xyz/sdk": "8.0.0-beta.0",
"@hyperlane-xyz/utils": "8.0.0-beta.0",
"@hyperlane-xyz/widgets": "8.0.0-beta.0",
"@interchain-ui/react": "^1.23.28",
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6",
"@metamask/post-message-stream": "6.1.2",
Expand Down Expand Up @@ -104,6 +104,8 @@
"lit-html": "2.8.0",
"react-fast-compare": "^3.2",
"viem": "^2.21.41",
"zustand": "^4.4"
"zustand": "^4.4",
"@cosmjs/cosmwasm-stargate@npm:^0.32.3": "patch:@cosmjs/cosmwasm-stargate@npm%3A0.32.4#~/.yarn/patches/@cosmjs-cosmwasm-stargate-npm-0.32.4-f9dd51429c.patch",
"@cosmjs/cosmwasm-stargate@npm:^0.32.4": "patch:@cosmjs/cosmwasm-stargate@npm%3A0.32.4#~/.yarn/patches/@cosmjs-cosmwasm-stargate-npm-0.32.4-f9dd51429c.patch"
}
}
1 change: 1 addition & 0 deletions public/logos/celestia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/logos/weth.png
Binary file not shown.
Loading
Loading