Skip to content

Commit

Permalink
chore: cleanup post various releases
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed May 14, 2024
1 parent ee651ba commit f942bd8
Show file tree
Hide file tree
Showing 28 changed files with 168 additions and 227 deletions.
1 change: 1 addition & 0 deletions .changelog/v4.1.0/dependencies/000-ftf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump FiatTokenFactory to [`0a7385d`](https://github.com/circlefin/noble-fiattokenfactory/commit/0a7385d9a37744ced1e4d61eae10de2b117f482b) for various blocklist and paused check improvements.
1 change: 1 addition & 0 deletions .changelog/v4.1.0/dependencies/000-ibc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump IBC to [`v4.6.0`](https://github.com/cosmos/ibc-go/releases/tag/v4.6.0) to resolve [ASA-2024-007](https://github.com/cosmos/ibc-go/security/advisories/GHSA-j496-crgh-34mx) security advisory.
1 change: 1 addition & 0 deletions .changelog/v4.1.0/dependencies/000-pfm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump PFM from Mandrake patch commit ([`455757b`](https://github.com/cosmos/ibc-apps/commit/455757bb5771c29cf2f83b59e37f6513e07c92be)) to release tag ([`v4.1.2`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.2)).
1 change: 1 addition & 0 deletions .changelog/v4.1.0/dependencies/000-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Switch to Noble's Cosmos SDK fork ([`v0.45.16-noble`](https://github.com/noble-assets/cosmos-sdk/releases/tag/v0.45.16-noble)), allowing `DeliverTx` to be extended.
1 change: 1 addition & 0 deletions .changelog/v4.1.0/improvements/249-283-module-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#249](https://github.com/noble-assets/noble/pull/249), [#283](https://github.com/noble-assets/noble/pull/283))
1 change: 1 addition & 0 deletions .changelog/v4.1.0/improvements/346-migrate-blockibc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Switch to migrated `x/blockibc` under [`circlefin/noble-fiattokenfactory`](https://github.com/circlefin/noble-fiattokenfactory). ([#346](https://github.com/noble-assets/noble/pull/346))
15 changes: 15 additions & 0 deletions .changelog/v4.1.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*Apr 15, 2024*

This is a minor release to the v4 Argon line, codenamed Fusion.

The main part of this release is the introduction of the `x/forwarding` module.
It allows users to create a new account type, where the receipt of funds into
that account triggers an automatic IBC transfer over a specified channel to a
recipient address. This allows for one-click transfers to any IBC-enabled chain,
and can be used in tandem with, for example, the receipt of funds from a
[Circle Mint][mint] account or via [CCTP].

Other notable changes include are documented below.

[cctp]: https://www.circle.com/en/cross-chain-transfer-protocol
[mint]: https://www.circle.com/en/circle-mint
1 change: 1 addition & 0 deletions .changelog/v4.1.1/bug-fixes/353-abci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove custom ABCI logic inside `DeliverTx` that causes consensus failures. ([#353](https://github.com/noble-assets/noble/pull/353))
3 changes: 3 additions & 0 deletions .changelog/v4.1.1/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Apr 16, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.
1 change: 1 addition & 0 deletions .changelog/v4.1.2/dependencies/357-bump-forwarding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump `x/forwarding` module to [`v1.1.0`](https://github.com/noble-assets/forwarding/releases/tag/v1.1.0) ([#357](https://github.com/noble-assets/noble/pull/357))
1 change: 1 addition & 0 deletions .changelog/v4.1.2/dependencies/359-bump-cctp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump CCTP to [`69ee090`](https://github.com/circlefin/noble-cctp/commit/69ee090808c05987c504b383939e71ad491594e7) ([#359](https://github.com/noble-assets/noble/pull/359))
1 change: 1 addition & 0 deletions .changelog/v4.1.2/dependencies/359-bump-ftf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump FiatTokenFactory to [`738932c`](https://github.com/circlefin/noble-fiattokenfactory/commit/738932cb316d06f587c49dfb11a50515cce657d9) ([#359](https://github.com/noble-assets/noble/pull/359))
1 change: 1 addition & 0 deletions .changelog/v4.1.2/improvements/357-migrate-forwarding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Switch to [migrated](https://github.com/noble-assets/forwarding) version of `x/forwarding` module. ([#357](https://github.com/noble-assets/noble/pull/357))
3 changes: 3 additions & 0 deletions .changelog/v4.1.2/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*May 2, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.
1 change: 1 addition & 0 deletions .changelog/v4.1.3/dependencies/363-bump-cctp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Bump CCTP to [`253cf7e`](https://github.com/circlefin/noble-cctp/commit/253cf7eb943669e283b4dcb25f83c7096080e67a) ([#363](https://github.com/noble-assets/noble/pull/363))
3 changes: 3 additions & 0 deletions .changelog/v4.1.3/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*May 10, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.
2 changes: 1 addition & 1 deletion .github/workflows/simulation-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Simulation Tests

on:
pull_request:
workflow_dispatch:

jobs:
simulation-tests:
Expand Down
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
# CHANGELOG

## v4.1.3

*May 10, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.

### DEPENDENCIES

- Bump CCTP to [`253cf7e`](https://github.com/circlefin/noble-cctp/commit/253cf7eb943669e283b4dcb25f83c7096080e67a) ([#363](https://github.com/noble-assets/noble/pull/363))

## v4.1.2

*May 2, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.

### DEPENDENCIES

- Bump `x/forwarding` module to [`v1.1.0`](https://github.com/noble-assets/forwarding/releases/tag/v1.1.0) ([#357](https://github.com/noble-assets/noble/pull/357))
- Bump FiatTokenFactory to [`738932c`](https://github.com/circlefin/noble-fiattokenfactory/commit/738932cb316d06f587c49dfb11a50515cce657d9) ([#359](https://github.com/noble-assets/noble/pull/359))
- Bump CCTP to [`69ee090`](https://github.com/circlefin/noble-cctp/commit/69ee090808c05987c504b383939e71ad491594e7) ([#359](https://github.com/noble-assets/noble/pull/359))

### IMPROVEMENTS

- Switch to [migrated](https://github.com/noble-assets/forwarding) version of `x/forwarding` module. ([#357](https://github.com/noble-assets/noble/pull/357))

## v4.1.1

*Apr 16, 2024*

This is a consensus breaking patch release to the v4.1 Fusion line.

### BUG FIXES

- Remove custom ABCI logic inside `DeliverTx` that causes consensus failures. ([#353](https://github.com/noble-assets/noble/pull/353))

## v4.1.0

*Apr 15, 2024*

This is a minor release to the v4 Argon line, codenamed Fusion.

The main part of this release is the introduction of the `x/forwarding` module.
It allows users to create a new account type, where the receipt of funds into
that account triggers an automatic IBC transfer over a specified channel to a
recipient address. This allows for one-click transfers to any IBC-enabled chain,
and can be used in tandem with, for example, the receipt of funds from a
[Circle Mint][mint] account or via [CCTP].

Other notable changes include are documented below.

[cctp]: https://www.circle.com/en/cross-chain-transfer-protocol
[mint]: https://www.circle.com/en/circle-mint

### DEPENDENCIES

- Switch to Noble's Cosmos SDK fork ([`v0.45.16-noble`](https://github.com/noble-assets/cosmos-sdk/releases/tag/v0.45.16-noble)), allowing `DeliverTx` to be extended.
- Bump PFM from Mandrake patch commit ([`455757b`](https://github.com/cosmos/ibc-apps/commit/455757bb5771c29cf2f83b59e37f6513e07c92be)) to release tag ([`v4.1.2`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.2)).
- Bump IBC to [`v4.6.0`](https://github.com/cosmos/ibc-go/releases/tag/v4.6.0) to resolve [ASA-2024-007](https://github.com/cosmos/ibc-go/security/advisories/GHSA-j496-crgh-34mx) security advisory.
- Bump FiatTokenFactory to [`0a7385d`](https://github.com/circlefin/noble-fiattokenfactory/commit/0a7385d9a37744ced1e4d61eae10de2b117f482b) for various blocklist and paused check improvements.

### IMPROVEMENTS

- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#249](https://github.com/noble-assets/noble/pull/249), [#283](https://github.com/noble-assets/noble/pull/283))
- Switch to migrated `x/blockibc` under [`circlefin/noble-fiattokenfactory`](https://github.com/circlefin/noble-fiattokenfactory). ([#346](https://github.com/noble-assets/noble/pull/346))

## v4.0.3

*Mar 11, 2024*
Expand Down
4 changes: 3 additions & 1 deletion app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app
import (
"github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory"
fiattokenfactorykeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
Expand All @@ -16,6 +17,7 @@ import (

type HandlerOptions struct {
ante.HandlerOptions
cdc codec.Codec
fiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper
IBCKeeper *ibckeeper.Keeper
GlobalFeeSubspace paramtypes.Subspace
Expand Down Expand Up @@ -52,7 +54,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first
ante.NewRejectExtensionOptionsDecorator(),
fiattokenfactory.NewIsBlacklistedDecorator(options.fiatTokenFactoryKeeper),
fiattokenfactory.NewIsPausedDecorator(options.fiatTokenFactoryKeeper),
fiattokenfactory.NewIsPausedDecorator(options.cdc, options.fiatTokenFactoryKeeper),
forwarding.NewAnteDecorator(options.ForwardingKeeper, options.AccountKeeper),
ante.NewMempoolFeeDecorator(),
ante.NewValidateBasicDecorator(),
Expand Down
9 changes: 4 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ import (
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

"github.com/circlefin/noble-fiattokenfactory/x/blockibc"
fiattokenfactorymodule "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory"
fiattokenfactorymodulekeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper"
fiattokenfactorymoduletypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types"
Expand All @@ -95,7 +96,6 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/noble-assets/noble/v5/cmd"
"github.com/noble-assets/noble/v5/docs"
"github.com/noble-assets/noble/v5/x/blockibc"
"github.com/noble-assets/noble/v5/x/globalfee"
tariff "github.com/noble-assets/noble/v5/x/tariff"
tariffkeeper "github.com/noble-assets/noble/v5/x/tariff/keeper"
Expand Down Expand Up @@ -384,9 +384,7 @@ func New(

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
app.StakingKeeper = *app.StakingKeeper.SetHooks(
stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()),
)
app.StakingKeeper = *app.StakingKeeper.SetHooks(app.SlashingKeeper.Hooks())

// ... other modules keepers

Expand Down Expand Up @@ -503,7 +501,7 @@ func New(
packetforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp,
packetforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp,
)
transferStack = blockibc.NewIBCMiddleware(transferStack, app.TokenFactoryKeeper, app.FiatTokenFactoryKeeper)
transferStack = blockibc.NewIBCMiddleware(transferStack, app.FiatTokenFactoryKeeper)

// Create static IBC router, add transfer route, then set and seal it
ibcRouter := ibcporttypes.NewRouter()
Expand Down Expand Up @@ -682,6 +680,7 @@ func New(
SignModeHandler: encodingConfig.TxConfig.SignModeHandler(),
SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
},
cdc: appCodec,
fiatTokenFactoryKeeper: app.FiatTokenFactoryKeeper,

IBCKeeper: app.IBCKeeper,
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ go 1.21

require (
cosmossdk.io/errors v1.0.0
github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9
github.com/circlefin/noble-cctp v0.0.0-20240510135541-253cf7eb9436
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240502160322-738932cb316d
github.com/cosmos/cosmos-sdk v0.45.16
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771
github.com/cosmos/ibc-go/v4 v4.5.1
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2
github.com/cosmos/ibc-go/v4 v4.6.0
github.com/gogo/protobuf v1.3.3
github.com/golang/protobuf v1.5.3
github.com/gorilla/mux v1.8.0
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc h1:vm2CZfO8sjxPFKzguuZl1FjHHdbgRUWvF3x2lw6NyEU=
github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc/go.mod h1:ssEHJqFI1f4a5sLtZ7qeYJ7/75LzDgzbBv4C9as3y3w=
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9 h1:zos4B3act5oqjkWJ20iBOX0mHINcEQ6wdqtHdcmAiqE=
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9/go.mod h1:pWbZhxq9IBFK9d24ZdmSKdG3LgFbp97r18IbF56QwnE=
github.com/circlefin/noble-cctp v0.0.0-20240510135541-253cf7eb9436 h1:Yyh9oaVOIzSgbQISm7BJ0iCnSLolGYzrM7W4PeT+Zt0=
github.com/circlefin/noble-cctp v0.0.0-20240510135541-253cf7eb9436/go.mod h1:ssEHJqFI1f4a5sLtZ7qeYJ7/75LzDgzbBv4C9as3y3w=
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240502160322-738932cb316d h1:fjoPjY5XAEuppXXf86zstq35B+87tUA94aRUkX9lQNk=
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240502160322-738932cb316d/go.mod h1:0Imc1/GSaR8Ic2ssKJGN4EmNbyDGuTGY8AEvmWeao7w=
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
Expand Down Expand Up @@ -244,10 +244,10 @@ github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY=
github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771 h1:f59vE1bhd2HvZJmDyxcGHXnk18H5BtL0GZtw0ED8gUA=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771/go.mod h1:0g4hau4zO12tpvyiOcyEpcmcsXbBAN4WX+BhTO6xZVg=
github.com/cosmos/ibc-go/v4 v4.5.1 h1:+P73X7aIikGAXBUJ9vP9rEbvdSuekt3KGXmAWCSYets=
github.com/cosmos/ibc-go/v4 v4.5.1/go.mod h1:2EOi40Bx/j6rJrtP1ui8k8yUAMpGybmL1EjakYqYv5U=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2 h1:id4ozlsqpX6J19NVYQ5NhqyDzb48JT0VsceqArym1ks=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2/go.mod h1:0g4hau4zO12tpvyiOcyEpcmcsXbBAN4WX+BhTO6xZVg=
github.com/cosmos/ibc-go/v4 v4.6.0 h1:G7kiD4Zf8Wrxc8BXWIKuFnzI0W4wpvRPrl5HwdfTIsA=
github.com/cosmos/ibc-go/v4 v4.6.0/go.mod h1:ksiZHUypws0NVP50E3ea0ivVFO/bfS8q8yLg8yZ2ATQ=
github.com/cosmos/ledger-cosmos-go v0.12.4 h1:drvWt+GJP7Aiw550yeb3ON/zsrgW0jgh5saFCr7pDnw=
github.com/cosmos/ledger-cosmos-go v0.12.4/go.mod h1:fjfVWRf++Xkygt9wzCsjEBdjcf7wiiY35fv3ctT+k4M=
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
Expand Down
14 changes: 9 additions & 5 deletions interchaintest/cctp_receive_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,21 @@ func TestCCTP_ReceiveMessage(t *testing.T) {

burnToken := make([]byte, 32)
copy(burnToken[12:], common.FromHex("0x07865c6E87B9F70255377e024ace6630C1Eaa37F"))

// maps remote token on remote domain to a local token -- used for minting
msgs = append(msgs, &cctptypes.MsgLinkTokenPair{
From: gw.fiatTfRoles.Owner.FormattedAddress(),
RemoteDomain: 0,
RemoteToken: burnToken,
LocalToken: denomMetadataUsdc.Base,
})

tokenMessenger := make([]byte, 32)
copy(tokenMessenger[12:], common.FromHex("0xBd3fa81B58Ba92a82136038B25aDec7066af3155"))
msgs = append(msgs, &cctptypes.MsgAddRemoteTokenMessenger{
From: gw.fiatTfRoles.Owner.FormattedAddress(),
DomainId: 0,
Address: tokenMessenger,
})

bCtx, bCancel := context.WithTimeout(ctx, 20*time.Second)
defer bCancel()

Expand Down Expand Up @@ -166,16 +172,14 @@ func TestCCTP_ReceiveMessage(t *testing.T) {
depositForBurnBz, err := depositForBurn.Bytes()
require.NoError(t, err)

var senderBurn = []byte("12345678901234567890123456789012")

emptyDestinationCaller := make([]byte, 32)

wrappedDepositForBurn := cctptypes.Message{
Version: 0,
SourceDomain: 0,
DestinationDomain: 4, // Noble is 4
Nonce: 0, // dif per message
Sender: senderBurn,
Sender: tokenMessenger,
Recipient: cctptypes.PaddedModuleAddress,
DestinationCaller: emptyDestinationCaller,
MessageBody: depositForBurnBz,
Expand Down
14 changes: 9 additions & 5 deletions interchaintest/cctp_receive_message_with_caller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,21 @@ func TestCCTP_ReceiveMessageWithCaller(t *testing.T) {

burnToken := make([]byte, 32)
copy(burnToken[12:], common.FromHex("0x07865c6E87B9F70255377e024ace6630C1Eaa37F"))

// maps remote token on remote domain to a local token -- used for minting
msgs = append(msgs, &cctptypes.MsgLinkTokenPair{
From: gw.fiatTfRoles.Owner.FormattedAddress(),
RemoteDomain: 0,
RemoteToken: burnToken,
LocalToken: denomMetadataUsdc.Base,
})

tokenMessenger := make([]byte, 32)
copy(tokenMessenger[12:], common.FromHex("0xBd3fa81B58Ba92a82136038B25aDec7066af3155"))
msgs = append(msgs, &cctptypes.MsgAddRemoteTokenMessenger{
From: gw.fiatTfRoles.Owner.FormattedAddress(),
DomainId: 0,
Address: tokenMessenger,
})

bCtx, bCancel := context.WithTimeout(ctx, 20*time.Second)
defer bCancel()

Expand Down Expand Up @@ -166,8 +172,6 @@ func TestCCTP_ReceiveMessageWithCaller(t *testing.T) {
depositForBurnBz, err := depositForBurn.Bytes()
require.NoError(t, err)

var senderBurn = []byte("12345678901234567890123456789012")

destinationCaller := make([]byte, 32)
copy(destinationCaller[12:], gw.fiatTfRoles.Owner.Address())

Expand All @@ -176,7 +180,7 @@ func TestCCTP_ReceiveMessageWithCaller(t *testing.T) {
SourceDomain: 0,
DestinationDomain: 4, // Noble is 4
Nonce: 0, // dif per message
Sender: senderBurn,
Sender: tokenMessenger,
Recipient: cctptypes.PaddedModuleAddress,
DestinationCaller: destinationCaller,
MessageBody: depositForBurnBz,
Expand Down
6 changes: 3 additions & 3 deletions interchaintest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ go 1.21

require (
cosmossdk.io/math v1.0.1
github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9
github.com/circlefin/noble-cctp v0.0.0-20240510135541-253cf7eb9436
github.com/circlefin/noble-fiattokenfactory v0.0.0-20240502160322-738932cb316d
github.com/cosmos/cosmos-sdk v0.45.16
github.com/cosmos/ibc-go/v4 v4.5.1
github.com/cosmos/ibc-go/v4 v4.6.0
github.com/ethereum/go-ethereum v1.12.2
github.com/gogo/protobuf v1.3.3
github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845
Expand Down
Loading

0 comments on commit f942bd8

Please sign in to comment.