Skip to content
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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Dev #1

wants to merge 14 commits into from

Conversation

kenlau666
Copy link
Contributor

No description provided.

if network == "mainnet" {
networkId = uint8(1)
baseURL = "https://api-dev.deltadefi.io" // TODO: input production link once available
} else {
Copy link

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

BaseURL string
}

func NewClient(apiKey string, network string, jwt string, signingKey string) *Client {
Copy link

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)

return nil, err
}
if req == nil {
return nil, fmt.Errorf("empty request")
Copy link

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?

// }
type BuildDepositTransactionRequest struct {
DepositAmount []rmodels.Asset `json:"deposit_amount"`
InputUtxos []*rmodels.UTxO `json:"input_utxos"`
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants