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

feats: init payment module #5

Merged
merged 89 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from 55 commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
b9d805f
init payment module
owen-reorg Nov 24, 2022
c2c1728
format proto files
owen-reorg Nov 25, 2022
7282513
add protobuf lint ci
owen-reorg Nov 25, 2022
f3bb180
fix ci
owen-reorg Nov 25, 2022
b4d6b0d
fix ci
owen-reorg Nov 25, 2022
cd03a26
fix comments
owen-reorg Nov 29, 2022
36a1b18
init buf in proto
owen-reorg Dec 7, 2022
59c09a9
Merge branch 'develop' into init-payment
owen-reorg Jan 4, 2023
62fddfd
fix merge
owen-reorg Jan 4, 2023
bac8f28
fix cli test
owen-reorg Jan 5, 2023
24dc3f7
change amount unit
owen-reorg Jan 5, 2023
94948bd
change coin amount unit
owen-reorg Jan 5, 2023
d76b0bc
format proto
owen-reorg Jan 5, 2023
ff73f83
build manually
owen-reorg Jan 5, 2023
c77cfc4
update
owen-reorg Jan 5, 2023
fa2f508
disable refund
owen-reorg Jan 5, 2023
2676b2f
Merge branch 'develop' into init-payment
owen-reorg Jan 8, 2023
ab6a4b4
add mock-create-bucket
owen-reorg Jan 8, 2023
60667b0
add mock bucket meta
owen-reorg Jan 8, 2023
142ba1f
add ut
owen-reorg Jan 10, 2023
59ad60e
rename liquidate
owen-reorg Jan 10, 2023
2b8bfbd
update
owen-reorg Jan 11, 2023
bf10273
add flow
owen-reorg Jan 11, 2023
ccc8ad3
update
owen-reorg Jan 11, 2023
7fc5618
bnb price
owen-reorg Jan 11, 2023
bb36034
update genesis
owen-reorg Jan 11, 2023
ebc70bd
update
owen-reorg Jan 12, 2023
99eb3cf
fix charge
owen-reorg Jan 14, 2023
1b88d61
update
owen-reorg Jan 14, 2023
59a747e
force settle
owen-reorg Jan 14, 2023
542fb71
force settle
owen-reorg Jan 14, 2023
9743684
update
owen-reorg Jan 15, 2023
41e7bb9
mock object info
owen-reorg Jan 15, 2023
9480d6f
update
owen-reorg Jan 15, 2023
c492664
update
owen-reorg Jan 15, 2023
6d41f7e
mock put object
owen-reorg Jan 15, 2023
df0cd3c
mock seal object
owen-reorg Jan 15, 2023
4aa8b98
mock delete object
owen-reorg Jan 15, 2023
f15fda0
update
owen-reorg Jan 15, 2023
242b480
set bucket payment account
owen-reorg Jan 15, 2023
e553690
update bucket read packet
owen-reorg Jan 15, 2023
c86ba68
update
owen-reorg Jan 15, 2023
185cb2a
refactor
owen-reorg Jan 15, 2023
7f1a80c
update
owen-reorg Jan 15, 2023
4100f90
Merge branch 'develop' into init-payment
owen-reorg Jan 15, 2023
c91a5dc
set bucket payment account
owen-reorg Jan 15, 2023
a370e3b
delete
owen-reorg Jan 15, 2023
5816995
format proto
owen-reorg Jan 15, 2023
663e9df
fix test
owen-reorg Jan 15, 2023
8b84612
format
owen-reorg Jan 15, 2023
4779266
fix lint
owen-reorg Jan 15, 2023
fbc18e3
fix dep
owen-reorg Jan 15, 2023
b3bd2a7
fix lint
owen-reorg Jan 15, 2023
c2f870c
Merge branch 'develop' into init-payment
owen-reorg Jan 18, 2023
d69abf3
fix go.mod
owen-reorg Jan 18, 2023
b6b6551
rename
owen-reorg Jan 18, 2023
922ddaa
add max number of auto settle
owen-reorg Jan 18, 2023
6b79240
rename auto-settle-queue
owen-reorg Jan 18, 2023
74b5ec5
fix auto settle
owen-reorg Jan 18, 2023
53c282b
buf format
owen-reorg Jan 18, 2023
f08cfc1
fix lint
owen-reorg Jan 19, 2023
f1b53a4
add comment in proto
owen-reorg Jan 29, 2023
27bb584
chore: rename Err
owen-reorg Jan 31, 2023
4e20824
refactor bnb price
owen-reorg Jan 31, 2023
67eff6a
remove old bnb-price
owen-reorg Jan 31, 2023
de12c9c
refactor bnb price
owen-reorg Jan 31, 2023
3574649
optimize key prefix
owen-reorg Feb 1, 2023
18e3e43
optimize auto settle record
owen-reorg Feb 1, 2023
afc3cb3
delete sponse
owen-reorg Feb 1, 2023
6d60051
Merge branch 'develop' into init-payment
owen-reorg Feb 1, 2023
8b954d8
format proto
owen-reorg Feb 1, 2023
4aa9d1c
fix tests and delete useless tests
owen-reorg Feb 1, 2023
0ccd344
fix cli test
owen-reorg Feb 2, 2023
487227a
fix denom
owen-reorg Feb 2, 2023
d22aa67
add e2e test
owen-reorg Feb 2, 2023
d6aca21
add e2e test ci
owen-reorg Feb 2, 2023
e376401
fix ci
owen-reorg Feb 2, 2023
8038a4c
try fix ci
owen-reorg Feb 2, 2023
097caff
Merge branch 'develop' into init-payment
owen-reorg Feb 2, 2023
2446428
fix ci
owen-reorg Feb 3, 2023
890c06f
Merge branch 'develop' into init-payment
owen-reorg Feb 3, 2023
8215465
fix ci
owen-reorg Feb 3, 2023
85619fa
fix ci
owen-reorg Feb 3, 2023
da27d14
chore: optimize proto naming
owen-reorg Feb 6, 2023
f204b23
optimize protos
owen-reorg Feb 6, 2023
e449369
optimize protos
owen-reorg Feb 6, 2023
c176cf3
proto format
owen-reorg Feb 7, 2023
ebf9fd1
Merge branch 'develop' into init-payment
owen-reorg Feb 8, 2023
9bba57b
format proto
owen-reorg Feb 8, 2023
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
21 changes: 21 additions & 0 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Protobuf files lint and backwards compatibility check job
# reference: <https://docs.buf.build/ci-cd/github-actions>
name: protobuf-check

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
protobuf-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v1
- run: buf format --diff --exit-code
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ release/
.idea/
.vscode/
.DS_Store
spec/
Taskfile.yaml
build/
vendor/
.local
.local
.task
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: build build-linux build-macos build-windows
.PHONY: tools proto test
.PHONY: tools proto-gen proto-format test

