Documentation ¶
Index ¶
- func BatchDecodeBase64(strs []string) ([][]byte, error)
- func GeneratePostRoot(rootC *verkle.Point, blockHeight uint, ...) (verkle.VerkleNode, error)
- func GetBlockHeight(c *gin.Context, queue *stateless.Queue)
- func GetCurrentBalanceOfPkscript(c *gin.Context, queue *stateless.Queue)
- func GetCurrentBalanceOfWallet(c *gin.Context, queue *stateless.Queue)
- func GetLatestStateProof(c *gin.Context, queue *stateless.Queue)
- func ParseBalance(balance string) ([]byte, error)
- func ParseCommitment(commitment string) (*verkle.Point, error)
- func ParseProof(proof string) (*verkle.VerkleProof, error)
- func ParseStateDiff(Keys, PreValues, PostValues [][]byte) *verkle.StateDiff
- func StartService(queue *stateless.Queue, enableCommittee, enableDebug, enablePprof bool)
- func VerifyCurrentBalanceOfPkscript(rootC *verkle.Point, tick, pkscript string, ...) (bool, error)
- func VerifyCurrentBalanceOfWallet(rootC *verkle.Point, tick, wallet string, ...) (bool, error)
- type Brc20VerifiableCurrentBalanceOfPkscriptRequest
- type Brc20VerifiableCurrentBalanceOfPkscriptResponse
- type Brc20VerifiableCurrentBalanceOfPkscriptResult
- type Brc20VerifiableCurrentBalanceOfWalletRequest
- type Brc20VerifiableCurrentBalanceOfWalletResponse
- type Brc20VerifiableCurrentBalanceOfWalletResult
- type Brc20VerifiableLatestStateProofRequest
- type Brc20VerifiableLatestStateProofResponse
- type Brc20VerifiableLatestStateProofResult
- type OrdTransferJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchDecodeBase64 ¶
func GeneratePostRoot ¶
func GeneratePostRoot(rootC *verkle.Point, blockHeight uint, resp *Brc20VerifiableLatestStateProofResponse) (verkle.VerkleNode, error)
func ParseBalance ¶
func ParseCommitment ¶
func ParseProof ¶
func ParseStateDiff ¶
func ParseStateDiff(Keys, PreValues, PostValues [][]byte) *verkle.StateDiff
func StartService ¶
func VerifyCurrentBalanceOfPkscript ¶
func VerifyCurrentBalanceOfPkscript(rootC *verkle.Point, tick, pkscript string, resp *Brc20VerifiableCurrentBalanceOfPkscriptResponse) (bool, error)
func VerifyCurrentBalanceOfWallet ¶
func VerifyCurrentBalanceOfWallet(rootC *verkle.Point, tick, wallet string, resp *Brc20VerifiableCurrentBalanceOfWalletResponse) (bool, error)
Types ¶
type Brc20VerifiableCurrentBalanceOfPkscriptResponse ¶
type Brc20VerifiableCurrentBalanceOfPkscriptResponse struct { Error *string `json:"error"` Result *Brc20VerifiableCurrentBalanceOfPkscriptResult `json:"result"` Proof *string `json:"proof"` }
type Brc20VerifiableCurrentBalanceOfPkscriptResult ¶
type Brc20VerifiableCurrentBalanceOfPkscriptResult struct { AvailableBalance string `json:"availableBalance"` OverallBalance string `json:"overallBalance"` }
func GetAllBalances ¶
type Brc20VerifiableCurrentBalanceOfWalletResponse ¶
type Brc20VerifiableCurrentBalanceOfWalletResponse struct { Error *string `json:"error"` Result *Brc20VerifiableCurrentBalanceOfWalletResult `json:"result"` Proof *string `json:"proof"` }
type Brc20VerifiableLatestStateProofRequest ¶
type Brc20VerifiableLatestStateProofRequest struct { }
type Brc20VerifiableLatestStateProofResponse ¶
type Brc20VerifiableLatestStateProofResponse struct { Error *string `json:"error"` Result *Brc20VerifiableLatestStateProofResult `json:"result"` Proof *string `json:"proof"` }
type Brc20VerifiableLatestStateProofResult ¶
type Brc20VerifiableLatestStateProofResult struct { StateDiff []string `json:"stateDiff"` OrdTransfers []OrdTransferJSON `json:"ordTransfers"` }
type OrdTransferJSON ¶
type OrdTransferJSON struct { ID uint `json:"ID"` InscriptionID string `json:"inscriptionID"` OldSatpoint string `json:"oldSatpoint"` NewSatpoint string `json:"newSatpoint"` NewPkscript ord.Pkscript `json:"newPkscript"` NewWallet ord.Wallet `json:"newWallet"` SentAsFee bool `json:"sentAsFee"` Content string `json:"content"` ContentType string `json:"contentType"` }
Click to show internal directories.
Click to hide internal directories.