Skip to content

Commit ab5d5b4

Browse files
committed
chore: merge v9, minor cleanups
2 parents 4da19f9 + 3acdf9c commit ab5d5b4

File tree

20 files changed

+769
-1520
lines changed

20 files changed

+769
-1520
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Integrate our custom Dollar module, that enables the issuance of Noble's stablecoin $USDN. ([#448](https://github.com/noble-assets/noble/pull/448))

.github/workflows/docker-publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ jobs:
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Build and push Docker image
31-
uses: strangelove-ventures/heighliner-build-action@v1.0.2
31+
uses: strangelove-ventures/heighliner-build-action@v1.0.3
3232
with:
3333
chain: noble
3434
dockerfile: cosmos
3535
build-target: make install
3636
binaries: |
3737
- /go/bin/nobled
38+
clone-key: ${{ secrets.NOBLE_DOLLAR_DEPLOY }}

.github/workflows/e2e-tests.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
tar-export-path: ${{ env.TAR_PATH }} # export a tarball that can be uploaded as an artifact for the e2e jobs
2323
platform: linux/amd64 # test runner architecture only
2424
git-ref: ${{ github.head_ref }} # source code ref
25+
clone-key: ${{ secrets.NOBLE_DOLLAR_DEPLOY }}
2526

2627
# Heighliner chains.yaml config
2728
chain: noble
@@ -49,6 +50,17 @@ jobs:
4950
with:
5051
go-version: '1.22'
5152

53+
- name: Add and Configure SSH Deploy Key
54+
env:
55+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
56+
run: |
57+
mkdir -p ~/.ssh
58+
ssh-keyscan github.com >> ~/.ssh/known_hosts
59+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
60+
echo "${{ secrets.NOBLE_DOLLAR_DEPLOY }}" | base64 -d | ssh-add -
61+
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
62+
git config --global url."ssh://git@github.com/".insteadOf https://github.com/
63+
5264
- name: Generate Matrix
5365
id: set-matrix
5466
run: |
@@ -84,5 +96,16 @@ jobs:
8496
- name: Load Docker Image
8597
run: docker image load -i ${{ env.TAR_PATH }}
8698

99+
- name: Add and Configure SSH Deploy Key
100+
env:
101+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
102+
run: |
103+
mkdir -p ~/.ssh
104+
ssh-keyscan github.com >> ~/.ssh/known_hosts
105+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
106+
echo "${{ secrets.NOBLE_DOLLAR_DEPLOY }}" | base64 -d | ssh-add -
107+
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
108+
git config --global url."ssh://git@github.com/".insteadOf https://github.com/
109+
87110
- name: Run Tests
88111
run: cd e2e && go test -race -v -timeout 30m -run ^${{ matrix.test }}$ .

