(goCtx context.Context, msg *vtypes.MsgOpenAuditEscrow)
| 151 | } |
| 152 | |
| 153 | func (ms msgServer) OpenAuditEscrow(goCtx context.Context, msg *vtypes.MsgOpenAuditEscrow) (*vtypes.MsgOpenAuditEscrowResponse, error) { |
| 154 | ctx := sdk.UnwrapSDKContext(goCtx) |
| 155 | provider, err := sdk.AccAddressFromBech32(msg.Provider) |
| 156 | if err != nil { |
| 157 | return nil, err |
| 158 | } |
| 159 | |
| 160 | id, err := ms.keeper.OpenAuditEscrow( |
| 161 | ctx, |
| 162 | provider, |
| 163 | msg.RequestedTier, |
| 164 | msg.RequestedCapabilities, |
| 165 | msg.Fee, |
| 166 | msg.ProviderDeposit, |
| 167 | msg.ExpiresAt, |
| 168 | msg.MetadataHash, |
| 169 | ) |
| 170 | if err != nil { |
| 171 | return nil, err |
| 172 | } |
| 173 | |
| 174 | return &vtypes.MsgOpenAuditEscrowResponse{AuditEscrowID: id}, nil |
| 175 | } |
| 176 | |
| 177 | func (ms msgServer) CancelAuditEscrow(goCtx context.Context, msg *vtypes.MsgCancelAuditEscrow) (*vtypes.MsgCancelAuditEscrowResponse, error) { |
| 178 | ctx := sdk.UnwrapSDKContext(goCtx) |
nothing calls this directly
no test coverage detected