Skip to content

Commit

Permalink
feat: upgrate messager type def
Browse files Browse the repository at this point in the history
  • Loading branch information
ta0li committed Aug 23, 2022
1 parent 20122cc commit 660c34f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
2 changes: 0 additions & 2 deletions venus-devtool/api-gen/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ func init() {
Receipt: ExampleValue("init", reflect.TypeOf(&types.MessageReceipt{}), nil).(*types.MessageReceipt),
TipSetKey: tsk,
Meta: ExampleValue("init", reflect.TypeOf(&messager.SendSpec{}), nil).(*messager.SendSpec),
WalletName: "test",
FromUser: "test",
State: messager.UnFillMsg,
})
addExample(ExampleValue("init", reflect.TypeOf(&messager.SendSpec{}), nil).(*messager.SendSpec))
Expand Down
21 changes: 0 additions & 21 deletions venus-shared/api/messager/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -276,8 +274,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -341,8 +337,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -408,8 +402,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -587,8 +579,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -649,8 +639,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -711,8 +699,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -778,8 +764,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -849,8 +833,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down Expand Up @@ -1139,7 +1121,6 @@ Inputs:
"To": "f01234",
"From": "f01234",
"Val": "0",
"Account": "string value",
"GasPremium": "0",
"GasFeeCap": "0",
"GasLimit": 10000,
Expand Down Expand Up @@ -1347,8 +1328,6 @@ Response:
"maxFee": "0",
"gasOverPremium": 12.3
},
"WalletName": "test",
"FromUser": "test",
"State": 1,
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z"
Expand Down
6 changes: 0 additions & 6 deletions venus-shared/types/messager/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ type Message struct {
Receipt *shared.MessageReceipt
TipSetKey shared.TipSetKey
Meta *SendSpec
WalletName string
FromUser string

State MessageState

Expand Down Expand Up @@ -114,8 +112,6 @@ func (m *Message) MarshalJSON() ([]byte, error) {
Receipt *shared.MessageReceipt
TipSetKey shared.TipSetKey
Meta *SendSpec
WalletName string
FromUser string

State MessageState

Expand Down Expand Up @@ -144,8 +140,6 @@ func (m *Message) MarshalJSON() ([]byte, error) {
Receipt: m.Receipt,
TipSetKey: m.TipSetKey,
Meta: m.Meta,
WalletName: m.WalletName,
FromUser: m.FromUser,
State: m.State,
CreatedAt: m.CreatedAt,
UpdatedAt: m.UpdatedAt,
Expand Down
7 changes: 3 additions & 4 deletions venus-shared/types/messager/quick_send.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const (
)

type QuickSendParams struct {
To address.Address
From address.Address
Val abi.TokenAmount
Account string
To address.Address
From address.Address
Val abi.TokenAmount

GasPremium *abi.TokenAmount
GasFeeCap *abi.TokenAmount
Expand Down

0 comments on commit 660c34f

Please sign in to comment.