-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #1
base: main
Are you sure you want to change the base?
Conversation
pkg/client/client.go
Outdated
if network == "mainnet" { | ||
networkId = uint8(1) | ||
baseURL = "https://api-dev.deltadefi.io" // TODO: input production link once available | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to throw error if network !== "mainnet" & "preprod" instead of default assigning dev link
pkg/client/client.go
Outdated
BaseURL string | ||
} | ||
|
||
func NewClient(apiKey string, network string, jwt string, signingKey string) *Client { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func NewClient(apiKey, network, jwt, signingKey string)
pkg/client/client.go
Outdated
return nil, err | ||
} | ||
if req == nil { | ||
return nil, fmt.Errorf("empty request") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think req will be nil?
pkg/api/requests/requests.go
Outdated
// } | ||
type BuildDepositTransactionRequest struct { | ||
DepositAmount []rmodels.Asset `json:"deposit_amount"` | ||
InputUtxos []*rmodels.UTxO `json:"input_utxos"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]*rmodels.UTxO
is * necessary here?
No description provided.