This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Foobar Token 001", | |
| "symbol": "FBT1", | |
| "description": "foobar token 001", | |
| "image": "https://raw.githubusercontent.com/PacViewer/alias/refs/heads/main/assets/icon/xeggex.png", | |
| "attributes": [], | |
| "properties": { | |
| "files": [ | |
| { | |
| "uri": "https://raw.githubusercontent.com/PacViewer/alias/refs/heads/main/assets/icon/xeggex.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "encoding/binary" | |
| "encoding/hex" | |
| "fmt" | |
| "github.com/go-zeromq/zmq4" | |
| "github.com/pactus-project/pactus/crypto/hash" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pactus | |
| import ( | |
| "context" | |
| "fmt" | |
| "sync" | |
| "time" | |
| pactus "github.com/pactus-project/pactus/www/grpc/gen/go" | |
| "google.golang.org/grpc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func Hash256(data []byte) []byte { | |
| h := blake2b.Sum256(data) | |
| return h[:] | |
| } | |
| func CalcHashWithXXHash64(data []byte) []byte { | |
| xh := xxhash.New64() | |
| _, _ = xh.Write(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package transport | |
| import ( | |
| "context" | |
| "github.com/Ja7ad/swaggerui" | |
| "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" | |
| "google.golang.org/grpc" | |
| "google.golang.org/grpc/credentials/insecure" | |
| "net/http" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package bench | |
| import ( | |
| "github.com/ugorji/go/codec" | |
| "testing" | |
| ) | |
| type Sample struct { | |
| Name string | |
| Age int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package utils | |
| import ( | |
| "strconv" | |
| "strings" | |
| ) | |
| // PickByNestedKey find a value in nested map | |
| // for nested key need set every key in one string and seperated with dot. | |
| // For example "foo.bar.x.y.z" this is mean you need z key value. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package core | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "github.com/ethereum/go-ethereum" | |
| "github.com/ethereum/go-ethereum/common" | |
| "github.com/ethereum/go-ethereum/core/types" | |
| "github.com/ethereum/go-ethereum/ethclient" | |
| "github.com/google/uuid" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package nats | |
| import ( | |
| "github.com/hashicorp/golang-lru/v2/expirable" | |
| "github.com/nats-io/nats.go/jetstream" | |
| "time" | |
| ) | |
| type Msg interface { | |
| jetstream.Msg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "github.com/brianvoe/gofakeit/v6" | |
| "github.com/hashicorp/golang-lru/v2/expirable" | |
| "github.com/lithammer/shortuuid/v3" | |
| "github.com/nats-io/nats.go" |
NewerOlder