mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
(no commit message provided)
This commit is contained in:
parent
e8317c4955
commit
d6998303e8
17
Taskfile.yml
17
Taskfile.yml
@ -1,17 +0,0 @@
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
dev:
|
||||
cmd: air
|
||||
|
||||
install:
|
||||
cmd: make install
|
||||
|
||||
testnet:
|
||||
cmd: make sh-testnet
|
||||
|
||||
proto:
|
||||
cmd: devbox -q run proto
|
||||
|
||||
build:sonrd:
|
||||
cmd: go build -o ./bin/sonrd ./cmd/sonrd
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -7,8 +7,10 @@
|
||||
},
|
||||
"shell": {
|
||||
"scripts": {
|
||||
"install": ["make install"],
|
||||
"proto": ["make proto-gen"],
|
||||
"ps": ["devbox services ls"]
|
||||
"build": ["go build -o ./bin/sonrd ./cmd/sonrd"],
|
||||
"testnet": ["make sh-testnet"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,8 @@ package did.v1;
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
import "amino/amino.proto";
|
||||
import "did/v1/types.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/hway/x/did/types";
|
||||
|
||||
// GenesisState defines the module genesis state
|
||||
@ -24,50 +26,4 @@ message Params {
|
||||
repeated ChainInfo whitelisted_chains = 2;
|
||||
}
|
||||
|
||||
message AssetInfo {
|
||||
string id = 1;
|
||||
string denom = 2;
|
||||
string symbol = 3;
|
||||
string asset_type = 4;
|
||||
string origin_chain = 5;
|
||||
string origin_denom = 6;
|
||||
int32 decimals = 7;
|
||||
string description = 8;
|
||||
string image_url = 9;
|
||||
string coingecko_id = 10;
|
||||
bool is_enabled = 11;
|
||||
string ibc_path = 12;
|
||||
string ibc_channel = 13;
|
||||
string ibc_port = 14;
|
||||
}
|
||||
|
||||
message ChainInfo {
|
||||
string id = 1;
|
||||
string chain_id = 2;
|
||||
string name = 3;
|
||||
string symbol = 4;
|
||||
string bech32_prefix = 5;
|
||||
string genesis_time = 6;
|
||||
repeated Endpoint grpc_endpoints = 7;
|
||||
repeated Endpoint rest_endpoints = 8;
|
||||
ExplorerInfo explorer = 9;
|
||||
FeeInfo fee_info = 10;
|
||||
}
|
||||
|
||||
message Endpoint {
|
||||
string url = 1;
|
||||
bool is_primary = 2;
|
||||
}
|
||||
|
||||
message ExplorerInfo {
|
||||
string name = 1;
|
||||
string url = 2;
|
||||
}
|
||||
|
||||
message FeeInfo {
|
||||
string base_denom = 1;
|
||||
repeated string fee_rates = 2;
|
||||
int32 init_gas_limit = 3;
|
||||
bool is_simulable = 4;
|
||||
double gas_multiply = 5;
|
||||
}
|
||||
|
@ -3,12 +3,43 @@ syntax = "proto3";
|
||||
package did.v1;
|
||||
|
||||
import "cosmos/msg/v1/msg.proto";
|
||||
import "did/v1/genesis.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
import "cosmos_proto/cosmos.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/hway/x/did/types";
|
||||
|
||||
// AssetInfo defines the asset info
|
||||
message AssetInfo {
|
||||
string id = 1;
|
||||
string denom = 2;
|
||||
string symbol = 3;
|
||||
string asset_type = 4;
|
||||
string origin_chain = 5;
|
||||
string origin_denom = 6;
|
||||
int32 decimals = 7;
|
||||
string description = 8;
|
||||
string image_url = 9;
|
||||
string coingecko_id = 10;
|
||||
bool is_enabled = 11;
|
||||
string ibc_path = 12;
|
||||
string ibc_channel = 13;
|
||||
string ibc_port = 14;
|
||||
}
|
||||
|
||||
// ChainInfo defines the chain info
|
||||
message ChainInfo {
|
||||
string id = 1;
|
||||
string chain_id = 2;
|
||||
string name = 3;
|
||||
string symbol = 4;
|
||||
string bech32_prefix = 5;
|
||||
string genesis_time = 6;
|
||||
repeated Endpoint grpc_endpoints = 7;
|
||||
repeated Endpoint rest_endpoints = 8;
|
||||
ExplorerInfo explorer = 9;
|
||||
FeeInfo fee_info = 10;
|
||||
}
|
||||
|
||||
// Credential defines a WebAuthn credential
|
||||
message Credential {
|
||||
string id = 1;
|
||||
@ -30,6 +61,27 @@ message Document {
|
||||
repeated string capability_invocation = 8;
|
||||
}
|
||||
|
||||
// Endpoint defines an endpoint
|
||||
message Endpoint {
|
||||
string url = 1;
|
||||
bool is_primary = 2;
|
||||
}
|
||||
|
||||
// ExplorerInfo defines the explorer info
|
||||
message ExplorerInfo {
|
||||
string name = 1;
|
||||
string url = 2;
|
||||
}
|
||||
|
||||
// FeeInfo defines a fee info
|
||||
message FeeInfo {
|
||||
string base_denom = 1;
|
||||
repeated string fee_rates = 2;
|
||||
int32 init_gas_limit = 3;
|
||||
bool is_simulable = 4;
|
||||
double gas_multiply = 5;
|
||||
}
|
||||
|
||||
// Identity defines an associated profile for a did subject
|
||||
message Identity {
|
||||
string id = 1;
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user