app.go

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242
_ "cosmossdk.io/x/evidence"
4343
_ "cosmossdk.io/x/feegrant/module"
4444
_ "cosmossdk.io/x/upgrade"
45+
_ "dollar.noble.xyz"
4546
_ "github.com/circlefin/noble-cctp/x/cctp"
4647
_ "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory"
4748
_ "github.com/cosmos/cosmos-sdk/x/auth"
@@ -80,7 +81,6 @@ import (
8081
// IBC Modules
8182
pfmkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8/packetforward/keeper"
8283
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
83-
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
8484
icahostkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/host/keeper"
8585
transferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
8686
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
@@ -99,6 +99,7 @@ import (
9999
florinkeeper "github.com/monerium/module-noble/v2/keeper"
100100

101101
// Noble Modules
102+
dollarkeeper "dollar.noble.xyz/keeper"
102103
authoritykeeper "github.com/noble-assets/authority/keeper"
103104
forwardingkeeper "github.com/noble-assets/forwarding/v2/keeper"
104105
globalfeekeeper "github.com/noble-assets/globalfee/keeper"
@@ -152,6 +153,7 @@ type App struct {
152153
FlorinKeeper *florinkeeper.Keeper
153154
// Noble Modules
154155
AuthorityKeeper *authoritykeeper.Keeper
156+
DollarKeeper *dollarkeeper.Keeper
155157
ForwardingKeeper *forwardingkeeper.Keeper
156158
GlobalFeeKeeper *globalfeekeeper.Keeper
157159
WormholeKeeper *wormholekeeper.Keeper
@@ -229,6 +231,7 @@ func NewApp(
229231
&app.AuraKeeper,
230232
// Noble Modules
231233
&app.AuthorityKeeper,
234+
&app.DollarKeeper,
232235
&app.ForwardingKeeper,
233236
&app.GlobalFeeKeeper,
234237
&app.WormholeKeeper,
@@ -269,7 +272,7 @@ func NewApp(
269272
jesterGrpcClient := jester.NewJesterGRPCClient(cast.ToString(appOpts.Get(jester.FlagJesterGRPC)))
270273
proposalHandler := NewProposalHandler(
271274
logger, app.BaseApp, app.Mempool(),
272-
jesterGrpcClient, app.WormholeKeeper,
275+
jesterGrpcClient, app.DollarKeeper,
273276
)
274277

275278
app.SetPrepareProposal(proposalHandler.PrepareProposal())
@@ -322,19 +325,7 @@ func (app *App) RegisterUpgradeHandler() error {
322325
upgrade.CreateUpgradeHandler(
323326
app.ModuleManager,
324327
app.Configurator(),
325-
app.appCodec,
326-
app.interfaceRegistry,
327-
app.Logger(),
328-
app.GetKey(capabilitytypes.ModuleName),
329-
app.AccountKeeper,
330-
app.AuthorityKeeper,
331-
app.BankKeeper,
332328
app.CapabilityKeeper,
333-
app.IBCKeeper.ClientKeeper,
334-
app.ConsensusKeeper,
335-
app.GlobalFeeKeeper,
336-
app.ParamsKeeper,
337-
app.StakingKeeper,
338329
),
339330
)
340331

app.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ modules:
66
pre_blockers: [ upgrade ]
77
begin_blockers: [ capability, authority, slashing, evidence, staking, ibc, authz ]
88
end_blockers: [ crisis, staking, feegrant, forwarding ]
9-
init_genesis: [ capability, transfer, auth, bank, staking, slashing, crisis, fiat-tokenfactory, globalfee, genutil, ibc, interchainaccounts, packetfowardmiddleware, evidence, authz, feegrant, params, upgrade, vesting, cctp, forwarding, aura, halo, florin, authority, wormhole ]
9+
init_genesis: [ capability, transfer, auth, bank, staking, slashing, crisis, fiat-tokenfactory, globalfee, genutil, ibc, interchainaccounts, packetfowardmiddleware, evidence, authz, feegrant, params, upgrade, vesting, cctp, forwarding, aura, halo, florin, authority, wormhole, dollar ]
1010
override_store_keys:
1111
- module_name: auth
1212
kv_store_key: acc
@@ -34,6 +34,8 @@ modules:
3434
permissions: [ burner, minter ]
3535
- account: aura
3636
permissions: [ burner, minter ]
37+
- account: dollar
38+
permissions: [ burner, minter ]
3739
authority: authority # Utilize our custom x/authority module.
3840
- name: authz
3941
config:
@@ -114,6 +116,11 @@ modules:
114116
- name: authority
115117
config:
116118
"@type": noble.authority.module.v1.Module
119+
- name: dollar
120+
config:
121+
"@type": noble.dollar.module.v1.Module
122+
authority: authority # Utilize our custom x/authority module.
123+
denom: uusdn
117124
- name: forwarding
118125
config:
119126
"@type": noble.forwarding.module.v1.Module

e2e/go.mod

Lines changed: 44 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,28 @@ require (
66
cosmossdk.io/math v1.4.0
77
cosmossdk.io/x/upgrade v0.1.4
88
github.com/circlefin/noble-cctp v0.0.0-20241031192117-4285c94ec194
9-
github.com/circlefin/noble-fiattokenfactory v0.0.0-20241030165025-e3796e8ba8c1
9+
github.com/circlefin/noble-fiattokenfactory v0.0.0-20250123235012-5f9bd9dd2c5b
1010
github.com/cosmos/cosmos-sdk v0.50.11
1111
github.com/cosmos/gogoproto v1.7.0
1212
github.com/cosmos/ibc-go/v8 v8.5.2
1313
github.com/docker/docker v24.0.9+incompatible
1414
github.com/ethereum/go-ethereum v1.14.12
1515
github.com/monerium/module-noble/v2 v2.0.0
1616
github.com/noble-assets/authority v1.0.1
17-
github.com/noble-assets/globalfee v1.0.0
1817
github.com/noble-assets/halo/v2 v2.0.1
19-
github.com/noble-assets/noble/v9 v9.0.0
2018
github.com/ondoprotocol/usdy-noble/v2 v2.0.0
2119
github.com/strangelove-ventures/interchaintest/v8 v8.8.0
2220
github.com/stretchr/testify v1.10.0
2321
go.uber.org/zap v1.27.0
2422
)
2523

2624
require (
27-
cloud.google.com/go v0.115.1 // indirect
28-
cloud.google.com/go/auth v0.9.4 // indirect
29-
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
30-
cloud.google.com/go/compute/metadata v0.5.1 // indirect
31-
cloud.google.com/go/iam v1.2.0 // indirect
32-
cloud.google.com/go/storage v1.43.0 // indirect
25+
cloud.google.com/go v0.115.0 // indirect
26+
cloud.google.com/go/auth v0.6.0 // indirect
27+
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
28+
cloud.google.com/go/compute/metadata v0.5.0 // indirect
29+
cloud.google.com/go/iam v1.1.9 // indirect
30+
cloud.google.com/go/storage v1.41.0 // indirect
3331
cosmossdk.io/api v0.7.6 // indirect
3432
cosmossdk.io/collections v0.4.0 // indirect
3533
cosmossdk.io/core v0.11.1 // indirect
@@ -54,12 +52,13 @@ require (
5452
github.com/Microsoft/go-winio v0.6.2 // indirect
5553
github.com/StackExchange/wmi v1.2.1 // indirect
5654
github.com/StirlingMarketingGroup/go-namecase v1.0.0 // indirect
57-
github.com/avast/retry-go/v4 v4.6.0 // indirect
55+
github.com/avast/retry-go/v4 v4.5.1 // indirect
5856
github.com/aws/aws-sdk-go v1.44.224 // indirect
5957
github.com/beorn7/perks v1.0.1 // indirect
6058
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
6159
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
6260
github.com/bits-and-blooms/bitset v1.13.0 // indirect
61+
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
6362
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
6463
github.com/cespare/xxhash/v2 v2.3.0 // indirect
6564
github.com/chzyer/readline v1.5.1 // indirect
@@ -69,8 +68,8 @@ require (
6968
github.com/cockroachdb/pebble v1.1.2 // indirect
7069
github.com/cockroachdb/redact v1.1.5 // indirect
7170
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
72-
github.com/cometbft/cometbft v0.38.15 // indirect
73-
github.com/cometbft/cometbft-db v0.14.1 // indirect
71+
github.com/cometbft/cometbft v0.38.12 // indirect
72+
github.com/cometbft/cometbft-db v0.14.0 // indirect
7473
github.com/consensys/bavard v0.1.13 // indirect
7574
github.com/consensys/gnark-crypto v0.12.1 // indirect
7675
github.com/cosmos/btcutil v1.0.5 // indirect
@@ -92,7 +91,7 @@ require (
9291
github.com/decred/base58 v1.0.4 // indirect
9392
github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect
9493
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.1 // indirect
95-
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
94+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
9695
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
9796
github.com/dgraph-io/badger/v4 v4.2.0 // indirect
9897
github.com/dgraph-io/ristretto v0.1.1 // indirect
@@ -104,17 +103,16 @@ require (
104103
github.com/emicklei/dot v1.6.2 // indirect
105104
github.com/ethereum/c-kzg-4844 v1.0.0 // indirect
106105
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 // indirect
107-
github.com/fatih/color v1.18.0 // indirect
106+
github.com/fatih/color v1.17.0 // indirect
108107
github.com/felixge/httpsnoop v1.0.4 // indirect
109108
github.com/fsnotify/fsnotify v1.7.0 // indirect
110109
github.com/getsentry/sentry-go v0.27.0 // indirect
111-
github.com/go-kit/kit v0.13.0 // indirect
110+
github.com/go-kit/kit v0.12.0 // indirect
112111
github.com/go-kit/log v0.2.1 // indirect
113112
github.com/go-logfmt/logfmt v0.6.0 // indirect
114-
github.com/go-logr/logr v1.4.2 // indirect
113+
github.com/go-logr/logr v1.4.1 // indirect
115114
github.com/go-logr/stdr v1.2.2 // indirect
116115
github.com/go-ole/go-ole v1.3.0 // indirect
117-
github.com/go-playground/locales v0.14.1 // indirect
118116
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
119117
github.com/gogo/googleapis v1.4.1 // indirect
120118
github.com/gogo/protobuf v1.3.3 // indirect
@@ -124,14 +122,13 @@ require (
124122
github.com/golang/protobuf v1.5.4 // indirect
125123
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
126124
github.com/google/btree v1.1.3 // indirect
127-
github.com/google/flatbuffers v23.5.26+incompatible // indirect
125+
github.com/google/flatbuffers v1.12.1 // indirect
128126
github.com/google/go-cmp v0.6.0 // indirect
129127
github.com/google/orderedcode v0.0.1 // indirect
130-
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect
131-
github.com/google/s2a-go v0.1.8 // indirect
128+
github.com/google/s2a-go v0.1.7 // indirect
132129
github.com/google/uuid v1.6.0 // indirect
133-
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
134-
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
130+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
131+
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
135132
github.com/gorilla/handlers v1.5.2 // indirect
136133
github.com/gorilla/mux v1.8.1 // indirect
137134
github.com/gorilla/websocket v1.5.3 // indirect
@@ -175,14 +172,13 @@ require (
175172
github.com/mattn/go-colorable v0.1.13 // indirect
176173
github.com/mattn/go-isatty v0.0.20 // indirect
177174
github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect
178-
github.com/minio/highwayhash v1.0.3 // indirect
175+
github.com/minio/highwayhash v1.0.2 // indirect
179176
github.com/minio/sha256-simd v1.0.1 // indirect
180177
github.com/misko9/go-substrate-rpc-client/v4 v4.0.0-20240603204351-26b456ae3afe // indirect
181178
github.com/mitchellh/go-homedir v1.1.0 // indirect
182179
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
183180
github.com/mitchellh/mapstructure v1.5.0 // indirect
184181
github.com/mmcloughlin/addchain v0.4.0 // indirect
185-
github.com/morikuni/aec v1.0.0 // indirect
186182
github.com/mr-tron/base58 v1.2.0 // indirect
187183
github.com/mtibben/percent v0.2.1 // indirect
188184
github.com/multiformats/go-base32 v0.1.0 // indirect
@@ -200,22 +196,22 @@ require (
200196
github.com/opencontainers/image-spec v1.1.0-rc2 // indirect
201197
github.com/pelletier/go-toml v1.9.5 // indirect
202198
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
203-
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
199+
github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect
204200
github.com/pierrec/xxHash v0.1.5 // indirect
205201
github.com/pkg/errors v0.9.1 // indirect
206202
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
207-
github.com/prometheus/client_golang v1.20.5 // indirect
203+
github.com/prometheus/client_golang v1.20.1 // indirect
208204
github.com/prometheus/client_model v0.6.1 // indirect
209-
github.com/prometheus/common v0.60.1 // indirect
205+
github.com/prometheus/common v0.55.0 // indirect
210206
github.com/prometheus/procfs v0.15.1 // indirect
211207
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
212208
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
213-
github.com/rogpeppe/go-internal v1.13.1 // indirect
209+
github.com/rogpeppe/go-internal v1.12.0 // indirect
214210
github.com/rs/cors v1.11.1 // indirect
215211
github.com/rs/zerolog v1.33.0 // indirect
216212
github.com/sagikazarmark/locafero v0.4.0 // indirect
217213
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
218-
github.com/sasha-s/go-deadlock v0.3.5 // indirect
214+
github.com/sasha-s/go-deadlock v0.3.1 // indirect
219215
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
220216
github.com/sourcegraph/conc v0.3.0 // indirect
221217
github.com/spaolacci/murmur3 v1.1.0 // indirect
@@ -241,27 +237,26 @@ require (
241237
github.com/zondax/ledger-go v0.14.3 // indirect
242238
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
243239
go.opencensus.io v0.24.0 // indirect
244-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
245-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
246-
go.opentelemetry.io/otel v1.29.0 // indirect
247-
go.opentelemetry.io/otel/metric v1.29.0 // indirect
248-
go.opentelemetry.io/otel/trace v1.29.0 // indirect
249-
go.uber.org/mock v0.4.0 // indirect
240+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
241+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
242+
go.opentelemetry.io/otel v1.24.0 // indirect
243+
go.opentelemetry.io/otel/metric v1.24.0 // indirect
244+
go.opentelemetry.io/otel/trace v1.24.0 // indirect
250245
go.uber.org/multierr v1.11.0 // indirect
251-
golang.org/x/crypto v0.29.0 // indirect
252-
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
253-
golang.org/x/mod v0.22.0 // indirect
254-
golang.org/x/net v0.31.0 // indirect
255-
golang.org/x/oauth2 v0.23.0 // indirect
256-
golang.org/x/sync v0.9.0 // indirect
257-
golang.org/x/sys v0.27.0 // indirect
258-
golang.org/x/term v0.26.0 // indirect
259-
golang.org/x/text v0.20.0 // indirect
260-
golang.org/x/time v0.6.0 // indirect
261-
golang.org/x/tools v0.27.0 // indirect
262-
google.golang.org/api v0.198.0 // indirect
263-
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
264-
google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect
246+
golang.org/x/crypto v0.31.0 // indirect
247+
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect
248+
golang.org/x/mod v0.21.0 // indirect
249+
golang.org/x/net v0.29.0 // indirect
250+
golang.org/x/oauth2 v0.22.0 // indirect
251+
golang.org/x/sync v0.10.0 // indirect
252+
golang.org/x/sys v0.28.0 // indirect
253+
golang.org/x/term v0.27.0 // indirect
254+
golang.org/x/text v0.21.0 // indirect
255+
golang.org/x/time v0.5.0 // indirect
256+
golang.org/x/tools v0.24.0 // indirect
257+
google.golang.org/api v0.186.0 // indirect
258+
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 // indirect
259+
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
265260
google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect
266261
google.golang.org/grpc v1.67.1 // indirect
267262
google.golang.org/protobuf v1.35.1 // indirect
@@ -287,10 +282,6 @@ require (
287282
replace (
288283
github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d
289284
github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0
290-
291285
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
292-
293-
github.com/noble-assets/noble/v9 => ../
294-
295286
github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7
296287
)

0 commit comments

Comments
 (0)