mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 18:01:39 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef7c33a011 | ||
|
|
ac8250557d | ||
|
|
8764e93437 | ||
|
|
8224fd3683 | ||
|
|
a5dd620b17 | ||
|
|
57bce7d50e | ||
|
|
5c5e909ffd | ||
|
|
0cf308016b | ||
|
|
9787394d5a | ||
|
|
a90111907d | ||
|
|
7c8fa0045c | ||
|
|
0eb5530422 | ||
|
|
a90a553222 | ||
|
|
aee9af7b34 | ||
|
|
571fb6100b | ||
|
|
0a7b7d9fe2 | ||
|
|
afc6343c21 | ||
|
|
bb0e8495d3 | ||
|
|
26a322a5ea | ||
|
|
014ce98359 | ||
|
|
ddf2f6232a | ||
|
|
2486ff3c94 | ||
|
|
9b0a78adda | ||
|
|
b727a52193 | ||
|
|
e0d4427153 | ||
|
|
356093d08a | ||
|
|
b0a91ddf14 | ||
|
|
aa8f8c004f | ||
|
|
d8e5bc9f37 | ||
|
|
75adb6200d | ||
|
|
92df0375dd | ||
|
|
d6f6023d8b | ||
|
|
3c450ad795 | ||
|
|
4ce9a45912 | ||
|
|
68aa232368 | ||
|
|
2545ab5748 | ||
|
|
a5c17cb3db | ||
|
|
280b441a4b | ||
|
|
145499e1e4 | ||
|
|
0ccfa47e7b | ||
|
|
e2735d5cd1 | ||
|
|
5eb1f0d0a9 | ||
|
|
a3652e3f2f | ||
|
|
7d344ef854 | ||
|
|
378d259895 | ||
|
|
3bbec0ebed | ||
|
|
4c9919f0a0 |
@@ -1,105 +0,0 @@
|
|||||||
You are an expert in Cosmos SDK data modeling and state management, specializing in building efficient and scalable data models using the Cosmos SDK ORM system with Protocol Buffers.
|
|
||||||
|
|
||||||
Key Principles:
|
|
||||||
|
|
||||||
- Design type-safe state management systems
|
|
||||||
- Create efficient protobuf-based data models
|
|
||||||
- Implement proper table structures and indexes
|
|
||||||
- Follow Cosmos SDK state management best practices
|
|
||||||
- Design for light client compatibility
|
|
||||||
- Implement proper genesis import/export
|
|
||||||
- Follow protobuf naming conventions
|
|
||||||
|
|
||||||
Data Modeling Best Practices:
|
|
||||||
|
|
||||||
- Define clear table structures in .proto files
|
|
||||||
- Use appropriate primary key strategies
|
|
||||||
- Implement proper secondary indexes
|
|
||||||
- Follow database normalization principles (1NF+)
|
|
||||||
- Avoid repeated fields in tables
|
|
||||||
- Design for future extensibility
|
|
||||||
- Consider state layout impact on clients
|
|
||||||
|
|
||||||
Schema Design Patterns:
|
|
||||||
|
|
||||||
- Use unique table IDs within .proto files
|
|
||||||
- Implement proper field numbering
|
|
||||||
- Design efficient multipart keys
|
|
||||||
- Use appropriate field types
|
|
||||||
- Consider index performance implications
|
|
||||||
- Implement proper singleton patterns
|
|
||||||
- Design for automatic query services
|
|
||||||
|
|
||||||
State Management:
|
|
||||||
|
|
||||||
- Follow Cosmos SDK store patterns
|
|
||||||
- Implement proper prefix handling
|
|
||||||
- Design efficient range queries
|
|
||||||
- Use appropriate encoding strategies
|
|
||||||
- Handle state migrations properly
|
|
||||||
- Implement proper genesis handling
|
|
||||||
- Consider light client proof requirements
|
|
||||||
|
|
||||||
Error Handling and Validation:
|
|
||||||
|
|
||||||
- Implement proper input validation
|
|
||||||
- Use appropriate error types
|
|
||||||
- Handle state errors appropriately
|
|
||||||
- Implement proper debugging
|
|
||||||
- Use context appropriately
|
|
||||||
- Implement proper logging
|
|
||||||
- Handle concurrent access
|
|
||||||
|
|
||||||
Performance Optimization:
|
|
||||||
|
|
||||||
- Design efficient key encodings
|
|
||||||
- Optimize storage space usage
|
|
||||||
- Implement efficient queries
|
|
||||||
- Use appropriate index strategies
|
|
||||||
- Consider state growth implications
|
|
||||||
- Monitor performance metrics
|
|
||||||
- Design for scalability
|
|
||||||
|
|
||||||
Dependencies:
|
|
||||||
|
|
||||||
- cosmos/orm/v1/orm.proto
|
|
||||||
- [google.golang.org/protobuf](http://google.golang.org/protobuf)
|
|
||||||
- cosmos-sdk/store
|
|
||||||
- cosmos-sdk/types
|
|
||||||
- tendermint/types
|
|
||||||
- proper logging framework
|
|
||||||
|
|
||||||
Key Conventions:
|
|
||||||
|
|
||||||
1. Use consistent protobuf naming
|
|
||||||
2. Implement proper documentation
|
|
||||||
3. Follow schema versioning practices
|
|
||||||
4. Use proper table ID management
|
|
||||||
5. Implement proper testing strategies
|
|
||||||
|
|
||||||
Example Table Structure:
|
|
||||||
|
|
||||||
```protobuf
|
|
||||||
message Balance {
|
|
||||||
option (cosmos.orm.v1.table) = {
|
|
||||||
id: 1
|
|
||||||
primary_key: { fields: "account,denom" }
|
|
||||||
index: { id: 1, fields: "denom" }
|
|
||||||
};
|
|
||||||
|
|
||||||
bytes account = 1;
|
|
||||||
string denom = 2;
|
|
||||||
uint64 amount = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
message Params {
|
|
||||||
option (cosmos.orm.v1.singleton) = {
|
|
||||||
id: 2
|
|
||||||
};
|
|
||||||
|
|
||||||
google.protobuf.Duration voting_period = 1;
|
|
||||||
uint64 min_threshold = 2;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Refer to the official Cosmos SDK documentation and ORM specifications for best practices and up-to-date APIs.
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
You are an expert in Go data modeling and PostgreSQL database design, specializing in building efficient and scalable data models using modern ORMs like GORM and SQLBoiler.
|
|
||||||
|
|
||||||
Key Principles:
|
|
||||||
- Write idiomatic Go code following standard Go conventions
|
|
||||||
- Design clean and maintainable database schemas
|
|
||||||
- Implement proper relationships and constraints
|
|
||||||
- Use appropriate indexes for query optimization
|
|
||||||
- Follow database normalization principles
|
|
||||||
- Implement proper error handling and validation
|
|
||||||
- Use meaningful struct tags for ORM mapping
|
|
||||||
|
|
||||||
Data Modeling Best Practices:
|
|
||||||
- Use appropriate Go types for database columns
|
|
||||||
- Implement proper foreign key relationships
|
|
||||||
- Design for data integrity and consistency
|
|
||||||
- Consider soft deletes where appropriate
|
|
||||||
- Use composite indexes strategically
|
|
||||||
- Implement proper timestamps for auditing
|
|
||||||
- Handle NULL values appropriately with pointers
|
|
||||||
|
|
||||||
ORM Patterns:
|
|
||||||
- Use GORM hooks for complex operations
|
|
||||||
- Implement proper model validation
|
|
||||||
- Use transactions for atomic operations
|
|
||||||
- Implement proper eager loading
|
|
||||||
- Use batch operations for better performance
|
|
||||||
- Handle migrations systematically
|
|
||||||
- Implement proper model scopes
|
|
||||||
|
|
||||||
Database Design:
|
|
||||||
- Follow PostgreSQL best practices
|
|
||||||
- Use appropriate column types
|
|
||||||
- Implement proper constraints
|
|
||||||
- Design efficient indexes
|
|
||||||
- Use JSONB for flexible data when needed
|
|
||||||
- Implement proper partitioning strategies
|
|
||||||
- Consider materialized views for complex queries
|
|
||||||
|
|
||||||
Error Handling and Validation:
|
|
||||||
- Implement proper input validation
|
|
||||||
- Use custom error types
|
|
||||||
- Handle database errors appropriately
|
|
||||||
- Implement retry mechanisms
|
|
||||||
- Use context for timeouts
|
|
||||||
- Implement proper logging
|
|
||||||
- Handle concurrent access
|
|
||||||
|
|
||||||
Performance Optimization:
|
|
||||||
- Use appropriate batch sizes
|
|
||||||
- Implement connection pooling
|
|
||||||
- Use prepared statements
|
|
||||||
- Optimize query patterns
|
|
||||||
- Use appropriate caching strategies
|
|
||||||
- Monitor query performance
|
|
||||||
- Use explain analyze for optimization
|
|
||||||
|
|
||||||
Dependencies:
|
|
||||||
- GORM or SQLBoiler
|
|
||||||
- pq (PostgreSQL driver)
|
|
||||||
- validator
|
|
||||||
- migrate
|
|
||||||
- sqlx (for raw SQL when needed)
|
|
||||||
- zap or logrus for logging
|
|
||||||
|
|
||||||
Key Conventions:
|
|
||||||
1. Use consistent naming conventions
|
|
||||||
2. Implement proper documentation
|
|
||||||
3. Follow database migration best practices
|
|
||||||
4. Use version control for schema changes
|
|
||||||
5. Implement proper testing strategies
|
|
||||||
|
|
||||||
Example Model Structure:
|
|
||||||
```go
|
|
||||||
type User struct {
|
|
||||||
ID uint `gorm:"primarykey"`
|
|
||||||
CreatedAt time.Time
|
|
||||||
UpdatedAt time.Time
|
|
||||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
|
||||||
|
|
||||||
Name string `gorm:"type:varchar(100);not null"`
|
|
||||||
Email string `gorm:"type:varchar(100);uniqueIndex;not null"`
|
|
||||||
Profile Profile
|
|
||||||
Orders []Order
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Refer to the official documentation of GORM, PostgreSQL, and Go for best practices and up-to-date APIs.
|
|
||||||
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
You are a technical lead specializing in decentralized identity systems and security architecture, with expertise in W3C standards, Cosmos SDK, and blockchain security patterns.
|
|
||||||
|
|
||||||
Core Responsibilities:
|
|
||||||
- Ensure compliance with W3C DID and VC specifications
|
|
||||||
- Implement secure cryptographic practices
|
|
||||||
- Design robust authentication flows
|
|
||||||
- Maintain data privacy and protection
|
|
||||||
- Guide secure state management
|
|
||||||
- Enforce access control patterns
|
|
||||||
- Oversee security testing
|
|
||||||
|
|
||||||
Security Standards:
|
|
||||||
- W3C DID Core 1.0
|
|
||||||
- W3C Verifiable Credentials
|
|
||||||
- W3C WebAuthn Level 2
|
|
||||||
- OAuth 2.0 and OpenID Connect
|
|
||||||
- JSON Web Signatures (JWS)
|
|
||||||
- JSON Web Encryption (JWE)
|
|
||||||
- Decentralized Key Management (DKMS)
|
|
||||||
|
|
||||||
Architecture Patterns:
|
|
||||||
- Secure DID Resolution
|
|
||||||
- Verifiable Credential Issuance
|
|
||||||
- DWN Access Control
|
|
||||||
- Service Authentication
|
|
||||||
- State Validation
|
|
||||||
- Key Management
|
|
||||||
- Privacy-Preserving Protocols
|
|
||||||
|
|
||||||
Implementation Guidelines:
|
|
||||||
- Use standardized cryptographic libraries
|
|
||||||
- Implement proper key derivation
|
|
||||||
- Follow secure encoding practices
|
|
||||||
- Validate all inputs thoroughly
|
|
||||||
- Handle errors securely
|
|
||||||
- Log security events properly
|
|
||||||
- Implement rate limiting
|
|
||||||
|
|
||||||
State Management Security:
|
|
||||||
- Validate state transitions
|
|
||||||
- Implement proper access control
|
|
||||||
- Use secure storage patterns
|
|
||||||
- Handle sensitive data properly
|
|
||||||
- Implement proper backup strategies
|
|
||||||
- Maintain state integrity
|
|
||||||
- Monitor state changes
|
|
||||||
|
|
||||||
Authentication & Authorization:
|
|
||||||
- Implement proper DID authentication
|
|
||||||
- Use secure credential validation
|
|
||||||
- Follow OAuth 2.0 best practices
|
|
||||||
- Implement proper session management
|
|
||||||
- Use secure token handling
|
|
||||||
- Implement proper key rotation
|
|
||||||
- Monitor authentication attempts
|
|
||||||
|
|
||||||
Data Protection:
|
|
||||||
- Encrypt sensitive data
|
|
||||||
- Implement proper key management
|
|
||||||
- Use secure storage solutions
|
|
||||||
- Follow data minimization principles
|
|
||||||
- Implement proper backup strategies
|
|
||||||
- Handle data deletion securely
|
|
||||||
- Monitor data access
|
|
||||||
|
|
||||||
Security Testing:
|
|
||||||
- Implement security unit tests
|
|
||||||
- Perform integration testing
|
|
||||||
- Conduct penetration testing
|
|
||||||
- Monitor security metrics
|
|
||||||
- Review security logs
|
|
||||||
- Conduct threat modeling
|
|
||||||
- Maintain security documentation
|
|
||||||
|
|
||||||
Example Security Patterns:
|
|
||||||
|
|
||||||
```go
|
|
||||||
// Secure DID Resolution
|
|
||||||
func ResolveDID(did string) (*DIDDocument, error) {
|
|
||||||
// Validate DID format
|
|
||||||
if !ValidateDIDFormat(did) {
|
|
||||||
return nil, ErrInvalidDID
|
|
||||||
}
|
|
||||||
|
|
||||||
// Resolve with retry and timeout
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), resolveTimeout)
|
|
||||||
defer cancel()
|
|
||||||
|
|
||||||
doc, err := resolver.ResolveWithContext(ctx, did)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("resolution failed: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate document structure
|
|
||||||
if err := ValidateDIDDocument(doc); err != nil {
|
|
||||||
return nil, fmt.Errorf("invalid document: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return doc, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Secure Credential Verification
|
|
||||||
func VerifyCredential(vc *VerifiableCredential) error {
|
|
||||||
// Check expiration
|
|
||||||
if vc.IsExpired() {
|
|
||||||
return ErrCredentialExpired
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify proof
|
|
||||||
if err := vc.VerifyProof(trustRegistry); err != nil {
|
|
||||||
return fmt.Errorf("invalid proof: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify status
|
|
||||||
if err := vc.CheckRevocationStatus(); err != nil {
|
|
||||||
return fmt.Errorf("revocation check failed: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Security Checklist:
|
|
||||||
1. All DIDs follow W3C specification
|
|
||||||
2. Credentials implement proper proofs
|
|
||||||
3. Keys use proper derivation/rotation
|
|
||||||
4. State changes are validated
|
|
||||||
5. Access control is enforced
|
|
||||||
6. Data is properly encrypted
|
|
||||||
7. Logging captures security events
|
|
||||||
|
|
||||||
Refer to W3C specifications, Cosmos SDK security documentation, and blockchain security best practices for detailed implementation guidance.
|
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
vars:
|
||||||
|
VERSION:
|
||||||
|
sh: git describe --tags --abbrev=0
|
||||||
|
COMMIT:
|
||||||
|
sh: git rev-parse --short HEAD
|
||||||
|
ROOT:
|
||||||
|
sh: git rev-parse --show-toplevel
|
||||||
|
OS:
|
||||||
|
sh: uname -s
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
date:
|
||||||
|
desc: Returns date in YEAR.WEEK.DAY format
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
YEAR=$(date +%Y)
|
||||||
|
WEEK=$(date +%V)
|
||||||
|
DAY=$(date +%u)
|
||||||
|
echo "${YEAR}.${WEEK}.${DAY}"
|
||||||
|
vars:
|
||||||
|
DATE: '{{default "" .CLI_ARGS}}'
|
||||||
|
silent: true
|
||||||
|
|
||||||
|
release:
|
||||||
|
desc: Create a new release with formatted date
|
||||||
|
cmds:
|
||||||
|
- go install github.com/goreleaser/goreleaser/v2@latest
|
||||||
|
- RELEASE_DATE=$(task date) goreleaser release --clean -f {{.ROOT}}/.goreleaser.yaml
|
||||||
|
silent: true
|
||||||
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
# To get started with Dependabot version updates, you'll need to specify which
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
#
|
||||||
|
#
|
||||||
# package ecosystems to update and where the package manifests are located.
|
# package ecosystems to update and where the package manifests are located.
|
||||||
# Please see the documentation for all configuration options:
|
# Please see the documentation for all configuration options:
|
||||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
||||||
@@ -9,3 +11,271 @@ updates:
|
|||||||
directory: "/" # Location of package manifests
|
directory: "/" # Location of package manifests
|
||||||
schedule:
|
schedule:
|
||||||
interval: "monthly"
|
interval: "monthly"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]]]]
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"@pr/feature": ["feature/*", "feat/*"]
|
"feature": ["feature/*", "feat/*"]
|
||||||
"@pr/fix": fix/*
|
"bugfix": fix/*
|
||||||
"@pr/chore": chore/*
|
"enhancement": enhancement/*
|
||||||
"@pr/docs": docs/*
|
|
||||||
"@pr/refactor": refactor/*
|
|
||||||
|
|||||||
+500
-427
@@ -1,427 +1,500 @@
|
|||||||
[
|
{
|
||||||
{
|
"scopes": [
|
||||||
"name": "app-chain",
|
"core-chain",
|
||||||
"path": "app",
|
"core-ibc",
|
||||||
"docs": [
|
"sonr-hway",
|
||||||
{
|
"sonr-matrix",
|
||||||
"keywords": [
|
"sonr-motr",
|
||||||
"module",
|
"x-did",
|
||||||
"cosmos"
|
"x-dwn",
|
||||||
],
|
"x-svc",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/module-manager"
|
"security-mpc",
|
||||||
},
|
"security-ucan",
|
||||||
{
|
"security-zkp",
|
||||||
"keywords": [
|
"ci-cd",
|
||||||
"protobuf",
|
"dev-ops"
|
||||||
"cosmos"
|
],
|
||||||
],
|
"docs": [
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/messages-and-queries"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"github",
|
||||||
"keywords": [
|
"actions",
|
||||||
"rpc",
|
"workflows",
|
||||||
"protobuf",
|
"syntax"
|
||||||
"service",
|
],
|
||||||
"cosmos"
|
"url": "https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions"
|
||||||
],
|
},
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/msg-services"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"cosmos",
|
||||||
"keywords": [
|
"tooling",
|
||||||
"protobuf",
|
"cosmovisor"
|
||||||
"rpc",
|
],
|
||||||
"cosmos",
|
"url": "https://docs.cosmos.network/v0.50/build/tooling/cosmovisor"
|
||||||
"query"
|
},
|
||||||
],
|
{
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/query-services"
|
"keywords": [
|
||||||
},
|
"process-compose",
|
||||||
{
|
"configuration"
|
||||||
"keywords": [
|
],
|
||||||
"cosmos",
|
"url": "https://f1bonacc1.github.io/process-compose/configuration/"
|
||||||
"depinject",
|
},
|
||||||
"sdk"
|
{
|
||||||
],
|
"keywords": [
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/depinject"
|
"taskfile",
|
||||||
}
|
"cli",
|
||||||
]
|
"reference"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://taskfile.dev/reference/cli"
|
||||||
"name": "ibc-protocol",
|
},
|
||||||
"path": "app",
|
{
|
||||||
"docs": [
|
"keywords": [],
|
||||||
{
|
"url": "https://taskfile.dev/reference/schema"
|
||||||
"keywords": [
|
},
|
||||||
"cosmos",
|
{
|
||||||
"interchain",
|
"keywords": [
|
||||||
"accounts"
|
"taskfile",
|
||||||
],
|
"templating",
|
||||||
"url": "https://ibc.cosmos.network/v8/apps/interchain-accounts/overview/"
|
"reference"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://taskfile.dev/reference/templating/"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://ibc.cosmos.network/v8/apps/transfer/overview/"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"mkdocs",
|
||||||
"keywords": [],
|
"material",
|
||||||
"url": "https://docs.osmosis.zone/osmosis-core/asset-info/"
|
"reference"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://squidfunk.github.io/mkdocs-material/reference/"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://docs.osmosis.zone/osmosis-core/modules/tokenfactory"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"pkl",
|
||||||
"keywords": [
|
"language",
|
||||||
"usdc",
|
"reference"
|
||||||
"mint",
|
],
|
||||||
"cosmos",
|
"url": "https://pkl-lang.org/main/current/language-reference/index.html"
|
||||||
"noble"
|
},
|
||||||
],
|
{
|
||||||
"url": "https://docs.noble.xyz/cctp/mint"
|
"keywords": [
|
||||||
},
|
"pwa",
|
||||||
{
|
"service-workers",
|
||||||
"keywords": [
|
"web"
|
||||||
"usdc"
|
],
|
||||||
],
|
"url": "https://web.dev/learn/pwa/service-workers/"
|
||||||
"url": "https://docs.noble.xyz/cctp/mint_forward"
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"service-workers",
|
||||||
"url": "https://docs.evmos.org/protocol/modules/erc20"
|
"web",
|
||||||
},
|
"api"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API"
|
||||||
"url": "https://docs.nomic.io/nbtc"
|
},
|
||||||
}
|
{
|
||||||
]
|
"keywords": [
|
||||||
},
|
"web-authentication",
|
||||||
{
|
"web",
|
||||||
"name": "crypto-mpc",
|
"api"
|
||||||
"path": "crypto/mpc",
|
],
|
||||||
"docs": [
|
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API"
|
||||||
{
|
},
|
||||||
"keywords": [
|
{
|
||||||
"mpc",
|
"keywords": [
|
||||||
"wallet",
|
"sdk",
|
||||||
"security",
|
"modules",
|
||||||
"advanced cryptography"
|
"cosmos",
|
||||||
],
|
"manager"
|
||||||
"url": "https://csrc.nist.gov/CSRC/media/Events/NTCW19/papers/paper-DKLS.pdf"
|
],
|
||||||
}
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/module-manager"
|
||||||
]
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"name": "crypto-ucan",
|
"sdk",
|
||||||
"path": "crypto/ucan",
|
"modules",
|
||||||
"docs": [
|
"cosmos",
|
||||||
{
|
"messages",
|
||||||
"keywords": [],
|
"queries"
|
||||||
"url": "https://raw.githubusercontent.com/ucan-wg/spec/refs/heads/main/README.md"
|
],
|
||||||
}
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/messages-and-queries"
|
||||||
]
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"name": "crypto-zkp",
|
"sdk",
|
||||||
"path": "crypto/accumulator",
|
"modules",
|
||||||
"docs": [
|
"messages",
|
||||||
{
|
"service",
|
||||||
"keywords": [],
|
"cosmos"
|
||||||
"url": "https://eprint.iacr.org/2021/1672.pdf"
|
],
|
||||||
}
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/msg-services"
|
||||||
]
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"name": "sonr-hway",
|
"sdk",
|
||||||
"path": "pkg/gateway/handlers",
|
"modules",
|
||||||
"docs": [
|
"services",
|
||||||
{
|
"cosmos",
|
||||||
"keywords": [],
|
"query"
|
||||||
"url": "https://echo.labstack.com/docs/cookbook/sse"
|
],
|
||||||
},
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/query-services"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://echo.labstack.com/docs/cookbook/websocket"
|
"keywords": [
|
||||||
},
|
"cosmos",
|
||||||
{
|
"depinject",
|
||||||
"keywords": [],
|
"modules",
|
||||||
"url": "https://echo.labstack.com/docs/cookbook/subdomain"
|
"sdk"
|
||||||
}
|
],
|
||||||
]
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/depinject"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "database-orm",
|
"keywords": [
|
||||||
"path": "pkg/gateway/internal/database",
|
"ibc",
|
||||||
"docs": [
|
"apps",
|
||||||
{
|
"sdk",
|
||||||
"keywords": [],
|
"interchain-accounts"
|
||||||
"url": "https://docs.tigerbeetle.com/coding/data-modeling"
|
],
|
||||||
},
|
"url": "https://ibc.cosmos.network/v8/apps/interchain-accounts/overview/"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://docs.tigerbeetle.com/coding/two-phase-transfers"
|
"keywords": [
|
||||||
},
|
"ibc",
|
||||||
{
|
"apps",
|
||||||
"keywords": [],
|
"sdk",
|
||||||
"url": "https://docs.tigerbeetle.com/coding/reliable-transaction-submission"
|
"transfer"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://ibc.cosmos.network/v8/apps/transfer/overview/"
|
||||||
"keywords": [
|
},
|
||||||
"currency"
|
{
|
||||||
],
|
"keywords": [
|
||||||
"url": "https://docs.tigerbeetle.com/coding/recipes/currency-exchange"
|
"osmosis",
|
||||||
},
|
"modules",
|
||||||
{
|
"ibc",
|
||||||
"keywords": [
|
"assets"
|
||||||
"balance"
|
],
|
||||||
],
|
"url": "https://docs.osmosis.zone/osmosis-core/asset-info/"
|
||||||
"url": "https://docs.tigerbeetle.com/coding/recipes/balance-conditional-transfers"
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"ibc",
|
||||||
"url": "https://docs.tigerbeetle.com/reference/account"
|
"osmosis",
|
||||||
},
|
"tokenfactory",
|
||||||
{
|
"modules",
|
||||||
"keywords": [],
|
"assets"
|
||||||
"url": "https://docs.tigerbeetle.com/reference/transfer"
|
],
|
||||||
},
|
"url": "https://docs.osmosis.zone/osmosis-core/modules/tokenfactory"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://docs.substreams.dev/documentation/consume/packages"
|
"keywords": [
|
||||||
},
|
"ibc",
|
||||||
{
|
"mint",
|
||||||
"keywords": [],
|
"cctp",
|
||||||
"url": "https://docs.substreams.dev/documentation/consume/sql/deployable-services/local-service"
|
"noble",
|
||||||
},
|
"assets"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://docs.noble.xyz/cctp/mint"
|
||||||
"url": "https://docs.substreams.dev/tutorials/cosmos/injective/foundational"
|
},
|
||||||
}
|
{
|
||||||
]
|
"keywords": [
|
||||||
},
|
"ibc",
|
||||||
{
|
"relayer",
|
||||||
"name": "sonr-vault",
|
"nomic",
|
||||||
"path": "pkg/vault/handlers",
|
"assets"
|
||||||
"docs": [
|
],
|
||||||
{
|
"url": "https://docs.nomic.io/network/ibc-relayer"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://echo.labstack.com/docs/cookbook/jwt"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"ibc",
|
||||||
"keywords": [],
|
"cctp",
|
||||||
"url": "https://echo.labstack.com/docs/middleware/secure"
|
"noble",
|
||||||
},
|
"mint_forward",
|
||||||
{
|
"assets"
|
||||||
"keywords": [],
|
],
|
||||||
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API"
|
"url": "https://docs.noble.xyz/cctp/mint_forward"
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"evmos",
|
||||||
"name": "motr-worker",
|
"erc20",
|
||||||
"path": "pkg/vault/internal/database",
|
"assets"
|
||||||
"docs": [
|
],
|
||||||
"https://dexie.org/docs/ExportImport/dexie-export-import",
|
"url": "https://docs.evmos.org/protocol/modules/erc20"
|
||||||
"https://dexie.org/docs/API-Reference#quick-reference",
|
},
|
||||||
"https://templ.guide/syntax-and-usage/script-templates"
|
{
|
||||||
]
|
"keywords": [
|
||||||
},
|
"nomic",
|
||||||
{
|
"nbtc",
|
||||||
"name": "ipfs-service",
|
"assets"
|
||||||
"path": "pkl/ipfs.net",
|
],
|
||||||
"docs": [
|
"url": "https://docs.nomic.io/nbtc"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://github.com/ipfs/kubo/blob/master/docs/config.md"
|
"keywords": [
|
||||||
},
|
"mpc",
|
||||||
{
|
"wallet",
|
||||||
"keywords": [],
|
"cryptography",
|
||||||
"url": "https://pkl-lang.org/main/current/language-reference/index.html"
|
"capability",
|
||||||
}
|
"invokation"
|
||||||
]
|
],
|
||||||
},
|
"url": "https://csrc.nist.gov/CSRC/media/Events/NTCW19/papers/paper-DKLS.pdf"
|
||||||
{
|
},
|
||||||
"name": "matrix-service",
|
{
|
||||||
"path": "pkl/matrix.net",
|
"keywords": [
|
||||||
"docs": [
|
"ucan",
|
||||||
{
|
"spec",
|
||||||
"keywords": [],
|
"cryptography",
|
||||||
"url": "https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html"
|
"authorization"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://raw.githubusercontent.com/ucan-wg/spec/refs/heads/main/README.md"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://pkl-lang.org/main/current/language-reference/index.html"
|
{
|
||||||
}
|
"keywords": [
|
||||||
]
|
"zero-knowledge",
|
||||||
},
|
"proofs",
|
||||||
{
|
"cryptography",
|
||||||
"name": "chain-config",
|
"privacy"
|
||||||
"path": "pkl/sonr.chain",
|
],
|
||||||
"docs": [
|
"url": "https://eprint.iacr.org/2021/1672.pdf"
|
||||||
"https://tutorials.cosmos.network/tutorials/9-path-to-prod/5-network.html",
|
},
|
||||||
"https://tutorials.cosmos.network/tutorials/9-path-to-prod/4-genesis.html",
|
{
|
||||||
"https://pkl-lang.org/main/current/language-reference/index.html",
|
"keywords": [
|
||||||
"https://docs.cosmos.network/v0.50/user/run-node/run-testnet"
|
"gateway",
|
||||||
]
|
"http",
|
||||||
},
|
"sse"
|
||||||
{
|
],
|
||||||
"name": "gateway-config",
|
"url": "https://echo.labstack.com/docs/cookbook/sse"
|
||||||
"path": "pkl/sonr.hway",
|
},
|
||||||
"docs": [
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"gateway",
|
||||||
"url": "https://pkl-lang.org/main/current/language-reference/index.html"
|
"http",
|
||||||
}
|
"websocket"
|
||||||
]
|
],
|
||||||
},
|
"url": "https://echo.labstack.com/docs/cookbook/websocket"
|
||||||
{
|
},
|
||||||
"name": "client-config",
|
{
|
||||||
"path": "pkl/sonr.motr",
|
"keywords": [
|
||||||
"docs": [
|
"gateway",
|
||||||
{
|
"http",
|
||||||
"keywords": [],
|
"subdomain"
|
||||||
"url": "https://pkl-lang.org/main/current/language-reference/index.html"
|
],
|
||||||
},
|
"url": "https://echo.labstack.com/docs/cookbook/subdomain"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://web.dev/learn/pwa/service-workers/"
|
"keywords": [
|
||||||
},
|
"tigerbeetle",
|
||||||
{
|
"models",
|
||||||
"keywords": [],
|
"oracle"
|
||||||
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API"
|
],
|
||||||
}
|
"url": "https://docs.tigerbeetle.com/coding/data-modeling"
|
||||||
]
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"name": "core-dids",
|
"tigerbeetle",
|
||||||
"path": "proto/did",
|
"two=phase",
|
||||||
"docs": [
|
"transfers",
|
||||||
{
|
"oracle"
|
||||||
"keywords": [],
|
],
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/orm"
|
"url": "https://docs.tigerbeetle.com/coding/two-phase-transfers"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keywords": [],
|
"keywords": [
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations"
|
"tigerbeetle",
|
||||||
},
|
"oracle",
|
||||||
{
|
"reliable",
|
||||||
"keywords": [],
|
"transaction",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/auth"
|
"submission"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://docs.tigerbeetle.com/coding/reliable-transaction-submission"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/collections"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"currency",
|
||||||
"keywords": [],
|
"exchange",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/bank"
|
"tigerbeetle",
|
||||||
}
|
"oracle"
|
||||||
]
|
],
|
||||||
},
|
"url": "https://docs.tigerbeetle.com/coding/recipes/currency-exchange"
|
||||||
{
|
},
|
||||||
"name": "core-dwns",
|
{
|
||||||
"path": "proto/dwn",
|
"keywords": [
|
||||||
"docs": [
|
"balance",
|
||||||
{
|
"tigerbeetle",
|
||||||
"keywords": [],
|
"oracle",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations"
|
"conditional",
|
||||||
},
|
"transfers"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://docs.tigerbeetle.com/coding/recipes/balance-conditional-transfers"
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/orm"
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"tigerbeetle",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/authz"
|
"account",
|
||||||
},
|
"oracle"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://docs.tigerbeetle.com/reference/account"
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/collections"
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"tigerbeetle",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/gov"
|
"transfer",
|
||||||
},
|
"oracle"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://docs.tigerbeetle.com/reference/transfer"
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/staking"
|
},
|
||||||
}
|
{
|
||||||
]
|
"keywords": [
|
||||||
},
|
"substreams",
|
||||||
{
|
"packages",
|
||||||
"name": "core-svcs",
|
"consumer",
|
||||||
"path": "proto/svc",
|
"oracle"
|
||||||
"docs": [
|
],
|
||||||
{
|
"url": "https://docs.substreams.dev/documentation/consume/packages"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/collections"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"substreams",
|
||||||
"keywords": [],
|
"deploy",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations"
|
"service",
|
||||||
},
|
"oracle"
|
||||||
{
|
],
|
||||||
"keywords": [],
|
"url": "https://docs.substreams.dev/documentation/consume/sql/deployable-services/local-service"
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/packages/orm"
|
},
|
||||||
},
|
{
|
||||||
{
|
"keywords": [
|
||||||
"keywords": [],
|
"substreams",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/group"
|
"tutorial",
|
||||||
},
|
"cosmos",
|
||||||
{
|
"injective"
|
||||||
"keywords": [],
|
],
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/modules/nft"
|
"url": "https://docs.substreams.dev/tutorials/cosmos/injective/foundational"
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"worker",
|
||||||
"name": "ci-cd",
|
"http",
|
||||||
"path": "deploy",
|
"jwt"
|
||||||
"docs": [
|
],
|
||||||
{
|
"url": "https://echo.labstack.com/docs/cookbook/jwt"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"worker",
|
||||||
"keywords": [],
|
"http",
|
||||||
"url": "https://docs.cosmos.network/v0.50/build/tooling/cosmovisor"
|
"secure"
|
||||||
},
|
],
|
||||||
{
|
"url": "https://echo.labstack.com/docs/middleware/secure"
|
||||||
"keywords": [],
|
},
|
||||||
"url": "https://f1bonacc1.github.io/process-compose/configuration/"
|
{
|
||||||
},
|
"keywords": [
|
||||||
{
|
"worker",
|
||||||
"keywords": [],
|
"http",
|
||||||
"url": "https://docs.nomic.io/network/ibc-relayer"
|
"service-workers",
|
||||||
},
|
"web",
|
||||||
{
|
"api"
|
||||||
"keywords": [],
|
],
|
||||||
"url": "https://www.jetify.com/docs/devbox"
|
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keywords": [],
|
"keywords": [
|
||||||
"url": "https://taskfile.dev/reference/cli"
|
"synapse",
|
||||||
},
|
"matrix",
|
||||||
{
|
"configuration",
|
||||||
"keywords": [],
|
"usage"
|
||||||
"url": "https://taskfile.dev/reference/schema"
|
],
|
||||||
},
|
"url": "https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html"
|
||||||
{
|
},
|
||||||
"keywords": [],
|
{
|
||||||
"url": "https://taskfile.dev/reference/templating/"
|
"keywords": [
|
||||||
}
|
"cosmos",
|
||||||
]
|
"protobuf",
|
||||||
},
|
"orm",
|
||||||
{
|
"sdk"
|
||||||
"name": "write-docs",
|
],
|
||||||
"path": "docs",
|
"url": "https://docs.cosmos.network/v0.50/build/packages/orm"
|
||||||
"docs": [
|
},
|
||||||
{
|
{
|
||||||
"keywords": [],
|
"keywords": [
|
||||||
"url": "https://squidfunk.github.io/mkdocs-material/reference/"
|
"cosmos",
|
||||||
},
|
"sdk",
|
||||||
{
|
"modules",
|
||||||
"keywords": [],
|
"auth"
|
||||||
"url": "https://github.com/mkdocs/catalog/blob/main/README.md"
|
],
|
||||||
}
|
"url": "https://docs.cosmos.network/v0.50/build/modules/auth"
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
]
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"sdk",
|
||||||
|
"modules",
|
||||||
|
"bank"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/bank"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"modules",
|
||||||
|
"authz",
|
||||||
|
"sdk"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/authz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"protobuf",
|
||||||
|
"collections",
|
||||||
|
"sdk"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/packages/collections"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"modules",
|
||||||
|
"gov",
|
||||||
|
"sdk"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/gov"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"modules",
|
||||||
|
"staking",
|
||||||
|
"sdk"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/staking"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"protobuf",
|
||||||
|
"annotations",
|
||||||
|
"sdk"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/building-modules/protobuf-annotations"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"sdk",
|
||||||
|
"modules",
|
||||||
|
"group"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/group"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"keywords": [
|
||||||
|
"cosmos",
|
||||||
|
"sdk",
|
||||||
|
"modules",
|
||||||
|
"nft"
|
||||||
|
],
|
||||||
|
"url": "https://docs.cosmos.network/v0.50/build/modules/nft"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"next-milestone": "34"
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
||||||
|
|
||||||
# Extract scope name and path using jq, and pass it to fzf for selection
|
|
||||||
SCOPE=$(cat "$ROOT_DIR/.github/scopes.json" | jq -r '.[] | "\(.name)"' | fzf --prompt "Select scope:")
|
|
||||||
DOCS=$(cat "$ROOT_DIR/.github/scopes.json" | jq -r ".[] | select(.name == \"$SCOPE\") | .docs[].url")
|
|
||||||
|
|
||||||
# Write Title
|
|
||||||
TITLE=$(gum input --placeholder "Issue Title...")
|
|
||||||
|
|
||||||
# Write Goal
|
|
||||||
GOAL=$(mods --role "determine-issue-goal" "$SCOPE $TITLE")
|
|
||||||
|
|
||||||
# Input Requirements
|
|
||||||
REQUIREMENTS=()
|
|
||||||
while true; do
|
|
||||||
if [ ${#REQUIREMENTS[@]} -ge 2 ]; then
|
|
||||||
if ! gum confirm "Do you want to add another requirement?"; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
REQUIREMENT=$(gum input --placeholder "Add a requirement...")
|
|
||||||
if [ -n "$REQUIREMENT" ]; then
|
|
||||||
REQUIREMENTS+=("$REQUIREMENT")
|
|
||||||
else
|
|
||||||
echo "Requirement cannot be empty. Please enter a valid requirement."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
create_body() {
|
|
||||||
echo "### Goal(s):"
|
|
||||||
echo "$GOAL"
|
|
||||||
echo "### Requirements:"
|
|
||||||
for i in "${!REQUIREMENTS[@]}"; do
|
|
||||||
echo "$(($i + 1)). ${REQUIREMENTS[$i]}"
|
|
||||||
done
|
|
||||||
echo "### Resources:"
|
|
||||||
while IFS= read -r doc; do
|
|
||||||
echo "- $doc"
|
|
||||||
done <<< "$DOCS"
|
|
||||||
}
|
|
||||||
|
|
||||||
ISSUE_BODY=$(create_body)
|
|
||||||
|
|
||||||
# Function to collect output
|
|
||||||
preview_output() {
|
|
||||||
echo "# ($SCOPE) $TITLE"
|
|
||||||
echo "$ISSUE_BODY"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Display the formatted output
|
|
||||||
preview_output | gum format
|
|
||||||
|
|
||||||
# Confirm to create a GitHub issue
|
|
||||||
if gum confirm "Do you want to create a new GitHub issue with this information?"; then
|
|
||||||
# Ask if this should be a draft issue
|
|
||||||
if gum confirm "Create as draft issue?"; then
|
|
||||||
# Create a draft GitHub issue
|
|
||||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY"
|
|
||||||
else
|
|
||||||
# Create a regular GitHub issue
|
|
||||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY" -a @me
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
ROOT_DIR=$(git rev-parse --show-toplevel)
|
|
||||||
|
|
||||||
# Package the PKL projects
|
|
||||||
bunx pkl project package $ROOT_DIR/pkl/*/
|
|
||||||
|
|
||||||
# Process each directory in .out
|
|
||||||
for dir in .out/*/; do
|
|
||||||
# Get the folder name and version
|
|
||||||
folder=$(basename "$dir")
|
|
||||||
version=$(echo "$folder" | grep -o '@.*' | sed 's/@//')
|
|
||||||
new_folder=$(echo "$folder" | sed 's/@[0-9.]*$//')
|
|
||||||
|
|
||||||
# Create new directory without version
|
|
||||||
mkdir -p ".out/$new_folder/$version"
|
|
||||||
|
|
||||||
# Copy contents to versioned subdirectory
|
|
||||||
cp -r "$dir"* ".out/$new_folder/$version/"
|
|
||||||
|
|
||||||
# Find and copy only .pkl files from the original package
|
|
||||||
pkg_dir="$ROOT_DIR/pkl/$new_folder"
|
|
||||||
if [ -d "$pkg_dir" ]; then
|
|
||||||
# Copy only .pkl files to version directory
|
|
||||||
find "$pkg_dir" -name "*.pkl" -exec cp {} ".out/$new_folder/$version/" \;
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove old versioned directory
|
|
||||||
rm -rf "$dir"
|
|
||||||
|
|
||||||
# Upload to R2 with new structure
|
|
||||||
rclone copy ".out/$new_folder" "r2:pkljar/$new_folder"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Cleanup .out directory
|
|
||||||
rm -rf .out
|
|
||||||
|
|
||||||
@@ -13,11 +13,16 @@ jobs:
|
|||||||
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
|
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Required to fetch all history for merging
|
||||||
|
|
||||||
- uses: TimonVS/pr-labeler-action@v5
|
- uses: TimonVS/pr-labeler-action@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
|
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
|
||||||
|
|
||||||
|
|
||||||
test-builds:
|
test-builds:
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump-version:
|
bump-version:
|
||||||
if: github.event.pull_request.merged == true
|
if: |
|
||||||
|
github.event.pull_request.merged == true &&
|
||||||
|
github.event.pull_request.user.login != 'dependabot[bot]' &&
|
||||||
|
github.event.pull_request.user.login != 'dependabot-preview[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
@@ -22,6 +25,7 @@ jobs:
|
|||||||
uses: commitizen-tools/commitizen-action@master
|
uses: commitizen-tools/commitizen-action@master
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
|
increment: patch
|
||||||
|
|
||||||
- name: Push using ssh
|
- name: Push using ssh
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -37,15 +37,22 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Release
|
- name: Install Task
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: arduino/setup-task@v2
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
version: 3.x
|
||||||
version: latest
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: release --clean
|
|
||||||
|
- name: Run GoReleaser
|
||||||
|
run: task release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
||||||
GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_RELEASER_TOKEN }}
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
REDDIT_APP_ID: ${{ secrets.REDDIT_APP_ID }}
|
||||||
|
REDDIT_SECRET: ${{ secrets.REDDIT_SECRET }}
|
||||||
|
REDDIT_USERNAME: ${{ secrets.REDDIT_USERNAME }}
|
||||||
|
REDDIT_PASSWORD: ${{ secrets.REDDIT_PASSWORD }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Binaries
|
# Binaries
|
||||||
|
.task
|
||||||
no
|
no
|
||||||
.data
|
.data
|
||||||
schemas
|
schemas
|
||||||
|
|||||||
+8
-7
@@ -61,8 +61,7 @@ archives:
|
|||||||
- id: sonr
|
- id: sonr
|
||||||
builds: [sonr]
|
builds: [sonr]
|
||||||
name_template: >-
|
name_template: >-
|
||||||
sonr_{{ .Version }}_
|
sonr_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
||||||
{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
@@ -73,8 +72,7 @@ archives:
|
|||||||
- id: hway
|
- id: hway
|
||||||
builds: [hway]
|
builds: [hway]
|
||||||
name_template: >-
|
name_template: >-
|
||||||
hway_{{ .Version }}_
|
hway_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
||||||
{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
|
||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
@@ -85,7 +83,7 @@ archives:
|
|||||||
nfpms:
|
nfpms:
|
||||||
- id: hway
|
- id: hway
|
||||||
package_name: hway
|
package_name: hway
|
||||||
file_name_template: "{{ .ConventionalFileName }}"
|
file_name_template: "hway_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
||||||
builds: [hway]
|
builds: [hway]
|
||||||
vendor: Sonr
|
vendor: Sonr
|
||||||
homepage: "https://onsonr.dev"
|
homepage: "https://onsonr.dev"
|
||||||
@@ -108,7 +106,7 @@ nfpms:
|
|||||||
|
|
||||||
- id: sonr
|
- id: sonr
|
||||||
package_name: sonrd
|
package_name: sonrd
|
||||||
file_name_template: "{{ .ConventionalFileName }}"
|
file_name_template: "sonrd_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
||||||
builds: [sonr]
|
builds: [sonr]
|
||||||
vendor: Sonr
|
vendor: Sonr
|
||||||
homepage: "https://onsonr.dev"
|
homepage: "https://onsonr.dev"
|
||||||
@@ -168,12 +166,15 @@ release:
|
|||||||
github:
|
github:
|
||||||
owner: onsonr
|
owner: onsonr
|
||||||
name: sonr
|
name: sonr
|
||||||
name_template: "Release {{.Version}}"
|
name_template: 'Release {{ .Env.RELEASE_DATE }}'
|
||||||
draft: false
|
draft: false
|
||||||
replace_existing_draft: true
|
replace_existing_draft: true
|
||||||
replace_existing_artifacts: true
|
replace_existing_artifacts: true
|
||||||
extra_files:
|
extra_files:
|
||||||
- glob: ./README*
|
- glob: ./README*
|
||||||
|
- glob: ./scripts/install.sh
|
||||||
|
- glob: ./scripts/test_node.sh
|
||||||
|
- glob: ./scripts/test_ics_node.sh
|
||||||
|
|
||||||
announce:
|
announce:
|
||||||
telegram:
|
telegram:
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
GOPATH:
|
|
||||||
sh: go env GOPATH
|
|
||||||
BIN_DIR: "{{.GOPATH}}/bin"
|
|
||||||
BINARY: "{{.BIN_DIR}}/hway"
|
|
||||||
OS:
|
|
||||||
sh: uname -s
|
|
||||||
ARCH:
|
|
||||||
sh: uname -m
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
build:
|
|
||||||
desc: Build the hway binary
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- templ generate
|
|
||||||
- sqlc generate -f internal/database/sqlc.yaml
|
|
||||||
- gum spin --spinner dot --title "Build Hway Single Target ({{.OS}}/{{.ARCH}})..." -- goreleaser build --snapshot --clean --single-target --id hway -o {{.BIN_DIR}}/hway
|
|
||||||
|
|
||||||
install:
|
|
||||||
desc: Install the hway binary
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- templ generate
|
|
||||||
- sqlc generate -f internal/database/sqlc.yaml
|
|
||||||
- gum spin --spinner dot --title "Install Hway Single Target ({{.OS}}/{{.ARCH}})..." -- make install-hway
|
|
||||||
|
|
||||||
start:
|
|
||||||
desc: Start the hway daemon
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- "{{.BINARY}}"
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
ROOT:
|
|
||||||
sh: git rev-parse --show-toplevel
|
|
||||||
tasks:
|
|
||||||
init:
|
|
||||||
desc: Setup ipfs with Cloudflare
|
|
||||||
silent: true
|
|
||||||
vars:
|
|
||||||
PEERS: |
|
|
||||||
'[
|
|
||||||
{"ID": "QmcFf2FH3CEgTNHeMRGhN7HNHU1EXAxoEk6EFuSyXCsvRE", "Addrs": ["/dnsaddr/node-1.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcFmLd5ySfk2WZuJ1mfSWLDjdmHZq7rSAua4GoeSQfs1z", "Addrs": ["/dnsaddr/node-2.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfFmzSDVbwexQ9Au2pt5YEXHK5xajwgaU6PpkbLWerMa", "Addrs": ["/dnsaddr/node-3.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfJeB3Js1FG7T8YaZATEiaHqNKVdQfybYYkbT1knUswx", "Addrs": ["/dnsaddr/node-4.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfVvzK4tMdFmpJjEKDUoqRgP4W9FnmJoziYX5GXJJ8eZ", "Addrs": ["/dnsaddr/node-5.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfZD3VKrUxyP9BbyUnZDpbqDnT7cQ4WjPP8TRLXaoE7G", "Addrs": ["/dnsaddr/node-6.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfZP2LuW4jxviTeG8fi28qjnZScACb8PEgHAc17ZEri3", "Addrs": ["/dnsaddr/node-7.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfgsJsMtx6qJb74akCw1M24X1zFwgGo11h1cuhwQjtJP", "Addrs": ["/dnsaddr/node-8.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "Qmcfr2FC7pFzJbTSDfYaSy1J8Uuy8ccGLeLyqJCKJvTHMi", "Addrs": ["/dnsaddr/node-9.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfR3V5YAtHBzxVACWCzXTt26SyEkxdwhGJ6875A8BuWx", "Addrs": ["/dnsaddr/node-10.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "Qmcfuo1TM9uUiJp6dTbm915Rf1aTqm3a3dnmCdDQLHgvL5", "Addrs": ["/dnsaddr/node-11.ingress.cloudflare-ipfs.com"]},
|
|
||||||
{"ID": "QmcfV2sg9zaq7UUHVCGuSvT2M2rnLBAPsiE79vVyK3Cuev", "Addrs": ["/dnsaddr/node-12.ingress.cloudflare-ipfs.com"]}
|
|
||||||
]'
|
|
||||||
cmds:
|
|
||||||
- rm -rf ~/.ipfs
|
|
||||||
- ipfs init
|
|
||||||
- ipfs config --json Peering.Peers {{.PEERS}}
|
|
||||||
- ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
|
|
||||||
|
|
||||||
mount:
|
|
||||||
desc: Mount the ipfs,ipns directories
|
|
||||||
silent: true
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
cmds:
|
|
||||||
- ipfs config --json Mounts.FuseAllowOther true
|
|
||||||
|
|
||||||
start:
|
|
||||||
desc: Start the ipfs daemon
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- cmd: ipfs daemon --migrate
|
|
||||||
platforms:
|
|
||||||
- darwin
|
|
||||||
- task: mount
|
|
||||||
- cmd: ipfs daemon --mount
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
GOPATH:
|
|
||||||
sh: go env GOPATH
|
|
||||||
BIN_DIR: "{{.GOPATH}}/bin"
|
|
||||||
OS:
|
|
||||||
sh: uname -s
|
|
||||||
ARCH:
|
|
||||||
sh: uname -m
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
init:
|
|
||||||
desc: Initialize postgresql
|
|
||||||
silent: true
|
|
||||||
dir: deploy/apps/chainindex
|
|
||||||
cmds:
|
|
||||||
- cmd: sudo -u postgres psql -f seed.sql
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
- cmd: sudo -u postgres psql -d chainindex -f schema.sql
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
reset:
|
|
||||||
desc: Reset postgresql
|
|
||||||
silent: true
|
|
||||||
dir: deploy/apps/chainindex
|
|
||||||
cmds:
|
|
||||||
- cmd: sudo -u postgres psql -d chainindex -f reset.sql
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
BINARY: sonrd
|
|
||||||
BUILD_FLAGS: -mod=readonly -trimpath
|
|
||||||
BUILD_TAGS: netgo,ledger
|
|
||||||
COMMIT:
|
|
||||||
sh: git rev-parse HEAD
|
|
||||||
VERSION:
|
|
||||||
sh: git describe --tags --always
|
|
||||||
tasks:
|
|
||||||
build:
|
|
||||||
desc: Build the sonrd binary
|
|
||||||
cmds:
|
|
||||||
- >
|
|
||||||
go build
|
|
||||||
{{.BUILD_FLAGS}}
|
|
||||||
-tags "{{.BUILD_TAGS}}"
|
|
||||||
-ldflags "
|
|
||||||
-X github.com/cosmos/cosmos-sdk/version.Name=sonr
|
|
||||||
-X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
|
|
||||||
-X github.com/cosmos/cosmos-sdk/version.Version={{.VERSION}}
|
|
||||||
-X github.com/cosmos/cosmos-sdk/version.Commit={{.COMMIT}}
|
|
||||||
-X github.com/cosmos/cosmos-sdk/version.BuildTags={{.BUILD_TAGS}}
|
|
||||||
"
|
|
||||||
-o ./build/{{.BINARY}}
|
|
||||||
./cmd/sonrd
|
|
||||||
env:
|
|
||||||
CGO_ENABLED: 1
|
|
||||||
GOARCH:
|
|
||||||
sh: go env GOARCH
|
|
||||||
GOOS:
|
|
||||||
sh: go env GOOS
|
|
||||||
|
|
||||||
install:
|
|
||||||
desc: Install sonrd
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- gum spin --spinner dot --title "Installing sonr daemon..." -- make install
|
|
||||||
|
|
||||||
start:
|
|
||||||
desc: Start the sonr node
|
|
||||||
cmds:
|
|
||||||
- sh scripts/test_dop_node.sh
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
ROOT:
|
|
||||||
sh: git rev-parse --show-toplevel
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
init:
|
|
||||||
desc: Configure synapse homeserver with PKL
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- pkl eval pkl/matrix.net/Homeserver.pkl -f yaml -o deploy/conf/synapse/homeserver.yaml
|
|
||||||
env:
|
|
||||||
MATRIX_CLIENT_NAME: sonr.id
|
|
||||||
MATRIX_SERVER_NAME: sonr.id
|
|
||||||
MATRIX_SERVER_URL: http://localhost:8008
|
|
||||||
MATRIX_SLIDING_SYNC_PROXY: http://localhost:8008
|
|
||||||
MATRIX_PSQL_CONN: postgresql://matrixhs_user:matrixhs_password123@localhost:5432/sonr
|
|
||||||
MATRIX_REGISTRATION_SHARED_SECRET: secret
|
|
||||||
MATRIX_ENABLE_RECATCHA: false
|
|
||||||
MATRIX_RECATCHA_PUBLIC_KEY: ""
|
|
||||||
MATRIX_RECATCHA_PRIVATE_KEY: ""
|
|
||||||
MATRIX_RECATCHA_BYPASS_SECRET: ""
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
vars:
|
|
||||||
ROOT:
|
|
||||||
sh: git rev-parse --show-toplevel
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
init:
|
|
||||||
desc: Configure tigerbeetle database
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- pkl eval pkl/matrix.net/Homeserver.pkl -f yaml -o deploy/conf/synapse/homeserver.yaml
|
|
||||||
+48
-119
@@ -9,25 +9,19 @@ vars:
|
|||||||
sh: git rev-parse --show-toplevel
|
sh: git rev-parse --show-toplevel
|
||||||
OS:
|
OS:
|
||||||
sh: uname -s
|
sh: uname -s
|
||||||
TASKS:
|
# DOPPLER_TOKEN:
|
||||||
sh: task -l
|
# sh: skate get DOPPLER_NETWORK
|
||||||
DOPPLER_TOKEN:
|
|
||||||
sh: skate get DOPPLER_NETWORK
|
|
||||||
|
|
||||||
includes:
|
|
||||||
hway:
|
|
||||||
taskfile: .taskfiles/Hway.yml
|
|
||||||
ipfs:
|
|
||||||
taskfile: .taskfiles/IPFS.yml
|
|
||||||
postgres:
|
|
||||||
taskfile: .taskfiles/Postgres.yml
|
|
||||||
sonrd:
|
|
||||||
taskfile: .taskfiles/Sonrd.yml
|
|
||||||
synapse:
|
|
||||||
taskfile: .taskfiles/Synapse.yml
|
|
||||||
tigerbeetle:
|
|
||||||
taskfile: .taskfiles/TigerBeetle.yml
|
|
||||||
|
|
||||||
|
# includes:
|
||||||
|
# deps: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/deps.yml
|
||||||
|
# gen: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/gen.yml
|
||||||
|
# hway: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/hway.yml
|
||||||
|
# ipfs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ipfs.yml
|
||||||
|
# issue: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/ghpm.yml
|
||||||
|
# procs: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/procs.yml
|
||||||
|
# postgres: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/postgres.yml
|
||||||
|
# sonrd: https://raw.githubusercontent.com/onsonr/taskfiles/main/taskfiles/sonrd.yml
|
||||||
|
#
|
||||||
tasks:
|
tasks:
|
||||||
default:
|
default:
|
||||||
cmds:
|
cmds:
|
||||||
@@ -36,109 +30,44 @@ tasks:
|
|||||||
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
- task -l -j | jq -r '.tasks[].name' | fzf --height=16 | xargs task
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
deps:
|
# start:
|
||||||
desc: Install go dependencies
|
# desc: Start the Network
|
||||||
silent: true
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: postgres:reset
|
||||||
|
# - task: ipfs:init
|
||||||
|
# - task: ipfs:mount
|
||||||
|
# - task: sonrd:install
|
||||||
|
# - task: hway:build
|
||||||
|
# - task: procs:up
|
||||||
|
#
|
||||||
|
# status:
|
||||||
|
# desc: Check the status of the Network
|
||||||
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: procs:attach
|
||||||
|
#
|
||||||
|
# stop:
|
||||||
|
# desc: Stop the Network
|
||||||
|
# silent: true
|
||||||
|
# cmds:
|
||||||
|
# - task: procs:down
|
||||||
|
date:
|
||||||
|
desc: Returns date in YEAR.WEEK.DAY format
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
YEAR=$(date +%Y)
|
||||||
|
WEEK=$(date +%V)
|
||||||
|
DAY=$(date +%u)
|
||||||
|
echo "${YEAR}.${WEEK}.${DAY}"
|
||||||
vars:
|
vars:
|
||||||
DEPS:
|
DATE: '{{default "" .CLI_ARGS}}'
|
||||||
[
|
|
||||||
"github.com/apple/pkl-go/cmd/pkl-gen-go@latest",
|
|
||||||
"github.com/sqlc-dev/sqlc/cmd/sqlc@latest",
|
|
||||||
"github.com/goreleaser/goreleaser/v2@latest",
|
|
||||||
"github.com/a-h/templ/cmd/templ@latest",
|
|
||||||
]
|
|
||||||
cmds:
|
|
||||||
- for: { var: DEPS }
|
|
||||||
cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}}
|
|
||||||
|
|
||||||
new-issue:
|
|
||||||
desc: Create a new issue
|
|
||||||
silent: true
|
silent: true
|
||||||
dir: .github/scripts
|
|
||||||
|
release:
|
||||||
|
desc: Create a new release with formatted date
|
||||||
cmds:
|
cmds:
|
||||||
- sh new_issue.sh
|
- go install github.com/goreleaser/goreleaser/v2@latest
|
||||||
|
- RELEASE_DATE=$(task date) goreleaser release --clean
|
||||||
pkl-gen:
|
|
||||||
desc: Generate PKL files
|
|
||||||
silent: true
|
silent: true
|
||||||
dir: "pkl/sonr.net"
|
|
||||||
vars:
|
|
||||||
FILES: ["Hway.pkl", "Motr.pkl", "UCAN.pkl"]
|
|
||||||
cmds:
|
|
||||||
- for: { var: FILES }
|
|
||||||
cmd: gum spin --spinner dot --title "Generating PKL in Go..." -- pkl-gen-go {{.ITEM}}
|
|
||||||
|
|
||||||
proto-gen:
|
|
||||||
desc: Generate proto files
|
|
||||||
silent: true
|
|
||||||
cmd: gum spin --spinner dot --title "Generating Protobufs..." -- make proto-gen
|
|
||||||
|
|
||||||
sqlc-gen:
|
|
||||||
desc: Generate SQLC files
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- gum spin --spinner dot --title "Generating SQLC..." -- sqlc generate -f internal/database/sqlc.yaml
|
|
||||||
|
|
||||||
templ-gen:
|
|
||||||
desc: Generate templ files
|
|
||||||
silent: true
|
|
||||||
cmd: gum spin --spinner dot --title "Generating Templ..." -- templ generate
|
|
||||||
|
|
||||||
start:
|
|
||||||
desc: Start the Network
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- task: postgres:reset
|
|
||||||
- task: ipfs:init
|
|
||||||
- task: ipfs:mount
|
|
||||||
- task: sonrd:install
|
|
||||||
- task: hway:build
|
|
||||||
- task: procs-up
|
|
||||||
|
|
||||||
status:
|
|
||||||
desc: Check the status of the Network
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- task: procs-attach
|
|
||||||
|
|
||||||
stop:
|
|
||||||
desc: Stop the Network
|
|
||||||
silent: true
|
|
||||||
cmds:
|
|
||||||
- task: procs-down
|
|
||||||
|
|
||||||
procs-up:
|
|
||||||
internal: true
|
|
||||||
dir: "deploy"
|
|
||||||
cmds:
|
|
||||||
- cmd: process-compose up
|
|
||||||
platforms:
|
|
||||||
- darwin
|
|
||||||
|
|
||||||
- cmd: process-compose up --use-uds --unix-socket /tmp/sonr-network.sock -D
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
procs-down:
|
|
||||||
internal: true
|
|
||||||
dir: "deploy"
|
|
||||||
cmds:
|
|
||||||
- cmd: process-compose down
|
|
||||||
platforms:
|
|
||||||
- darwin
|
|
||||||
|
|
||||||
- cmd: process-compose down --use-uds --unix-socket /tmp/sonr-network.sock
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
procs-attach:
|
|
||||||
internal: true
|
|
||||||
dir: "deploy"
|
|
||||||
cmds:
|
|
||||||
- cmd: process-compose attach --use-uds --unix-socket /tmp/sonr-network.sock
|
|
||||||
platforms:
|
|
||||||
- linux
|
|
||||||
|
|
||||||
- cmd: process-compose attach
|
|
||||||
platforms:
|
|
||||||
- darwin
|
|
||||||
|
|||||||
+24
-1172
File diff suppressed because it is too large
Load Diff
@@ -19,8 +19,7 @@ import (
|
|||||||
const _ = grpc.SupportPackageIsVersion9
|
const _ = grpc.SupportPackageIsVersion9
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Query_Params_FullMethodName = "/dwn.v1.Query/Params"
|
Query_Params_FullMethodName = "/dwn.v1.Query/Params"
|
||||||
Query_Allocate_FullMethodName = "/dwn.v1.Query/Allocate"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// QueryClient is the client API for Query service.
|
// QueryClient is the client API for Query service.
|
||||||
@@ -31,9 +30,6 @@ const (
|
|||||||
type QueryClient interface {
|
type QueryClient interface {
|
||||||
// Params queries all parameters of the module.
|
// Params queries all parameters of the module.
|
||||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||||
// Allocate initializes a Target Vault available for claims with a compatible
|
|
||||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
||||||
Allocate(ctx context.Context, in *QueryAllocateRequest, opts ...grpc.CallOption) (*QueryAllocateResponse, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type queryClient struct {
|
type queryClient struct {
|
||||||
@@ -54,16 +50,6 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *queryClient) Allocate(ctx context.Context, in *QueryAllocateRequest, opts ...grpc.CallOption) (*QueryAllocateResponse, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(QueryAllocateResponse)
|
|
||||||
err := c.cc.Invoke(ctx, Query_Allocate_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryServer is the server API for Query service.
|
// QueryServer is the server API for Query service.
|
||||||
// All implementations must embed UnimplementedQueryServer
|
// All implementations must embed UnimplementedQueryServer
|
||||||
// for forward compatibility.
|
// for forward compatibility.
|
||||||
@@ -72,9 +58,6 @@ func (c *queryClient) Allocate(ctx context.Context, in *QueryAllocateRequest, op
|
|||||||
type QueryServer interface {
|
type QueryServer interface {
|
||||||
// Params queries all parameters of the module.
|
// Params queries all parameters of the module.
|
||||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||||
// Allocate initializes a Target Vault available for claims with a compatible
|
|
||||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
||||||
Allocate(context.Context, *QueryAllocateRequest) (*QueryAllocateResponse, error)
|
|
||||||
mustEmbedUnimplementedQueryServer()
|
mustEmbedUnimplementedQueryServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,9 +71,6 @@ type UnimplementedQueryServer struct{}
|
|||||||
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
|
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedQueryServer) Allocate(context.Context, *QueryAllocateRequest) (*QueryAllocateResponse, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Allocate not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
|
func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {}
|
||||||
func (UnimplementedQueryServer) testEmbeddedByValue() {}
|
func (UnimplementedQueryServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
@@ -130,24 +110,6 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Query_Allocate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(QueryAllocateRequest)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(QueryServer).Allocate(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Query_Allocate_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(QueryServer).Allocate(ctx, req.(*QueryAllocateRequest))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
|
// Query_ServiceDesc is the grpc.ServiceDesc for Query service.
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
// and not to be introspected or modified (even as a copy)
|
// and not to be introspected or modified (even as a copy)
|
||||||
@@ -159,10 +121,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "Params",
|
MethodName: "Params",
|
||||||
Handler: _Query_Params_Handler,
|
Handler: _Query_Params_Handler,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
MethodName: "Allocate",
|
|
||||||
Handler: _Query_Allocate_Handler,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "dwn/v1/query.proto",
|
Metadata: "dwn/v1/query.proto",
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
package handlers
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/labstack/echo/v4"
|
|
||||||
"github.com/onsonr/sonr/app/gateway/context"
|
|
||||||
)
|
|
||||||
|
|
||||||
func ErrorHandler(err error, c echo.Context) {
|
|
||||||
if he, ok := err.(*echo.HTTPError); ok {
|
|
||||||
// Log the error if needed
|
|
||||||
c.Logger().Errorf("Error: %v", he.Message)
|
|
||||||
context.RenderError(c, he)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# Local Interchain Configurations
|
|
||||||
|
|
||||||
RUN:
|
|
||||||
- `make testnet` *(full setup: docker image, binary, keys, and ibc testnet start)*
|
|
||||||
- `spawn local-ic start testnet` *(Standalone start)*
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
* https://github.com/strangelove-ventures/interchaintest/tree/main/local-interchain
|
|
||||||
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
{
|
|
||||||
"chains": [
|
|
||||||
{
|
|
||||||
"name": "core",
|
|
||||||
"ibc_paths": ["ibc-connection-1"],
|
|
||||||
"chain_id": "chainid-1",
|
|
||||||
"denom": "usnr",
|
|
||||||
"binary": "sonrd",
|
|
||||||
"bech32_prefix": "idx",
|
|
||||||
"docker_image": {
|
|
||||||
"repository": "core",
|
|
||||||
"version": "local"
|
|
||||||
},
|
|
||||||
"gas_prices": "0usnr",
|
|
||||||
"chain_type": "cosmos",
|
|
||||||
"coin_type": 118,
|
|
||||||
"trusting_period": "336h",
|
|
||||||
"gas_adjustment": 1.5,
|
|
||||||
"number_vals": 1,
|
|
||||||
"number_node": 0,
|
|
||||||
"debugging": true,
|
|
||||||
"block_time": "1000ms",
|
|
||||||
"host_port_override": {
|
|
||||||
"26657": "26657",
|
|
||||||
"1317": "1317",
|
|
||||||
"9090": "9090"
|
|
||||||
},
|
|
||||||
"encoding-options": ["wasm", "tokenfactory"],
|
|
||||||
"config_file_overrides": [
|
|
||||||
{
|
|
||||||
"file": "config/config.toml",
|
|
||||||
"paths": {
|
|
||||||
"moniker": "localvalmoniker",
|
|
||||||
"rpc.cors_allowed_origins": ["*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"genesis": {
|
|
||||||
"modify": [
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.voting_period",
|
|
||||||
"value": "15s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.expedited_voting_period",
|
|
||||||
"value": "10s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.max_deposit_period",
|
|
||||||
"value": "15s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.min_deposit.0.denom",
|
|
||||||
"value": "usnr"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.min_deposit.0.amount",
|
|
||||||
"value": "1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"accounts": [
|
|
||||||
{
|
|
||||||
"name": "acc0",
|
|
||||||
"address": "idx1hj5fveer5cjtn4wd6wstzugjfdxzl0xpecp0nd",
|
|
||||||
"amount": "10000000000usnr",
|
|
||||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acc1",
|
|
||||||
"address": "idx1efd63aw40lxf3n4mhf7dzhjkr453axur9vjt6y",
|
|
||||||
"amount": "10000000000usnr",
|
|
||||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"startup_commands": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "gaia",
|
|
||||||
"chain_id": "localcosmos-1",
|
|
||||||
"denom": "uatom",
|
|
||||||
"binary": "gaiad",
|
|
||||||
"bech32_prefix": "cosmos",
|
|
||||||
"docker_image": {
|
|
||||||
"version": "v9.1.0"
|
|
||||||
},
|
|
||||||
"block_time": "1000ms",
|
|
||||||
"gas_prices": "0%DENOM%",
|
|
||||||
"gas_adjustment": 2.0,
|
|
||||||
"ibc_paths": ["ibc-connection-1"],
|
|
||||||
"genesis": {
|
|
||||||
"accounts": [
|
|
||||||
{
|
|
||||||
"name": "acc0",
|
|
||||||
"address": "cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr",
|
|
||||||
"amount": "10000000%DENOM%",
|
|
||||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
{
|
|
||||||
"chains": [
|
|
||||||
{
|
|
||||||
"name": "core",
|
|
||||||
"chain_id": "chainid-1",
|
|
||||||
"denom": "usnr",
|
|
||||||
"binary": "sonrd",
|
|
||||||
"bech32_prefix": "idx",
|
|
||||||
"docker_image": {
|
|
||||||
"repository": "ghcr.io/onsonr/sonr",
|
|
||||||
"version": "local"
|
|
||||||
},
|
|
||||||
"gas_prices": "0usnr",
|
|
||||||
"chain_type": "cosmos",
|
|
||||||
"coin_type": 118,
|
|
||||||
"trusting_period": "336h",
|
|
||||||
"gas_adjustment": 1.5,
|
|
||||||
"number_vals": 1,
|
|
||||||
"number_node": 0,
|
|
||||||
"debugging": true,
|
|
||||||
"block_time": "1000ms",
|
|
||||||
"host_port_override": {
|
|
||||||
"26657": "26657",
|
|
||||||
"1317": "1317",
|
|
||||||
"9090": "9090"
|
|
||||||
},
|
|
||||||
"encoding-options": [
|
|
||||||
"wasm",
|
|
||||||
"tokenfactory"
|
|
||||||
],
|
|
||||||
"config_file_overrides": [
|
|
||||||
{
|
|
||||||
"file": "config/config.toml",
|
|
||||||
"paths": {
|
|
||||||
"moniker": "florence",
|
|
||||||
"rpc.cors_allowed_origins": [
|
|
||||||
"*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"genesis": {
|
|
||||||
"modify": [
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.voting_period",
|
|
||||||
"value": "15s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.expedited_voting_period",
|
|
||||||
"value": "10s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.max_deposit_period",
|
|
||||||
"value": "15s"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.min_deposit.0.denom",
|
|
||||||
"value": "usnr"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"key": "app_state.gov.params.min_deposit.0.amount",
|
|
||||||
"value": "1"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"accounts": [
|
|
||||||
{
|
|
||||||
"name": "acc0",
|
|
||||||
"address": "idx1hj5fveer5cjtn4wd6wstzugjfdxzl0xpecp0nd",
|
|
||||||
"amount": "10000000000usnr",
|
|
||||||
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "acc1",
|
|
||||||
"address": "idx1efd63aw40lxf3n4mhf7dzhjkr453axur9vjt6y",
|
|
||||||
"amount": "10000000000usnr",
|
|
||||||
"mnemonic": "wealth flavor believe regret funny network recall kiss grape useless pepper cram hint member few certain unveil rather brick bargain curious require crowd raise"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"startup_commands": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/onsonr/sonr/app/gateway"
|
"github.com/onsonr/sonr/gateway"
|
||||||
"github.com/onsonr/sonr/internal/common"
|
"github.com/onsonr/sonr/internal/common"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -19,10 +19,10 @@ import (
|
|||||||
|
|
||||||
_ "github.com/ncruces/go-sqlite3/driver"
|
_ "github.com/ncruces/go-sqlite3/driver"
|
||||||
_ "github.com/ncruces/go-sqlite3/embed"
|
_ "github.com/ncruces/go-sqlite3/embed"
|
||||||
vault "github.com/onsonr/sonr/app/vault"
|
|
||||||
"github.com/onsonr/sonr/internal/config/motr"
|
"github.com/onsonr/sonr/internal/config/motr"
|
||||||
"github.com/onsonr/sonr/internal/database/motrorm"
|
"github.com/onsonr/sonr/internal/database/motrorm"
|
||||||
sink "github.com/onsonr/sonr/internal/database/sink"
|
sink "github.com/onsonr/sonr/internal/database/sink"
|
||||||
|
vault "github.com/onsonr/sonr/vault"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/a-h/templ"
|
"github.com/a-h/templ"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/onsonr/sonr/app/gateway/views"
|
"github.com/onsonr/sonr/gateway/views"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Render(c echo.Context, cmp templ.Component) error {
|
func Render(c echo.Context, cmp templ.Component) error {
|
||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"github.com/labstack/echo-contrib/echoprometheus"
|
"github.com/labstack/echo-contrib/echoprometheus"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
echomiddleware "github.com/labstack/echo/v4/middleware"
|
echomiddleware "github.com/labstack/echo/v4/middleware"
|
||||||
"github.com/onsonr/sonr/app/gateway/context"
|
"github.com/onsonr/sonr/gateway/context"
|
||||||
"github.com/onsonr/sonr/app/gateway/handlers"
|
"github.com/onsonr/sonr/gateway/handlers"
|
||||||
"github.com/onsonr/sonr/internal/common"
|
"github.com/onsonr/sonr/internal/common"
|
||||||
config "github.com/onsonr/sonr/internal/config/hway"
|
config "github.com/onsonr/sonr/internal/config/hway"
|
||||||
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
|
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package handlers
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/labstack/echo/v4"
|
||||||
|
"github.com/onsonr/sonr/gateway/context"
|
||||||
|
)
|
||||||
|
|
||||||
|
func ErrorHandler(err error, c echo.Context) {
|
||||||
|
if he, ok := err.(*echo.HTTPError); ok {
|
||||||
|
if he.Code == 500 {
|
||||||
|
// Log the error if needed
|
||||||
|
c.Logger().Errorf("Error: %v", he.Message)
|
||||||
|
context.RenderError(c, he)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@ package handlers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/onsonr/sonr/app/gateway/context"
|
"github.com/onsonr/sonr/gateway/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
func IndexHandler(c echo.Context) error {
|
func IndexHandler(c echo.Context) error {
|
||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/onsonr/sonr/app/gateway/context"
|
"github.com/onsonr/sonr/gateway/islands"
|
||||||
"github.com/onsonr/sonr/app/gateway/islands"
|
"github.com/onsonr/sonr/gateway/views"
|
||||||
"github.com/onsonr/sonr/app/gateway/views"
|
"github.com/onsonr/sonr/gateway/context"
|
||||||
"github.com/onsonr/sonr/internal/common"
|
"github.com/onsonr/sonr/internal/common"
|
||||||
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
|
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
|
||||||
)
|
)
|
||||||
@@ -36,7 +36,7 @@ func CardAccount(addr, name, handle, creationBlock string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(handle)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(handle)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/card_account.templ`, Line: 9, Col: 43}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/card_account.templ`, Line: 9, Col: 43}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -49,7 +49,7 @@ func CardAccount(addr, name, handle, creationBlock string) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(shortenAddress(addr))
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(shortenAddress(addr))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/card_account.templ`, Line: 16, Col: 58}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/card_account.templ`, Line: 16, Col: 58}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -62,7 +62,7 @@ func CardAccount(addr, name, handle, creationBlock string) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(creationBlock)
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(creationBlock)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/card_account.templ`, Line: 21, Col: 55}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/card_account.templ`, Line: 21, Col: 55}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -75,7 +75,7 @@ func CardAccount(addr, name, handle, creationBlock string) templ.Component {
|
|||||||
var templ_7745c5c3_Var5 string
|
var templ_7745c5c3_Var5 string
|
||||||
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(name)
|
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(name)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/card_account.templ`, Line: 25, Col: 32}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/card_account.templ`, Line: 25, Col: 32}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -99,7 +99,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 58, Col: 29}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 58, Col: 29}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -112,7 +112,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 59, Col: 41}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 59, Col: 41}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -125,7 +125,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var5 string
|
var templ_7745c5c3_Var5 string
|
||||||
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name)
|
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 60, Col: 11}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 60, Col: 11}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -143,7 +143,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var6 string
|
var templ_7745c5c3_Var6 string
|
||||||
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 64, Col: 29}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 64, Col: 29}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -156,7 +156,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var7 string
|
var templ_7745c5c3_Var7 string
|
||||||
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(a.Ticker)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 65, Col: 41}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 65, Col: 41}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -169,7 +169,7 @@ func CoinOption(a Coin) templ.Component {
|
|||||||
var templ_7745c5c3_Var8 string
|
var templ_7745c5c3_Var8 string
|
||||||
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name)
|
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(a.Name)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/coin_select.templ`, Line: 66, Col: 11}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/coin_select.templ`, Line: 66, Col: 11}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -38,7 +38,7 @@ func HumanSlider(firstNumber int, lastNumber int) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(humanLabel(firstNumber, lastNumber))
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(humanLabel(firstNumber, lastNumber))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/human_slider.templ`, Line: 7, Col: 71}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/human_slider.templ`, Line: 7, Col: 71}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -80,7 +80,7 @@ func HumanSliderError(firstNumber int, lastNumber int) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(humanLabel(firstNumber, lastNumber))
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(humanLabel(firstNumber, lastNumber))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/human_slider.templ`, Line: 12, Col: 70}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/human_slider.templ`, Line: 12, Col: 70}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -77,7 +77,7 @@ func InputHandleError(value string, helpText string) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(value)
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(value)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/input_handle.templ`, Line: 27, Col: 152}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/input_handle.templ`, Line: 27, Col: 152}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -90,7 +90,7 @@ func InputHandleError(value string, helpText string) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(helpText)
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(helpText)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/input_handle.templ`, Line: 27, Col: 175}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/input_handle.templ`, Line: 27, Col: 175}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -132,7 +132,7 @@ func InputHandleSuccess(value string) templ.Component {
|
|||||||
var templ_7745c5c3_Var6 string
|
var templ_7745c5c3_Var6 string
|
||||||
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(value)
|
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(value)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/islands/input_handle.templ`, Line: 39, Col: 154}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/islands/input_handle.templ`, Line: 39, Col: 154}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -45,7 +45,7 @@ func Form(action, id string) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(id)
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(id)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_form.templ`, Line: 4, Col: 60}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_form.templ`, Line: 4, Col: 60}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -58,7 +58,7 @@ func Form(action, id string) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(action)
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(action)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_form.templ`, Line: 4, Col: 79}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_form.templ`, Line: 4, Col: 79}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -248,7 +248,7 @@ func FormSubmit(text string) templ.Component {
|
|||||||
var templ_7745c5c3_Var10 string
|
var templ_7745c5c3_Var10 string
|
||||||
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_form.templ`, Line: 55, Col: 8}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_form.templ`, Line: 55, Col: 8}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -75,7 +75,7 @@ func Head(title string, nebulaVersion string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 25, Col: 16}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 25, Col: 16}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -238,7 +238,7 @@ func Alpine() templ.Component {
|
|||||||
var templ_7745c5c3_Var9 string
|
var templ_7745c5c3_Var9 string
|
||||||
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("alpinejs", "3.14.6", "dist/cdn.min.js"))
|
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("alpinejs", "3.14.6", "dist/cdn.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 86, Col: 68}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 86, Col: 68}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -251,7 +251,7 @@ func Alpine() templ.Component {
|
|||||||
var templ_7745c5c3_Var10 string
|
var templ_7745c5c3_Var10 string
|
||||||
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@alpinejs/focus", "3.14.6", "dist/cdn.min.js"))
|
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@alpinejs/focus", "3.14.6", "dist/cdn.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 87, Col: 75}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 87, Col: 75}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -312,7 +312,7 @@ func Dexie() templ.Component {
|
|||||||
var templ_7745c5c3_Var13 string
|
var templ_7745c5c3_Var13 string
|
||||||
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie", "4.0.10", "dist/dexie.min.js"))
|
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie", "4.0.10", "dist/dexie.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 94, Col: 67}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 94, Col: 67}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -325,7 +325,7 @@ func Dexie() templ.Component {
|
|||||||
var templ_7745c5c3_Var14 string
|
var templ_7745c5c3_Var14 string
|
||||||
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie-export-import", "4.1.4", "dist/dexie-export-import.min.js"))
|
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie-export-import", "4.1.4", "dist/dexie-export-import.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 95, Col: 94}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 95, Col: 94}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -386,7 +386,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var17 string
|
var templ_7745c5c3_Var17 string
|
||||||
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx.org", "1.9.12", "dist/htmx.min.js"))
|
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx.org", "1.9.12", "dist/htmx.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 102, Col: 69}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 102, Col: 69}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -399,7 +399,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var18 string
|
var templ_7745c5c3_Var18 string
|
||||||
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-include-vals", "2.0.0", "include-vals.min.js"))
|
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-include-vals", "2.0.0", "include-vals.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 103, Col: 84}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 103, Col: 84}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -412,7 +412,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var19 string
|
var templ_7745c5c3_Var19 string
|
||||||
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-path-params", "2.0.0", "path-params.min.js"))
|
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-path-params", "2.0.0", "path-params.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 104, Col: 82}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 104, Col: 82}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -425,7 +425,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var20 string
|
var templ_7745c5c3_Var20 string
|
||||||
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-alpine-morph", "2.0.0", "alpine-morph.min.js"))
|
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-alpine-morph", "2.0.0", "alpine-morph.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 105, Col: 84}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 105, Col: 84}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -438,7 +438,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var21 string
|
var templ_7745c5c3_Var21 string
|
||||||
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-sse", "2.2.2", "sse.min.js"))
|
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-sse", "2.2.2", "sse.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 106, Col: 66}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 106, Col: 66}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -451,7 +451,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var22 string
|
var templ_7745c5c3_Var22 string
|
||||||
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-ws", "2.0.2", "ws.min.js"))
|
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-ws", "2.0.2", "ws.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 107, Col: 64}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 107, Col: 64}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -500,7 +500,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var24 string
|
var templ_7745c5c3_Var24 string
|
||||||
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/light.css"))
|
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/light.css"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 116, Col: 71}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 116, Col: 71}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -513,7 +513,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var25 string
|
var templ_7745c5c3_Var25 string
|
||||||
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/dark.css"))
|
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/dark.css"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 121, Col: 70}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 121, Col: 70}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -542,7 +542,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var27 string
|
var templ_7745c5c3_Var27 string
|
||||||
templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/shoelace-autoloader.js"))
|
templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/shoelace-autoloader.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_head.templ`, Line: 125, Col: 98}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_head.templ`, Line: 125, Col: 98}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -36,7 +36,7 @@ func HeroTitle(title string, subtitle string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_hero.templ`, Line: 6, Col: 10}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_hero.templ`, Line: 6, Col: 10}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -49,7 +49,7 @@ func HeroTitle(title string, subtitle string) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(subtitle)
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(subtitle)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_hero.templ`, Line: 9, Col: 13}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_hero.templ`, Line: 9, Col: 13}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -149,7 +149,7 @@ func LayoutSeparator(text string) templ.Component {
|
|||||||
var templ_7745c5c3_Var5 string
|
var templ_7745c5c3_Var5 string
|
||||||
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_layout.templ`, Line: 33, Col: 45}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/base_layout.templ`, Line: 33, Col: 45}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -64,7 +64,7 @@ func ErrorView(err string) templ.Component {
|
|||||||
var templ_7745c5c3_Var4 string
|
var templ_7745c5c3_Var4 string
|
||||||
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(err)
|
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(err)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/view_errors.templ`, Line: 9, Col: 10}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `gateway/views/view_errors.templ`, Line: 9, Col: 10}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package views
|
package views
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/app/gateway/islands"
|
import "github.com/onsonr/sonr/gateway/islands"
|
||||||
|
|
||||||
templ RegisterProfileView(firstNumber int, lastNumber int) {
|
templ RegisterProfileView(firstNumber int, lastNumber int) {
|
||||||
@LayoutView("New Profile | Sonr.ID") {
|
@LayoutView("New Profile | Sonr.ID") {
|
||||||
@@ -8,7 +8,7 @@ package views
|
|||||||
import "github.com/a-h/templ"
|
import "github.com/a-h/templ"
|
||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/app/gateway/islands"
|
import "github.com/onsonr/sonr/gateway/islands"
|
||||||
|
|
||||||
func RegisterProfileView(firstNumber int, lastNumber int) templ.Component {
|
func RegisterProfileView(firstNumber int, lastNumber int) templ.Component {
|
||||||
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
||||||
@@ -28,7 +28,7 @@ replace (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cosmossdk.io/api v0.7.5
|
cosmossdk.io/api v0.7.6
|
||||||
cosmossdk.io/client/v2 v2.0.0-beta.1
|
cosmossdk.io/client/v2 v2.0.0-beta.1
|
||||||
cosmossdk.io/collections v0.4.0
|
cosmossdk.io/collections v0.4.0
|
||||||
cosmossdk.io/core v0.12.0
|
cosmossdk.io/core v0.12.0
|
||||||
@@ -54,7 +54,7 @@ require (
|
|||||||
github.com/cometbft/cometbft v0.38.12
|
github.com/cometbft/cometbft v0.38.12
|
||||||
github.com/consensys/gnark-crypto v0.14.0
|
github.com/consensys/gnark-crypto v0.14.0
|
||||||
github.com/cosmos/btcutil v1.0.5
|
github.com/cosmos/btcutil v1.0.5
|
||||||
github.com/cosmos/cosmos-db v1.0.2
|
github.com/cosmos/cosmos-db v1.1.1
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5
|
github.com/cosmos/cosmos-proto v1.0.0-beta.5
|
||||||
github.com/cosmos/cosmos-sdk v0.50.5
|
github.com/cosmos/cosmos-sdk v0.50.5
|
||||||
github.com/cosmos/gogoproto v1.7.0
|
github.com/cosmos/gogoproto v1.7.0
|
||||||
@@ -73,7 +73,7 @@ require (
|
|||||||
github.com/ipfs/boxo v0.24.3
|
github.com/ipfs/boxo v0.24.3
|
||||||
github.com/ipfs/go-cid v0.4.1
|
github.com/ipfs/go-cid v0.4.1
|
||||||
github.com/ipfs/kubo v0.32.1
|
github.com/ipfs/kubo v0.32.1
|
||||||
github.com/jackc/pgx/v5 v5.7.1
|
github.com/jackc/pgx/v5 v5.7.2
|
||||||
github.com/joho/godotenv v1.5.1
|
github.com/joho/godotenv v1.5.1
|
||||||
github.com/labstack/echo-contrib v0.17.1
|
github.com/labstack/echo-contrib v0.17.1
|
||||||
github.com/labstack/echo/v4 v4.12.0
|
github.com/labstack/echo/v4 v4.12.0
|
||||||
@@ -87,7 +87,7 @@ require (
|
|||||||
github.com/ncruces/go-sqlite3 v0.21.1
|
github.com/ncruces/go-sqlite3 v0.21.1
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/segmentio/ksuid v1.0.4
|
github.com/segmentio/ksuid v1.0.4
|
||||||
github.com/spf13/cast v1.6.0
|
github.com/spf13/cast v1.7.1
|
||||||
github.com/spf13/cobra v1.8.1
|
github.com/spf13/cobra v1.8.1
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/spf13/viper v1.19.0
|
github.com/spf13/viper v1.19.0
|
||||||
@@ -98,7 +98,7 @@ require (
|
|||||||
golang.org/x/crypto v0.31.0
|
golang.org/x/crypto v0.31.0
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9
|
google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9
|
||||||
google.golang.org/grpc v1.67.1
|
google.golang.org/grpc v1.67.1
|
||||||
google.golang.org/protobuf v1.35.2
|
google.golang.org/protobuf v1.36.0
|
||||||
lukechampine.com/blake3 v1.3.0
|
lukechampine.com/blake3 v1.3.0
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -179,7 +179,7 @@ require (
|
|||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/mock v1.6.0 // indirect
|
github.com/golang/mock v1.6.0 // indirect
|
||||||
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
|
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
|
||||||
github.com/google/btree v1.1.2 // indirect
|
github.com/google/btree v1.1.3 // indirect
|
||||||
github.com/google/go-cmp v0.6.0 // indirect
|
github.com/google/go-cmp v0.6.0 // indirect
|
||||||
github.com/google/go-tpm v0.9.1 // indirect
|
github.com/google/go-tpm v0.9.1 // indirect
|
||||||
github.com/google/gopacket v1.1.19 // indirect
|
github.com/google/gopacket v1.1.19 // indirect
|
||||||
|
|||||||
@@ -771,8 +771,8 @@ cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT
|
|||||||
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
|
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
|
||||||
cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g=
|
cloud.google.com/go/workflows v1.11.1/go.mod h1:Z+t10G1wF7h8LgdY/EmRcQY8ptBD/nvofaL6FqlET6g=
|
||||||
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
|
collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE=
|
||||||
cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ=
|
cosmossdk.io/api v0.7.6 h1:PC20PcXy1xYKH2KU4RMurVoFjjKkCgYRbVAD4PdqUuY=
|
||||||
cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38=
|
cosmossdk.io/api v0.7.6/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38=
|
||||||
cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q=
|
cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q=
|
||||||
cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU=
|
cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU=
|
||||||
cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s=
|
cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s=
|
||||||
@@ -1087,8 +1087,8 @@ github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8
|
|||||||
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||||
github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
|
github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
|
||||||
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
|
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
|
||||||
github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs=
|
github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNCM=
|
||||||
github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA=
|
github.com/cosmos/cosmos-db v1.1.1/go.mod h1:AghjcIPqdhSLP/2Z0yha5xPH3nLnskz81pBx3tcVSAw=
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA=
|
github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA=
|
||||||
github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec=
|
github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec=
|
||||||
github.com/cosmos/cosmos-sdk v0.50.5 h1:MOEi+DKYgW67YaPgB+Pf+nHbD3V9S/ayitRKJYLfGIA=
|
github.com/cosmos/cosmos-sdk v0.50.5 h1:MOEi+DKYgW67YaPgB+Pf+nHbD3V9S/ayitRKJYLfGIA=
|
||||||
@@ -1428,8 +1428,8 @@ github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP
|
|||||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||||
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
|
github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
|
||||||
github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU=
|
github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=
|
||||||
github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
|
github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
|
||||||
github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||||
github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||||
@@ -1770,8 +1770,8 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI
|
|||||||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
|
||||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
||||||
github.com/jackc/pgx/v5 v5.7.1 h1:x7SYsPBYDkHDksogeSmZZ5xzThcTgRz++I5E+ePFUcs=
|
github.com/jackc/pgx/v5 v5.7.2 h1:mLoDLV6sonKlvjIEsV56SkWNCnuNv531l94GaIzO+XI=
|
||||||
github.com/jackc/pgx/v5 v5.7.1/go.mod h1:e7O26IywZZ+naJtWWos6i6fvWK+29etgITqrqHLfoZA=
|
github.com/jackc/pgx/v5 v5.7.2/go.mod h1:ncY89UGWxg82EykZUwSpUKEfccBGGYq1xjrOpsbsfGQ=
|
||||||
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
|
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
|
||||||
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||||
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
|
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
|
||||||
@@ -2334,8 +2334,8 @@ github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
|
|||||||
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
|
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
|
||||||
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||||
github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48=
|
github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48=
|
||||||
github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
|
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
|
||||||
github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
|
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
|
||||||
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
||||||
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
|
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
|
||||||
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
|
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
|
||||||
@@ -3451,8 +3451,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw
|
|||||||
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||||
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||||
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
||||||
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
|
google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ=
|
||||||
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
|
google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
|
||||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
|||||||
@@ -1,126 +1,139 @@
|
|||||||
-- name: InsertCredential :one
|
-- name: InsertCredential :one
|
||||||
INSERT INTO credentials (
|
INSERT INTO credentials (
|
||||||
|
id,
|
||||||
|
created_at,
|
||||||
|
updated_at,
|
||||||
|
deleted_at,
|
||||||
handle,
|
handle,
|
||||||
credential_id,
|
credential_id,
|
||||||
|
authenticator_attachment,
|
||||||
origin,
|
origin,
|
||||||
type,
|
type,
|
||||||
transports
|
transports
|
||||||
) VALUES ($1, $2, $3, $4, $5)
|
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|
||||||
-- name: InsertProfile :one
|
-- name: InsertProfile :one
|
||||||
INSERT INTO profiles (
|
INSERT INTO profiles (
|
||||||
|
id,
|
||||||
|
created_at,
|
||||||
|
updated_at,
|
||||||
|
deleted_at,
|
||||||
address,
|
address,
|
||||||
handle,
|
handle,
|
||||||
origin,
|
origin,
|
||||||
name
|
name,
|
||||||
) VALUES ($1, $2, $3, $4)
|
status
|
||||||
|
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|
||||||
-- name: GetProfileByID :one
|
-- name: GetProfileByID :one
|
||||||
SELECT * FROM profiles
|
SELECT * FROM profiles
|
||||||
WHERE id = $1 AND deleted_at IS NULL
|
WHERE id = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetProfileByAddress :one
|
-- name: GetProfileByAddress :one
|
||||||
SELECT * FROM profiles
|
SELECT * FROM profiles
|
||||||
WHERE address = $1 AND deleted_at IS NULL
|
WHERE address = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetChallengeBySessionID :one
|
-- name: GetChallengeBySessionID :one
|
||||||
SELECT challenge FROM sessions
|
SELECT challenge FROM sessions
|
||||||
WHERE id = $1 AND deleted_at IS NULL
|
WHERE id = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetHumanVerificationNumbers :one
|
-- name: GetHumanVerificationNumbers :one
|
||||||
SELECT is_human_first, is_human_last FROM sessions
|
SELECT is_human_first, is_human_last FROM sessions
|
||||||
WHERE id = $1 AND deleted_at IS NULL
|
WHERE id = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetSessionByID :one
|
-- name: GetSessionByID :one
|
||||||
SELECT * FROM sessions
|
SELECT * FROM sessions
|
||||||
WHERE id = $1 AND deleted_at IS NULL
|
WHERE id = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetSessionByClientIP :one
|
-- name: GetSessionByClientIP :one
|
||||||
SELECT * FROM sessions
|
SELECT * FROM sessions
|
||||||
WHERE client_ipaddr = $1 AND deleted_at IS NULL
|
WHERE client_ipaddr = ? AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: UpdateSessionHumanVerification :one
|
-- name: UpdateSessionHumanVerification :one
|
||||||
UPDATE sessions
|
UPDATE sessions
|
||||||
SET
|
SET
|
||||||
is_human_first = $1,
|
is_human_first = ?,
|
||||||
is_human_last = $2,
|
is_human_last = ?,
|
||||||
updated_at = CURRENT_TIMESTAMP
|
updated_at = CURRENT_TIMESTAMP
|
||||||
WHERE id = $3
|
WHERE id = ?
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|
||||||
-- name: UpdateSessionWithProfileID :one
|
-- name: UpdateSessionWithProfileID :one
|
||||||
UPDATE sessions
|
UPDATE sessions
|
||||||
SET
|
SET
|
||||||
profile_id = $1,
|
profile_id = ?,
|
||||||
updated_at = CURRENT_TIMESTAMP
|
updated_at = CURRENT_TIMESTAMP
|
||||||
WHERE id = $2
|
WHERE id = ?
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|
||||||
-- name: CheckHandleExists :one
|
-- name: CheckHandleExists :one
|
||||||
SELECT COUNT(*) > 0 as handle_exists FROM profiles
|
SELECT COUNT(*) > 0 as handle_exists FROM profiles
|
||||||
WHERE handle = $1
|
WHERE handle = ?
|
||||||
AND deleted_at IS NULL;
|
AND deleted_at IS NULL;
|
||||||
|
|
||||||
-- name: GetCredentialsByHandle :many
|
-- name: GetCredentialsByHandle :many
|
||||||
SELECT * FROM credentials
|
SELECT * FROM credentials
|
||||||
WHERE handle = $1
|
WHERE handle = ?
|
||||||
AND deleted_at IS NULL;
|
AND deleted_at IS NULL;
|
||||||
|
|
||||||
-- name: GetCredentialByID :one
|
-- name: GetCredentialByID :one
|
||||||
SELECT * FROM credentials
|
SELECT * FROM credentials
|
||||||
WHERE credential_id = $1
|
WHERE credential_id = ?
|
||||||
AND deleted_at IS NULL
|
AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: SoftDeleteCredential :exec
|
-- name: SoftDeleteCredential :exec
|
||||||
UPDATE credentials
|
UPDATE credentials
|
||||||
SET deleted_at = CURRENT_TIMESTAMP
|
SET deleted_at = CURRENT_TIMESTAMP
|
||||||
WHERE credential_id = $1;
|
WHERE credential_id = ?;
|
||||||
|
|
||||||
-- name: SoftDeleteProfile :exec
|
-- name: SoftDeleteProfile :exec
|
||||||
UPDATE profiles
|
UPDATE profiles
|
||||||
SET deleted_at = CURRENT_TIMESTAMP
|
SET deleted_at = CURRENT_TIMESTAMP
|
||||||
WHERE address = $1;
|
WHERE id = ?;
|
||||||
|
|
||||||
-- name: UpdateProfile :one
|
-- name: UpdateProfile :one
|
||||||
UPDATE profiles
|
UPDATE profiles
|
||||||
SET
|
SET
|
||||||
name = $1,
|
name = ?,
|
||||||
handle = $2,
|
handle = ?,
|
||||||
updated_at = CURRENT_TIMESTAMP
|
updated_at = CURRENT_TIMESTAMP
|
||||||
WHERE address = $3
|
WHERE id = ?
|
||||||
AND deleted_at IS NULL
|
AND deleted_at IS NULL
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|
||||||
-- name: GetProfileByHandle :one
|
-- name: GetProfileByHandle :one
|
||||||
SELECT * FROM profiles
|
SELECT * FROM profiles
|
||||||
WHERE handle = $1
|
WHERE handle = ?
|
||||||
AND deleted_at IS NULL
|
AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetVaultConfigByCID :one
|
-- name: GetVaultConfigByCID :one
|
||||||
SELECT * FROM vaults
|
SELECT * FROM vaults
|
||||||
WHERE cid = $1
|
WHERE cid = ?
|
||||||
AND deleted_at IS NULL
|
AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: GetVaultRedirectURIBySessionID :one
|
-- name: GetVaultRedirectURIBySessionID :one
|
||||||
SELECT redirect_uri FROM vaults
|
SELECT redirect_uri FROM vaults
|
||||||
WHERE session_id = $1
|
WHERE session_id = ?
|
||||||
AND deleted_at IS NULL
|
AND deleted_at IS NULL
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
-- name: CreateSession :one
|
-- name: CreateSession :one
|
||||||
INSERT INTO sessions (
|
INSERT INTO sessions (
|
||||||
id,
|
id,
|
||||||
|
created_at,
|
||||||
|
updated_at,
|
||||||
|
deleted_at,
|
||||||
browser_name,
|
browser_name,
|
||||||
browser_version,
|
browser_version,
|
||||||
client_ipaddr,
|
client_ipaddr,
|
||||||
@@ -134,5 +147,5 @@ INSERT INTO sessions (
|
|||||||
is_human_first,
|
is_human_first,
|
||||||
is_human_last,
|
is_human_last,
|
||||||
profile_id
|
profile_id
|
||||||
) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)
|
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
RETURNING *;
|
RETURNING *;
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
-- Profiles represent user identities
|
-- Profiles represent user identities
|
||||||
CREATE TABLE profiles (
|
CREATE TABLE profiles (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
address TEXT NOT NULL,
|
address TEXT NOT NULL,
|
||||||
handle TEXT NOT NULL UNIQUE,
|
handle TEXT NOT NULL UNIQUE,
|
||||||
origin TEXT NOT NULL,
|
origin TEXT NOT NULL,
|
||||||
@@ -15,30 +15,30 @@ CREATE TABLE profiles (
|
|||||||
-- Accounts represent blockchain accounts
|
-- Accounts represent blockchain accounts
|
||||||
CREATE TABLE accounts (
|
CREATE TABLE accounts (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
number BIGINT NOT NULL,
|
number INTEGER NOT NULL,
|
||||||
sequence INT NOT NULL DEFAULT 0,
|
sequence INTEGER NOT NULL DEFAULT 0,
|
||||||
address TEXT NOT NULL UNIQUE,
|
address TEXT NOT NULL UNIQUE,
|
||||||
public_key TEXT NOT NULL,
|
public_key TEXT NOT NULL,
|
||||||
chain_id TEXT NOT NULL,
|
chain_id TEXT NOT NULL,
|
||||||
controller TEXT NOT NULL,
|
controller TEXT NOT NULL,
|
||||||
is_subsidiary BOOLEAN NOT NULL DEFAULT FALSE,
|
is_subsidiary INTEGER NOT NULL DEFAULT 0,
|
||||||
is_validator BOOLEAN NOT NULL DEFAULT FALSE,
|
is_validator INTEGER NOT NULL DEFAULT 0,
|
||||||
is_delegator BOOLEAN NOT NULL DEFAULT FALSE,
|
is_delegator INTEGER NOT NULL DEFAULT 0,
|
||||||
is_accountable BOOLEAN NOT NULL DEFAULT TRUE
|
is_accountable INTEGER NOT NULL DEFAULT 1
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Assets represent tokens and coins
|
-- Assets represent tokens and coins
|
||||||
CREATE TABLE assets (
|
CREATE TABLE assets (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
symbol TEXT NOT NULL,
|
symbol TEXT NOT NULL,
|
||||||
decimals INT NOT NULL CHECK(decimals >= 0),
|
decimals INTEGER NOT NULL CHECK(decimals >= 0),
|
||||||
chain_id TEXT NOT NULL,
|
chain_id TEXT NOT NULL,
|
||||||
channel TEXT NOT NULL,
|
channel TEXT NOT NULL,
|
||||||
asset_type TEXT NOT NULL,
|
asset_type TEXT NOT NULL,
|
||||||
@@ -49,9 +49,9 @@ CREATE TABLE assets (
|
|||||||
-- Credentials store WebAuthn credentials
|
-- Credentials store WebAuthn credentials
|
||||||
CREATE TABLE credentials (
|
CREATE TABLE credentials (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
handle TEXT NOT NULL,
|
handle TEXT NOT NULL,
|
||||||
credential_id TEXT NOT NULL UNIQUE,
|
credential_id TEXT NOT NULL UNIQUE,
|
||||||
authenticator_attachment TEXT NOT NULL,
|
authenticator_attachment TEXT NOT NULL,
|
||||||
@@ -63,37 +63,37 @@ CREATE TABLE credentials (
|
|||||||
-- Sessions track user authentication state
|
-- Sessions track user authentication state
|
||||||
CREATE TABLE sessions (
|
CREATE TABLE sessions (
|
||||||
id TEXT PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
browser_name TEXT NOT NULL,
|
browser_name TEXT NOT NULL,
|
||||||
browser_version TEXT NOT NULL,
|
browser_version TEXT NOT NULL,
|
||||||
client_ipaddr TEXT NOT NULL,
|
client_ipaddr TEXT NOT NULL,
|
||||||
platform TEXT NOT NULL,
|
platform TEXT NOT NULL,
|
||||||
is_desktop BOOLEAN NOT NULL DEFAULT FALSE,
|
is_desktop INTEGER NOT NULL DEFAULT 0,
|
||||||
is_mobile BOOLEAN NOT NULL DEFAULT FALSE,
|
is_mobile INTEGER NOT NULL DEFAULT 0,
|
||||||
is_tablet BOOLEAN NOT NULL DEFAULT FALSE,
|
is_tablet INTEGER NOT NULL DEFAULT 0,
|
||||||
is_tv BOOLEAN NOT NULL DEFAULT FALSE,
|
is_tv INTEGER NOT NULL DEFAULT 0,
|
||||||
is_bot BOOLEAN NOT NULL DEFAULT FALSE,
|
is_bot INTEGER NOT NULL DEFAULT 0,
|
||||||
challenge TEXT NOT NULL,
|
challenge TEXT NOT NULL,
|
||||||
is_human_first BOOLEAN NOT NULL DEFAULT FALSE,
|
is_human_first INTEGER NOT NULL DEFAULT 0,
|
||||||
is_human_last BOOLEAN NOT NULL DEFAULT FALSE,
|
is_human_last INTEGER NOT NULL DEFAULT 0,
|
||||||
profile_id TEXT NOT NULL REFERENCES profiles(id),
|
profile_id TEXT NOT NULL,
|
||||||
FOREIGN KEY (profile_id) REFERENCES profiles(id)
|
FOREIGN KEY (profile_id) REFERENCES profiles(id)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Vaults store encrypted data
|
-- Vaults store encrypted data
|
||||||
CREATE TABLE vaults (
|
CREATE TABLE vaults (
|
||||||
id BIGSERIAL PRIMARY KEY,
|
id TEXT PRIMARY KEY,
|
||||||
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
deleted_at TIMESTAMPTZ,
|
deleted_at DATETIME,
|
||||||
handle TEXT NOT NULL,
|
handle TEXT NOT NULL,
|
||||||
origin TEXT NOT NULL,
|
origin TEXT NOT NULL,
|
||||||
address TEXT NOT NULL,
|
address TEXT NOT NULL,
|
||||||
cid TEXT NOT NULL UNIQUE,
|
cid TEXT NOT NULL UNIQUE,
|
||||||
config JSONB NOT NULL,
|
config TEXT NOT NULL,
|
||||||
session_id BIGINT NOT NULL,
|
session_id TEXT NOT NULL,
|
||||||
redirect_uri TEXT NOT NULL,
|
redirect_uri TEXT NOT NULL,
|
||||||
FOREIGN KEY (session_id) REFERENCES sessions(id)
|
FOREIGN KEY (session_id) REFERENCES sessions(id)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -16,13 +16,6 @@ service Query {
|
|||||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||||
option (google.api.http).get = "/vault/v1/params";
|
option (google.api.http).get = "/vault/v1/params";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Allocate initializes a Target Vault available for claims with a compatible
|
|
||||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
||||||
rpc Allocate(QueryAllocateRequest) returns (QueryAllocateResponse) {
|
|
||||||
option (google.api.http).get = "/vault/v1/allocate";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ╭──────────────────────────────────────────────────────────╮
|
// ╭──────────────────────────────────────────────────────────╮
|
||||||
@@ -38,15 +31,3 @@ message QueryParamsResponse {
|
|||||||
Params params = 1;
|
Params params = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryAllocateRequest is the request type for the Allocate RPC method.
|
|
||||||
message QueryAllocateRequest {}
|
|
||||||
|
|
||||||
// AllocateResponse is the response type for the Allocate RPC method.
|
|
||||||
message QueryAllocateResponse {
|
|
||||||
bool success = 1;
|
|
||||||
string cid = 2;
|
|
||||||
string macaroon = 3;
|
|
||||||
string public_uri = 4;
|
|
||||||
int64 expiry_block = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Executable
+91
@@ -0,0 +1,91 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Function to detect OS and architecture
|
||||||
|
detect_platform() {
|
||||||
|
OS=$(uname -s)
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
# Normalize architecture names
|
||||||
|
case "$ARCH" in
|
||||||
|
x86_64) ARCH="amd64" ;;
|
||||||
|
aarch64|arm64) ARCH="arm64" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to get latest release version
|
||||||
|
get_latest_version() {
|
||||||
|
LATEST_VERSION=$(curl -s https://api.github.com/repos/onsonr/sonr/releases/latest | grep "tag_name" | cut -d '"' -f 4)
|
||||||
|
LATEST_VERSION=${LATEST_VERSION#v} # Remove 'v' prefix
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install binaries to current directory
|
||||||
|
install_tar() {
|
||||||
|
local OS_NAME=$1
|
||||||
|
echo "Installing Sonr for $OS_NAME ($ARCH)..."
|
||||||
|
DOWNLOAD_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/sonr_${LATEST_VERSION}_${OS_NAME}_${ARCH}.tar.gz"
|
||||||
|
|
||||||
|
# Download and extract
|
||||||
|
echo "Downloading Sonr..."
|
||||||
|
curl -L "$DOWNLOAD_URL" -o sonr.tar.gz
|
||||||
|
tar -xzf sonr.tar.gz
|
||||||
|
rm sonr.tar.gz
|
||||||
|
|
||||||
|
chmod +x sonrd hway
|
||||||
|
|
||||||
|
echo "Binaries 'sonrd' and 'hway' have been extracted to the current directory"
|
||||||
|
echo
|
||||||
|
echo "To make them available system-wide, you can move them to /usr/local/bin with:"
|
||||||
|
echo "sudo mv sonrd hway /usr/local/bin/"
|
||||||
|
echo
|
||||||
|
echo "Or move them to your personal bin directory with:"
|
||||||
|
echo "mkdir -p ~/.local/bin"
|
||||||
|
echo "mv sonrd hway ~/.local/bin/"
|
||||||
|
echo "Then add ~/.local/bin to your PATH if it's not already there"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install on Debian/Ubuntu
|
||||||
|
install_debian() {
|
||||||
|
echo "Installing Sonr for Debian/Ubuntu ($ARCH)..."
|
||||||
|
SONRD_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/sonrd_${LATEST_VERSION}_${ARCH}.deb"
|
||||||
|
HWAY_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/hway_${LATEST_VERSION}_${ARCH}.deb"
|
||||||
|
|
||||||
|
# Download packages
|
||||||
|
TMP_DIR=$(mktemp -d)
|
||||||
|
curl -L "$SONRD_URL" -o "$TMP_DIR/sonrd.deb"
|
||||||
|
curl -L "$HWAY_URL" -o "$TMP_DIR/hway.deb"
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
sudo dpkg -i "$TMP_DIR/sonrd.deb"
|
||||||
|
sudo dpkg -i "$TMP_DIR/hway.deb"
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm -rf "$TMP_DIR"
|
||||||
|
|
||||||
|
echo "Sonr has been installed system-wide"
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
detect_platform
|
||||||
|
get_latest_version
|
||||||
|
|
||||||
|
case "$OS" in
|
||||||
|
Darwin)
|
||||||
|
install_tar "Darwin"
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
|
if [ -f /etc/debian_version ]; then
|
||||||
|
install_debian
|
||||||
|
else
|
||||||
|
install_tar "Linux"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported operating system: $OS"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
@@ -14,7 +14,7 @@ func WASMMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
|
|||||||
return func(c echo.Context) error {
|
return func(c echo.Context) error {
|
||||||
// Extract WASM context from headers
|
// Extract WASM context from headers
|
||||||
if wasmCtx := c.Request().Header.Get("X-Wasm-Context"); wasmCtx != "" {
|
if wasmCtx := c.Request().Header.Get("X-Wasm-Context"); wasmCtx != "" {
|
||||||
if ctx, err := DecodeWasmContext(wasmCtx); err == nil {
|
if ctx, err := decodeWasmContext(wasmCtx); err == nil {
|
||||||
c.Set("wasm_context", ctx)
|
c.Set("wasm_context", ctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@ func WASMMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// decodeWasmContext decodes the WASM context from a base64 encoded string
|
// decodeWasmContext decodes the WASM context from a base64 encoded string
|
||||||
func DecodeWasmContext(ctx string) (map[string]any, error) {
|
func decodeWasmContext(ctx string) (map[string]any, error) {
|
||||||
decoded, err := base64.StdEncoding.DecodeString(ctx)
|
decoded, err := base64.StdEncoding.DecodeString(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -5,9 +5,9 @@ package vault
|
|||||||
import (
|
import (
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
echomiddleware "github.com/labstack/echo/v4/middleware"
|
echomiddleware "github.com/labstack/echo/v4/middleware"
|
||||||
"github.com/onsonr/sonr/app/vault/context"
|
|
||||||
"github.com/onsonr/sonr/internal/config/motr"
|
"github.com/onsonr/sonr/internal/config/motr"
|
||||||
"github.com/onsonr/sonr/internal/database/motrorm"
|
"github.com/onsonr/sonr/internal/database/motrorm"
|
||||||
|
"github.com/onsonr/sonr/vault/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Vault = *echo.Echo
|
type Vault = *echo.Echo
|
||||||
@@ -36,7 +36,7 @@ func Form(action, id string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(action)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(action)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_form.templ`, Line: 4, Col: 23}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_form.templ`, Line: 4, Col: 23}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -226,7 +226,7 @@ func FormSubmit(text string) templ.Component {
|
|||||||
var templ_7745c5c3_Var8 string
|
var templ_7745c5c3_Var8 string
|
||||||
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_form.templ`, Line: 55, Col: 8}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_form.templ`, Line: 55, Col: 8}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -75,7 +75,7 @@ func Head(title string, nebulaVersion string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 25, Col: 16}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 25, Col: 16}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -238,7 +238,7 @@ func Alpine() templ.Component {
|
|||||||
var templ_7745c5c3_Var9 string
|
var templ_7745c5c3_Var9 string
|
||||||
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("alpinejs", "3.14.6", "dist/cdn.min.js"))
|
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("alpinejs", "3.14.6", "dist/cdn.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 86, Col: 68}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 86, Col: 68}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -251,7 +251,7 @@ func Alpine() templ.Component {
|
|||||||
var templ_7745c5c3_Var10 string
|
var templ_7745c5c3_Var10 string
|
||||||
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@alpinejs/focus", "3.14.6", "dist/cdn.min.js"))
|
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@alpinejs/focus", "3.14.6", "dist/cdn.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 87, Col: 75}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 87, Col: 75}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -312,7 +312,7 @@ func Dexie() templ.Component {
|
|||||||
var templ_7745c5c3_Var13 string
|
var templ_7745c5c3_Var13 string
|
||||||
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie", "4.0.10", "dist/dexie.min.js"))
|
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie", "4.0.10", "dist/dexie.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 94, Col: 67}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 94, Col: 67}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -325,7 +325,7 @@ func Dexie() templ.Component {
|
|||||||
var templ_7745c5c3_Var14 string
|
var templ_7745c5c3_Var14 string
|
||||||
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie-export-import", "4.1.4", "dist/dexie-export-import.min.js"))
|
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("dexie-export-import", "4.1.4", "dist/dexie-export-import.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 95, Col: 94}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 95, Col: 94}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -386,7 +386,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var17 string
|
var templ_7745c5c3_Var17 string
|
||||||
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx.org", "1.9.12", "dist/htmx.min.js"))
|
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx.org", "1.9.12", "dist/htmx.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 102, Col: 69}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 102, Col: 69}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -399,7 +399,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var18 string
|
var templ_7745c5c3_Var18 string
|
||||||
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-include-vals", "2.0.0", "include-vals.min.js"))
|
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-include-vals", "2.0.0", "include-vals.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 103, Col: 84}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 103, Col: 84}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -412,7 +412,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var19 string
|
var templ_7745c5c3_Var19 string
|
||||||
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-path-params", "2.0.0", "path-params.min.js"))
|
templ_7745c5c3_Var19, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-path-params", "2.0.0", "path-params.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 104, Col: 82}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 104, Col: 82}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -425,7 +425,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var20 string
|
var templ_7745c5c3_Var20 string
|
||||||
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-alpine-morph", "2.0.0", "alpine-morph.min.js"))
|
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-alpine-morph", "2.0.0", "alpine-morph.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 105, Col: 84}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 105, Col: 84}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -438,7 +438,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var21 string
|
var templ_7745c5c3_Var21 string
|
||||||
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-sse", "2.2.2", "sse.min.js"))
|
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-sse", "2.2.2", "sse.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 106, Col: 66}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 106, Col: 66}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -451,7 +451,7 @@ func Htmx() templ.Component {
|
|||||||
var templ_7745c5c3_Var22 string
|
var templ_7745c5c3_Var22 string
|
||||||
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-ws", "2.0.2", "ws.min.js"))
|
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("htmx-ext-ws", "2.0.2", "ws.min.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 107, Col: 64}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 107, Col: 64}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -500,7 +500,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var24 string
|
var templ_7745c5c3_Var24 string
|
||||||
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/light.css"))
|
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/light.css"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 116, Col: 71}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 116, Col: 71}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -513,7 +513,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var25 string
|
var templ_7745c5c3_Var25 string
|
||||||
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/dark.css"))
|
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/themes/dark.css"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 121, Col: 70}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 121, Col: 70}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -542,7 +542,7 @@ func Nebula(version string) templ.Component {
|
|||||||
var templ_7745c5c3_Var27 string
|
var templ_7745c5c3_Var27 string
|
||||||
templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/shoelace-autoloader.js"))
|
templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(jsDelivrURL("@onsonr/nebula", version, "cdn/shoelace-autoloader.js"))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_head.templ`, Line: 125, Col: 98}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_head.templ`, Line: 125, Col: 98}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -36,7 +36,7 @@ func HeroTitle(title string, subtitle string) templ.Component {
|
|||||||
var templ_7745c5c3_Var2 string
|
var templ_7745c5c3_Var2 string
|
||||||
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_hero.templ`, Line: 6, Col: 10}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_hero.templ`, Line: 6, Col: 10}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -49,7 +49,7 @@ func HeroTitle(title string, subtitle string) templ.Component {
|
|||||||
var templ_7745c5c3_Var3 string
|
var templ_7745c5c3_Var3 string
|
||||||
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(subtitle)
|
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(subtitle)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/vault/views/base_hero.templ`, Line: 9, Col: 13}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_hero.templ`, Line: 9, Col: 13}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -149,7 +149,7 @@ func LayoutSeparator(text string) templ.Component {
|
|||||||
var templ_7745c5c3_Var5 string
|
var templ_7745c5c3_Var5 string
|
||||||
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text)
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ.Error{Err: templ_7745c5c3_Err, FileName: `app/gateway/views/base_layout.templ`, Line: 33, Col: 45}
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `vault/views/base_layout.templ`, Line: 33, Col: 45}
|
||||||
}
|
}
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
@@ -2,7 +2,6 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
fmt "fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// DefaultParams returns default module parameters.
|
// DefaultParams returns default module parameters.
|
||||||
@@ -10,15 +9,6 @@ func DefaultParams() Params {
|
|||||||
return Params{}
|
return Params{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultSeedMessage returns the default seed message
|
|
||||||
func DefaultSeedMessage() string {
|
|
||||||
l1 := "The Sonr Network shall make no protocol that respects the establishment of centralized authority,"
|
|
||||||
l2 := "or prohibits the free exercise of decentralized identity; or abridges the freedom of data sovereignty,"
|
|
||||||
l3 := "or of encrypted communication; or the right of the users to peaceally interact and transact,"
|
|
||||||
l4 := "and to petition the Network for the redress of vulnerabilities."
|
|
||||||
return fmt.Sprintf("%s %s %s %s", l1, l2, l3, l4)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Stringer method for Params.
|
// Stringer method for Params.
|
||||||
func (p Params) String() string {
|
func (p Params) String() string {
|
||||||
bz, err := json.Marshal(p)
|
bz, err := json.Marshal(p)
|
||||||
|
|||||||
@@ -28,10 +28,3 @@ func (k Querier) Params(c context.Context, req *types.QueryParamsRequest) (*type
|
|||||||
|
|
||||||
return &types.QueryParamsResponse{Params: &p}, nil
|
return &types.QueryParamsResponse{Params: &p}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allocate implements types.QueryServer.
|
|
||||||
func (k Querier) Allocate(goCtx context.Context, req *types.QueryAllocateRequest) (*types.QueryAllocateResponse, error) {
|
|
||||||
// ctx := sdk.UnwrapSDKContext(goCtx)
|
|
||||||
panic("Allocate is unimplemented")
|
|
||||||
return &types.QueryAllocateResponse{}, nil
|
|
||||||
}
|
|
||||||
|
|||||||
+17
-535
@@ -111,156 +111,31 @@ func (m *QueryParamsResponse) GetParams() *Params {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// QueryAllocateRequest is the request type for the Allocate RPC method.
|
|
||||||
type QueryAllocateRequest struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateRequest) Reset() { *m = QueryAllocateRequest{} }
|
|
||||||
func (m *QueryAllocateRequest) String() string { return proto.CompactTextString(m) }
|
|
||||||
func (*QueryAllocateRequest) ProtoMessage() {}
|
|
||||||
func (*QueryAllocateRequest) Descriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_9a31dfed63924cb3, []int{2}
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateRequest) XXX_Unmarshal(b []byte) error {
|
|
||||||
return m.Unmarshal(b)
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
||||||
if deterministic {
|
|
||||||
return xxx_messageInfo_QueryAllocateRequest.Marshal(b, m, deterministic)
|
|
||||||
} else {
|
|
||||||
b = b[:cap(b)]
|
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return b[:n], nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateRequest) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_QueryAllocateRequest.Merge(m, src)
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateRequest) XXX_Size() int {
|
|
||||||
return m.Size()
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateRequest) XXX_DiscardUnknown() {
|
|
||||||
xxx_messageInfo_QueryAllocateRequest.DiscardUnknown(m)
|
|
||||||
}
|
|
||||||
|
|
||||||
var xxx_messageInfo_QueryAllocateRequest proto.InternalMessageInfo
|
|
||||||
|
|
||||||
// AllocateResponse is the response type for the Allocate RPC method.
|
|
||||||
type QueryAllocateResponse struct {
|
|
||||||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
||||||
Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
|
|
||||||
Macaroon string `protobuf:"bytes,3,opt,name=macaroon,proto3" json:"macaroon,omitempty"`
|
|
||||||
PublicUri string `protobuf:"bytes,4,opt,name=public_uri,json=publicUri,proto3" json:"public_uri,omitempty"`
|
|
||||||
ExpiryBlock int64 `protobuf:"varint,5,opt,name=expiry_block,json=expiryBlock,proto3" json:"expiry_block,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) Reset() { *m = QueryAllocateResponse{} }
|
|
||||||
func (m *QueryAllocateResponse) String() string { return proto.CompactTextString(m) }
|
|
||||||
func (*QueryAllocateResponse) ProtoMessage() {}
|
|
||||||
func (*QueryAllocateResponse) Descriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_9a31dfed63924cb3, []int{3}
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) XXX_Unmarshal(b []byte) error {
|
|
||||||
return m.Unmarshal(b)
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
||||||
if deterministic {
|
|
||||||
return xxx_messageInfo_QueryAllocateResponse.Marshal(b, m, deterministic)
|
|
||||||
} else {
|
|
||||||
b = b[:cap(b)]
|
|
||||||
n, err := m.MarshalToSizedBuffer(b)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return b[:n], nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_QueryAllocateResponse.Merge(m, src)
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) XXX_Size() int {
|
|
||||||
return m.Size()
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) XXX_DiscardUnknown() {
|
|
||||||
xxx_messageInfo_QueryAllocateResponse.DiscardUnknown(m)
|
|
||||||
}
|
|
||||||
|
|
||||||
var xxx_messageInfo_QueryAllocateResponse proto.InternalMessageInfo
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) GetSuccess() bool {
|
|
||||||
if m != nil {
|
|
||||||
return m.Success
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) GetCid() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Cid
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) GetMacaroon() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Macaroon
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) GetPublicUri() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.PublicUri
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) GetExpiryBlock() int64 {
|
|
||||||
if m != nil {
|
|
||||||
return m.ExpiryBlock
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*QueryParamsRequest)(nil), "dwn.v1.QueryParamsRequest")
|
proto.RegisterType((*QueryParamsRequest)(nil), "dwn.v1.QueryParamsRequest")
|
||||||
proto.RegisterType((*QueryParamsResponse)(nil), "dwn.v1.QueryParamsResponse")
|
proto.RegisterType((*QueryParamsResponse)(nil), "dwn.v1.QueryParamsResponse")
|
||||||
proto.RegisterType((*QueryAllocateRequest)(nil), "dwn.v1.QueryAllocateRequest")
|
|
||||||
proto.RegisterType((*QueryAllocateResponse)(nil), "dwn.v1.QueryAllocateResponse")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("dwn/v1/query.proto", fileDescriptor_9a31dfed63924cb3) }
|
func init() { proto.RegisterFile("dwn/v1/query.proto", fileDescriptor_9a31dfed63924cb3) }
|
||||||
|
|
||||||
var fileDescriptor_9a31dfed63924cb3 = []byte{
|
var fileDescriptor_9a31dfed63924cb3 = []byte{
|
||||||
// 399 bytes of a gzipped FileDescriptorProto
|
// 254 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcd, 0x8e, 0xd3, 0x30,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4a, 0x29, 0xcf, 0xd3,
|
||||||
0x10, 0xae, 0xb7, 0x6c, 0xe8, 0x7a, 0x11, 0x5a, 0x0d, 0x01, 0x45, 0x61, 0x37, 0x2a, 0x39, 0xa0,
|
0x2f, 0x33, 0xd4, 0x2f, 0x2c, 0x4d, 0x2d, 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62,
|
||||||
0x9e, 0x62, 0xed, 0x72, 0x85, 0x03, 0xfb, 0x04, 0x10, 0x89, 0x0b, 0x1c, 0x56, 0x8e, 0x6b, 0x05,
|
0x4b, 0x29, 0xcf, 0xd3, 0x2b, 0x33, 0x94, 0x92, 0x49, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4f,
|
||||||
0x8b, 0xd4, 0x4e, 0x6d, 0xa7, 0x3f, 0x57, 0x9e, 0x00, 0x89, 0x27, 0xe0, 0x6d, 0xe0, 0x56, 0x89,
|
0x2c, 0xc8, 0xd4, 0x4f, 0xcc, 0xcb, 0xcb, 0x2f, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0x2b, 0x86, 0xa8,
|
||||||
0x0b, 0x47, 0xd4, 0xf2, 0x20, 0x28, 0x76, 0x02, 0x6a, 0x61, 0x2f, 0x51, 0xe6, 0xfb, 0x66, 0xbe,
|
0x92, 0x12, 0x81, 0xea, 0x4c, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x84, 0x8a, 0x2a, 0x89, 0x70, 0x09,
|
||||||
0xcf, 0xf3, 0x69, 0x30, 0x4c, 0x97, 0x92, 0x2c, 0x2e, 0xc9, 0xbc, 0xe1, 0x7a, 0x9d, 0xd5, 0x5a,
|
0x05, 0x82, 0x8c, 0x0a, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0x0e, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e,
|
||||||
0x59, 0x05, 0xc1, 0x74, 0x29, 0xb3, 0xc5, 0x65, 0x7c, 0x5e, 0x2a, 0x55, 0x56, 0x9c, 0xd0, 0x5a,
|
0x51, 0xb2, 0xe5, 0x12, 0x46, 0x11, 0x2d, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x52, 0xe3, 0x62,
|
||||||
0x10, 0x2a, 0xa5, 0xb2, 0xd4, 0x0a, 0x25, 0x8d, 0xef, 0x8a, 0xc3, 0x6e, 0xb2, 0xe4, 0x92, 0x1b,
|
0x2b, 0x00, 0x8b, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0xf1, 0xe9, 0x41, 0x6c, 0xd6, 0x83,
|
||||||
0xd1, 0xa1, 0x69, 0x88, 0xe1, 0x75, 0x2b, 0xf5, 0x8a, 0x6a, 0x3a, 0x33, 0x39, 0x9f, 0x37, 0xdc,
|
0xaa, 0x83, 0xca, 0x1a, 0xa5, 0x70, 0xb1, 0x82, 0xb5, 0x0b, 0x45, 0x73, 0xb1, 0x41, 0xa4, 0x84,
|
||||||
0xd8, 0xf4, 0x05, 0x7e, 0xb0, 0x87, 0x9a, 0x5a, 0x49, 0xc3, 0xe1, 0x29, 0x0e, 0x6a, 0x87, 0x44,
|
0xa4, 0x60, 0x4a, 0x31, 0x6d, 0x93, 0x92, 0xc6, 0x2a, 0x07, 0xb1, 0x53, 0x49, 0xa2, 0xe9, 0xf2,
|
||||||
0x68, 0x8c, 0x26, 0xa7, 0x57, 0xf7, 0x33, 0xef, 0x9c, 0x75, 0x7d, 0x1d, 0x9b, 0x3e, 0xc2, 0xa1,
|
0x93, 0xc9, 0x4c, 0x42, 0x42, 0x02, 0xfa, 0x65, 0x89, 0xa5, 0x39, 0x25, 0x20, 0x1f, 0x40, 0x6c,
|
||||||
0x1b, 0x7f, 0x59, 0x55, 0x8a, 0x51, 0xcb, 0x7b, 0xd9, 0x2f, 0x08, 0x3f, 0x3c, 0x20, 0x3a, 0xe5,
|
0x71, 0xb2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27,
|
||||||
0x08, 0xdf, 0x35, 0x0d, 0x63, 0xdc, 0x78, 0xe9, 0x51, 0xde, 0x97, 0x70, 0x86, 0x87, 0x4c, 0x4c,
|
0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa5, 0xf4, 0xcc,
|
||||||
0xa3, 0xa3, 0x31, 0x9a, 0x9c, 0xe4, 0xed, 0x2f, 0xc4, 0x78, 0x34, 0xa3, 0x8c, 0x6a, 0xa5, 0x64,
|
0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xfc, 0xbc, 0xe2, 0xfc, 0xbc, 0x22, 0x7d,
|
||||||
0x34, 0x74, 0xf0, 0x9f, 0x1a, 0x2e, 0x30, 0xae, 0x9b, 0xa2, 0x12, 0xec, 0xa6, 0xd1, 0x22, 0xba,
|
0x30, 0x51, 0xa1, 0x0f, 0x0a, 0x83, 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0xff, 0x8d,
|
||||||
0xe3, 0xd8, 0x13, 0x8f, 0xbc, 0xd1, 0x02, 0x9e, 0xe0, 0x7b, 0x7c, 0x55, 0x0b, 0xbd, 0xbe, 0x29,
|
0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xd6, 0xd8, 0xe6, 0x51, 0x01, 0x00, 0x00,
|
||||||
0x2a, 0xc5, 0x3e, 0x44, 0xc7, 0x63, 0x34, 0x19, 0xe6, 0xa7, 0x1e, 0xbb, 0x6e, 0xa1, 0xab, 0x6f,
|
|
||||||
0x08, 0x1f, 0xbb, 0x37, 0xc2, 0x3b, 0x1c, 0xf8, 0xbd, 0x20, 0xee, 0xf7, 0xfc, 0x37, 0xaa, 0xf8,
|
|
||||||
0xf1, 0x7f, 0x39, 0xbf, 0x56, 0x1a, 0x7d, 0xfc, 0xfe, 0xeb, 0xf3, 0x11, 0xc0, 0x19, 0x59, 0xd0,
|
|
||||||
0xa6, 0xb2, 0x6d, 0xfc, 0x3e, 0x22, 0x60, 0x78, 0xd4, 0x87, 0x00, 0xe7, 0x7b, 0x12, 0x07, 0xa1,
|
|
||||||
0xc5, 0x17, 0xb7, 0xb0, 0x9d, 0x45, 0xec, 0x2c, 0x42, 0x80, 0xbf, 0x16, 0xb4, 0xeb, 0xb9, 0x7e,
|
|
||||||
0xfe, 0x75, 0x9b, 0xa0, 0xcd, 0x36, 0x41, 0x3f, 0xb7, 0x09, 0xfa, 0xb4, 0x4b, 0x06, 0x9b, 0x5d,
|
|
||||||
0x32, 0xf8, 0xb1, 0x4b, 0x06, 0x6f, 0xd3, 0x52, 0xd8, 0xf7, 0x4d, 0x91, 0x31, 0x35, 0x23, 0x4a,
|
|
||||||
0x1a, 0x25, 0x35, 0x71, 0x9f, 0x15, 0x69, 0xaf, 0xc4, 0xae, 0x6b, 0x6e, 0x8a, 0xc0, 0x5d, 0xc8,
|
|
||||||
0xb3, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x14, 0x99, 0xd4, 0xa2, 0x73, 0x02, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
@@ -277,9 +152,6 @@ const _ = grpc.SupportPackageIsVersion4
|
|||||||
type QueryClient interface {
|
type QueryClient interface {
|
||||||
// Params queries all parameters of the module.
|
// Params queries all parameters of the module.
|
||||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||||
// Allocate initializes a Target Vault available for claims with a compatible
|
|
||||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
||||||
Allocate(ctx context.Context, in *QueryAllocateRequest, opts ...grpc.CallOption) (*QueryAllocateResponse, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type queryClient struct {
|
type queryClient struct {
|
||||||
@@ -299,22 +171,10 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *queryClient) Allocate(ctx context.Context, in *QueryAllocateRequest, opts ...grpc.CallOption) (*QueryAllocateResponse, error) {
|
|
||||||
out := new(QueryAllocateResponse)
|
|
||||||
err := c.cc.Invoke(ctx, "/dwn.v1.Query/Allocate", in, out, opts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// QueryServer is the server API for Query service.
|
// QueryServer is the server API for Query service.
|
||||||
type QueryServer interface {
|
type QueryServer interface {
|
||||||
// Params queries all parameters of the module.
|
// Params queries all parameters of the module.
|
||||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||||
// Allocate initializes a Target Vault available for claims with a compatible
|
|
||||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
||||||
Allocate(context.Context, *QueryAllocateRequest) (*QueryAllocateResponse, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
|
// UnimplementedQueryServer can be embedded to have forward compatible implementations.
|
||||||
@@ -324,9 +184,6 @@ type UnimplementedQueryServer struct {
|
|||||||
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
|
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
|
||||||
}
|
}
|
||||||
func (*UnimplementedQueryServer) Allocate(ctx context.Context, req *QueryAllocateRequest) (*QueryAllocateResponse, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Allocate not implemented")
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
|
func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
|
||||||
s.RegisterService(&_Query_serviceDesc, srv)
|
s.RegisterService(&_Query_serviceDesc, srv)
|
||||||
@@ -350,24 +207,6 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Query_Allocate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(QueryAllocateRequest)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(QueryServer).Allocate(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: "/dwn.v1.Query/Allocate",
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(QueryServer).Allocate(ctx, req.(*QueryAllocateRequest))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
var Query_serviceDesc = _Query_serviceDesc
|
var Query_serviceDesc = _Query_serviceDesc
|
||||||
var _Query_serviceDesc = grpc.ServiceDesc{
|
var _Query_serviceDesc = grpc.ServiceDesc{
|
||||||
ServiceName: "dwn.v1.Query",
|
ServiceName: "dwn.v1.Query",
|
||||||
@@ -377,10 +216,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "Params",
|
MethodName: "Params",
|
||||||
Handler: _Query_Params_Handler,
|
Handler: _Query_Params_Handler,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
MethodName: "Allocate",
|
|
||||||
Handler: _Query_Allocate_Handler,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "dwn/v1/query.proto",
|
Metadata: "dwn/v1/query.proto",
|
||||||
@@ -444,88 +279,6 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
return len(dAtA) - i, nil
|
return len(dAtA) - i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryAllocateRequest) Marshal() (dAtA []byte, err error) {
|
|
||||||
size := m.Size()
|
|
||||||
dAtA = make([]byte, size)
|
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return dAtA[:n], nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
_ = i
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) Marshal() (dAtA []byte, err error) {
|
|
||||||
size := m.Size()
|
|
||||||
dAtA = make([]byte, size)
|
|
||||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return dAtA[:n], nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
||||||
size := m.Size()
|
|
||||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
||||||
i := len(dAtA)
|
|
||||||
_ = i
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.ExpiryBlock != 0 {
|
|
||||||
i = encodeVarintQuery(dAtA, i, uint64(m.ExpiryBlock))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x28
|
|
||||||
}
|
|
||||||
if len(m.PublicUri) > 0 {
|
|
||||||
i -= len(m.PublicUri)
|
|
||||||
copy(dAtA[i:], m.PublicUri)
|
|
||||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.PublicUri)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x22
|
|
||||||
}
|
|
||||||
if len(m.Macaroon) > 0 {
|
|
||||||
i -= len(m.Macaroon)
|
|
||||||
copy(dAtA[i:], m.Macaroon)
|
|
||||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Macaroon)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x1a
|
|
||||||
}
|
|
||||||
if len(m.Cid) > 0 {
|
|
||||||
i -= len(m.Cid)
|
|
||||||
copy(dAtA[i:], m.Cid)
|
|
||||||
i = encodeVarintQuery(dAtA, i, uint64(len(m.Cid)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x12
|
|
||||||
}
|
|
||||||
if m.Success {
|
|
||||||
i--
|
|
||||||
if m.Success {
|
|
||||||
dAtA[i] = 1
|
|
||||||
} else {
|
|
||||||
dAtA[i] = 0
|
|
||||||
}
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x8
|
|
||||||
}
|
|
||||||
return len(dAtA) - i, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
|
func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
|
||||||
offset -= sovQuery(v)
|
offset -= sovQuery(v)
|
||||||
base := offset
|
base := offset
|
||||||
@@ -559,42 +312,6 @@ func (m *QueryParamsResponse) Size() (n int) {
|
|||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryAllocateRequest) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *QueryAllocateResponse) Size() (n int) {
|
|
||||||
if m == nil {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
var l int
|
|
||||||
_ = l
|
|
||||||
if m.Success {
|
|
||||||
n += 2
|
|
||||||
}
|
|
||||||
l = len(m.Cid)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovQuery(uint64(l))
|
|
||||||
}
|
|
||||||
l = len(m.Macaroon)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovQuery(uint64(l))
|
|
||||||
}
|
|
||||||
l = len(m.PublicUri)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovQuery(uint64(l))
|
|
||||||
}
|
|
||||||
if m.ExpiryBlock != 0 {
|
|
||||||
n += 1 + sovQuery(uint64(m.ExpiryBlock))
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func sovQuery(x uint64) (n int) {
|
func sovQuery(x uint64) (n int) {
|
||||||
return (math_bits.Len64(x|1) + 6) / 7
|
return (math_bits.Len64(x|1) + 6) / 7
|
||||||
}
|
}
|
||||||
@@ -737,241 +454,6 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func (m *QueryAllocateRequest) Unmarshal(dAtA []byte) error {
|
|
||||||
l := len(dAtA)
|
|
||||||
iNdEx := 0
|
|
||||||
for iNdEx < l {
|
|
||||||
preIndex := iNdEx
|
|
||||||
var wire uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
wire |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fieldNum := int32(wire >> 3)
|
|
||||||
wireType := int(wire & 0x7)
|
|
||||||
if wireType == 4 {
|
|
||||||
return fmt.Errorf("proto: QueryAllocateRequest: wiretype end group for non-group")
|
|
||||||
}
|
|
||||||
if fieldNum <= 0 {
|
|
||||||
return fmt.Errorf("proto: QueryAllocateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
||||||
}
|
|
||||||
switch fieldNum {
|
|
||||||
default:
|
|
||||||
iNdEx = preIndex
|
|
||||||
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
iNdEx += skippy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if iNdEx > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func (m *QueryAllocateResponse) Unmarshal(dAtA []byte) error {
|
|
||||||
l := len(dAtA)
|
|
||||||
iNdEx := 0
|
|
||||||
for iNdEx < l {
|
|
||||||
preIndex := iNdEx
|
|
||||||
var wire uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
wire |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fieldNum := int32(wire >> 3)
|
|
||||||
wireType := int(wire & 0x7)
|
|
||||||
if wireType == 4 {
|
|
||||||
return fmt.Errorf("proto: QueryAllocateResponse: wiretype end group for non-group")
|
|
||||||
}
|
|
||||||
if fieldNum <= 0 {
|
|
||||||
return fmt.Errorf("proto: QueryAllocateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
||||||
}
|
|
||||||
switch fieldNum {
|
|
||||||
case 1:
|
|
||||||
if wireType != 0 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType)
|
|
||||||
}
|
|
||||||
var v int
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
v |= int(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
m.Success = bool(v != 0)
|
|
||||||
case 2:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
stringLen |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
intStringLen := int(stringLen)
|
|
||||||
if intStringLen < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.Cid = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 3:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Macaroon", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
stringLen |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
intStringLen := int(stringLen)
|
|
||||||
if intStringLen < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.Macaroon = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 4:
|
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field PublicUri", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
stringLen |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
intStringLen := int(stringLen)
|
|
||||||
if intStringLen < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.PublicUri = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 5:
|
|
||||||
if wireType != 0 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field ExpiryBlock", wireType)
|
|
||||||
}
|
|
||||||
m.ExpiryBlock = 0
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowQuery
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
m.ExpiryBlock |= int64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
iNdEx = preIndex
|
|
||||||
skippy, err := skipQuery(dAtA[iNdEx:])
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
||||||
return ErrInvalidLengthQuery
|
|
||||||
}
|
|
||||||
if (iNdEx + skippy) > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
iNdEx += skippy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if iNdEx > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
func skipQuery(dAtA []byte) (n int, err error) {
|
func skipQuery(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
|||||||
@@ -51,24 +51,6 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func request_Query_Allocate_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
||||||
var protoReq QueryAllocateRequest
|
|
||||||
var metadata runtime.ServerMetadata
|
|
||||||
|
|
||||||
msg, err := client.Allocate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
|
||||||
return msg, metadata, err
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func local_request_Query_Allocate_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
|
||||||
var protoReq QueryAllocateRequest
|
|
||||||
var metadata runtime.ServerMetadata
|
|
||||||
|
|
||||||
msg, err := server.Allocate(ctx, &protoReq)
|
|
||||||
return msg, metadata, err
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
|
// RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
|
||||||
// UnaryRPC :call QueryServer directly.
|
// UnaryRPC :call QueryServer directly.
|
||||||
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
|
||||||
@@ -98,29 +80,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mux.Handle("GET", pattern_Query_Allocate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
||||||
ctx, cancel := context.WithCancel(req.Context())
|
|
||||||
defer cancel()
|
|
||||||
var stream runtime.ServerTransportStream
|
|
||||||
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
|
|
||||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
||||||
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
|
|
||||||
if err != nil {
|
|
||||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
resp, md, err := local_request_Query_Allocate_0(rctx, inboundMarshaler, server, req, pathParams)
|
|
||||||
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
|
|
||||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
||||||
if err != nil {
|
|
||||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
forward_Query_Allocate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,37 +141,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mux.Handle("GET", pattern_Query_Allocate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
|
||||||
ctx, cancel := context.WithCancel(req.Context())
|
|
||||||
defer cancel()
|
|
||||||
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
|
||||||
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
|
||||||
if err != nil {
|
|
||||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
resp, md, err := request_Query_Allocate_0(rctx, inboundMarshaler, client, req, pathParams)
|
|
||||||
ctx = runtime.NewServerMetadataContext(ctx, md)
|
|
||||||
if err != nil {
|
|
||||||
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
forward_Query_Allocate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"vault", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"vault", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false)))
|
||||||
|
|
||||||
pattern_Query_Allocate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"vault", "v1", "allocate"}, "", runtime.AssumeColonVerbOpt(false)))
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
forward_Query_Params_0 = runtime.ForwardResponseMessage
|
forward_Query_Params_0 = runtime.ForwardResponseMessage
|
||||||
|
|
||||||
forward_Query_Allocate_0 = runtime.ForwardResponseMessage
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user