types is now in lbc_sdk repo

This commit is contained in:
Gregory Bednov 2025-08-10 13:37:06 +03:00
commit 57c40d9f07
4 changed files with 4 additions and 42 deletions

View file

@ -8,7 +8,7 @@ import (
"fmt"
"strings"
"github.com/gregorybednov/lbc/blockchain/types"
types "github.com/gregorybednov/lbc_sdk"
"github.com/dgraph-io/badger"
abci "github.com/tendermint/tendermint/abci/types"

View file

@ -1,41 +0,0 @@
package types
// Types subpackage.
// You can you use to make an RFC client for abci application.
type CommiterTxBody struct {
Type string `json:"type"`
ID string `json:"id"`
Name string `json:"name"`
CommiterPubKey string `json:"commiter_pubkey"`
}
type PromiseTxBody struct {
Type string `json:"type"`
ID string `json:"id"`
Description string `json:"description"`
Timestamp int64 `json:"timestamp,omitempty"` // ← чтобы понимать клиент
Title string `json:"title,omitempty"` // ← опционально, если когда-нибудь пригодится
Deadline string `json:"deadline,omitempty"`
}
type CommitmentTxBody struct {
Type string `json:"type"`
ID string `json:"id"`
PromiseID string `json:"promise_id"`
CommiterID string `json:"commiter_id"`
CommiterSig string `json:"commiter_sig,omitempty"`
}
type CompoundTx struct {
Body struct {
Promise *PromiseTxBody `json:"promise"`
Commitment *CommitmentTxBody `json:"commitment"`
} `json:"body"`
Signature string `json:"signature"`
}
type SignedTx struct {
Body any `json:"body"`
Signature string `json:"signature"`
}