Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ EXPO_PUBLIC_PUBLIC_TENOR_KEY=AIzaSyA8TpVfoyoBaDdLww6wJ1Xe0OVN-Hi8qPE
#map token
EXPO_PUBLIC_LEAFLET_MAP_TOKEN=QkwJFLzzxPan25YCgnDExGpMFPxA3x4lnyKiUf8zmaqXLP5XyOR8n3yEM8jlKV3W

# MULTISIG_BACKEND_URL=http://localhost:9091 # you can use this for local testing
# EXPO_PUBLIC_MULTISIG_BACKEND_URL=http://localhost:9091 # you can use this for local testing
8 changes: 8 additions & 0 deletions .yarn/patches/@bufbuild-protobuf-npm-2.7.0-79729124a9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
diff --git a/wire/index.js b/wire/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..f3675c96d787204d17fde2d55bd2505932aa33d6
--- /dev/null
+++ b/wire/index.js
@@ -0,0 +1 @@
+export * from "../dist/cjs/wire/index.js";
\ No newline at end of file
10 changes: 10 additions & 0 deletions api/multisig/v1/multisig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ message Multisig {
string pubkey_json = 7;
repeated string users_addresses = 8;
uint32 threshold = 9;
string chain_type = 10;
}

message Signature {
Expand All @@ -59,6 +60,7 @@ message Transaction {
repeated Signature signatures = 13;
string multisig_pubkey_json = 14;
uint32 id = 15;
string chain_type = 16;
}

// we use string here because browser storage poorly supports bytes
Expand Down Expand Up @@ -87,6 +89,7 @@ message MultisigsRequest {
string start_after = 3;
string chain_id = 4;
JoinState join_state = 5;
string chain_type = 6;
}

message MultisigsResponse {
Expand All @@ -97,6 +100,7 @@ message MultisigInfoRequest {
Token auth_token = 1;
string multisig_address = 2;
string chain_id = 3;
string chain_type = 4;
}

message MultisigInfoResponse {
Expand All @@ -117,6 +121,7 @@ message TransactionsRequest {
string chain_id = 5;
repeated string types = 6;
ExecutionState execution_state = 7;
string chain_type = 8;
}

message TransactionsResponse {
Expand All @@ -129,6 +134,7 @@ message CreateOrJoinMultisigRequest {
Token auth_token = 3;
string name = 4;
string bech32_prefix = 5;
string chain_type = 6;
}

message CreateOrJoinMultisigResponse {
Expand All @@ -141,6 +147,7 @@ message LeaveMultisigRequest {
string multisig_address = 1;
Token auth_token = 2;
string chain_id = 3;
string chain_type = 4;
}

message LeaveMultisigResponse {
Expand All @@ -155,6 +162,7 @@ message CreateTransactionRequest {
repeated google.protobuf.Any msgs = 6;
string fee_json = 7;
string chain_id = 8;
string chain_type = 9;
}

message CreateTransactionResponse {
Expand Down Expand Up @@ -187,6 +195,7 @@ message ClearSignaturesRequest {
string multisig_chain_id = 2;
string multisig_address = 3;
uint32 sequence = 4;
string chain_type = 5;
}

message ClearSignaturesResponse {
Expand Down Expand Up @@ -221,6 +230,7 @@ message TransactionsCountsRequest {
Token auth_token = 1;
string multisig_address = 2; // if unspecified, return transactions for all multisigs of this user
string chain_id = 3;
string chain_type = 4;
}

message TransactionsCount {
Expand Down
102 changes: 53 additions & 49 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/TERITORI/teritori-dapp

go 1.18
go 1.23.0

toolchain go1.24.0

require (
cosmossdk.io/math v1.2.0
Expand All @@ -15,16 +17,16 @@ require (
github.com/dgraph-io/ristretto v0.1.1
github.com/ethereum/go-ethereum v1.11.6
github.com/friendsofgo/errors v0.9.2
github.com/gnolang/gno v0.0.0-20250903104743-a56a225e7cee
github.com/go-co-op/gocron v1.18.0
github.com/gorilla/websocket v1.5.0
github.com/gorilla/websocket v1.5.3
github.com/improbable-eng/grpc-web v0.15.0
github.com/jackc/pgx/v5 v5.3.0
github.com/joho/godotenv v1.5.1
github.com/lib/pq v1.10.7
github.com/mehanizm/airtable v0.2.8
github.com/miguelmota/go-ethereum-hdwallet v0.1.2
github.com/mitchellh/mapstructure v1.5.0
github.com/peterbourgon/ff/v3 v3.3.0
github.com/peterbourgon/ff/v3 v3.4.0
github.com/pkg/errors v0.9.1
github.com/rubenv/sql-migrate v1.2.0
github.com/spf13/cobra v1.7.0
Expand All @@ -36,25 +38,25 @@ require (
github.com/streamingfast/shutter v1.5.0
github.com/streamingfast/substreams v1.1.8-0.20230705171054-90758978ac9c
github.com/streamingfast/substreams-sink v0.2.7-0.20230712142916-a92b1a65a261
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.10.0
github.com/volatiletech/null/v8 v8.1.2
github.com/volatiletech/sqlboiler/v4 v4.13.0
github.com/volatiletech/strmangle v0.0.4
go.uber.org/zap v1.24.0
golang.org/x/crypto v0.14.0
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.40.0
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb
google.golang.org/grpc v1.58.3
google.golang.org/protobuf v1.31.0
google.golang.org/grpc v1.69.4
google.golang.org/protobuf v1.36.3
gorm.io/datatypes v1.2.0
gorm.io/driver/postgres v1.5.0
gorm.io/driver/sqlite v1.4.3
gorm.io/gorm v1.24.7-0.20230306060331-85eaf9eeda11
)

require (
cel.dev/expr v0.16.2 // indirect
cloud.google.com/go v0.110.8 // indirect
cloud.google.com/go/compute v1.23.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/compute/metadata v0.5.2 // indirect
cloud.google.com/go/iam v1.1.2 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/api v0.3.1 // indirect
Expand All @@ -79,19 +81,16 @@ require (
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/blendle/zapdriver v1.3.1 // indirect
github.com/bobg/go-generics/v2 v2.1.1 // indirect
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/btcsuite/btcd/btcutil v1.1.6 // indirect
github.com/bufbuild/protocompile v0.4.0 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/cncf/udpa/go v0.0.0-20220112060539-c52dc94e7fbe // indirect
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 // indirect
github.com/cockroachdb/errors v1.10.0 // indirect
github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 // indirect
github.com/cockroachdb/errors v1.11.3 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
Expand All @@ -104,30 +103,30 @@ require (
github.com/cosmos/iavl v0.20.1 // indirect
github.com/cosmos/ibc-go/v7 v7.2.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.12.4 // indirect
github.com/cosmos/ledger-cosmos-go v0.14.0 // indirect
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
github.com/creachadair/taskgroup v0.4.2 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/envoyproxy/go-control-plane v0.11.1 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect
github.com/envoyproxy/go-control-plane v0.13.1 // indirect
github.com/envoyproxy/protoc-gen-validate v1.1.0 // indirect
github.com/ericlagergren/decimal v0.0.0-20181231230500-73749d4874d5 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/getsentry/sentry-go v0.23.0 // indirect
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/go-gorp/gorp/v3 v3.0.2 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.1 // indirect
github.com/go-sql-driver/mysql v1.7.0 // indirect
Expand All @@ -136,17 +135,17 @@ require (
github.com/gofrs/uuid v4.3.1+incompatible // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.1.2 // indirect
github.com/golang/glog v1.2.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/btree v1.1.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.4 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
Expand Down Expand Up @@ -215,23 +214,24 @@ require (
github.com/paulbellamy/ratecounter v0.2.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.16.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.11.0 // indirect
github.com/rakyll/statik v0.1.7 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/rs/cors v1.8.3 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/rs/zerolog v1.30.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/schollz/closestmatch v2.1.0+incompatible // indirect
github.com/sethvargo/go-retry v0.2.3 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/streamingfast/atm v0.0.0-20220131151839-18c87005e680 // indirect
Expand All @@ -249,37 +249,37 @@ require (
github.com/tidwall/btree v1.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/vektah/gqlparser/v2 v2.4.5 // indirect
github.com/volatiletech/inflect v0.0.1 // indirect
github.com/volatiletech/randomize v0.0.1 // indirect
github.com/whyrusleeping/tar-utils v0.0.0-20180509141711-8c6c8ba81d5c // indirect
github.com/yourbasic/graph v0.0.0-20210606180040-8ecfec1c2869 // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.36.4 // indirect
go.opentelemetry.io/otel v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/trace v1.16.0 // indirect
go.opentelemetry.io/otel v1.34.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/goleak v1.2.1 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.10.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/mod v0.26.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.34.0 // indirect
golang.org/x/term v0.33.0 // indirect
golang.org/x/text v0.28.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.128.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand All @@ -290,3 +290,7 @@ require (
pgregory.net/rapid v0.5.5 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/cometbft/cometbft => github.com/samouraiworld/cometbft v0.0.0-20250903152050-4bcfdb17ec79

replace github.com/cosmos/cosmos-sdk => github.com/samouraiworld/cosmos-sdk v0.0.0-20250904074130-b62c52c148f7
Loading
Loading