Skip to content

Commit

Permalink
Merge pull request #56 from NpoolPlatform/feat/support-chia-tx
Browse files Browse the repository at this point in the history
Feat/support chia tx
  • Loading branch information
EntropyPool authored Oct 9, 2024
2 parents 448ccb7 + 0c5524a commit 9bb42ba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ Transaction:
| to | string | false | false | false | true | false | false | json:"to,omitempty" | 1 |
| value | float64 | false | false | false | true | false | false | json:"value,omitempty" | 0 |
| state | transaction.State | false | false | false | false | false | false | json:"state,omitempty" | 0 |
| payout | string | false | false | false | false | false | false | json:"payout,omitempty" | 0 |
| create_at | uint32 | false | false | false | true | false | false | json:"create_at,omitempty" | 0 |
| update_at | uint32 | false | false | false | true | true | false | json:"update_at,omitempty" | 0 |
| delete_at | uint32 | false | false | false | true | false | false | json:"delete_at,omitempty" | 0 |

state字段说明:
value | define | desc
------|---------------------------|--------------
------|---------------------------|-----------------------------------
0 | TransactionStateUnKnow | 未知
30 | TransactionStatePrepare | 准备状态,需要从私钥中获取如ViewKey信息等,不是所有币种都需要
1 | TransactionStateWait | 等待,交易创建时的初始状态
Expand Down
2 changes: 1 addition & 1 deletion api/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getProxySign(name string) (*mSign, error) {

if len(name) > 0 {
for _, s := range lmSign {
if strings.EqualFold(s.ctype, name) {
if strings.Contains(s.ctype, name) {
return s, nil
}
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require (
github.com/NpoolPlatform/chain-middleware v0.0.0-20231020114413-49166aeb1ec8
github.com/NpoolPlatform/go-service-framework v0.0.0-20240510075442-89278cb5cf47
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6
github.com/NpoolPlatform/message v0.0.0-20240715025115-aab57522c9b9
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20240715031928-a8f87f665178
github.com/NpoolPlatform/message v0.0.0-20241009091849-457a5bb9814b
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20241009093757-3d377171a343
github.com/google/uuid v1.3.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
github.com/urfave/cli/v2 v2.17.2-0.20221006022127-8f469abc00aa
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ github.com/NpoolPlatform/go-service-framework v0.0.0-20240510075442-89278cb5cf47
github.com/NpoolPlatform/go-service-framework v0.0.0-20240510075442-89278cb5cf47/go.mod h1:8ZqSAAL4eLX/09HLWwDzQY0fMORy8nqHj3kwiUHEyS4=
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6 h1:zbM3Zq0qObWEiw+wYJihNFOsBfXey8mBgAhT7HzGB8Y=
github.com/NpoolPlatform/libent-cruder v0.0.0-20231008051607-f64457cf6ab6/go.mod h1:EXCihQpRNNyWaPu1IphiZFLTyyUK/CJMZdW4My7y48Q=
github.com/NpoolPlatform/message v0.0.0-20240715025115-aab57522c9b9 h1:8wH7+McNtLRqnyR5MS6PC1td51NBsVwmoas9tSbs1HU=
github.com/NpoolPlatform/message v0.0.0-20240715025115-aab57522c9b9/go.mod h1:PxJpF0vSSOke+NJskbRBRQ2fK2K3SRe8zaEja+GxSHk=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20240715031928-a8f87f665178 h1:eqyzAZz6p1ZmOqLz9P1nD4PRr/gr3tG941r4KZawFrI=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20240715031928-a8f87f665178/go.mod h1:gTa1Bk+vhtW4ADTFFme+IOeOySYigQ7YfK+2wRWdB2o=
github.com/NpoolPlatform/message v0.0.0-20241009091849-457a5bb9814b h1:ImyFn9i2ZX5IFIqAh0UmyBlCUH+xz1Pyuu8SdvQPc8M=
github.com/NpoolPlatform/message v0.0.0-20241009091849-457a5bb9814b/go.mod h1:PxJpF0vSSOke+NJskbRBRQ2fK2K3SRe8zaEja+GxSHk=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20241009093757-3d377171a343 h1:3DXQp3BmQeE2t5sQ6dgwtSX/SFo4m/iTJzwCy3pG6g4=
github.com/NpoolPlatform/sphinx-plugin v0.0.0-20241009093757-3d377171a343/go.mod h1:AhPGHthNbqnqAeY9FHkzSPvqcjKbUin/YxO7KgSDFNo=
github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/Shonminh/apollo-client v0.4.0 h1:AXGp4wOahrEKjheMXehgsG9B8dEfLQHttRLHeEefvus=
Expand Down

0 comments on commit 9bb42ba

Please sign in to comment.