VERSION=$(shell git describe --tags)
VERSION=$(shell git describe --tags --always)
GIT_COMMIT=$(shell git rev-parse HEAD)
GIT_COMMIT_DATE=$(shell git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d')
REPO=github.com/bnb-chain/inscription
Expand All @@ -15,15 +15,20 @@ ldflags = -X $(REPO)/version.AppVersion=$(VERSION) \
tools:
curl https://get.ignite.com/cli! | bash

proto:
ignite generate proto-go
proto-gen:
#ignite generate proto-go
cd proto && buf generate && cp -r github.com/bnb-chain/bfs/x/* ../x && rm -rf github.com

build:
proto-format:
buf format -w


build:
go build -o build/bin/bfsd -ldflags="$(ldflags)" ./cmd/bfsd/main.go

docker-image:
go mod vendor # temporary, should be removed after open source
docker build . -t ${IMAGE_NAME}

test:
go test ./...
go test ./...
28 changes: 27 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ import (
bridgemodulekeeper "github.com/bnb-chain/bfs/x/bridge/keeper"
bridgemoduletypes "github.com/bnb-chain/bfs/x/bridge/types"
// this line is used by starport scaffolding # stargate/app/moduleImport

paymentmodule "github.com/bnb-chain/bfs/x/payment"
paymentmodulekeeper "github.com/bnb-chain/bfs/x/payment/keeper"
paymentmoduletypes "github.com/bnb-chain/bfs/x/payment/types"
// this line is used by starport scaffolding # stargate/app/moduleImport
)

const (
Expand Down Expand Up @@ -144,6 +149,7 @@ var (
crosschain.AppModuleBasic{},
oracle.AppModuleBasic{},
bridgemodule.AppModuleBasic{},
paymentmodule.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
)

Expand All @@ -154,6 +160,8 @@ var (
stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking},
stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking},
govtypes.ModuleName: {authtypes.Burner},
ibctransfertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
owen-reorg marked this conversation as resolved.
Show resolved Hide resolved
paymentmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
crosschaintypes.ModuleName: {authtypes.Minter},
bridgemoduletypes.ModuleName: nil,
// this line is used by starport scaffolding # stargate/app/maccPerms
Expand Down Expand Up @@ -206,8 +214,8 @@ type App struct {
OracleKeeper oraclekeeper.Keeper

BfsKeeper bfsmodulekeeper.Keeper

BridgeKeeper bridgemodulekeeper.Keeper
PaymentKeeper paymentmodulekeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration

// mm is the module manager
Expand Down Expand Up @@ -260,6 +268,7 @@ func New(
crosschaintypes.StoreKey,
oracletypes.StoreKey,
bridgemoduletypes.StoreKey,
paymentmoduletypes.StoreKey,
// this line is used by starport scaffolding # stargate/app/storeKey
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
Expand Down Expand Up @@ -418,6 +427,17 @@ func New(
)
bridgeModule := bridgemodule.NewAppModule(appCodec, app.BridgeKeeper, app.AccountKeeper, app.BankKeeper)

app.PaymentKeeper = *paymentmodulekeeper.NewKeeper(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any pattern to follow, since some NewKeeper return pointer, some return structure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the original keepers are structures, and the keepers generated by ignite are pointers.

I checked the usage of ignite generated NewKeeper, it's only used in app.go and test utils. It should be fine to change the return value to structure style. We can submit another refactor PR to change all this later.

appCodec,
keys[paymentmoduletypes.StoreKey],
keys[paymentmoduletypes.MemStoreKey],
app.GetSubspace(paymentmoduletypes.ModuleName),

app.BankKeeper,
app.AccountKeeper,
)
paymentModule := paymentmodule.NewAppModule(appCodec, app.PaymentKeeper, app.AccountKeeper, app.BankKeeper)

// this line is used by starport scaffolding # stargate/app/keeperDefinition

/**** Module Options ****/
Expand Down Expand Up @@ -447,6 +467,7 @@ func New(
oracle.NewAppModule(app.OracleKeeper),
bfsModule,
bridgeModule,
paymentModule,
// this line is used by starport scaffolding # stargate/app/appModule
)

Expand All @@ -471,6 +492,7 @@ func New(
crosschaintypes.ModuleName,
oracletypes.ModuleName,
bridgemoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/beginBlockers
)

Expand All @@ -490,6 +512,7 @@ func New(
crosschaintypes.ModuleName,
oracletypes.ModuleName,
bridgemoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/endBlockers
)

Expand All @@ -514,6 +537,7 @@ func New(
crosschaintypes.ModuleName,
oracletypes.ModuleName,
bridgemoduletypes.ModuleName,
paymentmoduletypes.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
)

Expand All @@ -540,6 +564,7 @@ func New(
oracle.NewAppModule(app.OracleKeeper),
bfsModule,
bridgeModule,
paymentModule,
// this line is used by starport scaffolding # stargate/app/appModule
)
app.sm.RegisterStoreDecoders()
Expand Down Expand Up @@ -768,6 +793,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(crosschaintypes.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName)
paramsKeeper.Subspace(bridgemoduletypes.ModuleName)
paramsKeeper.Subspace(paymentmoduletypes.ModuleName)
// this line is used by starport scaffolding # stargate/app/paramSubspace

return paramsKeeper
Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func init() {
simapp.GetSimulatorFlags()
}

// nolint: unused
// nolint
var defaultConsensusParams = &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxBytes: 200000,
Expand Down
44 changes: 40 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,55 @@
version: 1
accounts:
- name: alice
coins: ["20000token", "200000000stake"]
coins: ["200000000000000token", "200000000stake"]
mnemonic: "marine giant loud party thrive venture winter ill grid kind bus shaft custom bunker cable trend another mosquito banner curtain rib asthma board beach"
- name: bob
coins: ["10000token", "100000000stake"]
coins: ["10000token", "200000000stake"]
mnemonic: "bridge zoo loyal super right wet cool nice interest bronze bring behave smoke transfer palace arctic cool thank outer runway blade diesel giraffe goat"
- name: sp0
coins: ["200000000000000token", "200000000stake"]
mnemonic: "million twice blue eternal travel number section abstract chest affair decade volcano member impose setup floor rail title female spider item nature reunion shoulder"
- name: sp1
coins: ["200000000000000token", "200000000stake"]
mnemonic: "tackle saddle wine net release bread guide reject chat cluster truly soap garden ugly search elegant hurry scrap surge item thunder liquid crop machine"
- name: sp2
coins: ["200000000000000token", "200000000stake"]
mnemonic: "genre cash give exercise dumb glove switch laugh umbrella welcome fix census record sheriff process bicycle zero apple message hunt private myself pig wealth"
- name: sp3
coins: ["200000000000000token", "200000000stake"]
mnemonic: "top ritual shaft camera type embody wedding daring direct census dad dilemma gorilla tree iron forum notable will drum bright student exhibit abuse pass"
- name: sp4
coins: ["200000000000000token", "200000000stake"]
mnemonic: "drip muffin rule hurry orphan wink light draft slush dune wisdom flag convince next this define copy pulp piano document someone found slight random"
- name: sp5
coins: ["200000000000000token", "200000000stake"]
mnemonic: "sudden float cube train okay range soap raw noise gorilla thrive clip baby december tenant help slim tumble version maximum ride buddy place loyal"
- name: sp6
coins: ["200000000000000token", "200000000stake"]
mnemonic: "among hamster prison animal grant resource crime rough affair train pelican swallow fee stove ring silk truck person loan fit play excuse athlete sauce"
- name: user
coins: ["200000000000000token", "200000000stake"]
mnemonic: "faith bomb frequent inflict endless cute glass kick session fence sell firm energy sun march melody claim almost useless burden fish force gorilla immense"
- name: user2
coins: ["200000000000000token", "200000000stake"]
mnemonic: "home piano firm basket label melt shove rhythm opinion question dragon gain sister someone marble program hurdle neither absent gown end woman stadium rare"
validators:
- name: alice
bonded: "100000000stake"
validator_addr: 0xb7B7BC92b60794be9f83D4ebAB30760407bA1676
relayer_addr: 0xb7B7BC92b60794be9f83D4ebAB30760407bA1676
relayer_blskey: ac1e598ae0ccbeeaafa31bc6faefa85c2ae3138699cac79169cd718f1a38445201454ec092a86f200e08a15266bdc6e9
gentx:
min-self-delegation: 10000
faucet:
name: bob
coins: ["5token", "100000stake"]

init:
client:
chain-id: "inscription_9000-1"

genesis:
chain_id: "inscription_9000-1"
app_state:
gov:
voting_params:
voting_period: "300s"
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ require (

require golang.org/x/text v0.5.0 // indirect

require github.com/spf13/viper v1.13.0
require (
github.com/cosmos/cosmos-proto v1.0.0-alpha7
github.com/cosmos/gogoproto v1.4.3
github.com/spf13/viper v1.13.0
)

require (
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
Expand Down Expand Up @@ -62,7 +66,6 @@ require (
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/containerd v1.6.8 // indirect
github.com/cosmos/btcutil v1.0.4 // indirect
github.com/cosmos/cosmos-proto v1.0.0-alpha7 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gorocksdb v1.2.0 // indirect
github.com/cosmos/iavl v0.19.4 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ github.com/cosmos/cosmos-sdk/ics23/go v0.8.0/go.mod h1:2a4dBq88TUoqoWAU5eu0lGvpF
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
github.com/cosmos/gogoproto v1.4.3 h1:RP3yyVREh9snv/lsOvmsAPQt8f44LgL281X0IOIhhcI=
github.com/cosmos/gogoproto v1.4.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU=
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.19.4 h1:t82sN+Y0WeqxDLJRSpNd8YFX5URIrT+p8n6oJbJ2Dok=
Expand Down
2 changes: 1 addition & 1 deletion proto/bfs/bfs/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
syntax = "proto3";
package bfs.bfs;

import "gogoproto/gogo.proto";
import "bfs/bfs/params.proto";
import "gogoproto/gogo.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/bnb-chain/bfs/x/bfs/types";
Expand Down
1 change: 0 additions & 1 deletion proto/bfs/bfs/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ option go_package = "github.com/bnb-chain/bfs/x/bfs/types";
// Params defines the parameters for the module.
message Params {
option (gogoproto.goproto_stringer) = false;

}
4 changes: 2 additions & 2 deletions proto/bfs/bfs/query.proto
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
syntax = "proto3";
package bfs.bfs;

import "bfs/bfs/params.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "bfs/bfs/params.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/bnb-chain/bfs/x/bfs/types";
Expand Down
2 changes: 1 addition & 1 deletion proto/bfs/bfs/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ option go_package = "github.com/bnb-chain/bfs/x/bfs/types";

// Msg defines the Msg service.
service Msg {
// this line is used by starport scaffolding # proto/tx/rpc
// this line is used by starport scaffolding # proto/tx/rpc
}

// this line is used by starport scaffolding # proto/tx/message
9 changes: 9 additions & 0 deletions proto/bfs/payment/auto_settle_queue.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
syntax = "proto3";
package bnbchain.bfs.payment;

option go_package = "github.com/bnb-chain/bfs/x/payment/types";

message AutoSettleQueue {
int64 timestamp = 1;
string addr = 2;
}
24 changes: 24 additions & 0 deletions proto/bfs/payment/base.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";
package bnbchain.bfs.payment;

import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/bnb-chain/bfs/x/payment/types";

message OutFlowInUSD {
string spAddress = 1;
string rate = 2 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}

enum ReadPacket {
option (gogoproto.goproto_enum_prefix) = false;

ReadPacketFree = 0;
ReadPacket1GB = 1;
ReadPacket10GB = 2;
}
14 changes: 14 additions & 0 deletions proto/bfs/payment/bnb_price.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
syntax = "proto3";
package bnbchain.bfs.payment;

option go_package = "github.com/bnb-chain/bfs/x/payment/types";

message SingleBnbPrice {
int64 time = 1;
// price in USD, cast to uint64 with 8 decimal places, e.g. "276.40000000" => 27640000000
uint64 price = 2;
}

message BnbPrice {
repeated SingleBnbPrice prices = 1;
}
22 changes: 22 additions & 0 deletions proto/bfs/payment/events.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";
package bnbchain.bfs.payment;

import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/bnb-chain/bfs/x/payment/types";

message EventCreatePaymentAccount {
string addr = 1;
string owner = 2;
uint64 index = 3;
}

message EventForceSettle {
string addr = 1;
string settledBalance = 2 [
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
Loading