Skip to content

Commit 17c872d

Browse files
authored
Merge pull request #165 from AbstractSDK/adair/export-more
Export additional functions
2 parents f2008c0 + 236a881 commit 17c872d

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

.changeset/loud-lizards-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@abstract-money/core": patch
3+
---
4+
5+
Export more functions

packages/core/src/actions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export * from './get-modules-from-api'
77
export * from './get-registry-address-from-api'
88
export * from './get-chain-rpc-from-api'
99
export * from './get-sub-account-ids-by-module-id'
10+
export * from './simulate-remote-cosmos-msg'
1011

1112
export * from './account/public/get-account-address-from-api'
1213
export * from './account/public/get-ibc-client-query-client-from-account'

packages/core/src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export * from './encoding'
1111
export * from './events'
1212
export * from './authz'
1313
export * from './cosmwasm'
14+
export * from './cosmos'
1415
export * from './modules'
1516
export * from './polytone'
1617

packages/core/src/utils/polytone/predict-proxy-address.test.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,29 @@ describe('predictPolytoneProxyAddress', () => {
4242

4343
it('returns the correct address with full function', async () => {
4444
const result = await predictPolytoneProxyAddress({
45+
controllerNoteAddress: neutronNoteAddress,
46+
controllerSender: neutronSenderAddress,
4547
hostVoiceAddress: neutronToOsmosisVoiceAddress,
4648
hostProxyChecksum: osmosisProxyChecksum,
4749
hostVoiceConnectionId: connectionIdFromVoice,
48-
controllerNoteAddress: neutronNoteAddress,
49-
controllerSender: neutronSenderAddress,
5050
})
5151

5252
expect(result).toBe(expectedAddress)
5353
})
54+
55+
it('returns the correct address with xion', async () => {
56+
const result = await predictPolytoneProxyAddress({
57+
controllerNoteAddress:
58+
'xion1hs95lgvuy0p6jn4v7js5x8plfdqw867lsuh5xv6d2ua20jprkges7as2wd',
59+
controllerSender: 'xion1kjzpqv393k4g064xh04j4hwy5d0s03wfcmqte2',
60+
hostVoiceAddress:
61+
'osmo1pd2tw9230k9qhzq046yrkel940x93732pq5c3mcqrnahj3ekhw7q64tfwr',
62+
hostProxyChecksum: osmosisProxyChecksum,
63+
hostVoiceConnectionId: 'connection-2823',
64+
})
65+
66+
expect(result).toBe(
67+
'osmo1lwaeqc7ahm2a7gvpyfqsu5s8ulaj349ggtzpfjd6r07xhper5q5qc6p2fs',
68+
)
69+
})
5470
})

0 commit comments

Comments
 (0)