diff --git a/asset_transfers_dev_guide/.gitignore b/asset_transfers_dev_guide/.gitignore new file mode 100644 index 0000000..9fb18b4 --- /dev/null +++ b/asset_transfers_dev_guide/.gitignore @@ -0,0 +1,2 @@ +.idea +out diff --git a/asset_transfers_dev_guide/LICENSE b/asset_transfers_dev_guide/LICENSE new file mode 100644 index 0000000..ab60297 --- /dev/null +++ b/asset_transfers_dev_guide/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/asset_transfers_dev_guide/Makefile b/asset_transfers_dev_guide/Makefile new file mode 100644 index 0000000..7c13810 --- /dev/null +++ b/asset_transfers_dev_guide/Makefile @@ -0,0 +1,20 @@ + +all: generate_go generate_js + +generate_go: + docker run --user $(shell id -u):$(shell id -g) --rm -v $${PWD}:/local \ + openapitools/openapi-generator-cli:v3.3.3 \ + generate \ + --input-spec /local/spec/asset-swagger.yaml \ + --generator-name go \ + --config /local/go/openapi_config.json \ + --output /local/go/sdk + +generate_js: + docker run --user $(id -u):$(id -g) --rm -v $${PWD}:/local \ + openapitools/openapi-generator-cli:v3.3.3 \ + generate \ + --input-spec /local/spec/asset-swagger.yaml \ + --generator-name javascript \ + --config /local/js/openapi_config.json \ + --output /local/js/sdk diff --git a/asset_transfers_dev_guide/README.md b/asset_transfers_dev_guide/README.md new file mode 100644 index 0000000..f53479f --- /dev/null +++ b/asset_transfers_dev_guide/README.md @@ -0,0 +1,18 @@ +# Asset transfers SDKs + +This repository provides the means to operate the QED-it asset transfers bundle API. + +The bundle exposes an HTTP API, which is specified using the [OpenAPI specification](https://github.com/OAI/OpenAPI-Specification). + +The structure of the repository is as follows: + - [spec](spec) - contains the API specification. + - [go](go): + - [sdk](go/sdk) - Go SDK, generated from the API specification. + - [examples/cmd](go/examples/cmd): + - [walletbalances](go/examples/cmd/walletbalances): Get wallet balances. + - [unlock](go/examples/cmd/unlock): Unlock a wallet. + - [transferandread](go/examples/cmd/transferandread): Transfer between wallets and observe the transfer. + - [tutorial](go/examples/cmd/tutorial): Follows the [tutorial](https://docs.qed-it.com/docs/qed-solution-docs/en/latest/docs/tutorial.html). + - [js](js): + - [sdk](js/sdk) - Javascript SDK, generated from the API specification. + diff --git a/asset_transfers_dev_guide/go/examples/cmd/transferandread/main.go b/asset_transfers_dev_guide/go/examples/cmd/transferandread/main.go new file mode 100644 index 0000000..688b32d --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/cmd/transferandread/main.go @@ -0,0 +1,112 @@ +package main + +import ( + "context" + "crypto/rand" + "encoding/hex" + "fmt" + "github.com/mitchellh/mapstructure" + "log" + + "github.com/QED-it/asset_transfers_dev_guide/go/examples/util" + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" +) + +func main() { + client, _, err := util.InitAPIClient() + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get a valid config")) + } + + ctx := context.Background() + + // START get address of destination wallet + diversifier := make([]byte, 11) + _, err = rand.Read(diversifier) + if err != nil { + util.HandleErrorAndExit(err) + } + + getNewAddressRequest := sdk.GetNewAddressRequest{ + WalletId: "dest_wallet", + Diversifier: hex.EncodeToString(diversifier), + } + + getNewAddressResponse, _, err := client.WalletApi.WalletGetNewAddressPost(ctx, getNewAddressRequest) + // END get address of destination wallet + + // START unlock source wallet + unlockRequest := sdk.UnlockWalletRequest{ + WalletId: "source_wallet", + Authorization: "PrivacyIsAwesome", + Seconds: 600, + } + + unlockWalletTask, _, err := client.NodeApi.NodeUnlockWalletPost(ctx, unlockRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't unlock wallet: %v", util.ErrorResponseString(err))) + } + unlockWalletStatus, err := util.WaitForAsyncTaskDone(ctx, unlockWalletTask.Id, client) + if err != nil { + util.HandleErrorAndExit(err) + } + if unlockWalletStatus.Result != "success" { + util.HandleErrorAndExit(fmt.Errorf("couldn't unlock wallet: %s", unlockWalletStatus.Error)) + } + // END unlock source wallet + + // START transfer from source to destination + transferRequest := sdk.TransferAssetRequest{ + WalletId: "source_wallet", + Authorization: "PrivacyIsAwesome", + AssetId: 10, + Amount: 50, + RecipientAddress: getNewAddressResponse.RecipientAddress, + Memo: "hello there!", + } + transferAssetTask, _, err := client.WalletApi.WalletTransferAssetPost(ctx, transferRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't transfer: %v", util.ErrorResponseString(err))) + } + transferAssetStatus, err := util.WaitForAsyncTaskDone(ctx, transferAssetTask.Id, client) + if err != nil { + util.HandleErrorAndExit(err) + } + if transferAssetStatus.Result != "success" { + util.HandleErrorAndExit(fmt.Errorf("couldn't unlock wallet: %s", transferAssetStatus.Error)) + } + // END transfer from source to destination + + // START read transactions in the destination wallet and find this transfer + getActivityRequest := sdk.GetWalletActivityRequest{ + WalletId: "dest_wallet", + NumberOfResults: 1000, + StartIndex: 0, + } + + getTransactionsResponse, _, err := client.WalletApi.WalletGetActivityPost(ctx, getActivityRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get transactions: %v", err)) + } + + lastTx := getTransactionsResponse.Transactions[len(getTransactionsResponse.Transactions)-1] + + switch lastTx.Metadata.Type { + case "Issue": + var txContent sdk.AnalyticIssueWalletTx + err := mapstructure.Decode(lastTx.Content, &txContent) + if err != nil { + log.Fatal(err) + } + fmt.Printf("got an issue-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + + case "Transfer": + var txContent sdk.AnalyticTransferWalletTx + err := mapstructure.Decode(lastTx.Content, &txContent) + if err != nil { + log.Fatal(err) + } + fmt.Printf("got an transfer-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + + } +} diff --git a/asset_transfers_dev_guide/go/examples/cmd/tutorial/main.go b/asset_transfers_dev_guide/go/examples/cmd/tutorial/main.go new file mode 100644 index 0000000..e1ea384 --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/cmd/tutorial/main.go @@ -0,0 +1,137 @@ +package main + +import ( + "context" + "fmt" + + "github.com/QED-it/asset_transfers_dev_guide/go/examples/util" + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" +) + +func main() { + client, _, err := util.InitAPIClient() + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get a valid config")) + } + + ctx := context.Background() + + generateWalletRequest := sdk.GenerateWalletRequest{ + WalletId: "Jane", + Authorization: "123456", + } + + _, err = client.NodeApi.NodeGenerateWalletPost(ctx, generateWalletRequest) + if err != nil { + fmt.Printf("Could not generate Jane's wallet, %v\n", util.ErrorResponseString(err)) + } + + importWalletRequest := sdk.ImportWalletRequest{ + WalletId: "bank", + EncryptedSk: "2b9a24e2eafce806cde2f03cae49a840ee4cfb408163c8d2de8264e3552b18ab5debc1def1fb446742cbec99f42ba9e2", + Authorization: "123", + Salt: "2829ca5659464e6a825b0ab19d1ac444878b8a3bb1093fb54f629ae4c1ef384d", + } + + _, err = client.NodeApi.NodeImportWalletPost(ctx, importWalletRequest) + if err != nil { + fmt.Printf("Could not import the bank's wallet, %v\n", util.ErrorResponseString(err)) + } + + getNewAddressRequest := sdk.GetNewAddressRequest{ + WalletId: "Jane", + Diversifier: "69be9d33a15535a59dd111", + } + + getNewAddressResponse, _, err := client.WalletApi.WalletGetNewAddressPost(ctx, getNewAddressRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't generate address: %v", util.ErrorResponseString(err))) + } + + fmt.Printf("Jane's address details: %v\n", getNewAddressResponse) + + issueAssetRequest := sdk.IssueAssetRequest{ + WalletId: "bank", + Authorization: "123", + RecipientAddress: getNewAddressResponse.RecipientAddress, + AssetId: 200, + Amount: 1, + Confidential: false, + Memo: "this is for you, Jane", + } + + asyncTask, _, err := client.WalletApi.WalletIssueAssetPost(ctx, issueAssetRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't issue asset: %v", util.ErrorResponseString(err))) + } + + issueTaskStatus, err := util.WaitForAsyncTaskDone(ctx, asyncTask.Id, client) + if err != nil { + util.HandleErrorAndExit(err) + } + if issueTaskStatus.Result != "success" { // Or == "failure" + util.HandleErrorAndExit(fmt.Errorf("couldn't issue asset: %v\nDid you configure the bank's private key?", issueTaskStatus.Error)) + } + + getWalletBalancesRequest := sdk.GetWalletBalanceRequest{ + WalletId: "Jane", + } + + getWalletBalancesResponse, _, err := client.WalletApi.WalletGetBalancesPost(ctx, getWalletBalancesRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get wallet balances: %v", util.ErrorResponseString(err))) + } + + fmt.Printf("Jane's wallet balances: %v\n", getWalletBalancesResponse) + + getActivityRequest := sdk.GetWalletActivityRequest{ + WalletId: "Jane", + StartIndex: 0, + NumberOfResults: 10, + } + + getActivityResponse, _, err := client.WalletApi.WalletGetActivityPost(ctx, getActivityRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get transactions: %v", util.ErrorResponseString(err))) + } + + fmt.Printf("Jane's transactions: %v\n", getActivityResponse) + newBankAddressRequest := sdk.GetNewAddressRequest{ + WalletId: "bank", + } + + newBankAddressResponse, _, err := client.WalletApi.WalletGetNewAddressPost(ctx, newBankAddressRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't generate address for bank wallet: %v", util.ErrorResponseString(err))) + } + + transferAssetRequest := sdk.TransferAssetRequest{ + WalletId: "Jane", + Authorization: "123456", + RecipientAddress: newBankAddressResponse.RecipientAddress, + AssetId: 200, + Amount: 1, + Memo: "Getting rid of my asset", + } + + asyncTask, _, err = client.WalletApi.WalletTransferAssetPost(ctx, transferAssetRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't transfer asset: %v", util.ErrorResponseString(err))) + } + + transferTaskStatus, err := util.WaitForAsyncTaskDone(ctx, asyncTask.Id, client) + if err != nil { + util.HandleErrorAndExit(err) + } + if transferTaskStatus.Result != "success" { // or == "failure" + util.HandleErrorAndExit(fmt.Errorf("couldn't transfer asset: %v\nDoes Jane have sufficient balance?", transferTaskStatus.Error)) + } + + getActivityResponse, _, err = client.WalletApi.WalletGetActivityPost(ctx, getActivityRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get transactions: %v", util.ErrorResponseString(err))) + } + + fmt.Printf("Jane's transactions: %v\n", getActivityResponse) + +} diff --git a/asset_transfers_dev_guide/go/examples/cmd/unlock/main.go b/asset_transfers_dev_guide/go/examples/cmd/unlock/main.go new file mode 100644 index 0000000..65e8e93 --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/cmd/unlock/main.go @@ -0,0 +1,39 @@ +package main + +import ( + "context" + "fmt" + + "github.com/QED-it/asset_transfers_dev_guide/go/examples/util" + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" +) + +func main() { + client, _, err := util.InitAPIClient() + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get a valid config")) + } + + ctx := context.Background() + + unlockRequest := sdk.UnlockWalletRequest{ + WalletId: "source_wallet", + Authorization: "PrivacyIsAwesome", + Seconds: 600, + } + + unlockWalletTask, _, err := client.NodeApi.NodeUnlockWalletPost(ctx, unlockRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't unlock wallet: %s", util.ErrorResponseString(err))) + } + + unlockWalletStatus, err := util.WaitForAsyncTaskDone(ctx, unlockWalletTask.Id, client) + if err != nil { + util.HandleErrorAndExit(err) + } + if unlockWalletStatus.Result != "success" { + util.HandleErrorAndExit(fmt.Errorf("couldn't unlock wallet: %s", unlockWalletStatus.Error)) + } else { + fmt.Println("wallet unlocked successfully") + } +} diff --git a/asset_transfers_dev_guide/go/examples/cmd/walletbalances/main.go b/asset_transfers_dev_guide/go/examples/cmd/walletbalances/main.go new file mode 100644 index 0000000..5796ffe --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/cmd/walletbalances/main.go @@ -0,0 +1,33 @@ +package main + +import ( + "fmt" + "github.com/QED-it/asset_transfers_dev_guide/go/examples/util" + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" + "context" +) + +func main() { + client, _, err := util.InitAPIClient() + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get a valid config")) + } + + ctx := context.Background() + + balanceRequest := sdk.GetWalletBalanceRequest{ + WalletId: "source_wallet", + } + + balanceResponse, _, err := client.WalletApi.WalletGetBalancesPost(ctx, balanceRequest) + if err != nil { + util.HandleErrorAndExit(fmt.Errorf("couldn't get wallet balance")) + } + + for i := range balanceResponse.Assets { + assetBalance := balanceResponse.Assets[i] + fmt.Printf("asset %d has balance %d\n", assetBalance.AssetId, assetBalance.Amount) + } +} + + diff --git a/asset_transfers_dev_guide/go/examples/util/apihelper.go b/asset_transfers_dev_guide/go/examples/util/apihelper.go new file mode 100644 index 0000000..9a57e9b --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/util/apihelper.go @@ -0,0 +1,43 @@ +package util + +import ( + "context" + "fmt" + "time" + + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" +) + +const ( + asyncTaskRetries = 10 + asyncTaskWaitTime = time.Second * 2 +) + +// ErrorResponseString will return OpenAPI's model error (the original error, not the +// one that's wrapped by OpenAPI) +func ErrorResponseString(err error) string { + if apiError, ok := err.(sdk.GenericOpenAPIError).Model().(sdk.ErrorResponse); ok { + return apiError.Message + } + return err.Error() +} + +// WaitForAsyncTaskDone waits for async tasks with ID `taskID` to be done, meaning not +// in `in_progress` or `pending` results. +// It then returns the last GetTaskStatusResponse response (the one with the complete results) +func WaitForAsyncTaskDone(ctx context.Context, taskID string, client *sdk.APIClient) (sdk.GetTaskStatusResponse, error) { + var taskStatus sdk.GetTaskStatusResponse + taskStatusRequest := sdk.GetTaskStatusRequest{Id: taskID} + for i := 0; i < asyncTaskRetries; i++ { + taskStatus, _, err := client.NodeApi.NodeGetTaskStatusPost(ctx, taskStatusRequest) + if err != nil { + return taskStatus, fmt.Errorf("couldn't get task status: %v", ErrorResponseString(err)) + } + if taskStatus.Result != "pending" && taskStatus.Result != "in_progress" { + return taskStatus, nil + } + fmt.Println("Waiting for task to be done") + time.Sleep(asyncTaskWaitTime) + } + return taskStatus, fmt.Errorf("waiting for task timed out after %d iterations", asyncTaskRetries) +} diff --git a/asset_transfers_dev_guide/go/examples/util/config.go b/asset_transfers_dev_guide/go/examples/util/config.go new file mode 100644 index 0000000..346a18d --- /dev/null +++ b/asset_transfers_dev_guide/go/examples/util/config.go @@ -0,0 +1,66 @@ +package util + +import ( + "flag" + "fmt" + "github.com/QED-it/asset_transfers_dev_guide/go/sdk" + "os" + "strings" +) + +type AssetTransfersConfig struct { + ServerURL string + Token string +} + +func parseFlags() (AssetTransfersConfig, error) { + url := flag.String("url", "", "asset transfers node url (i.e., http://localhost:12052") + token := flag.String("key", "", "API key") + + flag.Parse() + + if *url == "" { + return AssetTransfersConfig{}, handleFlagParseError(fmt.Errorf("url cannot be empty")) + } + + httpPrefix := "http://" + rawUrl := *url + if !strings.HasPrefix(rawUrl, httpPrefix) { + rawUrl = httpPrefix + rawUrl + } + + portSuffix := ":12052" + if !strings.HasSuffix(rawUrl, portSuffix) { + rawUrl = rawUrl + portSuffix + } + + return AssetTransfersConfig{ + ServerURL: rawUrl, + Token: *token, + }, nil +} + +func handleFlagParseError(err error) error { + flag.PrintDefaults() + return err +} + +func InitAPIClient() (*sdk.APIClient, *AssetTransfersConfig, error) { + config, err := parseFlags() + if err != nil { + return nil, nil, err + } + + clientConfig := sdk.NewConfiguration() + clientConfig.BasePath = config.ServerURL + clientConfig.AddDefaultHeader("x-auth-token", config.Token) + + client := sdk.NewAPIClient(clientConfig) + + return client, &config, nil +} + +func HandleErrorAndExit(err error) { + fmt.Printf("error: %v\n", err) + os.Exit(1) +} diff --git a/asset_transfers_dev_guide/go/openapi_config.json b/asset_transfers_dev_guide/go/openapi_config.json new file mode 100644 index 0000000..63727ed --- /dev/null +++ b/asset_transfers_dev_guide/go/openapi_config.json @@ -0,0 +1,4 @@ +{ + "packageName": "sdk", + "packageVersion": "1.1.0" +} \ No newline at end of file diff --git a/asset_transfers_dev_guide/go/sdk/.gitignore b/asset_transfers_dev_guide/go/sdk/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/asset_transfers_dev_guide/go/sdk/.openapi-generator-ignore b/asset_transfers_dev_guide/go/sdk/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/asset_transfers_dev_guide/go/sdk/.openapi-generator/VERSION b/asset_transfers_dev_guide/go/sdk/.openapi-generator/VERSION new file mode 100644 index 0000000..3f09e91 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/.openapi-generator/VERSION @@ -0,0 +1 @@ +3.3.3 \ No newline at end of file diff --git a/asset_transfers_dev_guide/go/sdk/.travis.yml b/asset_transfers_dev_guide/go/sdk/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/asset_transfers_dev_guide/go/sdk/README.md b/asset_transfers_dev_guide/go/sdk/README.md new file mode 100644 index 0000000..2620a84 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/README.md @@ -0,0 +1,124 @@ +# Go API client for sdk + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 1.3.0 +- Package version: 1.1.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: +``` +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +go get github.com/antihax/optional +``` + +Put the package under your project folder and add the following in import: +```golang +import "./sdk" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:12052* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AnalyticsApi* | [**AnalyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsgetnetworkactivitypost) | **Post** /analytics/get_network_activity | Get details on past blocks +*HealthApi* | [**HealthPost**](docs/HealthApi.md#healthpost) | **Post** /health | Perform a healthcheck of the node and its dependent services +*NodeApi* | [**NodeDeleteWalletPost**](docs/NodeApi.md#nodedeletewalletpost) | **Post** /node/delete_wallet | Delete a wallet +*NodeApi* | [**NodeExportWalletPost**](docs/NodeApi.md#nodeexportwalletpost) | **Post** /node/export_wallet | Export wallet secret key +*NodeApi* | [**NodeGenerateWalletPost**](docs/NodeApi.md#nodegeneratewalletpost) | **Post** /node/generate_wallet | Generate a new wallet +*NodeApi* | [**NodeGetAllWalletsPost**](docs/NodeApi.md#nodegetallwalletspost) | **Post** /node/get_all_wallets | Get all wallet labels +*NodeApi* | [**NodeGetRulesPost**](docs/NodeApi.md#nodegetrulespost) | **Post** /node/get_rules | Get network governance rules +*NodeApi* | [**NodeGetTaskStatusPost**](docs/NodeApi.md#nodegettaskstatuspost) | **Post** /node/get_task_status | Get all tasks in the node +*NodeApi* | [**NodeImportWalletPost**](docs/NodeApi.md#nodeimportwalletpost) | **Post** /node/import_wallet | Import wallet from secret key +*NodeApi* | [**NodeUnlockWalletPost**](docs/NodeApi.md#nodeunlockwalletpost) | **Post** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +*WalletApi* | [**WalletCreateRulePost**](docs/WalletApi.md#walletcreaterulepost) | **Post** /wallet/create_rule | Create & broadcast add-config-rule [async call] +*WalletApi* | [**WalletDeleteRulePost**](docs/WalletApi.md#walletdeleterulepost) | **Post** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +*WalletApi* | [**WalletGetActivityPost**](docs/WalletApi.md#walletgetactivitypost) | **Post** /wallet/get_activity | Get wallet activity (transactions) +*WalletApi* | [**WalletGetBalancesPost**](docs/WalletApi.md#walletgetbalancespost) | **Post** /wallet/get_balances | Get wallets balance +*WalletApi* | [**WalletGetNewAddressPost**](docs/WalletApi.md#walletgetnewaddresspost) | **Post** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly +*WalletApi* | [**WalletGetPublicKeyPost**](docs/WalletApi.md#walletgetpublickeypost) | **Post** /wallet/get_public_key | Get wallet public key +*WalletApi* | [**WalletIssueAssetPost**](docs/WalletApi.md#walletissueassetpost) | **Post** /wallet/issue_asset | Issue assets [async call] +*WalletApi* | [**WalletTransferAssetPost**](docs/WalletApi.md#wallettransferassetpost) | **Post** /wallet/transfer_asset | Transfer assets [async call] + + +## Documentation For Models + + - [AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) + - [AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) + - [AnalyticTransaction](docs/AnalyticTransaction.md) + - [AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) + - [AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) + - [AnalyticWalletTx](docs/AnalyticWalletTx.md) + - [AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) + - [AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) + - [AnalyticsIssueTx](docs/AnalyticsIssueTx.md) + - [AnalyticsOutput](docs/AnalyticsOutput.md) + - [AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) + - [AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) + - [AnalyticsRule](docs/AnalyticsRule.md) + - [AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) + - [AnalyticsRuleTx](docs/AnalyticsRuleTx.md) + - [AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) + - [AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) + - [AnalyticsTransferTx](docs/AnalyticsTransferTx.md) + - [AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) + - [AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) + - [BalanceForAsset](docs/BalanceForAsset.md) + - [CreateRuleRequest](docs/CreateRuleRequest.md) + - [DeleteRuleRequest](docs/DeleteRuleRequest.md) + - [DeleteWalletRequest](docs/DeleteWalletRequest.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [ExportWalletRequest](docs/ExportWalletRequest.md) + - [ExportWalletResponse](docs/ExportWalletResponse.md) + - [GenerateWalletRequest](docs/GenerateWalletRequest.md) + - [GetAllWalletsResponse](docs/GetAllWalletsResponse.md) + - [GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) + - [GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) + - [GetNewAddressRequest](docs/GetNewAddressRequest.md) + - [GetNewAddressResponse](docs/GetNewAddressResponse.md) + - [GetPublicKeyRequest](docs/GetPublicKeyRequest.md) + - [GetPublicKeyResponse](docs/GetPublicKeyResponse.md) + - [GetRulesResponse](docs/GetRulesResponse.md) + - [GetTaskStatusRequest](docs/GetTaskStatusRequest.md) + - [GetTaskStatusResponse](docs/GetTaskStatusResponse.md) + - [GetWalletActivityRequest](docs/GetWalletActivityRequest.md) + - [GetWalletActivityResponse](docs/GetWalletActivityResponse.md) + - [GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) + - [GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) + - [HealthcheckResponse](docs/HealthcheckResponse.md) + - [HealthcheckResponseItem](docs/HealthcheckResponseItem.md) + - [ImportWalletRequest](docs/ImportWalletRequest.md) + - [IssueAssetRequest](docs/IssueAssetRequest.md) + - [Rule](docs/Rule.md) + - [TransactionsForWallet](docs/TransactionsForWallet.md) + - [TransferAssetRequest](docs/TransferAssetRequest.md) + - [UnlockWalletRequest](docs/UnlockWalletRequest.md) + + +## Documentation For Authorization + +## ApiKeyAuth +- **Type**: API key + +Example +```golang +auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{ + Key: "APIKEY", + Prefix: "Bearer", // Omit if not necessary. +}) +r, err := client.Service.Operation(auth, args) +``` + +## Author + + + diff --git a/asset_transfers_dev_guide/go/sdk/api/openapi.yaml b/asset_transfers_dev_guide/go/sdk/api/openapi.yaml new file mode 100644 index 0000000..8cbf912 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api/openapi.yaml @@ -0,0 +1,1529 @@ +openapi: 3.0.0 +info: + title: QED-it - Asset Transfers + version: 1.3.0 +servers: +- url: http://{server_url}:12052 + variables: + server_url: + default: localhost +security: +- ApiKeyAuth: [] +paths: + /wallet/get_balances: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletBalanceRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletBalanceResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get wallets balance + tags: + - Wallet + /wallet/issue_asset: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/IssueAssetRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + description: Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Issue assets [async call] + tags: + - Wallet + /wallet/transfer_asset: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferAssetRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + description: Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Transfer assets [async call] + tags: + - Wallet + /wallet/get_new_address: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNewAddressRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNewAddressResponse' + description: Success/Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get a new address from a given diversifier or generate randomly + tags: + - Wallet + /wallet/get_public_key: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetPublicKeyRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/GetPublicKeyResponse' + description: Success/Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get wallet public key + tags: + - Wallet + /wallet/create_rule: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRuleRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + description: Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Create & broadcast add-config-rule [async call] + tags: + - Wallet + /wallet/delete_rule: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteRuleRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + description: Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Create & broadcast delete-config-rule [async call] + tags: + - Wallet + /wallet/get_activity: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletActivityRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletActivityResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get wallet activity (transactions) + tags: + - Wallet + /analytics/get_network_activity: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNetworkActivityRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetNetworkActivityResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get details on past blocks + tags: + - Analytics + /node/generate_wallet: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateWalletRequest' + required: true + responses: + 200: + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Generate a new wallet + tags: + - Node + /node/delete_wallet: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteWalletRequest' + required: true + responses: + 200: + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Delete a wallet + tags: + - Node + /node/import_wallet: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ImportWalletRequest' + required: true + responses: + 200: + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Import wallet from secret key + tags: + - Node + /node/unlock_wallet: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnlockWalletRequest' + required: true + responses: + 201: + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + description: Created + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Unlocks a wallet for a given amount of seconds [async call] + tags: + - Node + /node/export_wallet: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportWalletRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportWalletResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Export wallet secret key + tags: + - Node + /node/get_rules: + post: + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetRulesResponse' + description: Success + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get network governance rules + tags: + - Node + /node/get_all_wallets: + post: + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetAllWalletsResponse' + description: Success + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get all wallet labels + tags: + - Node + /node/get_task_status: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GetTaskStatusRequest' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/GetTaskStatusResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 401: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Unauthorized + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Get all tasks in the node + tags: + - Node + /health: + post: + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/HealthcheckResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Perform a healthcheck of the node and its dependent services + tags: + - Health +components: + schemas: + IntPointer: + format: int32 + type: integer + GetWalletBalanceRequest: + example: + wallet_id: source_wallet + properties: + wallet_id: + type: string + required: + - wallet_id + type: object + BalanceForAsset: + example: + wallet_id: source_wallet + properties: + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + required: + - amount + - asset_id + type: object + GetWalletBalanceResponse: + example: + wallet_id: source_wallet + assets: + - asset_id: 1 + amount: 8 + properties: + wallet_id: + type: string + assets: + items: + $ref: '#/components/schemas/BalanceForAsset' + type: array + required: + - assets + - wallet_id + type: object + TransferAssetRequest: + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + amount: 4 + asset_id: 1 + memo: '{"recipient_name": "Dan"}' + properties: + wallet_id: + type: string + authorization: + type: string + recipient_address: + type: string + amount: + format: int32 + type: integer + asset_id: + format: int32 + type: integer + memo: + type: string + required: + - amount + - asset_id + - authorization + - memo + - recipient_address + - wallet_id + type: object + GetWalletActivityRequest: + example: + wallet_id: source_wallet + start_index: 0 + number_of_results: 10 + properties: + wallet_id: + type: string + start_index: + format: int32 + type: integer + number_of_results: + format: int32 + type: integer + required: + - number_of_results + - start_index + - wallet_id + type: object + TransactionsForWallet: + properties: + is_incoming: + type: boolean + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + recipient_address: + type: string + memo: + type: string + id: + type: string + required: + - amount + - asset_id + - id + - is_incoming + - memo + - recipient_address + type: object + GetRulesResponse: + example: + rules: + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + properties: + rules: + items: + $ref: '#/components/schemas/Rule' + type: array + type: object + GetAllWalletsResponse: + example: + wallet_ids: + - Jane + - John + - Marty + properties: + wallet_ids: + items: + type: string + type: array + type: object + GetTaskStatusRequest: + example: + id: 5aaa4045-e949-4c44-a7ef-25fb55a1afa6 + properties: + id: + type: string + required: + - id + type: object + GetTaskStatusResponse: + example: + id: 5aaa4045-e949-4c44-a7ef-25fb55a1afa6 + created_at: 2019-03-12T16:40:22 + updated_at: 2019-03-12T16:41:17 + result: success + tx_hash: 0xd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + type: transfer_asset + data: {} + properties: + id: + type: string + created_at: + format: date + type: string + updated_at: + format: date + type: string + result: + type: string + tx_hash: + type: string + type: + type: string + data: + type: object + error: + type: string + type: object + GetNetworkActivityRequest: + example: + start_index: 0 + number_of_results: 10 + properties: + start_index: + format: int32 + type: integer + number_of_results: + format: int32 + type: integer + required: + - number_of_results + - start_index + type: object + GetNetworkActivityResponse: + example: + transactions: + - metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b + - metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b + properties: + transactions: + items: + $ref: '#/components/schemas/AnalyticTransaction' + type: array + type: object + IssueAssetRequest: + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + amount: 4 + asset_id: 1 + confidential: false + memo: '{"recipient_name": "Dan"}' + properties: + wallet_id: + type: string + authorization: + type: string + recipient_address: + type: string + amount: + format: int32 + type: integer + asset_id: + format: int32 + type: integer + confidential: + type: boolean + memo: + type: string + required: + - amount + - asset_id + - authorization + - confidential + - memo + - recipient_address + - wallet_id + type: object + GetNewAddressRequest: + example: + wallet_id: source_wallet + properties: + wallet_id: + type: string + diversifier: + type: string + required: + - wallet_id + type: object + GetNewAddressResponse: + example: + wallet_id: source_wallet + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + properties: + wallet_id: + type: string + recipient_address: + type: string + required: + - recipient_address + - wallet_id + type: object + GetPublicKeyRequest: + example: + wallet_id: source_wallet + properties: + wallet_id: + type: string + required: + - wallet_id + type: object + GetPublicKeyResponse: + example: + wallet_id: source_wallet + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + properties: + wallet_id: + type: string + public_key: + type: string + required: + - public_key + - wallet_id + type: object + ImportWalletRequest: + example: + wallet_id: source_wallet + encrypted_sk: 44d2836bbfcc7c69dd35dbe854d54a093be9a1be7f9d658325a8d2526f67ede16abf0d1430edab07be9b8c12070260af + authorization: PrivacyIsAwesome + salt: 27ca2bf75fe4c1564398459bd2f39a89645bf98aeeb1f99a9c9efa6e5c39cbfe + properties: + wallet_id: + type: string + encrypted_sk: + type: string + authorization: + type: string + salt: + type: string + required: + - authorization + - encrypted_sk + - salt + - wallet_id + type: object + ExportWalletRequest: + example: + wallet_id: source_wallet + properties: + wallet_id: + type: string + required: + - wallet_id + type: object + ExportWalletResponse: + example: + wallet_id: source_wallet + encrypted_sk: 44d2836bbfcc7c69dd35dbe854d54a093be9a1be7f9d658325a8d2526f67ede16abf0d1430edab07be9b8c12070260af + salt: 27ca2bf75fe4c1564398459bd2f39a89645bf98aeeb1f99a9c9efa6e5c39cbfe + properties: + wallet_id: + type: string + encrypted_sk: + type: string + salt: + type: string + required: + - encrypted_sk + - salt + - wallet_id + type: object + GenerateWalletRequest: + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + properties: + wallet_id: + type: string + authorization: + type: string + required: + - authorization + - wallet_id + type: object + DeleteWalletRequest: + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + properties: + wallet_id: + type: string + authorization: + type: string + required: + - authorization + - wallet_id + type: object + UnlockWalletRequest: + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + seconds: 600 + properties: + wallet_id: + type: string + authorization: + type: string + seconds: + format: int32 + type: integer + required: + - authorization + - seconds + - wallet_id + type: object + CreateRuleRequest: + example: + wallet_id: issuer_wallet + authorization: PrivacyIsAwesome + rules_to_add: + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + properties: + wallet_id: + type: string + authorization: + type: string + rules_to_add: + items: + $ref: '#/components/schemas/Rule' + type: array + required: + - authorization + - rules_to_add + - wallet_id + type: object + DeleteRuleRequest: + example: + wallet_id: issuer_wallet + authorization: PrivacyIsAwesome + rules_to_delete: + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + properties: + wallet_id: + type: string + authorization: + type: string + rules_to_delete: + items: + $ref: '#/components/schemas/Rule' + type: array + required: + - authorization + - rules_to_delete + - wallet_id + type: object + Rule: + example: + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + can_issue_asset_id_first: + format: int32 + type: integer + can_issue_asset_id_last: + format: int32 + type: integer + is_admin: + type: boolean + required: + - public_key + type: object + ErrorResponse: + example: + error_code: 400 + message: error message + properties: + error_code: + format: int32 + type: integer + message: + type: string + required: + - error_code + type: object + AsyncTaskCreatedResponse: + example: + id: 70a88558-2b8b-4b63-a5b6-2c54b24377f5 + properties: + id: + type: string + required: + - id + type: object + AnalyticTransaction: + example: + metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b + properties: + metadata: + $ref: '#/components/schemas/AnalyticsTxMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticsIssueTx' + - $ref: '#/components/schemas/AnalyticsTransferTx' + - $ref: '#/components/schemas/AnalyticsRuleTx' + type: object + AnalyticsTxMetadata: + properties: + type: + type: string + tx_hash: + type: string + block_hash: + type: string + timestamp: + type: string + index_in_block: + format: int32 + type: integer + block_height: + format: int32 + type: integer + type: object + AnalyticsIssueTx: + properties: + outputs: + items: + $ref: '#/components/schemas/AnalyticsOutput' + type: array + public_key: + type: string + signature: + type: string + type: object + AnalyticsTransferTx: + properties: + asset_converter_descriptions: + items: + $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' + type: array + spends: + items: + $ref: '#/components/schemas/AnalyticsSpendDescription' + type: array + outputs: + items: + $ref: '#/components/schemas/AnalyticsOutputDescription' + type: array + binding_sig: + type: string + spend_auth_sigs: + items: + type: string + type: array + type: object + AnalyticsRuleTx: + properties: + sender_public_key: + type: string + rules_to_add: + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + type: array + rules_to_delete: + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + type: array + nonce: + format: int32 + type: integer + signature: + type: string + type: object + AnalyticsRuleDefinition: + example: + public_key: AAAAAAAAAA== + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + format: int32 + type: integer + can_issue_asset_id_last: + format: int32 + type: integer + type: object + AnalyticsRuleWalletDefinition: + example: + public_key: AAAAAAAAAA== + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + operation: CreateRule + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + format: int32 + type: integer + can_issue_asset_id_last: + format: int32 + type: integer + operation: + type: string + type: object + AnalyticsOutput: + properties: + is_confidential: + type: boolean + public_issuance_description: + $ref: '#/components/schemas/AnalyticsPublicIssuanceDescription' + confidential_issuance_description: + $ref: '#/components/schemas/AnalyticsConfidentialIssuanceDescription' + output_description: + $ref: '#/components/schemas/AnalyticsOutputDescription' + type: object + AnalyticsPublicIssuanceDescription: + example: + asset_id: 10 + amount: 3 + nullable: true + properties: + asset_id: + format: int32 + minimum: 1 + type: integer + amount: + format: int32 + minimum: 0 + type: integer + required: + - amount + - asset_id + type: object + AnalyticsAssetConverterProofDescription: + example: + asset_cv: AAAAAAAAAAA= + amount_cv: AAAAAAAAAAA= + input_cv: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + properties: + input_cv: + type: string + amount_cv: + type: string + asset_cv: + type: string + zkproof: + type: string + type: object + AnalyticsSpendDescription: + example: + cv: AAAAAAAAAAA= + anchor: AAAAAAAAAAA= + nullifier: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + rk_out: AAAAAAAAAAA= + properties: + cv: + type: string + anchor: + type: string + nullifier: + type: string + rk_out: + type: string + zkproof: + type: string + type: object + AnalyticsOutputDescription: + example: + cv: AAAAAAAAAAA= + cm: 000AAAAAAA= + epk: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + enc_note: AAAAAAAAAAA= + enc_sender: 000AAAAAAA= + properties: + cv: + type: string + cm: + type: string + epk: + type: string + zkproof: + type: string + enc_note: + type: string + enc_sender: + type: string + type: object + AnalyticsConfidentialIssuanceDescription: + example: + input_cv: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + rule: + - min_id: 11 + - max_id: 20 + nullable: true + properties: + input_cv: + type: string + zkproof: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRule' + type: object + AnalyticsRule: + example: + min_id: 11 + max_id: 20 + properties: + min_id: + format: int32 + type: integer + max_id: + format: int32 + type: integer + required: + - max_id + - min_id + type: object + GetWalletActivityResponse: + example: + wallet_id: wallet_id + transactions: + - metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + - metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + properties: + wallet_id: + type: string + transactions: + items: + $ref: '#/components/schemas/AnalyticWalletTx' + type: array + type: object + AnalyticWalletTx: + example: + metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + properties: + metadata: + $ref: '#/components/schemas/AnalyticWalletMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticIssueWalletTx' + - $ref: '#/components/schemas/AnalyticTransferWalletTx' + - $ref: '#/components/schemas/AnalyticRuleWalletTx' + type: object + AnalyticWalletMetadata: + example: + tx_hash: tx_hash + type: type + timestamp: timestamp + properties: + type: + type: string + tx_hash: + type: string + timestamp: + type: string + type: object + AnalyticIssueWalletTx: + properties: + is_incoming: + type: boolean + issued_by_self: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + is_confidential: + type: boolean + type: object + AnalyticTransferWalletTx: + properties: + is_incoming: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + type: object + AnalyticRuleWalletTx: + properties: + signed_by_self: + type: boolean + rule_affect_self: + type: boolean + tx_signer: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRuleWalletDefinition' + type: object + HealthcheckResponse: + example: + version: 1.3.0 + blockchain_connector: + error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082: + connect: connection refused' + passing: false + database: + error: "" + passing: true + mq: + error: "" + passing: true + passing: false + properties: + version: + type: string + blockchain_connector: + $ref: '#/components/schemas/HealthcheckResponseItem' + message_queue: + $ref: '#/components/schemas/HealthcheckResponseItem' + database: + $ref: '#/components/schemas/HealthcheckResponseItem' + passing: + type: boolean + type: object + HealthcheckResponseItem: + properties: + passing: + type: boolean + error: + type: string + type: object + securitySchemes: + ApiKeyAuth: + in: header + name: x-auth-token + type: apiKey diff --git a/asset_transfers_dev_guide/go/sdk/api_analytics.go b/asset_transfers_dev_guide/go/sdk/api_analytics.go new file mode 100644 index 0000000..b015b51 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api_analytics.go @@ -0,0 +1,156 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type AnalyticsApiService service + +/* +AnalyticsApiService Get details on past blocks + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getNetworkActivityRequest +@return GetNetworkActivityResponse +*/ +func (a *AnalyticsApiService) AnalyticsGetNetworkActivityPost(ctx context.Context, getNetworkActivityRequest GetNetworkActivityRequest) (GetNetworkActivityResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetNetworkActivityResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/analytics/get_network_activity" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getNetworkActivityRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetNetworkActivityResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/asset_transfers_dev_guide/go/sdk/api_async.go b/asset_transfers_dev_guide/go/sdk/api_async.go new file mode 100644 index 0000000..c70d226 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api_async.go @@ -0,0 +1,680 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.1.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type AsyncApiService service + +/* +AsyncApiService Unlocks a wallet for a given amount of seconds [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param unlockWalletRequest +@return AsyncTaskCreatedResponse +*/ +func (a *AsyncApiService) NodeUnlockWalletPost(ctx context.Context, unlockWalletRequest UnlockWalletRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/unlock_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &unlockWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AsyncApiService Create & broadcast add-config-rule [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param createRuleRequest +@return AsyncTaskCreatedResponse +*/ +func (a *AsyncApiService) WalletCreateRulePost(ctx context.Context, createRuleRequest CreateRuleRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/create_rule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &createRuleRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AsyncApiService Create & broadcast delete-config-rule [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param deleteRuleRequest +@return AsyncTaskCreatedResponse +*/ +func (a *AsyncApiService) WalletDeleteRulePost(ctx context.Context, deleteRuleRequest DeleteRuleRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/delete_rule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &deleteRuleRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AsyncApiService Issue assets [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param issueAssetRequest +@return AsyncTaskCreatedResponse +*/ +func (a *AsyncApiService) WalletIssueAssetPost(ctx context.Context, issueAssetRequest IssueAssetRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/issue_asset" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &issueAssetRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AsyncApiService Transfer assets [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param transferAssetRequest +@return AsyncTaskCreatedResponse +*/ +func (a *AsyncApiService) WalletTransferAssetPost(ctx context.Context, transferAssetRequest TransferAssetRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/transfer_asset" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &transferAssetRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/asset_transfers_dev_guide/go/sdk/api_health.go b/asset_transfers_dev_guide/go/sdk/api_health.go new file mode 100644 index 0000000..0f07d11 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api_health.go @@ -0,0 +1,143 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type HealthApiService service + +/* +HealthApiService Perform a healthcheck of the node and its dependent services + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return HealthcheckResponse +*/ +func (a *HealthApiService) HealthPost(ctx context.Context) (HealthcheckResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue HealthcheckResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/health" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v HealthcheckResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/asset_transfers_dev_guide/go/sdk/api_node.go b/asset_transfers_dev_guide/go/sdk/api_node.go new file mode 100644 index 0000000..4dc18d4 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api_node.go @@ -0,0 +1,984 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type NodeApiService service + +/* +NodeApiService Delete a wallet + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param deleteWalletRequest +*/ +func (a *NodeApiService) NodeDeleteWalletPost(ctx context.Context, deleteWalletRequest DeleteWalletRequest) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/delete_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &deleteWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +NodeApiService Export wallet secret key + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param exportWalletRequest +@return ExportWalletResponse +*/ +func (a *NodeApiService) NodeExportWalletPost(ctx context.Context, exportWalletRequest ExportWalletRequest) (ExportWalletResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ExportWalletResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/export_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &exportWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v ExportWalletResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +NodeApiService Generate a new wallet + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param generateWalletRequest +*/ +func (a *NodeApiService) NodeGenerateWalletPost(ctx context.Context, generateWalletRequest GenerateWalletRequest) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/generate_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &generateWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +NodeApiService Get all wallet labels + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return GetAllWalletsResponse +*/ +func (a *NodeApiService) NodeGetAllWalletsPost(ctx context.Context) (GetAllWalletsResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetAllWalletsResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/get_all_wallets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetAllWalletsResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +NodeApiService Get network governance rules + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return GetRulesResponse +*/ +func (a *NodeApiService) NodeGetRulesPost(ctx context.Context) (GetRulesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetRulesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/get_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetRulesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +NodeApiService Get all tasks in the node + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getTaskStatusRequest +@return GetTaskStatusResponse +*/ +func (a *NodeApiService) NodeGetTaskStatusPost(ctx context.Context, getTaskStatusRequest GetTaskStatusRequest) (GetTaskStatusResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetTaskStatusResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/get_task_status" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getTaskStatusRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetTaskStatusResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +NodeApiService Import wallet from secret key + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param importWalletRequest +*/ +func (a *NodeApiService) NodeImportWalletPost(ctx context.Context, importWalletRequest ImportWalletRequest) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/import_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &importWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +NodeApiService Unlocks a wallet for a given amount of seconds [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param unlockWalletRequest +@return AsyncTaskCreatedResponse +*/ +func (a *NodeApiService) NodeUnlockWalletPost(ctx context.Context, unlockWalletRequest UnlockWalletRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/node/unlock_wallet" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &unlockWalletRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/asset_transfers_dev_guide/go/sdk/api_wallet.go b/asset_transfers_dev_guide/go/sdk/api_wallet.go new file mode 100644 index 0000000..a7250fa --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/api_wallet.go @@ -0,0 +1,1073 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type WalletApiService service + +/* +WalletApiService Create & broadcast add-config-rule [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param createRuleRequest +@return AsyncTaskCreatedResponse +*/ +func (a *WalletApiService) WalletCreateRulePost(ctx context.Context, createRuleRequest CreateRuleRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/create_rule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &createRuleRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Create & broadcast delete-config-rule [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param deleteRuleRequest +@return AsyncTaskCreatedResponse +*/ +func (a *WalletApiService) WalletDeleteRulePost(ctx context.Context, deleteRuleRequest DeleteRuleRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/delete_rule" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &deleteRuleRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Get wallet activity (transactions) + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getWalletActivityRequest +@return GetWalletActivityResponse +*/ +func (a *WalletApiService) WalletGetActivityPost(ctx context.Context, getWalletActivityRequest GetWalletActivityRequest) (GetWalletActivityResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetWalletActivityResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/get_activity" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getWalletActivityRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetWalletActivityResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Get wallets balance + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getWalletBalanceRequest +@return GetWalletBalanceResponse +*/ +func (a *WalletApiService) WalletGetBalancesPost(ctx context.Context, getWalletBalanceRequest GetWalletBalanceRequest) (GetWalletBalanceResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetWalletBalanceResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/get_balances" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getWalletBalanceRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v GetWalletBalanceResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Get a new address from a given diversifier or generate randomly + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getNewAddressRequest +@return GetNewAddressResponse +*/ +func (a *WalletApiService) WalletGetNewAddressPost(ctx context.Context, getNewAddressRequest GetNewAddressRequest) (GetNewAddressResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetNewAddressResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/get_new_address" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getNewAddressRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v GetNewAddressResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Get wallet public key + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param getPublicKeyRequest +@return GetPublicKeyResponse +*/ +func (a *WalletApiService) WalletGetPublicKeyPost(ctx context.Context, getPublicKeyRequest GetPublicKeyRequest) (GetPublicKeyResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue GetPublicKeyResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/get_public_key" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &getPublicKeyRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v GetPublicKeyResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Issue assets [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param issueAssetRequest +@return AsyncTaskCreatedResponse +*/ +func (a *WalletApiService) WalletIssueAssetPost(ctx context.Context, issueAssetRequest IssueAssetRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/issue_asset" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &issueAssetRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WalletApiService Transfer assets [async call] + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param transferAssetRequest +@return AsyncTaskCreatedResponse +*/ +func (a *WalletApiService) WalletTransferAssetPost(ctx context.Context, transferAssetRequest TransferAssetRequest) (AsyncTaskCreatedResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AsyncTaskCreatedResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/wallet/transfer_asset" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &transferAssetRequest + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 201 { + var v AsyncTaskCreatedResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/asset_transfers_dev_guide/go/sdk/client.go b/asset_transfers_dev_guide/go/sdk/client.go new file mode 100644 index 0000000..e5283d4 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/client.go @@ -0,0 +1,487 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the QED-it - Asset Transfers API v1.3.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AnalyticsApi *AnalyticsApiService + + HealthApi *HealthApiService + + NodeApi *NodeApiService + + WalletApi *WalletApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AnalyticsApi = (*AnalyticsApiService)(&c.common) + c.HealthApi = (*HealthApiService)(&c.common) + c.NodeApi = (*NodeApiService)(&c.common) + c.WalletApi = (*WalletApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/asset_transfers_dev_guide/go/sdk/configuration.go b/asset_transfers_dev_guide/go/sdk/configuration.go new file mode 100644 index 0000000..3fdd364 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/configuration.go @@ -0,0 +1,72 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "http://localhost:12052", + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.1.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticIssueWalletTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticIssueWalletTx.md new file mode 100644 index 0000000..9271f7e --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticIssueWalletTx.md @@ -0,0 +1,16 @@ +# AnalyticIssueWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsIncoming** | **bool** | | [optional] +**IssuedBySelf** | **bool** | | [optional] +**Memo** | **string** | | [optional] +**RecipientAddress** | **string** | | [optional] +**AssetId** | **int32** | | [optional] +**Amount** | **int32** | | [optional] +**IsConfidential** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticRuleWalletTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticRuleWalletTx.md new file mode 100644 index 0000000..0a2bee5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticRuleWalletTx.md @@ -0,0 +1,13 @@ +# AnalyticRuleWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignedBySelf** | **bool** | | [optional] +**RuleAffectSelf** | **bool** | | [optional] +**TxSigner** | **string** | | [optional] +**Rule** | [**AnalyticsRuleWalletDefinition**](AnalyticsRuleWalletDefinition.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransaction.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransaction.md new file mode 100644 index 0000000..31f90ce --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransaction.md @@ -0,0 +1,11 @@ +# AnalyticTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**AnalyticsTxMetadata**](AnalyticsTxMetadata.md) | | [optional] +**Content** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransferWalletTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransferWalletTx.md new file mode 100644 index 0000000..ad52301 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticTransferWalletTx.md @@ -0,0 +1,14 @@ +# AnalyticTransferWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsIncoming** | **bool** | | [optional] +**Memo** | **string** | | [optional] +**RecipientAddress** | **string** | | [optional] +**AssetId** | **int32** | | [optional] +**Amount** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletMetadata.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletMetadata.md new file mode 100644 index 0000000..51affed --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletMetadata.md @@ -0,0 +1,12 @@ +# AnalyticWalletMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] +**TxHash** | **string** | | [optional] +**Timestamp** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletTx.md new file mode 100644 index 0000000..2b44f6c --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticWalletTx.md @@ -0,0 +1,11 @@ +# AnalyticWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**AnalyticWalletMetadata**](AnalyticWalletMetadata.md) | | [optional] +**Content** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsApi.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsApi.md new file mode 100644 index 0000000..e2a38aa --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsApi.md @@ -0,0 +1,35 @@ +# \AnalyticsApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnalyticsGetNetworkActivityPost**](AnalyticsApi.md#AnalyticsGetNetworkActivityPost) | **Post** /analytics/get_network_activity | Get details on past blocks + + +# **AnalyticsGetNetworkActivityPost** +> GetNetworkActivityResponse AnalyticsGetNetworkActivityPost(ctx, getNetworkActivityRequest) +Get details on past blocks + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getNetworkActivityRequest** | [**GetNetworkActivityRequest**](GetNetworkActivityRequest.md)| | + +### Return type + +[**GetNetworkActivityResponse**](GetNetworkActivityResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsAssetConverterProofDescription.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsAssetConverterProofDescription.md new file mode 100644 index 0000000..d5bfe86 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsAssetConverterProofDescription.md @@ -0,0 +1,13 @@ +# AnalyticsAssetConverterProofDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputCv** | **string** | | [optional] +**AmountCv** | **string** | | [optional] +**AssetCv** | **string** | | [optional] +**Zkproof** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md new file mode 100644 index 0000000..7683d87 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -0,0 +1,12 @@ +# AnalyticsConfidentialIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputCv** | **string** | | [optional] +**Zkproof** | **string** | | [optional] +**Rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsContent.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsContent.md new file mode 100644 index 0000000..8380ea9 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsContent.md @@ -0,0 +1,10 @@ +# AnalyticsContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TxType** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTx.md new file mode 100644 index 0000000..1f1d649 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTx.md @@ -0,0 +1,12 @@ +# AnalyticsIssueTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Outputs** | [**[]AnalyticsOutput**](AnalyticsOutput.md) | | [optional] +**PublicKey** | **string** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTxAllOf.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTxAllOf.md new file mode 100644 index 0000000..33473cf --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsIssueTxAllOf.md @@ -0,0 +1,13 @@ +# AnalyticsIssueTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Outputs** | [**[]AnalyticsOutput**](AnalyticsOutput.md) | | [optional] +**PublicKey** | **string** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutput.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutput.md new file mode 100644 index 0000000..2c181e8 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutput.md @@ -0,0 +1,13 @@ +# AnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | [optional] +**PublicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | [optional] +**ConfidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | [optional] +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutputDescription.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutputDescription.md new file mode 100644 index 0000000..75b5a78 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsOutputDescription.md @@ -0,0 +1,15 @@ +# AnalyticsOutputDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cv** | **string** | | [optional] +**Cm** | **string** | | [optional] +**Epk** | **string** | | [optional] +**Zkproof** | **string** | | [optional] +**EncNote** | **string** | | [optional] +**EncSender** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsPublicIssuanceDescription.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsPublicIssuanceDescription.md new file mode 100644 index 0000000..86f6705 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -0,0 +1,11 @@ +# AnalyticsPublicIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **int32** | | +**Amount** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRule.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRule.md new file mode 100644 index 0000000..9a0d8b7 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRule.md @@ -0,0 +1,11 @@ +# AnalyticsRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinId** | **int32** | | +**MaxId** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleDefinition.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleDefinition.md new file mode 100644 index 0000000..ee68d95 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleDefinition.md @@ -0,0 +1,14 @@ +# AnalyticsRuleDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | [optional] +**CanIssueConfidentially** | **bool** | | [optional] +**IsAdmin** | **bool** | | [optional] +**CanIssueAssetIdFirst** | **int32** | | [optional] +**CanIssueAssetIdLast** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTx.md new file mode 100644 index 0000000..1d6d30d --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTx.md @@ -0,0 +1,14 @@ +# AnalyticsRuleTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderPublicKey** | **string** | | [optional] +**RulesToAdd** | [**[]AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**RulesToDelete** | [**[]AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**Nonce** | **int32** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTxAllOf.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTxAllOf.md new file mode 100644 index 0000000..50b092a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleTxAllOf.md @@ -0,0 +1,15 @@ +# AnalyticsRuleTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderPublicKey** | **string** | | [optional] +**RulesToAdd** | [**AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**RulesToDelete** | [**AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**Nonce** | **int32** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleWalletDefinition.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleWalletDefinition.md new file mode 100644 index 0000000..05ea64a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -0,0 +1,15 @@ +# AnalyticsRuleWalletDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | [optional] +**CanIssueConfidentially** | **bool** | | [optional] +**IsAdmin** | **bool** | | [optional] +**CanIssueAssetIdFirst** | **int32** | | [optional] +**CanIssueAssetIdLast** | **int32** | | [optional] +**Operation** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsSpendDescription.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsSpendDescription.md new file mode 100644 index 0000000..146faea --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsSpendDescription.md @@ -0,0 +1,14 @@ +# AnalyticsSpendDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cv** | **string** | | [optional] +**Anchor** | **string** | | [optional] +**Nullifier** | **string** | | [optional] +**RkOut** | **string** | | [optional] +**Zkproof** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTx.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTx.md new file mode 100644 index 0000000..c025eb5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTx.md @@ -0,0 +1,14 @@ +# AnalyticsTransferTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetConverterDescriptions** | [**[]AnalyticsAssetConverterProofDescription**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**Spends** | [**[]AnalyticsSpendDescription**](AnalyticsSpendDescription.md) | | [optional] +**Outputs** | [**[]AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] +**BindingSig** | **string** | | [optional] +**SpendAuthSigs** | **[]string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTxAllOf.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTxAllOf.md new file mode 100644 index 0000000..a42caca --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTransferTxAllOf.md @@ -0,0 +1,15 @@ +# AnalyticsTransferTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetConverterDescriptions** | [**AnalyticsAssetConverterProofDescription**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**Spends** | [**[]AnalyticsSpendDescription**](AnalyticsSpendDescription.md) | | [optional] +**Outputs** | [**[]AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] +**BindingSig** | **string** | | [optional] +**SpendAuthSigs** | **[]string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTxMetadata.md b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTxMetadata.md new file mode 100644 index 0000000..e1e4b65 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AnalyticsTxMetadata.md @@ -0,0 +1,15 @@ +# AnalyticsTxMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] +**TxHash** | **string** | | [optional] +**BlockHash** | **string** | | [optional] +**Timestamp** | **string** | | [optional] +**IndexInBlock** | **int32** | | [optional] +**BlockHeight** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AsyncApi.md b/asset_transfers_dev_guide/go/sdk/docs/AsyncApi.md new file mode 100644 index 0000000..ff14588 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AsyncApi.md @@ -0,0 +1,143 @@ +# \AsyncApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**NodeUnlockWalletPost**](AsyncApi.md#NodeUnlockWalletPost) | **Post** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +[**WalletCreateRulePost**](AsyncApi.md#WalletCreateRulePost) | **Post** /wallet/create_rule | Create & broadcast add-config-rule [async call] +[**WalletDeleteRulePost**](AsyncApi.md#WalletDeleteRulePost) | **Post** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +[**WalletIssueAssetPost**](AsyncApi.md#WalletIssueAssetPost) | **Post** /wallet/issue_asset | Issue assets [async call] +[**WalletTransferAssetPost**](AsyncApi.md#WalletTransferAssetPost) | **Post** /wallet/transfer_asset | Transfer assets [async call] + + +# **NodeUnlockWalletPost** +> AsyncTaskCreatedResponse NodeUnlockWalletPost(ctx, unlockWalletRequest) +Unlocks a wallet for a given amount of seconds [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **unlockWalletRequest** | [**UnlockWalletRequest**](UnlockWalletRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletCreateRulePost** +> AsyncTaskCreatedResponse WalletCreateRulePost(ctx, createRuleRequest) +Create & broadcast add-config-rule [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **createRuleRequest** | [**CreateRuleRequest**](CreateRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletDeleteRulePost** +> AsyncTaskCreatedResponse WalletDeleteRulePost(ctx, deleteRuleRequest) +Create & broadcast delete-config-rule [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **deleteRuleRequest** | [**DeleteRuleRequest**](DeleteRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletIssueAssetPost** +> AsyncTaskCreatedResponse WalletIssueAssetPost(ctx, issueAssetRequest) +Issue assets [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **issueAssetRequest** | [**IssueAssetRequest**](IssueAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletTransferAssetPost** +> AsyncTaskCreatedResponse WalletTransferAssetPost(ctx, transferAssetRequest) +Transfer assets [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **transferAssetRequest** | [**TransferAssetRequest**](TransferAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/asset_transfers_dev_guide/go/sdk/docs/AsyncTaskCreatedResponse.md b/asset_transfers_dev_guide/go/sdk/docs/AsyncTaskCreatedResponse.md new file mode 100644 index 0000000..5d690aa --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/AsyncTaskCreatedResponse.md @@ -0,0 +1,10 @@ +# AsyncTaskCreatedResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/BalanceForAsset.md b/asset_transfers_dev_guide/go/sdk/docs/BalanceForAsset.md new file mode 100644 index 0000000..c5f161c --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/BalanceForAsset.md @@ -0,0 +1,11 @@ +# BalanceForAsset + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **int32** | | +**Amount** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/Block.md b/asset_transfers_dev_guide/go/sdk/docs/Block.md new file mode 100644 index 0000000..be1628c --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/Block.md @@ -0,0 +1,12 @@ +# Block + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BlockHash** | **string** | | +**Height** | **int32** | | +**Transactions** | **[]string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/ConfidentialAnalyticsOutput.md b/asset_transfers_dev_guide/go/sdk/docs/ConfidentialAnalyticsOutput.md new file mode 100644 index 0000000..5b75247 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/ConfidentialAnalyticsOutput.md @@ -0,0 +1,12 @@ +# ConfidentialAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | +**ConfidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/CreateRuleRequest.md b/asset_transfers_dev_guide/go/sdk/docs/CreateRuleRequest.md new file mode 100644 index 0000000..6b9582f --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/CreateRuleRequest.md @@ -0,0 +1,12 @@ +# CreateRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | +**RulesToAdd** | [**[]Rule**](Rule.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/DeleteRuleRequest.md b/asset_transfers_dev_guide/go/sdk/docs/DeleteRuleRequest.md new file mode 100644 index 0000000..bfae6c9 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/DeleteRuleRequest.md @@ -0,0 +1,12 @@ +# DeleteRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | +**RulesToDelete** | [**[]Rule**](Rule.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/DeleteWalletRequest.md b/asset_transfers_dev_guide/go/sdk/docs/DeleteWalletRequest.md new file mode 100644 index 0000000..84ffd79 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/DeleteWalletRequest.md @@ -0,0 +1,11 @@ +# DeleteWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/ErrorResponse.md b/asset_transfers_dev_guide/go/sdk/docs/ErrorResponse.md new file mode 100644 index 0000000..d59e024 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/ErrorResponse.md @@ -0,0 +1,11 @@ +# ErrorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorCode** | **int32** | | +**Message** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/ExportWalletRequest.md b/asset_transfers_dev_guide/go/sdk/docs/ExportWalletRequest.md new file mode 100644 index 0000000..5105f32 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/ExportWalletRequest.md @@ -0,0 +1,10 @@ +# ExportWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/ExportWalletResponse.md b/asset_transfers_dev_guide/go/sdk/docs/ExportWalletResponse.md new file mode 100644 index 0000000..bf3d134 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/ExportWalletResponse.md @@ -0,0 +1,12 @@ +# ExportWalletResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**EncryptedSk** | **string** | | +**Salt** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GenerateWalletRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GenerateWalletRequest.md new file mode 100644 index 0000000..69f85b4 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GenerateWalletRequest.md @@ -0,0 +1,11 @@ +# GenerateWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetActivityRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetActivityRequest.md new file mode 100644 index 0000000..05421ab --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetActivityRequest.md @@ -0,0 +1,12 @@ +# GetActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetActivityResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetActivityResponse.md new file mode 100644 index 0000000..50803cc --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetActivityResponse.md @@ -0,0 +1,11 @@ +# GetActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Transactions** | [**[]TransactionsForWallet**](TransactionsForWallet.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetAllWalletsResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetAllWalletsResponse.md new file mode 100644 index 0000000..d6dd5c0 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetAllWalletsResponse.md @@ -0,0 +1,10 @@ +# GetAllWalletsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletIds** | **[]string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetBlocksRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetBlocksRequest.md new file mode 100644 index 0000000..d2bc465 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetBlocksRequest.md @@ -0,0 +1,11 @@ +# GetBlocksRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetBlocksResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetBlocksResponse.md new file mode 100644 index 0000000..a067e70 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetBlocksResponse.md @@ -0,0 +1,10 @@ +# GetBlocksResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Blocks** | [**[]Block**](Block.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityRequest.md new file mode 100644 index 0000000..cffec25 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityRequest.md @@ -0,0 +1,11 @@ +# GetNetworkActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityResponse.md new file mode 100644 index 0000000..304ee76 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetNetworkActivityResponse.md @@ -0,0 +1,10 @@ +# GetNetworkActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Transactions** | [**[]AnalyticTransaction**](AnalyticTransaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressRequest.md new file mode 100644 index 0000000..94d0163 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressRequest.md @@ -0,0 +1,11 @@ +# GetNewAddressRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Diversifier** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressResponse.md new file mode 100644 index 0000000..f57afb5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetNewAddressResponse.md @@ -0,0 +1,11 @@ +# GetNewAddressResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**RecipientAddress** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyRequest.md new file mode 100644 index 0000000..12f3448 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyRequest.md @@ -0,0 +1,10 @@ +# GetPublicKeyRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyResponse.md new file mode 100644 index 0000000..6e10c1d --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetPublicKeyResponse.md @@ -0,0 +1,11 @@ +# GetPublicKeyResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**PublicKey** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetRulesResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetRulesResponse.md new file mode 100644 index 0000000..5a447bf --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetRulesResponse.md @@ -0,0 +1,10 @@ +# GetRulesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Rules** | [**[]Rule**](Rule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusRequest.md new file mode 100644 index 0000000..80953a8 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusRequest.md @@ -0,0 +1,10 @@ +# GetTaskStatusRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusResponse.md new file mode 100644 index 0000000..ab70e2e --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetTaskStatusResponse.md @@ -0,0 +1,17 @@ +# GetTaskStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**CreatedAt** | **string** | | [optional] +**UpdatedAt** | **string** | | [optional] +**Result** | **string** | | [optional] +**TxHash** | **string** | | [optional] +**Type** | **string** | | [optional] +**Data** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] +**Error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsRequest.md new file mode 100644 index 0000000..0205508 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsRequest.md @@ -0,0 +1,12 @@ +# GetTransactionsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsResponse.md new file mode 100644 index 0000000..878b598 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetTransactionsResponse.md @@ -0,0 +1,11 @@ +# GetTransactionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Transactions** | [**[]TransactionsForWallet**](TransactionsForWallet.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityRequest.md new file mode 100644 index 0000000..403c7a0 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityRequest.md @@ -0,0 +1,12 @@ +# GetWalletActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityResponse.md new file mode 100644 index 0000000..4ab3c8a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetWalletActivityResponse.md @@ -0,0 +1,11 @@ +# GetWalletActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | [optional] +**Transactions** | [**[]AnalyticWalletTx**](AnalyticWalletTx.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceRequest.md b/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceRequest.md new file mode 100644 index 0000000..206dfe4 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceRequest.md @@ -0,0 +1,10 @@ +# GetWalletBalanceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceResponse.md b/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceResponse.md new file mode 100644 index 0000000..6b9f5ea --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/GetWalletBalanceResponse.md @@ -0,0 +1,11 @@ +# GetWalletBalanceResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Assets** | [**[]BalanceForAsset**](BalanceForAsset.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/HealthApi.md b/asset_transfers_dev_guide/go/sdk/docs/HealthApi.md new file mode 100644 index 0000000..64d7b56 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/HealthApi.md @@ -0,0 +1,31 @@ +# \HealthApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**HealthPost**](HealthApi.md#HealthPost) | **Post** /health | Perform a healthcheck of the node and its dependent services + + +# **HealthPost** +> HealthcheckResponse HealthPost(ctx, ) +Perform a healthcheck of the node and its dependent services + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**HealthcheckResponse**](HealthcheckResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponse.md b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponse.md new file mode 100644 index 0000000..a1546b1 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponse.md @@ -0,0 +1,14 @@ +# HealthcheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | | [optional] +**BlockchainConnector** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**MessageQueue** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**Database** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**Passing** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseBlockchainConnector.md b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseBlockchainConnector.md new file mode 100644 index 0000000..99e3382 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseBlockchainConnector.md @@ -0,0 +1,11 @@ +# HealthcheckResponseBlockchainConnector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Passing** | **bool** | | [optional] +**Error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseItem.md b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseItem.md new file mode 100644 index 0000000..7af4ed5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/HealthcheckResponseItem.md @@ -0,0 +1,11 @@ +# HealthcheckResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Passing** | **bool** | | [optional] +**Error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/ImportWalletRequest.md b/asset_transfers_dev_guide/go/sdk/docs/ImportWalletRequest.md new file mode 100644 index 0000000..e78dca1 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/ImportWalletRequest.md @@ -0,0 +1,13 @@ +# ImportWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**EncryptedSk** | **string** | | +**Authorization** | **string** | | +**Salt** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/IssueAssetRequest.md b/asset_transfers_dev_guide/go/sdk/docs/IssueAssetRequest.md new file mode 100644 index 0000000..a1201d7 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/IssueAssetRequest.md @@ -0,0 +1,16 @@ +# IssueAssetRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | +**RecipientAddress** | **string** | | +**Amount** | **int32** | | +**AssetId** | **int32** | | +**Confidential** | **bool** | | +**Memo** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/NodeApi.md b/asset_transfers_dev_guide/go/sdk/docs/NodeApi.md new file mode 100644 index 0000000..e6ef920 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/NodeApi.md @@ -0,0 +1,216 @@ +# \NodeApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**NodeDeleteWalletPost**](NodeApi.md#NodeDeleteWalletPost) | **Post** /node/delete_wallet | Delete a wallet +[**NodeExportWalletPost**](NodeApi.md#NodeExportWalletPost) | **Post** /node/export_wallet | Export wallet secret key +[**NodeGenerateWalletPost**](NodeApi.md#NodeGenerateWalletPost) | **Post** /node/generate_wallet | Generate a new wallet +[**NodeGetAllWalletsPost**](NodeApi.md#NodeGetAllWalletsPost) | **Post** /node/get_all_wallets | Get all wallet labels +[**NodeGetRulesPost**](NodeApi.md#NodeGetRulesPost) | **Post** /node/get_rules | Get network governance rules +[**NodeGetTaskStatusPost**](NodeApi.md#NodeGetTaskStatusPost) | **Post** /node/get_task_status | Get all tasks in the node +[**NodeImportWalletPost**](NodeApi.md#NodeImportWalletPost) | **Post** /node/import_wallet | Import wallet from secret key +[**NodeUnlockWalletPost**](NodeApi.md#NodeUnlockWalletPost) | **Post** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] + + +# **NodeDeleteWalletPost** +> NodeDeleteWalletPost(ctx, deleteWalletRequest) +Delete a wallet + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **deleteWalletRequest** | [**DeleteWalletRequest**](DeleteWalletRequest.md)| | + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeExportWalletPost** +> ExportWalletResponse NodeExportWalletPost(ctx, exportWalletRequest) +Export wallet secret key + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **exportWalletRequest** | [**ExportWalletRequest**](ExportWalletRequest.md)| | + +### Return type + +[**ExportWalletResponse**](ExportWalletResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeGenerateWalletPost** +> NodeGenerateWalletPost(ctx, generateWalletRequest) +Generate a new wallet + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **generateWalletRequest** | [**GenerateWalletRequest**](GenerateWalletRequest.md)| | + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeGetAllWalletsPost** +> GetAllWalletsResponse NodeGetAllWalletsPost(ctx, ) +Get all wallet labels + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetAllWalletsResponse**](GetAllWalletsResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeGetRulesPost** +> GetRulesResponse NodeGetRulesPost(ctx, ) +Get network governance rules + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetRulesResponse**](GetRulesResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeGetTaskStatusPost** +> GetTaskStatusResponse NodeGetTaskStatusPost(ctx, getTaskStatusRequest) +Get all tasks in the node + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getTaskStatusRequest** | [**GetTaskStatusRequest**](GetTaskStatusRequest.md)| | + +### Return type + +[**GetTaskStatusResponse**](GetTaskStatusResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeImportWalletPost** +> NodeImportWalletPost(ctx, importWalletRequest) +Import wallet from secret key + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **importWalletRequest** | [**ImportWalletRequest**](ImportWalletRequest.md)| | + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **NodeUnlockWalletPost** +> AsyncTaskCreatedResponse NodeUnlockWalletPost(ctx, unlockWalletRequest) +Unlocks a wallet for a given amount of seconds [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **unlockWalletRequest** | [**UnlockWalletRequest**](UnlockWalletRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/asset_transfers_dev_guide/go/sdk/docs/PublicAnalyticsOutput.md b/asset_transfers_dev_guide/go/sdk/docs/PublicAnalyticsOutput.md new file mode 100644 index 0000000..4a80d5a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/PublicAnalyticsOutput.md @@ -0,0 +1,12 @@ +# PublicAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | +**PublicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/Rule.md b/asset_transfers_dev_guide/go/sdk/docs/Rule.md new file mode 100644 index 0000000..7e3afb1 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/Rule.md @@ -0,0 +1,14 @@ +# Rule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | +**CanIssueConfidentially** | **bool** | | [optional] +**CanIssueAssetIdFirst** | **int32** | | [optional] +**CanIssueAssetIdLast** | **int32** | | [optional] +**IsAdmin** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/TransactionsForWallet.md b/asset_transfers_dev_guide/go/sdk/docs/TransactionsForWallet.md new file mode 100644 index 0000000..62f4103 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/TransactionsForWallet.md @@ -0,0 +1,15 @@ +# TransactionsForWallet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsIncoming** | **bool** | | +**AssetId** | **int32** | | +**Amount** | **int32** | | +**RecipientAddress** | **string** | | +**Memo** | **string** | | +**Id** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/TransferAssetRequest.md b/asset_transfers_dev_guide/go/sdk/docs/TransferAssetRequest.md new file mode 100644 index 0000000..3f5ac5a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/TransferAssetRequest.md @@ -0,0 +1,15 @@ +# TransferAssetRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | +**RecipientAddress** | **string** | | +**Amount** | **int32** | | +**AssetId** | **int32** | | +**Memo** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/UnlockWalletRequest.md b/asset_transfers_dev_guide/go/sdk/docs/UnlockWalletRequest.md new file mode 100644 index 0000000..9aa32ea --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/UnlockWalletRequest.md @@ -0,0 +1,12 @@ +# UnlockWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**Authorization** | **string** | | +**Seconds** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/asset_transfers_dev_guide/go/sdk/docs/WalletApi.md b/asset_transfers_dev_guide/go/sdk/docs/WalletApi.md new file mode 100644 index 0000000..afe778b --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/docs/WalletApi.md @@ -0,0 +1,224 @@ +# \WalletApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WalletCreateRulePost**](WalletApi.md#WalletCreateRulePost) | **Post** /wallet/create_rule | Create & broadcast add-config-rule [async call] +[**WalletDeleteRulePost**](WalletApi.md#WalletDeleteRulePost) | **Post** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +[**WalletGetActivityPost**](WalletApi.md#WalletGetActivityPost) | **Post** /wallet/get_activity | Get wallet activity (transactions) +[**WalletGetBalancesPost**](WalletApi.md#WalletGetBalancesPost) | **Post** /wallet/get_balances | Get wallets balance +[**WalletGetNewAddressPost**](WalletApi.md#WalletGetNewAddressPost) | **Post** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly +[**WalletGetPublicKeyPost**](WalletApi.md#WalletGetPublicKeyPost) | **Post** /wallet/get_public_key | Get wallet public key +[**WalletIssueAssetPost**](WalletApi.md#WalletIssueAssetPost) | **Post** /wallet/issue_asset | Issue assets [async call] +[**WalletTransferAssetPost**](WalletApi.md#WalletTransferAssetPost) | **Post** /wallet/transfer_asset | Transfer assets [async call] + + +# **WalletCreateRulePost** +> AsyncTaskCreatedResponse WalletCreateRulePost(ctx, createRuleRequest) +Create & broadcast add-config-rule [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **createRuleRequest** | [**CreateRuleRequest**](CreateRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletDeleteRulePost** +> AsyncTaskCreatedResponse WalletDeleteRulePost(ctx, deleteRuleRequest) +Create & broadcast delete-config-rule [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **deleteRuleRequest** | [**DeleteRuleRequest**](DeleteRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletGetActivityPost** +> GetWalletActivityResponse WalletGetActivityPost(ctx, getWalletActivityRequest) +Get wallet activity (transactions) + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getWalletActivityRequest** | [**GetWalletActivityRequest**](GetWalletActivityRequest.md)| | + +### Return type + +[**GetWalletActivityResponse**](GetWalletActivityResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletGetBalancesPost** +> GetWalletBalanceResponse WalletGetBalancesPost(ctx, getWalletBalanceRequest) +Get wallets balance + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getWalletBalanceRequest** | [**GetWalletBalanceRequest**](GetWalletBalanceRequest.md)| | + +### Return type + +[**GetWalletBalanceResponse**](GetWalletBalanceResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletGetNewAddressPost** +> GetNewAddressResponse WalletGetNewAddressPost(ctx, getNewAddressRequest) +Get a new address from a given diversifier or generate randomly + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getNewAddressRequest** | [**GetNewAddressRequest**](GetNewAddressRequest.md)| | + +### Return type + +[**GetNewAddressResponse**](GetNewAddressResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletGetPublicKeyPost** +> GetPublicKeyResponse WalletGetPublicKeyPost(ctx, getPublicKeyRequest) +Get wallet public key + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **getPublicKeyRequest** | [**GetPublicKeyRequest**](GetPublicKeyRequest.md)| | + +### Return type + +[**GetPublicKeyResponse**](GetPublicKeyResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletIssueAssetPost** +> AsyncTaskCreatedResponse WalletIssueAssetPost(ctx, issueAssetRequest) +Issue assets [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **issueAssetRequest** | [**IssueAssetRequest**](IssueAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **WalletTransferAssetPost** +> AsyncTaskCreatedResponse WalletTransferAssetPost(ctx, transferAssetRequest) +Transfer assets [async call] + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **transferAssetRequest** | [**TransferAssetRequest**](TransferAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/asset_transfers_dev_guide/go/sdk/git_push.sh b/asset_transfers_dev_guide/go/sdk/git_push.sh new file mode 100644 index 0000000..8442b80 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_issue_wallet_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytic_issue_wallet_tx.go new file mode 100644 index 0000000..40a4c0d --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_issue_wallet_tx.go @@ -0,0 +1,20 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticIssueWalletTx struct { + IsIncoming bool `json:"is_incoming,omitempty"` + IssuedBySelf bool `json:"issued_by_self,omitempty"` + Memo string `json:"memo,omitempty"` + RecipientAddress string `json:"recipient_address,omitempty"` + AssetId int32 `json:"asset_id,omitempty"` + Amount int32 `json:"amount,omitempty"` + IsConfidential bool `json:"is_confidential,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_rule_wallet_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytic_rule_wallet_tx.go new file mode 100644 index 0000000..6026557 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_rule_wallet_tx.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticRuleWalletTx struct { + SignedBySelf bool `json:"signed_by_self,omitempty"` + RuleAffectSelf bool `json:"rule_affect_self,omitempty"` + TxSigner string `json:"tx_signer,omitempty"` + Rule AnalyticsRuleWalletDefinition `json:"rule,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_transaction.go b/asset_transfers_dev_guide/go/sdk/model_analytic_transaction.go new file mode 100644 index 0000000..a94b9bb --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_transaction.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticTransaction struct { + Metadata AnalyticsTxMetadata `json:"metadata,omitempty"` + Content map[string]interface{} `json:"content,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_transfer_wallet_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytic_transfer_wallet_tx.go new file mode 100644 index 0000000..779546e --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_transfer_wallet_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticTransferWalletTx struct { + IsIncoming bool `json:"is_incoming,omitempty"` + Memo string `json:"memo,omitempty"` + RecipientAddress string `json:"recipient_address,omitempty"` + AssetId int32 `json:"asset_id,omitempty"` + Amount int32 `json:"amount,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_metadata.go b/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_metadata.go new file mode 100644 index 0000000..85ca73e --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_metadata.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticWalletMetadata struct { + Type string `json:"type,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + Timestamp string `json:"timestamp,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_tx.go new file mode 100644 index 0000000..263ea97 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytic_wallet_tx.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticWalletTx struct { + Metadata AnalyticWalletMetadata `json:"metadata,omitempty"` + Content map[string]interface{} `json:"content,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_asset_converter_proof_description.go b/asset_transfers_dev_guide/go/sdk/model_analytics_asset_converter_proof_description.go new file mode 100644 index 0000000..4d01656 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_asset_converter_proof_description.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsAssetConverterProofDescription struct { + InputCv string `json:"input_cv,omitempty"` + AmountCv string `json:"amount_cv,omitempty"` + AssetCv string `json:"asset_cv,omitempty"` + Zkproof string `json:"zkproof,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_confidential_issuance_description.go b/asset_transfers_dev_guide/go/sdk/model_analytics_confidential_issuance_description.go new file mode 100644 index 0000000..cfff46f --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_confidential_issuance_description.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsConfidentialIssuanceDescription struct { + InputCv string `json:"input_cv,omitempty"` + Zkproof string `json:"zkproof,omitempty"` + Rule AnalyticsRule `json:"rule,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_content.go b/asset_transfers_dev_guide/go/sdk/model_analytics_content.go new file mode 100644 index 0000000..3bac6a8 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_content.go @@ -0,0 +1,14 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsContent struct { + TxType string `json:"tx_type"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx.go new file mode 100644 index 0000000..1f3b29e --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsIssueTx struct { + Outputs []AnalyticsOutput `json:"outputs,omitempty"` + PublicKey string `json:"public_key,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx_all_of.go b/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx_all_of.go new file mode 100644 index 0000000..ea39829 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_issue_tx_all_of.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsIssueTxAllOf struct { + Outputs []AnalyticsOutput `json:"outputs,omitempty"` + PublicKey string `json:"public_key,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_output.go b/asset_transfers_dev_guide/go/sdk/model_analytics_output.go new file mode 100644 index 0000000..7bf91f2 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_output.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsOutput struct { + IsConfidential bool `json:"is_confidential,omitempty"` + PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description,omitempty"` + ConfidentialIssuanceDescription AnalyticsConfidentialIssuanceDescription `json:"confidential_issuance_description,omitempty"` + OutputDescription AnalyticsOutputDescription `json:"output_description,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_output_description.go b/asset_transfers_dev_guide/go/sdk/model_analytics_output_description.go new file mode 100644 index 0000000..947dfeb --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_output_description.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsOutputDescription struct { + Cv string `json:"cv,omitempty"` + Cm string `json:"cm,omitempty"` + Epk string `json:"epk,omitempty"` + Zkproof string `json:"zkproof,omitempty"` + EncNote string `json:"enc_note,omitempty"` + EncSender string `json:"enc_sender,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_public_issuance_description.go b/asset_transfers_dev_guide/go/sdk/model_analytics_public_issuance_description.go new file mode 100644 index 0000000..cfa66af --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_public_issuance_description.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsPublicIssuanceDescription struct { + AssetId int32 `json:"asset_id"` + Amount int32 `json:"amount"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_rule.go b/asset_transfers_dev_guide/go/sdk/model_analytics_rule.go new file mode 100644 index 0000000..4e33f22 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_rule.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRule struct { + MinId int32 `json:"min_id"` + MaxId int32 `json:"max_id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_rule_definition.go b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_definition.go new file mode 100644 index 0000000..93c5deb --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_definition.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleDefinition struct { + PublicKey string `json:"public_key,omitempty"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx.go new file mode 100644 index 0000000..dc5eca0 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleTx struct { + SenderPublicKey string `json:"sender_public_key,omitempty"` + RulesToAdd []AnalyticsRuleDefinition `json:"rules_to_add,omitempty"` + RulesToDelete []AnalyticsRuleDefinition `json:"rules_to_delete,omitempty"` + Nonce int32 `json:"nonce,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx_all_of.go b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx_all_of.go new file mode 100644 index 0000000..0c33db5 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_tx_all_of.go @@ -0,0 +1,18 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleTxAllOf struct { + SenderPublicKey string `json:"sender_public_key,omitempty"` + RulesToAdd AnalyticsRuleDefinition `json:"rules_to_add,omitempty"` + RulesToDelete AnalyticsRuleDefinition `json:"rules_to_delete,omitempty"` + Nonce int32 `json:"nonce,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_rule_wallet_definition.go b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_wallet_definition.go new file mode 100644 index 0000000..dbda7b4 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_rule_wallet_definition.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleWalletDefinition struct { + PublicKey string `json:"public_key,omitempty"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + Operation string `json:"operation,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_spend_description.go b/asset_transfers_dev_guide/go/sdk/model_analytics_spend_description.go new file mode 100644 index 0000000..9eec7e3 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_spend_description.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsSpendDescription struct { + Cv string `json:"cv,omitempty"` + Anchor string `json:"anchor,omitempty"` + Nullifier string `json:"nullifier,omitempty"` + RkOut string `json:"rk_out,omitempty"` + Zkproof string `json:"zkproof,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx.go b/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx.go new file mode 100644 index 0000000..4995847 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTransferTx struct { + AssetConverterDescriptions []AnalyticsAssetConverterProofDescription `json:"asset_converter_descriptions,omitempty"` + Spends []AnalyticsSpendDescription `json:"spends,omitempty"` + Outputs []AnalyticsOutputDescription `json:"outputs,omitempty"` + BindingSig string `json:"binding_sig,omitempty"` + SpendAuthSigs []string `json:"spend_auth_sigs,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx_all_of.go b/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx_all_of.go new file mode 100644 index 0000000..78cdc07 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_transfer_tx_all_of.go @@ -0,0 +1,18 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTransferTxAllOf struct { + AssetConverterDescriptions AnalyticsAssetConverterProofDescription `json:"asset_converter_descriptions,omitempty"` + Spends []AnalyticsSpendDescription `json:"spends,omitempty"` + Outputs []AnalyticsOutputDescription `json:"outputs,omitempty"` + BindingSig string `json:"binding_sig,omitempty"` + SpendAuthSigs []string `json:"spend_auth_sigs,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_analytics_tx_metadata.go b/asset_transfers_dev_guide/go/sdk/model_analytics_tx_metadata.go new file mode 100644 index 0000000..dda9058 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_analytics_tx_metadata.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTxMetadata struct { + Type string `json:"type,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + BlockHash string `json:"block_hash,omitempty"` + Timestamp string `json:"timestamp,omitempty"` + IndexInBlock int32 `json:"index_in_block,omitempty"` + BlockHeight int32 `json:"block_height,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_async_task_created_response.go b/asset_transfers_dev_guide/go/sdk/model_async_task_created_response.go new file mode 100644 index 0000000..3ad501c --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_async_task_created_response.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AsyncTaskCreatedResponse struct { + Id string `json:"id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_balance_for_asset.go b/asset_transfers_dev_guide/go/sdk/model_balance_for_asset.go new file mode 100644 index 0000000..30e796a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_balance_for_asset.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type BalanceForAsset struct { + AssetId int32 `json:"asset_id"` + Amount int32 `json:"amount"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_block.go b/asset_transfers_dev_guide/go/sdk/model_block.go new file mode 100644 index 0000000..d0e6a25 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_block.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.2 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type Block struct { + BlockHash string `json:"block_hash"` + Height int32 `json:"height"` + Transactions []string `json:"transactions"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_confidential_analytics_output.go b/asset_transfers_dev_guide/go/sdk/model_confidential_analytics_output.go new file mode 100644 index 0000000..25683d6 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_confidential_analytics_output.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ConfidentialAnalyticsOutput struct { + IsConfidential bool `json:"is_confidential"` + OutputDescription AnalyticsOutputDescription `json:"output_description"` + ConfidentialIssuanceDescription AnalyticsConfidentialIssuanceDescription `json:"confidential_issuance_description"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_create_rule_request.go b/asset_transfers_dev_guide/go/sdk/model_create_rule_request.go new file mode 100644 index 0000000..2330254 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_create_rule_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type CreateRuleRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` + RulesToAdd []Rule `json:"rules_to_add"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_delete_rule_request.go b/asset_transfers_dev_guide/go/sdk/model_delete_rule_request.go new file mode 100644 index 0000000..ce97fbb --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_delete_rule_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type DeleteRuleRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` + RulesToDelete []Rule `json:"rules_to_delete"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_delete_wallet_request.go b/asset_transfers_dev_guide/go/sdk/model_delete_wallet_request.go new file mode 100644 index 0000000..66c0c2c --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_delete_wallet_request.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type DeleteWalletRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_error_response.go b/asset_transfers_dev_guide/go/sdk/model_error_response.go new file mode 100644 index 0000000..21022a6 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_error_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ErrorResponse struct { + ErrorCode int32 `json:"error_code"` + Message string `json:"message,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_export_wallet_request.go b/asset_transfers_dev_guide/go/sdk/model_export_wallet_request.go new file mode 100644 index 0000000..e42cad0 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_export_wallet_request.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ExportWalletRequest struct { + WalletId string `json:"wallet_id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_export_wallet_response.go b/asset_transfers_dev_guide/go/sdk/model_export_wallet_response.go new file mode 100644 index 0000000..7471f78 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_export_wallet_response.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ExportWalletResponse struct { + WalletId string `json:"wallet_id"` + EncryptedSk string `json:"encrypted_sk"` + Salt string `json:"salt"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_generate_wallet_request.go b/asset_transfers_dev_guide/go/sdk/model_generate_wallet_request.go new file mode 100644 index 0000000..0b0b127 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_generate_wallet_request.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GenerateWalletRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_activity_request.go b/asset_transfers_dev_guide/go/sdk/model_get_activity_request.go new file mode 100644 index 0000000..b6abcfc --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_activity_request.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetActivityRequest struct { + WalletId string `json:"wallet_id"` + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_activity_response.go b/asset_transfers_dev_guide/go/sdk/model_get_activity_response.go new file mode 100644 index 0000000..9189b96 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_activity_response.go @@ -0,0 +1,15 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetActivityResponse struct { + WalletId string `json:"wallet_id"` + Transactions []TransactionsForWallet `json:"transactions"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_all_wallets_response.go b/asset_transfers_dev_guide/go/sdk/model_get_all_wallets_response.go new file mode 100644 index 0000000..c2627d2 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_all_wallets_response.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetAllWalletsResponse struct { + WalletIds []string `json:"wallet_ids,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_blocks_request.go b/asset_transfers_dev_guide/go/sdk/model_get_blocks_request.go new file mode 100644 index 0000000..3162c37 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_blocks_request.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetBlocksRequest struct { + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_blocks_response.go b/asset_transfers_dev_guide/go/sdk/model_get_blocks_response.go new file mode 100644 index 0000000..6c0328b --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_blocks_response.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetBlocksResponse struct { + Blocks []Block `json:"blocks"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_network_activity_request.go b/asset_transfers_dev_guide/go/sdk/model_get_network_activity_request.go new file mode 100644 index 0000000..17216fe --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_network_activity_request.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetNetworkActivityRequest struct { + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_network_activity_response.go b/asset_transfers_dev_guide/go/sdk/model_get_network_activity_response.go new file mode 100644 index 0000000..9100469 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_network_activity_response.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetNetworkActivityResponse struct { + Transactions []AnalyticTransaction `json:"transactions,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_new_address_request.go b/asset_transfers_dev_guide/go/sdk/model_get_new_address_request.go new file mode 100644 index 0000000..8813543 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_new_address_request.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetNewAddressRequest struct { + WalletId string `json:"wallet_id"` + Diversifier string `json:"diversifier,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_new_address_response.go b/asset_transfers_dev_guide/go/sdk/model_get_new_address_response.go new file mode 100644 index 0000000..b864b19 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_new_address_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetNewAddressResponse struct { + WalletId string `json:"wallet_id"` + RecipientAddress string `json:"recipient_address"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_public_key_request.go b/asset_transfers_dev_guide/go/sdk/model_get_public_key_request.go new file mode 100644 index 0000000..674452a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_public_key_request.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetPublicKeyRequest struct { + WalletId string `json:"wallet_id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_public_key_response.go b/asset_transfers_dev_guide/go/sdk/model_get_public_key_response.go new file mode 100644 index 0000000..24ca737 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_public_key_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetPublicKeyResponse struct { + WalletId string `json:"wallet_id"` + PublicKey string `json:"public_key"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_rules_response.go b/asset_transfers_dev_guide/go/sdk/model_get_rules_response.go new file mode 100644 index 0000000..0c8b452 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_rules_response.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetRulesResponse struct { + Rules []Rule `json:"rules,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_task_status_request.go b/asset_transfers_dev_guide/go/sdk/model_get_task_status_request.go new file mode 100644 index 0000000..3f83356 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_task_status_request.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetTaskStatusRequest struct { + Id string `json:"id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_task_status_response.go b/asset_transfers_dev_guide/go/sdk/model_get_task_status_response.go new file mode 100644 index 0000000..06be5e2 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_task_status_response.go @@ -0,0 +1,21 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetTaskStatusResponse struct { + Id string `json:"id,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` + Result string `json:"result,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + Type string `json:"type,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Error string `json:"error,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_transactions_request.go b/asset_transfers_dev_guide/go/sdk/model_get_transactions_request.go new file mode 100644 index 0000000..8405437 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_transactions_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetTransactionsRequest struct { + WalletId string `json:"wallet_id"` + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_transactions_response.go b/asset_transfers_dev_guide/go/sdk/model_get_transactions_response.go new file mode 100644 index 0000000..51d96ba --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_transactions_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetTransactionsResponse struct { + WalletId string `json:"wallet_id"` + Transactions []TransactionsForWallet `json:"transactions"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_request.go b/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_request.go new file mode 100644 index 0000000..858dc4a --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletActivityRequest struct { + WalletId string `json:"wallet_id"` + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_response.go b/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_response.go new file mode 100644 index 0000000..94a5e03 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_wallet_activity_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletActivityResponse struct { + WalletId string `json:"wallet_id,omitempty"` + Transactions []AnalyticWalletTx `json:"transactions,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_request.go b/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_request.go new file mode 100644 index 0000000..0506924 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_request.go @@ -0,0 +1,14 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletBalanceRequest struct { + WalletId string `json:"wallet_id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_response.go b/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_response.go new file mode 100644 index 0000000..0054c1d --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_get_wallet_balance_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletBalanceResponse struct { + WalletId string `json:"wallet_id"` + Assets []BalanceForAsset `json:"assets"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_healthcheck_response.go b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response.go new file mode 100644 index 0000000..9d7d457 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponse struct { + Version string `json:"version,omitempty"` + BlockchainConnector HealthcheckResponseItem `json:"blockchain_connector,omitempty"` + MessageQueue HealthcheckResponseItem `json:"message_queue,omitempty"` + Database HealthcheckResponseItem `json:"database,omitempty"` + Passing bool `json:"passing,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_blockchain_connector.go b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_blockchain_connector.go new file mode 100644 index 0000000..40392c8 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_blockchain_connector.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponseBlockchainConnector struct { + Passing bool `json:"passing,omitempty"` + Error string `json:"error,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_item.go b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_item.go new file mode 100644 index 0000000..bae6af2 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_healthcheck_response_item.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponseItem struct { + Passing bool `json:"passing,omitempty"` + Error string `json:"error,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_import_wallet_request.go b/asset_transfers_dev_guide/go/sdk/model_import_wallet_request.go new file mode 100644 index 0000000..5b25c65 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_import_wallet_request.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ImportWalletRequest struct { + WalletId string `json:"wallet_id"` + EncryptedSk string `json:"encrypted_sk"` + Authorization string `json:"authorization"` + Salt string `json:"salt"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_issue_asset_request.go b/asset_transfers_dev_guide/go/sdk/model_issue_asset_request.go new file mode 100644 index 0000000..e7a1a39 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_issue_asset_request.go @@ -0,0 +1,20 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type IssueAssetRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` + RecipientAddress string `json:"recipient_address"` + Amount int32 `json:"amount"` + AssetId int32 `json:"asset_id"` + Confidential bool `json:"confidential"` + Memo string `json:"memo"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_public_analytics_output.go b/asset_transfers_dev_guide/go/sdk/model_public_analytics_output.go new file mode 100644 index 0000000..fc1f342 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_public_analytics_output.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type PublicAnalyticsOutput struct { + IsConfidential bool `json:"is_confidential"` + OutputDescription AnalyticsOutputDescription `json:"output_description"` + PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_rule.go b/asset_transfers_dev_guide/go/sdk/model_rule.go new file mode 100644 index 0000000..5e41442 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_rule.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type Rule struct { + PublicKey string `json:"public_key"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_transactions_for_wallet.go b/asset_transfers_dev_guide/go/sdk/model_transactions_for_wallet.go new file mode 100644 index 0000000..e5bf1fc --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_transactions_for_wallet.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type TransactionsForWallet struct { + IsIncoming bool `json:"is_incoming"` + AssetId int32 `json:"asset_id"` + Amount int32 `json:"amount"` + RecipientAddress string `json:"recipient_address"` + Memo string `json:"memo"` + Id string `json:"id"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_transfer_asset_request.go b/asset_transfers_dev_guide/go/sdk/model_transfer_asset_request.go new file mode 100644 index 0000000..2778c40 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_transfer_asset_request.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type TransferAssetRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` + RecipientAddress string `json:"recipient_address"` + Amount int32 `json:"amount"` + AssetId int32 `json:"asset_id"` + Memo string `json:"memo"` +} diff --git a/asset_transfers_dev_guide/go/sdk/model_unlock_wallet_request.go b/asset_transfers_dev_guide/go/sdk/model_unlock_wallet_request.go new file mode 100644 index 0000000..1121f6f --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/model_unlock_wallet_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type UnlockWalletRequest struct { + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` + Seconds int32 `json:"seconds"` +} diff --git a/asset_transfers_dev_guide/go/sdk/response.go b/asset_transfers_dev_guide/go/sdk/response.go new file mode 100644 index 0000000..5a869c2 --- /dev/null +++ b/asset_transfers_dev_guide/go/sdk/response.go @@ -0,0 +1,43 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/asset_transfers_dev_guide/js/openapi_config.json b/asset_transfers_dev_guide/js/openapi_config.json new file mode 100644 index 0000000..497c332 --- /dev/null +++ b/asset_transfers_dev_guide/js/openapi_config.json @@ -0,0 +1,5 @@ +{ + "useES6": false, + "usePromises": true, + "projectName": "qed-it-asset-transfers" +} \ No newline at end of file diff --git a/asset_transfers_dev_guide/js/sdk/.openapi-generator-ignore b/asset_transfers_dev_guide/js/sdk/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/asset_transfers_dev_guide/js/sdk/.openapi-generator/VERSION b/asset_transfers_dev_guide/js/sdk/.openapi-generator/VERSION new file mode 100644 index 0000000..3f09e91 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/.openapi-generator/VERSION @@ -0,0 +1 @@ +3.3.3 \ No newline at end of file diff --git a/asset_transfers_dev_guide/js/sdk/.travis.yml b/asset_transfers_dev_guide/js/sdk/.travis.yml new file mode 100644 index 0000000..e49f469 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "6" + - "6.1" + - "5" + - "5.11" + diff --git a/asset_transfers_dev_guide/js/sdk/README.md b/asset_transfers_dev_guide/js/sdk/README.md new file mode 100644 index 0000000..371e111 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/README.md @@ -0,0 +1,205 @@ +# qed-it-asset-transfers + +QedItAssetTransfers - JavaScript client for qed-it-asset-transfers +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.3.0 +- Package version: 1.3.0 +- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen + +## Installation + +### For [Node.js](https://nodejs.org/) + +#### npm + +To publish the library as a [npm](https://www.npmjs.com/), +please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages). + +Then install it via: + +```shell +npm install qed-it-asset-transfers --save +``` + +##### Local development + +To use the library locally without publishing to a remote npm registry, first install the dependencies by changing +into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run: + +```shell +npm install +``` + +Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`: + +```shell +npm link +``` + +Finally, switch to the directory you want to use your qed-it-asset-transfers from, and run: + +```shell +npm link /path/to/ +``` + +You should now be able to `require('qed-it-asset-transfers')` in javascript files from the directory you ran the last +command above from. + +#### git +# +If the library is hosted at a git repository, e.g. +https://github.com/GIT_USER_ID/GIT_REPO_ID +then install it via: + +```shell + npm install GIT_USER_ID/GIT_REPO_ID --save +``` + +### For browser + +The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following +the above steps with Node.js and installing browserify with `npm install -g browserify`, +perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually +use this library): + +```shell +browserify main.js > bundle.js +``` + +Then include *bundle.js* in the HTML pages. + +### Webpack Configuration + +Using Webpack you may encounter the following error: "Module not found: Error: +Cannot resolve module", most certainly you should disable AMD loader. Add/merge +the following section to your webpack config: + +```javascript +module: { + rules: [ + { + parser: { + amd: false + } + } + ] +} +``` + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following JS code: + +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); + +var defaultClient = QedItAssetTransfers.ApiClient.instance; + +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = "YOUR API KEY" +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix['x-auth-token'] = "Token" + +var api = new QedItAssetTransfers.AnalyticsApi() +var getNetworkActivityRequest = new QedItAssetTransfers.GetNetworkActivityRequest(); // {GetNetworkActivityRequest} +api.analyticsGetNetworkActivityPost(getNetworkActivityRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost:12052* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*QedItAssetTransfers.AnalyticsApi* | [**analyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks +*QedItAssetTransfers.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services +*QedItAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a wallet +*QedItAssetTransfers.NodeApi* | [**nodeExportWalletPost**](docs/NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key +*QedItAssetTransfers.NodeApi* | [**nodeGenerateWalletPost**](docs/NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new wallet +*QedItAssetTransfers.NodeApi* | [**nodeGetAllWalletsPost**](docs/NodeApi.md#nodeGetAllWalletsPost) | **POST** /node/get_all_wallets | Get all wallet labels +*QedItAssetTransfers.NodeApi* | [**nodeGetRulesPost**](docs/NodeApi.md#nodeGetRulesPost) | **POST** /node/get_rules | Get network governance rules +*QedItAssetTransfers.NodeApi* | [**nodeGetTaskStatusPost**](docs/NodeApi.md#nodeGetTaskStatusPost) | **POST** /node/get_task_status | Get all tasks in the node +*QedItAssetTransfers.NodeApi* | [**nodeImportWalletPost**](docs/NodeApi.md#nodeImportWalletPost) | **POST** /node/import_wallet | Import wallet from secret key +*QedItAssetTransfers.NodeApi* | [**nodeUnlockWalletPost**](docs/NodeApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +*QedItAssetTransfers.WalletApi* | [**walletCreateRulePost**](docs/WalletApi.md#walletCreateRulePost) | **POST** /wallet/create_rule | Create & broadcast add-config-rule [async call] +*QedItAssetTransfers.WalletApi* | [**walletDeleteRulePost**](docs/WalletApi.md#walletDeleteRulePost) | **POST** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +*QedItAssetTransfers.WalletApi* | [**walletGetActivityPost**](docs/WalletApi.md#walletGetActivityPost) | **POST** /wallet/get_activity | Get wallet activity (transactions) +*QedItAssetTransfers.WalletApi* | [**walletGetBalancesPost**](docs/WalletApi.md#walletGetBalancesPost) | **POST** /wallet/get_balances | Get wallets balance +*QedItAssetTransfers.WalletApi* | [**walletGetNewAddressPost**](docs/WalletApi.md#walletGetNewAddressPost) | **POST** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly +*QedItAssetTransfers.WalletApi* | [**walletGetPublicKeyPost**](docs/WalletApi.md#walletGetPublicKeyPost) | **POST** /wallet/get_public_key | Get wallet public key +*QedItAssetTransfers.WalletApi* | [**walletIssueAssetPost**](docs/WalletApi.md#walletIssueAssetPost) | **POST** /wallet/issue_asset | Issue assets [async call] +*QedItAssetTransfers.WalletApi* | [**walletTransferAssetPost**](docs/WalletApi.md#walletTransferAssetPost) | **POST** /wallet/transfer_asset | Transfer assets [async call] + + +## Documentation for Models + + - [QedItAssetTransfers.AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) + - [QedItAssetTransfers.AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) + - [QedItAssetTransfers.AnalyticTransaction](docs/AnalyticTransaction.md) + - [QedItAssetTransfers.AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) + - [QedItAssetTransfers.AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) + - [QedItAssetTransfers.AnalyticWalletTx](docs/AnalyticWalletTx.md) + - [QedItAssetTransfers.AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) + - [QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) + - [QedItAssetTransfers.AnalyticsIssueTx](docs/AnalyticsIssueTx.md) + - [QedItAssetTransfers.AnalyticsOutput](docs/AnalyticsOutput.md) + - [QedItAssetTransfers.AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) + - [QedItAssetTransfers.AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) + - [QedItAssetTransfers.AnalyticsRule](docs/AnalyticsRule.md) + - [QedItAssetTransfers.AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) + - [QedItAssetTransfers.AnalyticsRuleTx](docs/AnalyticsRuleTx.md) + - [QedItAssetTransfers.AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) + - [QedItAssetTransfers.AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) + - [QedItAssetTransfers.AnalyticsTransferTx](docs/AnalyticsTransferTx.md) + - [QedItAssetTransfers.AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) + - [QedItAssetTransfers.AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) + - [QedItAssetTransfers.BalanceForAsset](docs/BalanceForAsset.md) + - [QedItAssetTransfers.CreateRuleRequest](docs/CreateRuleRequest.md) + - [QedItAssetTransfers.DeleteRuleRequest](docs/DeleteRuleRequest.md) + - [QedItAssetTransfers.DeleteWalletRequest](docs/DeleteWalletRequest.md) + - [QedItAssetTransfers.ErrorResponse](docs/ErrorResponse.md) + - [QedItAssetTransfers.ExportWalletRequest](docs/ExportWalletRequest.md) + - [QedItAssetTransfers.ExportWalletResponse](docs/ExportWalletResponse.md) + - [QedItAssetTransfers.GenerateWalletRequest](docs/GenerateWalletRequest.md) + - [QedItAssetTransfers.GetAllWalletsResponse](docs/GetAllWalletsResponse.md) + - [QedItAssetTransfers.GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) + - [QedItAssetTransfers.GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) + - [QedItAssetTransfers.GetNewAddressRequest](docs/GetNewAddressRequest.md) + - [QedItAssetTransfers.GetNewAddressResponse](docs/GetNewAddressResponse.md) + - [QedItAssetTransfers.GetPublicKeyRequest](docs/GetPublicKeyRequest.md) + - [QedItAssetTransfers.GetPublicKeyResponse](docs/GetPublicKeyResponse.md) + - [QedItAssetTransfers.GetRulesResponse](docs/GetRulesResponse.md) + - [QedItAssetTransfers.GetTaskStatusRequest](docs/GetTaskStatusRequest.md) + - [QedItAssetTransfers.GetTaskStatusResponse](docs/GetTaskStatusResponse.md) + - [QedItAssetTransfers.GetWalletActivityRequest](docs/GetWalletActivityRequest.md) + - [QedItAssetTransfers.GetWalletActivityResponse](docs/GetWalletActivityResponse.md) + - [QedItAssetTransfers.GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) + - [QedItAssetTransfers.GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) + - [QedItAssetTransfers.HealthcheckResponse](docs/HealthcheckResponse.md) + - [QedItAssetTransfers.HealthcheckResponseItem](docs/HealthcheckResponseItem.md) + - [QedItAssetTransfers.ImportWalletRequest](docs/ImportWalletRequest.md) + - [QedItAssetTransfers.IssueAssetRequest](docs/IssueAssetRequest.md) + - [QedItAssetTransfers.Rule](docs/Rule.md) + - [QedItAssetTransfers.TransactionsForWallet](docs/TransactionsForWallet.md) + - [QedItAssetTransfers.TransferAssetRequest](docs/TransferAssetRequest.md) + - [QedItAssetTransfers.UnlockWalletRequest](docs/UnlockWalletRequest.md) + + +## Documentation for Authorization + + +### ApiKeyAuth + +- **Type**: API key +- **API key parameter name**: x-auth-token +- **Location**: HTTP header + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticIssueWalletTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticIssueWalletTx.md new file mode 100644 index 0000000..7c7baf7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticIssueWalletTx.md @@ -0,0 +1,14 @@ +# QedItAssetTransfers.AnalyticIssueWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isIncoming** | **Boolean** | | [optional] +**issuedBySelf** | **Boolean** | | [optional] +**memo** | **String** | | [optional] +**recipientAddress** | **String** | | [optional] +**assetId** | **Number** | | [optional] +**amount** | **Number** | | [optional] +**isConfidential** | **Boolean** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticRuleWalletTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticRuleWalletTx.md new file mode 100644 index 0000000..7ab0c10 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticRuleWalletTx.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticRuleWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signedBySelf** | **Boolean** | | [optional] +**ruleAffectSelf** | **Boolean** | | [optional] +**txSigner** | **String** | | [optional] +**rule** | [**AnalyticsRuleWalletDefinition**](AnalyticsRuleWalletDefinition.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransaction.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransaction.md new file mode 100644 index 0000000..d9d1a51 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransaction.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**AnalyticsTxMetadata**](AnalyticsTxMetadata.md) | | [optional] +**content** | **Object** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransferWalletTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransferWalletTx.md new file mode 100644 index 0000000..173e2ab --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticTransferWalletTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticTransferWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isIncoming** | **Boolean** | | [optional] +**memo** | **String** | | [optional] +**recipientAddress** | **String** | | [optional] +**assetId** | **Number** | | [optional] +**amount** | **Number** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletMetadata.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletMetadata.md new file mode 100644 index 0000000..b937f71 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletMetadata.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticWalletMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**txHash** | **String** | | [optional] +**timestamp** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletTx.md new file mode 100644 index 0000000..02ddc16 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticWalletTx.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**AnalyticWalletMetadata**](AnalyticWalletMetadata.md) | | [optional] +**content** | **Object** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsApi.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsApi.md new file mode 100644 index 0000000..91329aa --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsApi.md @@ -0,0 +1,54 @@ +# QedItAssetTransfers.AnalyticsApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**analyticsGetNetworkActivityPost**](AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks + + + +# **analyticsGetNetworkActivityPost** +> GetNetworkActivityResponse analyticsGetNetworkActivityPost(getNetworkActivityRequest) + +Get details on past blocks + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AnalyticsApi(); +var getNetworkActivityRequest = new QedItAssetTransfers.GetNetworkActivityRequest(); // GetNetworkActivityRequest | +apiInstance.analyticsGetNetworkActivityPost(getNetworkActivityRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getNetworkActivityRequest** | [**GetNetworkActivityRequest**](GetNetworkActivityRequest.md)| | + +### Return type + +[**GetNetworkActivityResponse**](GetNetworkActivityResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsAssetConverterProofDescription.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsAssetConverterProofDescription.md new file mode 100644 index 0000000..35a6a74 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsAssetConverterProofDescription.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticsAssetConverterProofDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inputCv** | **String** | | [optional] +**amountCv** | **String** | | [optional] +**assetCv** | **String** | | [optional] +**zkproof** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md new file mode 100644 index 0000000..0eccaae --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inputCv** | **String** | | [optional] +**zkproof** | **String** | | [optional] +**rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsContent.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsContent.md new file mode 100644 index 0000000..c0b130b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsContent.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.AnalyticsContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**txType** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsIssueTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsIssueTx.md new file mode 100644 index 0000000..900d011 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsIssueTx.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticsIssueTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outputs** | [**[AnalyticsOutput]**](AnalyticsOutput.md) | | [optional] +**publicKey** | **String** | | [optional] +**signature** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutput.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutput.md new file mode 100644 index 0000000..4afccb2 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutput.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isConfidential** | **Boolean** | | [optional] +**publicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | [optional] +**confidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | [optional] +**outputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutputDescription.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutputDescription.md new file mode 100644 index 0000000..e60f773 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsOutputDescription.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsOutputDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cv** | **String** | | [optional] +**cm** | **String** | | [optional] +**epk** | **String** | | [optional] +**zkproof** | **String** | | [optional] +**encNote** | **String** | | [optional] +**encSender** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsPublicIssuanceDescription.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsPublicIssuanceDescription.md new file mode 100644 index 0000000..6374187 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticsPublicIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetId** | **Number** | | +**amount** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRule.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRule.md new file mode 100644 index 0000000..20f95a8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRule.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticsRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minId** | **Number** | | +**maxId** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleDefinition.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleDefinition.md new file mode 100644 index 0000000..d33f39e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleDefinition.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsRuleDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicKey** | **String** | | [optional] +**canIssueConfidentially** | **Boolean** | | [optional] +**isAdmin** | **Boolean** | | [optional] +**canIssueAssetIdFirst** | **Number** | | [optional] +**canIssueAssetIdLast** | **Number** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleTx.md new file mode 100644 index 0000000..7251454 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsRuleTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**senderPublicKey** | **String** | | [optional] +**rulesToAdd** | [**[AnalyticsRuleDefinition]**](AnalyticsRuleDefinition.md) | | [optional] +**rulesToDelete** | [**[AnalyticsRuleDefinition]**](AnalyticsRuleDefinition.md) | | [optional] +**nonce** | **Number** | | [optional] +**signature** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleWalletDefinition.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleWalletDefinition.md new file mode 100644 index 0000000..5c11f6b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsRuleWalletDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicKey** | **String** | | [optional] +**canIssueConfidentially** | **Boolean** | | [optional] +**isAdmin** | **Boolean** | | [optional] +**canIssueAssetIdFirst** | **Number** | | [optional] +**canIssueAssetIdLast** | **Number** | | [optional] +**operation** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsSpendDescription.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsSpendDescription.md new file mode 100644 index 0000000..85a093d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsSpendDescription.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsSpendDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cv** | **String** | | [optional] +**anchor** | **String** | | [optional] +**nullifier** | **String** | | [optional] +**rkOut** | **String** | | [optional] +**zkproof** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTransferTx.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTransferTx.md new file mode 100644 index 0000000..de26ca0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTransferTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsTransferTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetConverterDescriptions** | [**[AnalyticsAssetConverterProofDescription]**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**spends** | [**[AnalyticsSpendDescription]**](AnalyticsSpendDescription.md) | | [optional] +**outputs** | [**[AnalyticsOutputDescription]**](AnalyticsOutputDescription.md) | | [optional] +**bindingSig** | **String** | | [optional] +**spendAuthSigs** | **[String]** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTxMetadata.md b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTxMetadata.md new file mode 100644 index 0000000..53170ff --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AnalyticsTxMetadata.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsTxMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**txHash** | **String** | | [optional] +**blockHash** | **String** | | [optional] +**timestamp** | **String** | | [optional] +**indexInBlock** | **Number** | | [optional] +**blockHeight** | **Number** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AsyncApi.md b/asset_transfers_dev_guide/js/sdk/docs/AsyncApi.md new file mode 100644 index 0000000..97d989c --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AsyncApi.md @@ -0,0 +1,238 @@ +# QedItAssetTransfers.AsyncApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**nodeUnlockWalletPost**](AsyncApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] +[**walletCreateRulePost**](AsyncApi.md#walletCreateRulePost) | **POST** /wallet/create_rule | Create & broadcast add-config-rule [async call] +[**walletDeleteRulePost**](AsyncApi.md#walletDeleteRulePost) | **POST** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +[**walletIssueAssetPost**](AsyncApi.md#walletIssueAssetPost) | **POST** /wallet/issue_asset | Issue assets [async call] +[**walletTransferAssetPost**](AsyncApi.md#walletTransferAssetPost) | **POST** /wallet/transfer_asset | Transfer assets [async call] + + + +# **nodeUnlockWalletPost** +> AsyncTaskCreatedResponse nodeUnlockWalletPost(unlockWalletRequest) + +Unlocks a wallet for a given amount of seconds [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AsyncApi(); +var unlockWalletRequest = new QedItAssetTransfers.UnlockWalletRequest(); // UnlockWalletRequest | +apiInstance.nodeUnlockWalletPost(unlockWalletRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **unlockWalletRequest** | [**UnlockWalletRequest**](UnlockWalletRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletCreateRulePost** +> AsyncTaskCreatedResponse walletCreateRulePost(createRuleRequest) + +Create & broadcast add-config-rule [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AsyncApi(); +var createRuleRequest = new QedItAssetTransfers.CreateRuleRequest(); // CreateRuleRequest | +apiInstance.walletCreateRulePost(createRuleRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createRuleRequest** | [**CreateRuleRequest**](CreateRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletDeleteRulePost** +> AsyncTaskCreatedResponse walletDeleteRulePost(deleteRuleRequest) + +Create & broadcast delete-config-rule [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AsyncApi(); +var deleteRuleRequest = new QedItAssetTransfers.DeleteRuleRequest(); // DeleteRuleRequest | +apiInstance.walletDeleteRulePost(deleteRuleRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteRuleRequest** | [**DeleteRuleRequest**](DeleteRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletIssueAssetPost** +> AsyncTaskCreatedResponse walletIssueAssetPost(issueAssetRequest) + +Issue assets [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AsyncApi(); +var issueAssetRequest = new QedItAssetTransfers.IssueAssetRequest(); // IssueAssetRequest | +apiInstance.walletIssueAssetPost(issueAssetRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **issueAssetRequest** | [**IssueAssetRequest**](IssueAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletTransferAssetPost** +> AsyncTaskCreatedResponse walletTransferAssetPost(transferAssetRequest) + +Transfer assets [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.AsyncApi(); +var transferAssetRequest = new QedItAssetTransfers.TransferAssetRequest(); // TransferAssetRequest | +apiInstance.walletTransferAssetPost(transferAssetRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferAssetRequest** | [**TransferAssetRequest**](TransferAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/asset_transfers_dev_guide/js/sdk/docs/AsyncTaskCreatedResponse.md b/asset_transfers_dev_guide/js/sdk/docs/AsyncTaskCreatedResponse.md new file mode 100644 index 0000000..864cec7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/AsyncTaskCreatedResponse.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.AsyncTaskCreatedResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/BalanceForAsset.md b/asset_transfers_dev_guide/js/sdk/docs/BalanceForAsset.md new file mode 100644 index 0000000..ac596e7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/BalanceForAsset.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.BalanceForAsset + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetId** | **Number** | | +**amount** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/Block.md b/asset_transfers_dev_guide/js/sdk/docs/Block.md new file mode 100644 index 0000000..8fcc46c --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/Block.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.Block + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockHash** | **String** | | +**height** | **Number** | | +**transactions** | **[String]** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/ConfidentialAnalyticsOutput.md b/asset_transfers_dev_guide/js/sdk/docs/ConfidentialAnalyticsOutput.md new file mode 100644 index 0000000..835e9de --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/ConfidentialAnalyticsOutput.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.ConfidentialAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**confidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/CreateRuleRequest.md b/asset_transfers_dev_guide/js/sdk/docs/CreateRuleRequest.md new file mode 100644 index 0000000..e932959 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/CreateRuleRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.CreateRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | +**rulesToAdd** | [**[Rule]**](Rule.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/DeleteRuleRequest.md b/asset_transfers_dev_guide/js/sdk/docs/DeleteRuleRequest.md new file mode 100644 index 0000000..7968cb0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/DeleteRuleRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.DeleteRuleRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | +**rulesToDelete** | [**[Rule]**](Rule.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/DeleteWalletRequest.md b/asset_transfers_dev_guide/js/sdk/docs/DeleteWalletRequest.md new file mode 100644 index 0000000..12805fb --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/DeleteWalletRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.DeleteWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/ErrorResponse.md b/asset_transfers_dev_guide/js/sdk/docs/ErrorResponse.md new file mode 100644 index 0000000..29649df --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/ErrorResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.ErrorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errorCode** | **Number** | | +**message** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/ExportWalletRequest.md b/asset_transfers_dev_guide/js/sdk/docs/ExportWalletRequest.md new file mode 100644 index 0000000..484f32a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/ExportWalletRequest.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.ExportWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/ExportWalletResponse.md b/asset_transfers_dev_guide/js/sdk/docs/ExportWalletResponse.md new file mode 100644 index 0000000..71ac6c5 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/ExportWalletResponse.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.ExportWalletResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**encryptedSk** | **String** | | +**salt** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GenerateWalletRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GenerateWalletRequest.md new file mode 100644 index 0000000..983628f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GenerateWalletRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GenerateWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetActivityRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetActivityRequest.md new file mode 100644 index 0000000..1f435a1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetActivityRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.GetActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetActivityResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetActivityResponse.md new file mode 100644 index 0000000..d3f30c7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetActivityResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**transactions** | [**[TransactionsForWallet]**](TransactionsForWallet.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetAllWalletsResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetAllWalletsResponse.md new file mode 100644 index 0000000..4c163f8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetAllWalletsResponse.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetAllWalletsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletIds** | **[String]** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetBlocksRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetBlocksRequest.md new file mode 100644 index 0000000..e0a35e4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetBlocksRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetBlocksRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetBlocksResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetBlocksResponse.md new file mode 100644 index 0000000..8dca7f8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetBlocksResponse.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetBlocksResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blocks** | [**[Block]**](Block.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityRequest.md new file mode 100644 index 0000000..756b08e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetNetworkActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityResponse.md new file mode 100644 index 0000000..1db00cf --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetNetworkActivityResponse.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetNetworkActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transactions** | [**[AnalyticTransaction]**](AnalyticTransaction.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressRequest.md new file mode 100644 index 0000000..95e3790 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressRequest.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetNewAddressRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**diversifier** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressResponse.md new file mode 100644 index 0000000..bbb340f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetNewAddressResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetNewAddressResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**recipientAddress** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyRequest.md new file mode 100644 index 0000000..637e32d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyRequest.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetPublicKeyRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyResponse.md new file mode 100644 index 0000000..8031a34 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetPublicKeyResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetPublicKeyResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**publicKey** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetRulesResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetRulesResponse.md new file mode 100644 index 0000000..c6f77f4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetRulesResponse.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetRulesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**[Rule]**](Rule.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusRequest.md new file mode 100644 index 0000000..925bac0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusRequest.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetTaskStatusRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusResponse.md new file mode 100644 index 0000000..3015924 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetTaskStatusResponse.md @@ -0,0 +1,15 @@ +# QedItAssetTransfers.GetTaskStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**createdAt** | **Date** | | [optional] +**updatedAt** | **Date** | | [optional] +**result** | **String** | | [optional] +**txHash** | **String** | | [optional] +**type** | **String** | | [optional] +**data** | **Object** | | [optional] +**error** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsRequest.md new file mode 100644 index 0000000..eb4cb44 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.GetTransactionsRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsResponse.md new file mode 100644 index 0000000..1c7d93b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetTransactionsResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetTransactionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**transactions** | [**[TransactionsForWallet]**](TransactionsForWallet.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityRequest.md new file mode 100644 index 0000000..14325ed --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.GetWalletActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityResponse.md new file mode 100644 index 0000000..520d5fc --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetWalletActivityResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetWalletActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | [optional] +**transactions** | [**[AnalyticWalletTx]**](AnalyticWalletTx.md) | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceRequest.md b/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceRequest.md new file mode 100644 index 0000000..2a6f101 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceRequest.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.GetWalletBalanceRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceResponse.md b/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceResponse.md new file mode 100644 index 0000000..6977641 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/GetWalletBalanceResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetWalletBalanceResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**assets** | [**[BalanceForAsset]**](BalanceForAsset.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/HealthApi.md b/asset_transfers_dev_guide/js/sdk/docs/HealthApi.md new file mode 100644 index 0000000..636e5e4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/HealthApi.md @@ -0,0 +1,50 @@ +# QedItAssetTransfers.HealthApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**healthPost**](HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services + + + +# **healthPost** +> HealthcheckResponse healthPost() + +Perform a healthcheck of the node and its dependent services + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.HealthApi(); +apiInstance.healthPost().then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HealthcheckResponse**](HealthcheckResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponse.md b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponse.md new file mode 100644 index 0000000..9735704 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponse.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.HealthcheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | **String** | | [optional] +**blockchainConnector** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**messageQueue** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**database** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**passing** | **Boolean** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseBlockchainConnector.md b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseBlockchainConnector.md new file mode 100644 index 0000000..78e4fa1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseBlockchainConnector.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.HealthcheckResponseBlockchainConnector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**passing** | **Boolean** | | [optional] +**error** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseItem.md b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseItem.md new file mode 100644 index 0000000..e53e5e7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/HealthcheckResponseItem.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.HealthcheckResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**passing** | **Boolean** | | [optional] +**error** | **String** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/ImportWalletRequest.md b/asset_transfers_dev_guide/js/sdk/docs/ImportWalletRequest.md new file mode 100644 index 0000000..e373532 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/ImportWalletRequest.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.ImportWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**encryptedSk** | **String** | | +**authorization** | **String** | | +**salt** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/IssueAssetRequest.md b/asset_transfers_dev_guide/js/sdk/docs/IssueAssetRequest.md new file mode 100644 index 0000000..5b635ec --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/IssueAssetRequest.md @@ -0,0 +1,14 @@ +# QedItAssetTransfers.IssueAssetRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | +**recipientAddress** | **String** | | +**amount** | **Number** | | +**assetId** | **Number** | | +**confidential** | **Boolean** | | +**memo** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/NodeApi.md b/asset_transfers_dev_guide/js/sdk/docs/NodeApi.md new file mode 100644 index 0000000..1514b18 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/NodeApi.md @@ -0,0 +1,368 @@ +# QedItAssetTransfers.NodeApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**nodeDeleteWalletPost**](NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a wallet +[**nodeExportWalletPost**](NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key +[**nodeGenerateWalletPost**](NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new wallet +[**nodeGetAllWalletsPost**](NodeApi.md#nodeGetAllWalletsPost) | **POST** /node/get_all_wallets | Get all wallet labels +[**nodeGetRulesPost**](NodeApi.md#nodeGetRulesPost) | **POST** /node/get_rules | Get network governance rules +[**nodeGetTaskStatusPost**](NodeApi.md#nodeGetTaskStatusPost) | **POST** /node/get_task_status | Get all tasks in the node +[**nodeImportWalletPost**](NodeApi.md#nodeImportWalletPost) | **POST** /node/import_wallet | Import wallet from secret key +[**nodeUnlockWalletPost**](NodeApi.md#nodeUnlockWalletPost) | **POST** /node/unlock_wallet | Unlocks a wallet for a given amount of seconds [async call] + + + +# **nodeDeleteWalletPost** +> nodeDeleteWalletPost(deleteWalletRequest) + +Delete a wallet + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var deleteWalletRequest = new QedItAssetTransfers.DeleteWalletRequest(); // DeleteWalletRequest | +apiInstance.nodeDeleteWalletPost(deleteWalletRequest).then(function() { + console.log('API called successfully.'); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteWalletRequest** | [**DeleteWalletRequest**](DeleteWalletRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeExportWalletPost** +> ExportWalletResponse nodeExportWalletPost(exportWalletRequest) + +Export wallet secret key + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var exportWalletRequest = new QedItAssetTransfers.ExportWalletRequest(); // ExportWalletRequest | +apiInstance.nodeExportWalletPost(exportWalletRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportWalletRequest** | [**ExportWalletRequest**](ExportWalletRequest.md)| | + +### Return type + +[**ExportWalletResponse**](ExportWalletResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeGenerateWalletPost** +> nodeGenerateWalletPost(generateWalletRequest) + +Generate a new wallet + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var generateWalletRequest = new QedItAssetTransfers.GenerateWalletRequest(); // GenerateWalletRequest | +apiInstance.nodeGenerateWalletPost(generateWalletRequest).then(function() { + console.log('API called successfully.'); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **generateWalletRequest** | [**GenerateWalletRequest**](GenerateWalletRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeGetAllWalletsPost** +> GetAllWalletsResponse nodeGetAllWalletsPost() + +Get all wallet labels + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +apiInstance.nodeGetAllWalletsPost().then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetAllWalletsResponse**](GetAllWalletsResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **nodeGetRulesPost** +> GetRulesResponse nodeGetRulesPost() + +Get network governance rules + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +apiInstance.nodeGetRulesPost().then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**GetRulesResponse**](GetRulesResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **nodeGetTaskStatusPost** +> GetTaskStatusResponse nodeGetTaskStatusPost(getTaskStatusRequest) + +Get all tasks in the node + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var getTaskStatusRequest = new QedItAssetTransfers.GetTaskStatusRequest(); // GetTaskStatusRequest | +apiInstance.nodeGetTaskStatusPost(getTaskStatusRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getTaskStatusRequest** | [**GetTaskStatusRequest**](GetTaskStatusRequest.md)| | + +### Return type + +[**GetTaskStatusResponse**](GetTaskStatusResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeImportWalletPost** +> nodeImportWalletPost(importWalletRequest) + +Import wallet from secret key + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var importWalletRequest = new QedItAssetTransfers.ImportWalletRequest(); // ImportWalletRequest | +apiInstance.nodeImportWalletPost(importWalletRequest).then(function() { + console.log('API called successfully.'); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **importWalletRequest** | [**ImportWalletRequest**](ImportWalletRequest.md)| | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **nodeUnlockWalletPost** +> AsyncTaskCreatedResponse nodeUnlockWalletPost(unlockWalletRequest) + +Unlocks a wallet for a given amount of seconds [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.NodeApi(); +var unlockWalletRequest = new QedItAssetTransfers.UnlockWalletRequest(); // UnlockWalletRequest | +apiInstance.nodeUnlockWalletPost(unlockWalletRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **unlockWalletRequest** | [**UnlockWalletRequest**](UnlockWalletRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/asset_transfers_dev_guide/js/sdk/docs/PublicAnalyticsOutput.md b/asset_transfers_dev_guide/js/sdk/docs/PublicAnalyticsOutput.md new file mode 100644 index 0000000..f622a69 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/PublicAnalyticsOutput.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.PublicAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/Rule.md b/asset_transfers_dev_guide/js/sdk/docs/Rule.md new file mode 100644 index 0000000..c415478 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/Rule.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.Rule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicKey** | **String** | | +**canIssueConfidentially** | **Boolean** | | [optional] +**canIssueAssetIdFirst** | **Number** | | [optional] +**canIssueAssetIdLast** | **Number** | | [optional] +**isAdmin** | **Boolean** | | [optional] + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/TransactionsForWallet.md b/asset_transfers_dev_guide/js/sdk/docs/TransactionsForWallet.md new file mode 100644 index 0000000..182d225 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/TransactionsForWallet.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.TransactionsForWallet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isIncoming** | **Boolean** | | +**assetId** | **Number** | | +**amount** | **Number** | | +**recipientAddress** | **String** | | +**memo** | **String** | | +**id** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/TransferAssetRequest.md b/asset_transfers_dev_guide/js/sdk/docs/TransferAssetRequest.md new file mode 100644 index 0000000..3d1c85a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/TransferAssetRequest.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.TransferAssetRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | +**recipientAddress** | **String** | | +**amount** | **Number** | | +**assetId** | **Number** | | +**memo** | **String** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/UnlockWalletRequest.md b/asset_transfers_dev_guide/js/sdk/docs/UnlockWalletRequest.md new file mode 100644 index 0000000..65b48a7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/UnlockWalletRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.UnlockWalletRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**authorization** | **String** | | +**seconds** | **Number** | | + + diff --git a/asset_transfers_dev_guide/js/sdk/docs/WalletApi.md b/asset_transfers_dev_guide/js/sdk/docs/WalletApi.md new file mode 100644 index 0000000..dbf0eaf --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/docs/WalletApi.md @@ -0,0 +1,376 @@ +# QedItAssetTransfers.WalletApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**walletCreateRulePost**](WalletApi.md#walletCreateRulePost) | **POST** /wallet/create_rule | Create & broadcast add-config-rule [async call] +[**walletDeleteRulePost**](WalletApi.md#walletDeleteRulePost) | **POST** /wallet/delete_rule | Create & broadcast delete-config-rule [async call] +[**walletGetActivityPost**](WalletApi.md#walletGetActivityPost) | **POST** /wallet/get_activity | Get wallet activity (transactions) +[**walletGetBalancesPost**](WalletApi.md#walletGetBalancesPost) | **POST** /wallet/get_balances | Get wallets balance +[**walletGetNewAddressPost**](WalletApi.md#walletGetNewAddressPost) | **POST** /wallet/get_new_address | Get a new address from a given diversifier or generate randomly +[**walletGetPublicKeyPost**](WalletApi.md#walletGetPublicKeyPost) | **POST** /wallet/get_public_key | Get wallet public key +[**walletIssueAssetPost**](WalletApi.md#walletIssueAssetPost) | **POST** /wallet/issue_asset | Issue assets [async call] +[**walletTransferAssetPost**](WalletApi.md#walletTransferAssetPost) | **POST** /wallet/transfer_asset | Transfer assets [async call] + + + +# **walletCreateRulePost** +> AsyncTaskCreatedResponse walletCreateRulePost(createRuleRequest) + +Create & broadcast add-config-rule [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var createRuleRequest = new QedItAssetTransfers.CreateRuleRequest(); // CreateRuleRequest | +apiInstance.walletCreateRulePost(createRuleRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createRuleRequest** | [**CreateRuleRequest**](CreateRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletDeleteRulePost** +> AsyncTaskCreatedResponse walletDeleteRulePost(deleteRuleRequest) + +Create & broadcast delete-config-rule [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var deleteRuleRequest = new QedItAssetTransfers.DeleteRuleRequest(); // DeleteRuleRequest | +apiInstance.walletDeleteRulePost(deleteRuleRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleteRuleRequest** | [**DeleteRuleRequest**](DeleteRuleRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletGetActivityPost** +> GetWalletActivityResponse walletGetActivityPost(getWalletActivityRequest) + +Get wallet activity (transactions) + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var getWalletActivityRequest = new QedItAssetTransfers.GetWalletActivityRequest(); // GetWalletActivityRequest | +apiInstance.walletGetActivityPost(getWalletActivityRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getWalletActivityRequest** | [**GetWalletActivityRequest**](GetWalletActivityRequest.md)| | + +### Return type + +[**GetWalletActivityResponse**](GetWalletActivityResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletGetBalancesPost** +> GetWalletBalanceResponse walletGetBalancesPost(getWalletBalanceRequest) + +Get wallets balance + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var getWalletBalanceRequest = new QedItAssetTransfers.GetWalletBalanceRequest(); // GetWalletBalanceRequest | +apiInstance.walletGetBalancesPost(getWalletBalanceRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getWalletBalanceRequest** | [**GetWalletBalanceRequest**](GetWalletBalanceRequest.md)| | + +### Return type + +[**GetWalletBalanceResponse**](GetWalletBalanceResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletGetNewAddressPost** +> GetNewAddressResponse walletGetNewAddressPost(getNewAddressRequest) + +Get a new address from a given diversifier or generate randomly + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var getNewAddressRequest = new QedItAssetTransfers.GetNewAddressRequest(); // GetNewAddressRequest | +apiInstance.walletGetNewAddressPost(getNewAddressRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getNewAddressRequest** | [**GetNewAddressRequest**](GetNewAddressRequest.md)| | + +### Return type + +[**GetNewAddressResponse**](GetNewAddressResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletGetPublicKeyPost** +> GetPublicKeyResponse walletGetPublicKeyPost(getPublicKeyRequest) + +Get wallet public key + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var getPublicKeyRequest = new QedItAssetTransfers.GetPublicKeyRequest(); // GetPublicKeyRequest | +apiInstance.walletGetPublicKeyPost(getPublicKeyRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **getPublicKeyRequest** | [**GetPublicKeyRequest**](GetPublicKeyRequest.md)| | + +### Return type + +[**GetPublicKeyResponse**](GetPublicKeyResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletIssueAssetPost** +> AsyncTaskCreatedResponse walletIssueAssetPost(issueAssetRequest) + +Issue assets [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var issueAssetRequest = new QedItAssetTransfers.IssueAssetRequest(); // IssueAssetRequest | +apiInstance.walletIssueAssetPost(issueAssetRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **issueAssetRequest** | [**IssueAssetRequest**](IssueAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **walletTransferAssetPost** +> AsyncTaskCreatedResponse walletTransferAssetPost(transferAssetRequest) + +Transfer assets [async call] + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.WalletApi(); +var transferAssetRequest = new QedItAssetTransfers.TransferAssetRequest(); // TransferAssetRequest | +apiInstance.walletTransferAssetPost(transferAssetRequest).then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transferAssetRequest** | [**TransferAssetRequest**](TransferAssetRequest.md)| | + +### Return type + +[**AsyncTaskCreatedResponse**](AsyncTaskCreatedResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + diff --git a/asset_transfers_dev_guide/js/sdk/git_push.sh b/asset_transfers_dev_guide/js/sdk/git_push.sh new file mode 100644 index 0000000..04dd5df --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the Git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/asset_transfers_dev_guide/js/sdk/mocha.opts b/asset_transfers_dev_guide/js/sdk/mocha.opts new file mode 100644 index 0000000..9070118 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/mocha.opts @@ -0,0 +1 @@ +--timeout 10000 diff --git a/asset_transfers_dev_guide/js/sdk/package.json b/asset_transfers_dev_guide/js/sdk/package.json new file mode 100644 index 0000000..41db4a8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/package.json @@ -0,0 +1,21 @@ +{ + "name": "qed-it-asset-transfers", + "version": "1.3.0", + "description": "ERROR_UNKNOWN", + "license": "Unlicense", + "main": "src/index.js", + "scripts": { + "test": "./node_modules/mocha/bin/mocha --recursive" + }, + "browser": { + "fs": false + }, + "dependencies": { + "superagent": "3.7.0" + }, + "devDependencies": { + "mocha": "~2.3.4", + "sinon": "1.17.3", + "expect.js": "~0.3.1" + } +} diff --git a/asset_transfers_dev_guide/js/sdk/src/ApiClient.js b/asset_transfers_dev_guide/js/sdk/src/ApiClient.js new file mode 100644 index 0000000..44bed28 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/ApiClient.js @@ -0,0 +1,586 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['superagent', 'querystring'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('superagent'), require('querystring')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ApiClient = factory(root.superagent, root.querystring); + } +}(this, function(superagent, querystring) { + 'use strict'; + + /** + * @module ApiClient + * @version 1.3.0 + */ + + /** + * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an + * application to use this class directly - the *Api and model classes provide the public API for the service. The + * contents of this file should be regarded as internal but are documented for completeness. + * @alias module:ApiClient + * @class + */ + var exports = function() { + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default http://localhost:12052 + */ + this.basePath = 'http://localhost:12052'.replace(/\/+$/, ''); + + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + this.authentications = { + 'ApiKeyAuth': {type: 'apiKey', 'in': 'header', name: 'x-auth-token'} + }; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + this.defaultHeaders = {}; + + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + this.timeout = 60000; + + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + this.cache = true; + + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + this.enableCookies = false; + + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + if (typeof window === 'undefined') { + this.agent = new superagent.agent(); + } + + /* + * Allow user to override superagent agent + */ + this.requestAgent = null; + }; + + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + exports.prototype.paramToString = function(param) { + if (param == undefined || param == null) { + return ''; + } + if (param instanceof Date) { + return param.toJSON(); + } + return param.toString(); + }; + + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @returns {String} The encoded path with parameter values substituted. + */ + exports.prototype.buildUrl = function(path, pathParams) { + if (!path.match(/^\//)) { + path = '/' + path; + } + var url = this.basePath + path; + var _this = this; + url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { + var value; + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + return encodeURIComponent(value); + }); + return url; + }; + + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + exports.prototype.isJsonMime = function(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + }; + + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + exports.prototype.jsonPreferredMime = function(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + return contentTypes[0]; + }; + + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + exports.prototype.isFileParam = function(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (typeof require === 'function') { + var fs; + try { + fs = require('fs'); + } catch (err) {} + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } + // Buffer in Node.js + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } + // Blob in browser + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } + // File in browser (it seems File object is also instance of Blob, but keep this for safe) + if (typeof File === 'function' && param instanceof File) { + return true; + } + return false; + }; + + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + exports.prototype.normalizeParams = function(params) { + var newParams = {}; + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + return newParams; + }; + + /** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ + exports.CollectionFormatEnum = { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' + }; + + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString).join(','); + case 'ssv': + return param.map(this.paramToString).join(' '); + case 'tsv': + return param.map(this.paramToString).join('\t'); + case 'pipes': + return param.map(this.paramToString).join('|'); + case 'multi': + // return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString); + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + }; + + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + exports.prototype.applyAuthToRequest = function(request, authNames) { + var _this = this; + authNames.forEach(function(authName) { + var auth = _this.authentications[authName]; + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + break; + case 'apiKey': + if (auth.apiKey) { + var data = {}; + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + break; + case 'oauth2': + if (auth.accessToken) { + request.set({'Authorization': 'Bearer ' + auth.accessToken}); + } + break; + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + }; + + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + exports.prototype.deserialize = function deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } + // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + var data = response.body; + if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + return exports.convertToType(data, returnType); + }; + + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} collectionQueryParams A map of collection query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + exports.prototype.callApi = function callApi(path, httpMethod, pathParams, + queryParams, collectionQueryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, + returnType) { + + var _this = this; + var url = this.buildUrl(path, pathParams); + var request = superagent(httpMethod, url); + + // apply authentications + this.applyAuthToRequest(request, authNames); + + // set collection query parameters + for (var key in collectionQueryParams) { + if (collectionQueryParams.hasOwnProperty(key)) { + var param = collectionQueryParams[key]; + if (param.collectionFormat === 'csv') { + // SuperAgent normally percent-encodes all reserved characters in a query parameter. However, + // commas are used as delimiters for the 'csv' collectionFormat so they must not be encoded. We + // must therefore construct and encode 'csv' collection query parameters manually. + if (param.value != null) { + var value = param.value.map(this.paramToString).map(encodeURIComponent).join(','); + request.query(encodeURIComponent(key) + "=" + value); + } + } else { + // All other collection query parameters should be treated as ordinary query parameters. + queryParams[key] = this.buildCollectionParam(param.value, param.collectionFormat); + } + } + } + + // set query parameters + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + request.query(this.normalizeParams(queryParams)); + + // set header parameters + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); + + + // set requestAgent if it is set by user + if (this.requestAgent) { + request.agent(this.requestAgent); + } + + // set request timeout + request.timeout(this.timeout); + + var contentType = this.jsonPreferredMime(contentTypes); + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if(contentType != 'multipart/form-data') { + request.type(contentType); + } + } else if (!request.header['Content-Type']) { + request.type('application/json'); + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(querystring.stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]); + } else { + request.field(key, _formParams[key]); + } + } + } + } else if (bodyParam) { + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } + + // Attach previously saved cookies, if enabled + if (this.enableCookies){ + if (typeof window === 'undefined') { + this.agent._attachCookies(request); + } + else { + request.withCredentials(); + } + } + + return new Promise(function(resolve, reject) { + request.end(function(error, response) { + if (error) { + reject(error); + } else { + try { + var data = _this.deserialize(response, returnType); + if (_this.enableCookies && typeof window === 'undefined'){ + _this.agent._saveCookies(response); + } + resolve({data: data, response: response}); + } catch (err) { + reject(err); + } + } + }); + }); + }; + + /** + * Parses an ISO-8601 string representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + exports.parseDate = function(str) { + return new Date(str.replace(/T/i, ' ')); + }; + + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + exports.convertToType = function(data, type) { + if (data === null || data === undefined) + return data + + switch (type) { + case 'Boolean': + return Boolean(data); + case 'Integer': + return parseInt(data, 10); + case 'Number': + return parseFloat(data); + case 'String': + return String(data); + case 'Date': + return this.parseDate(String(data)); + case 'Blob': + return data; + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type === 'function') { + // for model type like: User + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + return data.map(function(item) { + return exports.convertToType(item, itemType); + }); + } else if (typeof type === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + var result = {}; + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = exports.convertToType(k, keyType); + var value = exports.convertToType(data[k], valueType); + result[key] = value; + } + } + return result; + } else { + // for unknown type, return the data directly + return data; + } + } + }; + + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + exports.constructFromObject = function(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) + obj[i] = exports.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) + obj[k] = exports.convertToType(data[k], itemType); + } + } + }; + + /** + * The default API client implementation. + * @type {module:ApiClient} + */ + exports.instance = new exports(); + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/api/AnalyticsApi.js b/asset_transfers_dev_guide/js/sdk/src/api/AnalyticsApi.js new file mode 100644 index 0000000..c47509a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/api/AnalyticsApi.js @@ -0,0 +1,102 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ErrorResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/ErrorResponse'), require('../model/GetNetworkActivityRequest'), require('../model/GetNetworkActivityResponse')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetNetworkActivityRequest, root.QedItAssetTransfers.GetNetworkActivityResponse); + } +}(this, function(ApiClient, ErrorResponse, GetNetworkActivityRequest, GetNetworkActivityResponse) { + 'use strict'; + + /** + * Analytics service. + * @module api/AnalyticsApi + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsApi. + * @alias module:api/AnalyticsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Get details on past blocks + * @param {module:model/GetNetworkActivityRequest} getNetworkActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNetworkActivityResponse} and HTTP response + */ + this.analyticsGetNetworkActivityPostWithHttpInfo = function(getNetworkActivityRequest) { + var postBody = getNetworkActivityRequest; + + // verify the required parameter 'getNetworkActivityRequest' is set + if (getNetworkActivityRequest === undefined || getNetworkActivityRequest === null) { + throw new Error("Missing the required parameter 'getNetworkActivityRequest' when calling analyticsGetNetworkActivityPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetNetworkActivityResponse; + + return this.apiClient.callApi( + '/analytics/get_network_activity', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get details on past blocks + * @param {module:model/GetNetworkActivityRequest} getNetworkActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNetworkActivityResponse} + */ + this.analyticsGetNetworkActivityPost = function(getNetworkActivityRequest) { + return this.analyticsGetNetworkActivityPostWithHttpInfo(getNetworkActivityRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/api/AsyncApi.js b/asset_transfers_dev_guide/js/sdk/src/api/AsyncApi.js new file mode 100644 index 0000000..37d3d51 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/api/AsyncApi.js @@ -0,0 +1,302 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.1.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/ErrorResponse', 'model/IssueAssetRequest', 'model/TransferAssetRequest', 'model/UnlockWalletRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/CreateRuleRequest'), require('../model/DeleteRuleRequest'), require('../model/ErrorResponse'), require('../model/IssueAssetRequest'), require('../model/TransferAssetRequest'), require('../model/UnlockWalletRequest')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AsyncApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.CreateRuleRequest, root.QedItAssetTransfers.DeleteRuleRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.IssueAssetRequest, root.QedItAssetTransfers.TransferAssetRequest, root.QedItAssetTransfers.UnlockWalletRequest); + } +}(this, function(ApiClient, AsyncTaskCreatedResponse, CreateRuleRequest, DeleteRuleRequest, ErrorResponse, IssueAssetRequest, TransferAssetRequest, UnlockWalletRequest) { + 'use strict'; + + /** + * Async service. + * @module api/AsyncApi + * @version 1.1.0 + */ + + /** + * Constructs a new AsyncApi. + * @alias module:api/AsyncApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Unlocks a wallet for a given amount of seconds [async call] + * @param {module:model/UnlockWalletRequest} unlockWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.nodeUnlockWalletPostWithHttpInfo = function(unlockWalletRequest) { + var postBody = unlockWalletRequest; + + // verify the required parameter 'unlockWalletRequest' is set + if (unlockWalletRequest === undefined || unlockWalletRequest === null) { + throw new Error("Missing the required parameter 'unlockWalletRequest' when calling nodeUnlockWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/node/unlock_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Unlocks a wallet for a given amount of seconds [async call] + * @param {module:model/UnlockWalletRequest} unlockWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.nodeUnlockWalletPost = function(unlockWalletRequest) { + return this.nodeUnlockWalletPostWithHttpInfo(unlockWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Create & broadcast add-config-rule [async call] + * @param {module:model/CreateRuleRequest} createRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletCreateRulePostWithHttpInfo = function(createRuleRequest) { + var postBody = createRuleRequest; + + // verify the required parameter 'createRuleRequest' is set + if (createRuleRequest === undefined || createRuleRequest === null) { + throw new Error("Missing the required parameter 'createRuleRequest' when calling walletCreateRulePost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/create_rule', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Create & broadcast add-config-rule [async call] + * @param {module:model/CreateRuleRequest} createRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletCreateRulePost = function(createRuleRequest) { + return this.walletCreateRulePostWithHttpInfo(createRuleRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Create & broadcast delete-config-rule [async call] + * @param {module:model/DeleteRuleRequest} deleteRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletDeleteRulePostWithHttpInfo = function(deleteRuleRequest) { + var postBody = deleteRuleRequest; + + // verify the required parameter 'deleteRuleRequest' is set + if (deleteRuleRequest === undefined || deleteRuleRequest === null) { + throw new Error("Missing the required parameter 'deleteRuleRequest' when calling walletDeleteRulePost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/delete_rule', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Create & broadcast delete-config-rule [async call] + * @param {module:model/DeleteRuleRequest} deleteRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletDeleteRulePost = function(deleteRuleRequest) { + return this.walletDeleteRulePostWithHttpInfo(deleteRuleRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Issue assets [async call] + * @param {module:model/IssueAssetRequest} issueAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletIssueAssetPostWithHttpInfo = function(issueAssetRequest) { + var postBody = issueAssetRequest; + + // verify the required parameter 'issueAssetRequest' is set + if (issueAssetRequest === undefined || issueAssetRequest === null) { + throw new Error("Missing the required parameter 'issueAssetRequest' when calling walletIssueAssetPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/issue_asset', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Issue assets [async call] + * @param {module:model/IssueAssetRequest} issueAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletIssueAssetPost = function(issueAssetRequest) { + return this.walletIssueAssetPostWithHttpInfo(issueAssetRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Transfer assets [async call] + * @param {module:model/TransferAssetRequest} transferAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletTransferAssetPostWithHttpInfo = function(transferAssetRequest) { + var postBody = transferAssetRequest; + + // verify the required parameter 'transferAssetRequest' is set + if (transferAssetRequest === undefined || transferAssetRequest === null) { + throw new Error("Missing the required parameter 'transferAssetRequest' when calling walletTransferAssetPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/transfer_asset', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Transfer assets [async call] + * @param {module:model/TransferAssetRequest} transferAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletTransferAssetPost = function(transferAssetRequest) { + return this.walletTransferAssetPostWithHttpInfo(transferAssetRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/api/HealthApi.js b/asset_transfers_dev_guide/js/sdk/src/api/HealthApi.js new file mode 100644 index 0000000..a00899d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/api/HealthApi.js @@ -0,0 +1,95 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ErrorResponse', 'model/HealthcheckResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/ErrorResponse'), require('../model/HealthcheckResponse')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.HealthcheckResponse); + } +}(this, function(ApiClient, ErrorResponse, HealthcheckResponse) { + 'use strict'; + + /** + * Health service. + * @module api/HealthApi + * @version 1.3.0 + */ + + /** + * Constructs a new HealthApi. + * @alias module:api/HealthApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Perform a healthcheck of the node and its dependent services + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HealthcheckResponse} and HTTP response + */ + this.healthPostWithHttpInfo = function() { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = HealthcheckResponse; + + return this.apiClient.callApi( + '/health', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Perform a healthcheck of the node and its dependent services + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HealthcheckResponse} + */ + this.healthPost = function() { + return this.healthPostWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/api/NodeApi.js b/asset_transfers_dev_guide/js/sdk/src/api/NodeApi.js new file mode 100644 index 0000000..2fb565e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/api/NodeApi.js @@ -0,0 +1,438 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/ImportWalletRequest', 'model/UnlockWalletRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/DeleteWalletRequest'), require('../model/ErrorResponse'), require('../model/ExportWalletRequest'), require('../model/ExportWalletResponse'), require('../model/GenerateWalletRequest'), require('../model/GetAllWalletsResponse'), require('../model/GetRulesResponse'), require('../model/GetTaskStatusRequest'), require('../model/GetTaskStatusResponse'), require('../model/ImportWalletRequest'), require('../model/UnlockWalletRequest')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.NodeApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.DeleteWalletRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.ExportWalletRequest, root.QedItAssetTransfers.ExportWalletResponse, root.QedItAssetTransfers.GenerateWalletRequest, root.QedItAssetTransfers.GetAllWalletsResponse, root.QedItAssetTransfers.GetRulesResponse, root.QedItAssetTransfers.GetTaskStatusRequest, root.QedItAssetTransfers.GetTaskStatusResponse, root.QedItAssetTransfers.ImportWalletRequest, root.QedItAssetTransfers.UnlockWalletRequest); + } +}(this, function(ApiClient, AsyncTaskCreatedResponse, DeleteWalletRequest, ErrorResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, ImportWalletRequest, UnlockWalletRequest) { + 'use strict'; + + /** + * Node service. + * @module api/NodeApi + * @version 1.3.0 + */ + + /** + * Constructs a new NodeApi. + * @alias module:api/NodeApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Delete a wallet + * @param {module:model/DeleteWalletRequest} deleteWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + this.nodeDeleteWalletPostWithHttpInfo = function(deleteWalletRequest) { + var postBody = deleteWalletRequest; + + // verify the required parameter 'deleteWalletRequest' is set + if (deleteWalletRequest === undefined || deleteWalletRequest === null) { + throw new Error("Missing the required parameter 'deleteWalletRequest' when calling nodeDeleteWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/node/delete_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Delete a wallet + * @param {module:model/DeleteWalletRequest} deleteWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + this.nodeDeleteWalletPost = function(deleteWalletRequest) { + return this.nodeDeleteWalletPostWithHttpInfo(deleteWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Export wallet secret key + * @param {module:model/ExportWalletRequest} exportWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportWalletResponse} and HTTP response + */ + this.nodeExportWalletPostWithHttpInfo = function(exportWalletRequest) { + var postBody = exportWalletRequest; + + // verify the required parameter 'exportWalletRequest' is set + if (exportWalletRequest === undefined || exportWalletRequest === null) { + throw new Error("Missing the required parameter 'exportWalletRequest' when calling nodeExportWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = ExportWalletResponse; + + return this.apiClient.callApi( + '/node/export_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Export wallet secret key + * @param {module:model/ExportWalletRequest} exportWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportWalletResponse} + */ + this.nodeExportWalletPost = function(exportWalletRequest) { + return this.nodeExportWalletPostWithHttpInfo(exportWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Generate a new wallet + * @param {module:model/GenerateWalletRequest} generateWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + this.nodeGenerateWalletPostWithHttpInfo = function(generateWalletRequest) { + var postBody = generateWalletRequest; + + // verify the required parameter 'generateWalletRequest' is set + if (generateWalletRequest === undefined || generateWalletRequest === null) { + throw new Error("Missing the required parameter 'generateWalletRequest' when calling nodeGenerateWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/node/generate_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Generate a new wallet + * @param {module:model/GenerateWalletRequest} generateWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + this.nodeGenerateWalletPost = function(generateWalletRequest) { + return this.nodeGenerateWalletPostWithHttpInfo(generateWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get all wallet labels + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllWalletsResponse} and HTTP response + */ + this.nodeGetAllWalletsPostWithHttpInfo = function() { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = GetAllWalletsResponse; + + return this.apiClient.callApi( + '/node/get_all_wallets', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get all wallet labels + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllWalletsResponse} + */ + this.nodeGetAllWalletsPost = function() { + return this.nodeGetAllWalletsPostWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get network governance rules + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRulesResponse} and HTTP response + */ + this.nodeGetRulesPostWithHttpInfo = function() { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = GetRulesResponse; + + return this.apiClient.callApi( + '/node/get_rules', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get network governance rules + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRulesResponse} + */ + this.nodeGetRulesPost = function() { + return this.nodeGetRulesPostWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get all tasks in the node + * @param {module:model/GetTaskStatusRequest} getTaskStatusRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTaskStatusResponse} and HTTP response + */ + this.nodeGetTaskStatusPostWithHttpInfo = function(getTaskStatusRequest) { + var postBody = getTaskStatusRequest; + + // verify the required parameter 'getTaskStatusRequest' is set + if (getTaskStatusRequest === undefined || getTaskStatusRequest === null) { + throw new Error("Missing the required parameter 'getTaskStatusRequest' when calling nodeGetTaskStatusPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetTaskStatusResponse; + + return this.apiClient.callApi( + '/node/get_task_status', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get all tasks in the node + * @param {module:model/GetTaskStatusRequest} getTaskStatusRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTaskStatusResponse} + */ + this.nodeGetTaskStatusPost = function(getTaskStatusRequest) { + return this.nodeGetTaskStatusPostWithHttpInfo(getTaskStatusRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Import wallet from secret key + * @param {module:model/ImportWalletRequest} importWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + this.nodeImportWalletPostWithHttpInfo = function(importWalletRequest) { + var postBody = importWalletRequest; + + // verify the required parameter 'importWalletRequest' is set + if (importWalletRequest === undefined || importWalletRequest === null) { + throw new Error("Missing the required parameter 'importWalletRequest' when calling nodeImportWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = null; + + return this.apiClient.callApi( + '/node/import_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Import wallet from secret key + * @param {module:model/ImportWalletRequest} importWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + this.nodeImportWalletPost = function(importWalletRequest) { + return this.nodeImportWalletPostWithHttpInfo(importWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Unlocks a wallet for a given amount of seconds [async call] + * @param {module:model/UnlockWalletRequest} unlockWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.nodeUnlockWalletPostWithHttpInfo = function(unlockWalletRequest) { + var postBody = unlockWalletRequest; + + // verify the required parameter 'unlockWalletRequest' is set + if (unlockWalletRequest === undefined || unlockWalletRequest === null) { + throw new Error("Missing the required parameter 'unlockWalletRequest' when calling nodeUnlockWalletPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/node/unlock_wallet', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Unlocks a wallet for a given amount of seconds [async call] + * @param {module:model/UnlockWalletRequest} unlockWalletRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.nodeUnlockWalletPost = function(unlockWalletRequest) { + return this.nodeUnlockWalletPostWithHttpInfo(unlockWalletRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/api/WalletApi.js b/asset_transfers_dev_guide/js/sdk/src/api/WalletApi.js new file mode 100644 index 0000000..7c7cf57 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/api/WalletApi.js @@ -0,0 +1,452 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/ErrorResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/IssueAssetRequest', 'model/TransferAssetRequest'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/CreateRuleRequest'), require('../model/DeleteRuleRequest'), require('../model/ErrorResponse'), require('../model/GetNewAddressRequest'), require('../model/GetNewAddressResponse'), require('../model/GetPublicKeyRequest'), require('../model/GetPublicKeyResponse'), require('../model/GetWalletActivityRequest'), require('../model/GetWalletActivityResponse'), require('../model/GetWalletBalanceRequest'), require('../model/GetWalletBalanceResponse'), require('../model/IssueAssetRequest'), require('../model/TransferAssetRequest')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.WalletApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.CreateRuleRequest, root.QedItAssetTransfers.DeleteRuleRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetNewAddressRequest, root.QedItAssetTransfers.GetNewAddressResponse, root.QedItAssetTransfers.GetPublicKeyRequest, root.QedItAssetTransfers.GetPublicKeyResponse, root.QedItAssetTransfers.GetWalletActivityRequest, root.QedItAssetTransfers.GetWalletActivityResponse, root.QedItAssetTransfers.GetWalletBalanceRequest, root.QedItAssetTransfers.GetWalletBalanceResponse, root.QedItAssetTransfers.IssueAssetRequest, root.QedItAssetTransfers.TransferAssetRequest); + } +}(this, function(ApiClient, AsyncTaskCreatedResponse, CreateRuleRequest, DeleteRuleRequest, ErrorResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, IssueAssetRequest, TransferAssetRequest) { + 'use strict'; + + /** + * Wallet service. + * @module api/WalletApi + * @version 1.3.0 + */ + + /** + * Constructs a new WalletApi. + * @alias module:api/WalletApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Create & broadcast add-config-rule [async call] + * @param {module:model/CreateRuleRequest} createRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletCreateRulePostWithHttpInfo = function(createRuleRequest) { + var postBody = createRuleRequest; + + // verify the required parameter 'createRuleRequest' is set + if (createRuleRequest === undefined || createRuleRequest === null) { + throw new Error("Missing the required parameter 'createRuleRequest' when calling walletCreateRulePost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/create_rule', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Create & broadcast add-config-rule [async call] + * @param {module:model/CreateRuleRequest} createRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletCreateRulePost = function(createRuleRequest) { + return this.walletCreateRulePostWithHttpInfo(createRuleRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Create & broadcast delete-config-rule [async call] + * @param {module:model/DeleteRuleRequest} deleteRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletDeleteRulePostWithHttpInfo = function(deleteRuleRequest) { + var postBody = deleteRuleRequest; + + // verify the required parameter 'deleteRuleRequest' is set + if (deleteRuleRequest === undefined || deleteRuleRequest === null) { + throw new Error("Missing the required parameter 'deleteRuleRequest' when calling walletDeleteRulePost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/delete_rule', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Create & broadcast delete-config-rule [async call] + * @param {module:model/DeleteRuleRequest} deleteRuleRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletDeleteRulePost = function(deleteRuleRequest) { + return this.walletDeleteRulePostWithHttpInfo(deleteRuleRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get wallet activity (transactions) + * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWalletActivityResponse} and HTTP response + */ + this.walletGetActivityPostWithHttpInfo = function(getWalletActivityRequest) { + var postBody = getWalletActivityRequest; + + // verify the required parameter 'getWalletActivityRequest' is set + if (getWalletActivityRequest === undefined || getWalletActivityRequest === null) { + throw new Error("Missing the required parameter 'getWalletActivityRequest' when calling walletGetActivityPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetWalletActivityResponse; + + return this.apiClient.callApi( + '/wallet/get_activity', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get wallet activity (transactions) + * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWalletActivityResponse} + */ + this.walletGetActivityPost = function(getWalletActivityRequest) { + return this.walletGetActivityPostWithHttpInfo(getWalletActivityRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get wallets balance + * @param {module:model/GetWalletBalanceRequest} getWalletBalanceRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWalletBalanceResponse} and HTTP response + */ + this.walletGetBalancesPostWithHttpInfo = function(getWalletBalanceRequest) { + var postBody = getWalletBalanceRequest; + + // verify the required parameter 'getWalletBalanceRequest' is set + if (getWalletBalanceRequest === undefined || getWalletBalanceRequest === null) { + throw new Error("Missing the required parameter 'getWalletBalanceRequest' when calling walletGetBalancesPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetWalletBalanceResponse; + + return this.apiClient.callApi( + '/wallet/get_balances', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get wallets balance + * @param {module:model/GetWalletBalanceRequest} getWalletBalanceRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWalletBalanceResponse} + */ + this.walletGetBalancesPost = function(getWalletBalanceRequest) { + return this.walletGetBalancesPostWithHttpInfo(getWalletBalanceRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get a new address from a given diversifier or generate randomly + * @param {module:model/GetNewAddressRequest} getNewAddressRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNewAddressResponse} and HTTP response + */ + this.walletGetNewAddressPostWithHttpInfo = function(getNewAddressRequest) { + var postBody = getNewAddressRequest; + + // verify the required parameter 'getNewAddressRequest' is set + if (getNewAddressRequest === undefined || getNewAddressRequest === null) { + throw new Error("Missing the required parameter 'getNewAddressRequest' when calling walletGetNewAddressPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetNewAddressResponse; + + return this.apiClient.callApi( + '/wallet/get_new_address', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get a new address from a given diversifier or generate randomly + * @param {module:model/GetNewAddressRequest} getNewAddressRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNewAddressResponse} + */ + this.walletGetNewAddressPost = function(getNewAddressRequest) { + return this.walletGetNewAddressPostWithHttpInfo(getNewAddressRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get wallet public key + * @param {module:model/GetPublicKeyRequest} getPublicKeyRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPublicKeyResponse} and HTTP response + */ + this.walletGetPublicKeyPostWithHttpInfo = function(getPublicKeyRequest) { + var postBody = getPublicKeyRequest; + + // verify the required parameter 'getPublicKeyRequest' is set + if (getPublicKeyRequest === undefined || getPublicKeyRequest === null) { + throw new Error("Missing the required parameter 'getPublicKeyRequest' when calling walletGetPublicKeyPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = GetPublicKeyResponse; + + return this.apiClient.callApi( + '/wallet/get_public_key', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Get wallet public key + * @param {module:model/GetPublicKeyRequest} getPublicKeyRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPublicKeyResponse} + */ + this.walletGetPublicKeyPost = function(getPublicKeyRequest) { + return this.walletGetPublicKeyPostWithHttpInfo(getPublicKeyRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Issue assets [async call] + * @param {module:model/IssueAssetRequest} issueAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletIssueAssetPostWithHttpInfo = function(issueAssetRequest) { + var postBody = issueAssetRequest; + + // verify the required parameter 'issueAssetRequest' is set + if (issueAssetRequest === undefined || issueAssetRequest === null) { + throw new Error("Missing the required parameter 'issueAssetRequest' when calling walletIssueAssetPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/issue_asset', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Issue assets [async call] + * @param {module:model/IssueAssetRequest} issueAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletIssueAssetPost = function(issueAssetRequest) { + return this.walletIssueAssetPostWithHttpInfo(issueAssetRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Transfer assets [async call] + * @param {module:model/TransferAssetRequest} transferAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AsyncTaskCreatedResponse} and HTTP response + */ + this.walletTransferAssetPostWithHttpInfo = function(transferAssetRequest) { + var postBody = transferAssetRequest; + + // verify the required parameter 'transferAssetRequest' is set + if (transferAssetRequest === undefined || transferAssetRequest === null) { + throw new Error("Missing the required parameter 'transferAssetRequest' when calling walletTransferAssetPost"); + } + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = AsyncTaskCreatedResponse; + + return this.apiClient.callApi( + '/wallet/transfer_asset', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Transfer assets [async call] + * @param {module:model/TransferAssetRequest} transferAssetRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AsyncTaskCreatedResponse} + */ + this.walletTransferAssetPost = function(transferAssetRequest) { + return this.walletTransferAssetPostWithHttpInfo(transferAssetRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/index.js b/asset_transfers_dev_guide/js/sdk/src/index.js new file mode 100644 index 0000000..97c20e3 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/index.js @@ -0,0 +1,337 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRule', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Rule', 'model/TransactionsForWallet', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsAssetConverterProofDescription'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRule'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Rule'), require('./model/TransactionsForWallet'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); + } +}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsAssetConverterProofDescription, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRule, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportWalletRequest, IssueAssetRequest, Rule, TransactionsForWallet, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { + 'use strict'; + + /** + * ERROR_UNKNOWN.
+ * The index module provides access to constructors for all the classes which comprise the public API. + *

+ * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: + *

+   * var QedItAssetTransfers = require('index'); // See note below*.
+   * var xxxSvc = new QedItAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
+   * var yyyModel = new QedItAssetTransfers.Yyy(); // Construct a model instance.
+   * yyyModel.someProperty = 'someValue';
+   * ...
+   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+   * ...
+   * 
+ * *NOTE: For a top-level AMD script, use require(['index'], function(){...}) + * and put the application logic within the callback function. + *

+ *

+ * A non-AMD browser application (discouraged) might do something like this: + *

+   * var xxxSvc = new QedItAssetTransfers.XxxApi(); // Allocate the API class we're going to use.
+   * var yyy = new QedItAssetTransfers.Yyy(); // Construct a model instance.
+   * yyyModel.someProperty = 'someValue';
+   * ...
+   * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
+   * ...
+   * 
+ *

+ * @module index + * @version 1.3.0 + */ + var exports = { + /** + * The ApiClient constructor. + * @property {module:ApiClient} + */ + ApiClient: ApiClient, + /** + * The AnalyticIssueWalletTx model constructor. + * @property {module:model/AnalyticIssueWalletTx} + */ + AnalyticIssueWalletTx: AnalyticIssueWalletTx, + /** + * The AnalyticRuleWalletTx model constructor. + * @property {module:model/AnalyticRuleWalletTx} + */ + AnalyticRuleWalletTx: AnalyticRuleWalletTx, + /** + * The AnalyticTransaction model constructor. + * @property {module:model/AnalyticTransaction} + */ + AnalyticTransaction: AnalyticTransaction, + /** + * The AnalyticTransferWalletTx model constructor. + * @property {module:model/AnalyticTransferWalletTx} + */ + AnalyticTransferWalletTx: AnalyticTransferWalletTx, + /** + * The AnalyticWalletMetadata model constructor. + * @property {module:model/AnalyticWalletMetadata} + */ + AnalyticWalletMetadata: AnalyticWalletMetadata, + /** + * The AnalyticWalletTx model constructor. + * @property {module:model/AnalyticWalletTx} + */ + AnalyticWalletTx: AnalyticWalletTx, + /** + * The AnalyticsAssetConverterProofDescription model constructor. + * @property {module:model/AnalyticsAssetConverterProofDescription} + */ + AnalyticsAssetConverterProofDescription: AnalyticsAssetConverterProofDescription, + /** + * The AnalyticsConfidentialIssuanceDescription model constructor. + * @property {module:model/AnalyticsConfidentialIssuanceDescription} + */ + AnalyticsConfidentialIssuanceDescription: AnalyticsConfidentialIssuanceDescription, + /** + * The AnalyticsIssueTx model constructor. + * @property {module:model/AnalyticsIssueTx} + */ + AnalyticsIssueTx: AnalyticsIssueTx, + /** + * The AnalyticsOutput model constructor. + * @property {module:model/AnalyticsOutput} + */ + AnalyticsOutput: AnalyticsOutput, + /** + * The AnalyticsOutputDescription model constructor. + * @property {module:model/AnalyticsOutputDescription} + */ + AnalyticsOutputDescription: AnalyticsOutputDescription, + /** + * The AnalyticsPublicIssuanceDescription model constructor. + * @property {module:model/AnalyticsPublicIssuanceDescription} + */ + AnalyticsPublicIssuanceDescription: AnalyticsPublicIssuanceDescription, + /** + * The AnalyticsRule model constructor. + * @property {module:model/AnalyticsRule} + */ + AnalyticsRule: AnalyticsRule, + /** + * The AnalyticsRuleDefinition model constructor. + * @property {module:model/AnalyticsRuleDefinition} + */ + AnalyticsRuleDefinition: AnalyticsRuleDefinition, + /** + * The AnalyticsRuleTx model constructor. + * @property {module:model/AnalyticsRuleTx} + */ + AnalyticsRuleTx: AnalyticsRuleTx, + /** + * The AnalyticsRuleWalletDefinition model constructor. + * @property {module:model/AnalyticsRuleWalletDefinition} + */ + AnalyticsRuleWalletDefinition: AnalyticsRuleWalletDefinition, + /** + * The AnalyticsSpendDescription model constructor. + * @property {module:model/AnalyticsSpendDescription} + */ + AnalyticsSpendDescription: AnalyticsSpendDescription, + /** + * The AnalyticsTransferTx model constructor. + * @property {module:model/AnalyticsTransferTx} + */ + AnalyticsTransferTx: AnalyticsTransferTx, + /** + * The AnalyticsTxMetadata model constructor. + * @property {module:model/AnalyticsTxMetadata} + */ + AnalyticsTxMetadata: AnalyticsTxMetadata, + /** + * The AsyncTaskCreatedResponse model constructor. + * @property {module:model/AsyncTaskCreatedResponse} + */ + AsyncTaskCreatedResponse: AsyncTaskCreatedResponse, + /** + * The BalanceForAsset model constructor. + * @property {module:model/BalanceForAsset} + */ + BalanceForAsset: BalanceForAsset, + /** + * The CreateRuleRequest model constructor. + * @property {module:model/CreateRuleRequest} + */ + CreateRuleRequest: CreateRuleRequest, + /** + * The DeleteRuleRequest model constructor. + * @property {module:model/DeleteRuleRequest} + */ + DeleteRuleRequest: DeleteRuleRequest, + /** + * The DeleteWalletRequest model constructor. + * @property {module:model/DeleteWalletRequest} + */ + DeleteWalletRequest: DeleteWalletRequest, + /** + * The ErrorResponse model constructor. + * @property {module:model/ErrorResponse} + */ + ErrorResponse: ErrorResponse, + /** + * The ExportWalletRequest model constructor. + * @property {module:model/ExportWalletRequest} + */ + ExportWalletRequest: ExportWalletRequest, + /** + * The ExportWalletResponse model constructor. + * @property {module:model/ExportWalletResponse} + */ + ExportWalletResponse: ExportWalletResponse, + /** + * The GenerateWalletRequest model constructor. + * @property {module:model/GenerateWalletRequest} + */ + GenerateWalletRequest: GenerateWalletRequest, + /** + * The GetAllWalletsResponse model constructor. + * @property {module:model/GetAllWalletsResponse} + */ + GetAllWalletsResponse: GetAllWalletsResponse, + /** + * The GetNetworkActivityRequest model constructor. + * @property {module:model/GetNetworkActivityRequest} + */ + GetNetworkActivityRequest: GetNetworkActivityRequest, + /** + * The GetNetworkActivityResponse model constructor. + * @property {module:model/GetNetworkActivityResponse} + */ + GetNetworkActivityResponse: GetNetworkActivityResponse, + /** + * The GetNewAddressRequest model constructor. + * @property {module:model/GetNewAddressRequest} + */ + GetNewAddressRequest: GetNewAddressRequest, + /** + * The GetNewAddressResponse model constructor. + * @property {module:model/GetNewAddressResponse} + */ + GetNewAddressResponse: GetNewAddressResponse, + /** + * The GetPublicKeyRequest model constructor. + * @property {module:model/GetPublicKeyRequest} + */ + GetPublicKeyRequest: GetPublicKeyRequest, + /** + * The GetPublicKeyResponse model constructor. + * @property {module:model/GetPublicKeyResponse} + */ + GetPublicKeyResponse: GetPublicKeyResponse, + /** + * The GetRulesResponse model constructor. + * @property {module:model/GetRulesResponse} + */ + GetRulesResponse: GetRulesResponse, + /** + * The GetTaskStatusRequest model constructor. + * @property {module:model/GetTaskStatusRequest} + */ + GetTaskStatusRequest: GetTaskStatusRequest, + /** + * The GetTaskStatusResponse model constructor. + * @property {module:model/GetTaskStatusResponse} + */ + GetTaskStatusResponse: GetTaskStatusResponse, + /** + * The GetWalletActivityRequest model constructor. + * @property {module:model/GetWalletActivityRequest} + */ + GetWalletActivityRequest: GetWalletActivityRequest, + /** + * The GetWalletActivityResponse model constructor. + * @property {module:model/GetWalletActivityResponse} + */ + GetWalletActivityResponse: GetWalletActivityResponse, + /** + * The GetWalletBalanceRequest model constructor. + * @property {module:model/GetWalletBalanceRequest} + */ + GetWalletBalanceRequest: GetWalletBalanceRequest, + /** + * The GetWalletBalanceResponse model constructor. + * @property {module:model/GetWalletBalanceResponse} + */ + GetWalletBalanceResponse: GetWalletBalanceResponse, + /** + * The HealthcheckResponse model constructor. + * @property {module:model/HealthcheckResponse} + */ + HealthcheckResponse: HealthcheckResponse, + /** + * The HealthcheckResponseItem model constructor. + * @property {module:model/HealthcheckResponseItem} + */ + HealthcheckResponseItem: HealthcheckResponseItem, + /** + * The ImportWalletRequest model constructor. + * @property {module:model/ImportWalletRequest} + */ + ImportWalletRequest: ImportWalletRequest, + /** + * The IssueAssetRequest model constructor. + * @property {module:model/IssueAssetRequest} + */ + IssueAssetRequest: IssueAssetRequest, + /** + * The Rule model constructor. + * @property {module:model/Rule} + */ + Rule: Rule, + /** + * The TransactionsForWallet model constructor. + * @property {module:model/TransactionsForWallet} + */ + TransactionsForWallet: TransactionsForWallet, + /** + * The TransferAssetRequest model constructor. + * @property {module:model/TransferAssetRequest} + */ + TransferAssetRequest: TransferAssetRequest, + /** + * The UnlockWalletRequest model constructor. + * @property {module:model/UnlockWalletRequest} + */ + UnlockWalletRequest: UnlockWalletRequest, + /** + * The AnalyticsApi service constructor. + * @property {module:api/AnalyticsApi} + */ + AnalyticsApi: AnalyticsApi, + /** + * The HealthApi service constructor. + * @property {module:api/HealthApi} + */ + HealthApi: HealthApi, + /** + * The NodeApi service constructor. + * @property {module:api/NodeApi} + */ + NodeApi: NodeApi, + /** + * The WalletApi service constructor. + * @property {module:api/WalletApi} + */ + WalletApi: WalletApi + }; + + return exports; +})); diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticIssueWalletTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticIssueWalletTx.js new file mode 100644 index 0000000..d5a50f2 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticIssueWalletTx.js @@ -0,0 +1,120 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticIssueWalletTx = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticIssueWalletTx model module. + * @module model/AnalyticIssueWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticIssueWalletTx. + * @alias module:model/AnalyticIssueWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticIssueWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticIssueWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticIssueWalletTx} The populated AnalyticIssueWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_incoming')) { + obj['is_incoming'] = ApiClient.convertToType(data['is_incoming'], 'Boolean'); + } + if (data.hasOwnProperty('issued_by_self')) { + obj['issued_by_self'] = ApiClient.convertToType(data['issued_by_self'], 'Boolean'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('is_confidential')) { + obj['is_confidential'] = ApiClient.convertToType(data['is_confidential'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} is_incoming + */ + exports.prototype['is_incoming'] = undefined; + /** + * @member {Boolean} issued_by_self + */ + exports.prototype['issued_by_self'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {Boolean} is_confidential + */ + exports.prototype['is_confidential'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticRuleWalletTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticRuleWalletTx.js new file mode 100644 index 0000000..d3e4c4e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticRuleWalletTx.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRuleWalletDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleWalletDefinition')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticRuleWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleWalletDefinition); + } +}(this, function(ApiClient, AnalyticsRuleWalletDefinition) { + 'use strict'; + + + + /** + * The AnalyticRuleWalletTx model module. + * @module model/AnalyticRuleWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticRuleWalletTx. + * @alias module:model/AnalyticRuleWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticRuleWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticRuleWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticRuleWalletTx} The populated AnalyticRuleWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('signed_by_self')) { + obj['signed_by_self'] = ApiClient.convertToType(data['signed_by_self'], 'Boolean'); + } + if (data.hasOwnProperty('rule_affect_self')) { + obj['rule_affect_self'] = ApiClient.convertToType(data['rule_affect_self'], 'Boolean'); + } + if (data.hasOwnProperty('tx_signer')) { + obj['tx_signer'] = ApiClient.convertToType(data['tx_signer'], 'String'); + } + if (data.hasOwnProperty('rule')) { + obj['rule'] = AnalyticsRuleWalletDefinition.constructFromObject(data['rule']); + } + } + return obj; + } + + /** + * @member {Boolean} signed_by_self + */ + exports.prototype['signed_by_self'] = undefined; + /** + * @member {Boolean} rule_affect_self + */ + exports.prototype['rule_affect_self'] = undefined; + /** + * @member {String} tx_signer + */ + exports.prototype['tx_signer'] = undefined; + /** + * @member {module:model/AnalyticsRuleWalletDefinition} rule + */ + exports.prototype['rule'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransaction.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransaction.js new file mode 100644 index 0000000..33330ae --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransaction.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsTxMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsTxMetadata')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticTransaction = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTxMetadata); + } +}(this, function(ApiClient, AnalyticsTxMetadata) { + 'use strict'; + + + + /** + * The AnalyticTransaction model module. + * @module model/AnalyticTransaction + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticTransaction. + * @alias module:model/AnalyticTransaction + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticTransaction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticTransaction} obj Optional instance to populate. + * @return {module:model/AnalyticTransaction} The populated AnalyticTransaction instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = AnalyticsTxMetadata.constructFromObject(data['metadata']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], Object); + } + } + return obj; + } + + /** + * @member {module:model/AnalyticsTxMetadata} metadata + */ + exports.prototype['metadata'] = undefined; + /** + * @member {Object} content + */ + exports.prototype['content'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransferWalletTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransferWalletTx.js new file mode 100644 index 0000000..e323de6 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticTransferWalletTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticTransferWalletTx = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticTransferWalletTx model module. + * @module model/AnalyticTransferWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticTransferWalletTx. + * @alias module:model/AnalyticTransferWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticTransferWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticTransferWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticTransferWalletTx} The populated AnalyticTransferWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_incoming')) { + obj['is_incoming'] = ApiClient.convertToType(data['is_incoming'], 'Boolean'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Boolean} is_incoming + */ + exports.prototype['is_incoming'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletMetadata.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletMetadata.js new file mode 100644 index 0000000..0102a03 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletMetadata.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticWalletMetadata = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticWalletMetadata model module. + * @module model/AnalyticWalletMetadata + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticWalletMetadata. + * @alias module:model/AnalyticWalletMetadata + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticWalletMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticWalletMetadata} obj Optional instance to populate. + * @return {module:model/AnalyticWalletMetadata} The populated AnalyticWalletMetadata instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('tx_hash')) { + obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); + } + if (data.hasOwnProperty('timestamp')) { + obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); + } + } + return obj; + } + + /** + * @member {String} type + */ + exports.prototype['type'] = undefined; + /** + * @member {String} tx_hash + */ + exports.prototype['tx_hash'] = undefined; + /** + * @member {String} timestamp + */ + exports.prototype['timestamp'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletTx.js new file mode 100644 index 0000000..f242ece --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticWalletTx.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticWalletMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticWalletMetadata')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletMetadata); + } +}(this, function(ApiClient, AnalyticWalletMetadata) { + 'use strict'; + + + + /** + * The AnalyticWalletTx model module. + * @module model/AnalyticWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticWalletTx. + * @alias module:model/AnalyticWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticWalletTx} The populated AnalyticWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = AnalyticWalletMetadata.constructFromObject(data['metadata']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], Object); + } + } + return obj; + } + + /** + * @member {module:model/AnalyticWalletMetadata} metadata + */ + exports.prototype['metadata'] = undefined; + /** + * @member {Object} content + */ + exports.prototype['content'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js new file mode 100644 index 0000000..4e0bc80 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsAssetConverterProofDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsAssetConverterProofDescription model module. + * @module model/AnalyticsAssetConverterProofDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsAssetConverterProofDescription. + * @alias module:model/AnalyticsAssetConverterProofDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsAssetConverterProofDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsAssetConverterProofDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsAssetConverterProofDescription} The populated AnalyticsAssetConverterProofDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('input_cv')) { + obj['input_cv'] = ApiClient.convertToType(data['input_cv'], 'String'); + } + if (data.hasOwnProperty('amount_cv')) { + obj['amount_cv'] = ApiClient.convertToType(data['amount_cv'], 'String'); + } + if (data.hasOwnProperty('asset_cv')) { + obj['asset_cv'] = ApiClient.convertToType(data['asset_cv'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + } + return obj; + } + + /** + * @member {String} input_cv + */ + exports.prototype['input_cv'] = undefined; + /** + * @member {String} amount_cv + */ + exports.prototype['amount_cv'] = undefined; + /** + * @member {String} asset_cv + */ + exports.prototype['asset_cv'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js new file mode 100644 index 0000000..f53db3a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRule'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRule')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRule); + } +}(this, function(ApiClient, AnalyticsRule) { + 'use strict'; + + + + /** + * The AnalyticsConfidentialIssuanceDescription model module. + * @module model/AnalyticsConfidentialIssuanceDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsConfidentialIssuanceDescription. + * @alias module:model/AnalyticsConfidentialIssuanceDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsConfidentialIssuanceDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsConfidentialIssuanceDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsConfidentialIssuanceDescription} The populated AnalyticsConfidentialIssuanceDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('input_cv')) { + obj['input_cv'] = ApiClient.convertToType(data['input_cv'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + if (data.hasOwnProperty('rule')) { + obj['rule'] = AnalyticsRule.constructFromObject(data['rule']); + } + } + return obj; + } + + /** + * @member {String} input_cv + */ + exports.prototype['input_cv'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + /** + * @member {module:model/AnalyticsRule} rule + */ + exports.prototype['rule'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsContent.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsContent.js new file mode 100644 index 0000000..62ae55b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsContent.js @@ -0,0 +1,80 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsContent = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsContent model module. + * @module model/AnalyticsContent + * @version 1.2.3 + */ + + /** + * Constructs a new AnalyticsContent. + * @alias module:model/AnalyticsContent + * @class + * @param txType {String} + */ + var exports = function(txType) { + var _this = this; + + _this['tx_type'] = txType; + }; + + /** + * Constructs a AnalyticsContent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsContent} obj Optional instance to populate. + * @return {module:model/AnalyticsContent} The populated AnalyticsContent instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('tx_type')) { + obj['tx_type'] = ApiClient.convertToType(data['tx_type'], 'String'); + } + } + return obj; + } + + /** + * @member {String} tx_type + */ + exports.prototype['tx_type'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsIssueTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsIssueTx.js new file mode 100644 index 0000000..beafef0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsIssueTx.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsOutput'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsOutput')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsIssueTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutput); + } +}(this, function(ApiClient, AnalyticsOutput) { + 'use strict'; + + + + /** + * The AnalyticsIssueTx model module. + * @module model/AnalyticsIssueTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsIssueTx. + * @alias module:model/AnalyticsIssueTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsIssueTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsIssueTx} obj Optional instance to populate. + * @return {module:model/AnalyticsIssueTx} The populated AnalyticsIssueTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('outputs')) { + obj['outputs'] = ApiClient.convertToType(data['outputs'], [AnalyticsOutput]); + } + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('signature')) { + obj['signature'] = ApiClient.convertToType(data['signature'], 'String'); + } + } + return obj; + } + + /** + * @member {Array.} outputs + */ + exports.prototype['outputs'] = undefined; + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {String} signature + */ + exports.prototype['signature'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutput.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutput.js new file mode 100644 index 0000000..38bc9b3 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutput.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsConfidentialIssuanceDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsPublicIssuanceDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + } +}(this, function(ApiClient, AnalyticsConfidentialIssuanceDescription, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription) { + 'use strict'; + + + + /** + * The AnalyticsOutput model module. + * @module model/AnalyticsOutput + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsOutput. + * @alias module:model/AnalyticsOutput + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsOutput} obj Optional instance to populate. + * @return {module:model/AnalyticsOutput} The populated AnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_confidential')) { + obj['is_confidential'] = ApiClient.convertToType(data['is_confidential'], 'Boolean'); + } + if (data.hasOwnProperty('public_issuance_description')) { + obj['public_issuance_description'] = AnalyticsPublicIssuanceDescription.constructFromObject(data['public_issuance_description']); + } + if (data.hasOwnProperty('confidential_issuance_description')) { + obj['confidential_issuance_description'] = AnalyticsConfidentialIssuanceDescription.constructFromObject(data['confidential_issuance_description']); + } + if (data.hasOwnProperty('output_description')) { + obj['output_description'] = AnalyticsOutputDescription.constructFromObject(data['output_description']); + } + } + return obj; + } + + /** + * @member {Boolean} is_confidential + */ + exports.prototype['is_confidential'] = undefined; + /** + * @member {module:model/AnalyticsPublicIssuanceDescription} public_issuance_description + */ + exports.prototype['public_issuance_description'] = undefined; + /** + * @member {module:model/AnalyticsConfidentialIssuanceDescription} confidential_issuance_description + */ + exports.prototype['confidential_issuance_description'] = undefined; + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ + exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutputDescription.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutputDescription.js new file mode 100644 index 0000000..b2b67ea --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsOutputDescription.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsOutputDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsOutputDescription model module. + * @module model/AnalyticsOutputDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsOutputDescription. + * @alias module:model/AnalyticsOutputDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsOutputDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsOutputDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsOutputDescription} The populated AnalyticsOutputDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('cv')) { + obj['cv'] = ApiClient.convertToType(data['cv'], 'String'); + } + if (data.hasOwnProperty('cm')) { + obj['cm'] = ApiClient.convertToType(data['cm'], 'String'); + } + if (data.hasOwnProperty('epk')) { + obj['epk'] = ApiClient.convertToType(data['epk'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + if (data.hasOwnProperty('enc_note')) { + obj['enc_note'] = ApiClient.convertToType(data['enc_note'], 'String'); + } + if (data.hasOwnProperty('enc_sender')) { + obj['enc_sender'] = ApiClient.convertToType(data['enc_sender'], 'String'); + } + } + return obj; + } + + /** + * @member {String} cv + */ + exports.prototype['cv'] = undefined; + /** + * @member {String} cm + */ + exports.prototype['cm'] = undefined; + /** + * @member {String} epk + */ + exports.prototype['epk'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + /** + * @member {String} enc_note + */ + exports.prototype['enc_note'] = undefined; + /** + * @member {String} enc_sender + */ + exports.prototype['enc_sender'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js new file mode 100644 index 0000000..d8271cb --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsPublicIssuanceDescription model module. + * @module model/AnalyticsPublicIssuanceDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsPublicIssuanceDescription. + * @alias module:model/AnalyticsPublicIssuanceDescription + * @class + * @param assetId {Number} + * @param amount {Number} + */ + var exports = function(assetId, amount) { + var _this = this; + + _this['asset_id'] = assetId; + _this['amount'] = amount; + }; + + /** + * Constructs a AnalyticsPublicIssuanceDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsPublicIssuanceDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsPublicIssuanceDescription} The populated AnalyticsPublicIssuanceDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRule.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRule.js new file mode 100644 index 0000000..d7f910c --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRule.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRule = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRule model module. + * @module model/AnalyticsRule + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRule. + * @alias module:model/AnalyticsRule + * @class + * @param minId {Number} + * @param maxId {Number} + */ + var exports = function(minId, maxId) { + var _this = this; + + _this['min_id'] = minId; + _this['max_id'] = maxId; + }; + + /** + * Constructs a AnalyticsRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRule} obj Optional instance to populate. + * @return {module:model/AnalyticsRule} The populated AnalyticsRule instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('min_id')) { + obj['min_id'] = ApiClient.convertToType(data['min_id'], 'Number'); + } + if (data.hasOwnProperty('max_id')) { + obj['max_id'] = ApiClient.convertToType(data['max_id'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} min_id + */ + exports.prototype['min_id'] = undefined; + /** + * @member {Number} max_id + */ + exports.prototype['max_id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleDefinition.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleDefinition.js new file mode 100644 index 0000000..321ba5a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleDefinition.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleDefinition = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRuleDefinition model module. + * @module model/AnalyticsRuleDefinition + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleDefinition. + * @alias module:model/AnalyticsRuleDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleDefinition} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleDefinition} The populated AnalyticsRuleDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('can_issue_confidentially')) { + obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); + } + if (data.hasOwnProperty('is_admin')) { + obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); + } + if (data.hasOwnProperty('can_issue_asset_id_first')) { + obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); + } + if (data.hasOwnProperty('can_issue_asset_id_last')) { + obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {Boolean} can_issue_confidentially + */ + exports.prototype['can_issue_confidentially'] = undefined; + /** + * @member {Boolean} is_admin + */ + exports.prototype['is_admin'] = undefined; + /** + * @member {Number} can_issue_asset_id_first + */ + exports.prototype['can_issue_asset_id_first'] = undefined; + /** + * @member {Number} can_issue_asset_id_last + */ + exports.prototype['can_issue_asset_id_last'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleTx.js new file mode 100644 index 0000000..ce5424c --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRuleDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleDefinition')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleDefinition); + } +}(this, function(ApiClient, AnalyticsRuleDefinition) { + 'use strict'; + + + + /** + * The AnalyticsRuleTx model module. + * @module model/AnalyticsRuleTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleTx. + * @alias module:model/AnalyticsRuleTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleTx} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleTx} The populated AnalyticsRuleTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('sender_public_key')) { + obj['sender_public_key'] = ApiClient.convertToType(data['sender_public_key'], 'String'); + } + if (data.hasOwnProperty('rules_to_add')) { + obj['rules_to_add'] = ApiClient.convertToType(data['rules_to_add'], [AnalyticsRuleDefinition]); + } + if (data.hasOwnProperty('rules_to_delete')) { + obj['rules_to_delete'] = ApiClient.convertToType(data['rules_to_delete'], [AnalyticsRuleDefinition]); + } + if (data.hasOwnProperty('nonce')) { + obj['nonce'] = ApiClient.convertToType(data['nonce'], 'Number'); + } + if (data.hasOwnProperty('signature')) { + obj['signature'] = ApiClient.convertToType(data['signature'], 'String'); + } + } + return obj; + } + + /** + * @member {String} sender_public_key + */ + exports.prototype['sender_public_key'] = undefined; + /** + * @member {Array.} rules_to_add + */ + exports.prototype['rules_to_add'] = undefined; + /** + * @member {Array.} rules_to_delete + */ + exports.prototype['rules_to_delete'] = undefined; + /** + * @member {Number} nonce + */ + exports.prototype['nonce'] = undefined; + /** + * @member {String} signature + */ + exports.prototype['signature'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleWalletDefinition.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleWalletDefinition.js new file mode 100644 index 0000000..f710c71 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsRuleWalletDefinition.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleWalletDefinition = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRuleWalletDefinition model module. + * @module model/AnalyticsRuleWalletDefinition + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleWalletDefinition. + * @alias module:model/AnalyticsRuleWalletDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleWalletDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleWalletDefinition} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleWalletDefinition} The populated AnalyticsRuleWalletDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('can_issue_confidentially')) { + obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); + } + if (data.hasOwnProperty('is_admin')) { + obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); + } + if (data.hasOwnProperty('can_issue_asset_id_first')) { + obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); + } + if (data.hasOwnProperty('can_issue_asset_id_last')) { + obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + } + if (data.hasOwnProperty('operation')) { + obj['operation'] = ApiClient.convertToType(data['operation'], 'String'); + } + } + return obj; + } + + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {Boolean} can_issue_confidentially + */ + exports.prototype['can_issue_confidentially'] = undefined; + /** + * @member {Boolean} is_admin + */ + exports.prototype['is_admin'] = undefined; + /** + * @member {Number} can_issue_asset_id_first + */ + exports.prototype['can_issue_asset_id_first'] = undefined; + /** + * @member {Number} can_issue_asset_id_last + */ + exports.prototype['can_issue_asset_id_last'] = undefined; + /** + * @member {String} operation + */ + exports.prototype['operation'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsSpendDescription.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsSpendDescription.js new file mode 100644 index 0000000..7f3ca10 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsSpendDescription.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsSpendDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsSpendDescription model module. + * @module model/AnalyticsSpendDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsSpendDescription. + * @alias module:model/AnalyticsSpendDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsSpendDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsSpendDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsSpendDescription} The populated AnalyticsSpendDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('cv')) { + obj['cv'] = ApiClient.convertToType(data['cv'], 'String'); + } + if (data.hasOwnProperty('anchor')) { + obj['anchor'] = ApiClient.convertToType(data['anchor'], 'String'); + } + if (data.hasOwnProperty('nullifier')) { + obj['nullifier'] = ApiClient.convertToType(data['nullifier'], 'String'); + } + if (data.hasOwnProperty('rk_out')) { + obj['rk_out'] = ApiClient.convertToType(data['rk_out'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + } + return obj; + } + + /** + * @member {String} cv + */ + exports.prototype['cv'] = undefined; + /** + * @member {String} anchor + */ + exports.prototype['anchor'] = undefined; + /** + * @member {String} nullifier + */ + exports.prototype['nullifier'] = undefined; + /** + * @member {String} rk_out + */ + exports.prototype['rk_out'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTransferTx.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTransferTx.js new file mode 100644 index 0000000..58018fe --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTransferTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsOutputDescription', 'model/AnalyticsSpendDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsAssetConverterProofDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsSpendDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsAssetConverterProofDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsSpendDescription); + } +}(this, function(ApiClient, AnalyticsAssetConverterProofDescription, AnalyticsOutputDescription, AnalyticsSpendDescription) { + 'use strict'; + + + + /** + * The AnalyticsTransferTx model module. + * @module model/AnalyticsTransferTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsTransferTx. + * @alias module:model/AnalyticsTransferTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsTransferTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsTransferTx} obj Optional instance to populate. + * @return {module:model/AnalyticsTransferTx} The populated AnalyticsTransferTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('asset_converter_descriptions')) { + obj['asset_converter_descriptions'] = ApiClient.convertToType(data['asset_converter_descriptions'], [AnalyticsAssetConverterProofDescription]); + } + if (data.hasOwnProperty('spends')) { + obj['spends'] = ApiClient.convertToType(data['spends'], [AnalyticsSpendDescription]); + } + if (data.hasOwnProperty('outputs')) { + obj['outputs'] = ApiClient.convertToType(data['outputs'], [AnalyticsOutputDescription]); + } + if (data.hasOwnProperty('binding_sig')) { + obj['binding_sig'] = ApiClient.convertToType(data['binding_sig'], 'String'); + } + if (data.hasOwnProperty('spend_auth_sigs')) { + obj['spend_auth_sigs'] = ApiClient.convertToType(data['spend_auth_sigs'], ['String']); + } + } + return obj; + } + + /** + * @member {Array.} asset_converter_descriptions + */ + exports.prototype['asset_converter_descriptions'] = undefined; + /** + * @member {Array.} spends + */ + exports.prototype['spends'] = undefined; + /** + * @member {Array.} outputs + */ + exports.prototype['outputs'] = undefined; + /** + * @member {String} binding_sig + */ + exports.prototype['binding_sig'] = undefined; + /** + * @member {Array.} spend_auth_sigs + */ + exports.prototype['spend_auth_sigs'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTxMetadata.js b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTxMetadata.js new file mode 100644 index 0000000..63b5c82 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AnalyticsTxMetadata.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsTxMetadata = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsTxMetadata model module. + * @module model/AnalyticsTxMetadata + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsTxMetadata. + * @alias module:model/AnalyticsTxMetadata + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsTxMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsTxMetadata} obj Optional instance to populate. + * @return {module:model/AnalyticsTxMetadata} The populated AnalyticsTxMetadata instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('tx_hash')) { + obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); + } + if (data.hasOwnProperty('block_hash')) { + obj['block_hash'] = ApiClient.convertToType(data['block_hash'], 'String'); + } + if (data.hasOwnProperty('timestamp')) { + obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); + } + if (data.hasOwnProperty('index_in_block')) { + obj['index_in_block'] = ApiClient.convertToType(data['index_in_block'], 'Number'); + } + if (data.hasOwnProperty('block_height')) { + obj['block_height'] = ApiClient.convertToType(data['block_height'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} type + */ + exports.prototype['type'] = undefined; + /** + * @member {String} tx_hash + */ + exports.prototype['tx_hash'] = undefined; + /** + * @member {String} block_hash + */ + exports.prototype['block_hash'] = undefined; + /** + * @member {String} timestamp + */ + exports.prototype['timestamp'] = undefined; + /** + * @member {Number} index_in_block + */ + exports.prototype['index_in_block'] = undefined; + /** + * @member {Number} block_height + */ + exports.prototype['block_height'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/AsyncTaskCreatedResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/AsyncTaskCreatedResponse.js new file mode 100644 index 0000000..09e03b9 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/AsyncTaskCreatedResponse.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AsyncTaskCreatedResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AsyncTaskCreatedResponse model module. + * @module model/AsyncTaskCreatedResponse + * @version 1.3.0 + */ + + /** + * Constructs a new AsyncTaskCreatedResponse. + * @alias module:model/AsyncTaskCreatedResponse + * @class + * @param id {String} + */ + var exports = function(id) { + var _this = this; + + _this['id'] = id; + }; + + /** + * Constructs a AsyncTaskCreatedResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AsyncTaskCreatedResponse} obj Optional instance to populate. + * @return {module:model/AsyncTaskCreatedResponse} The populated AsyncTaskCreatedResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/BalanceForAsset.js b/asset_transfers_dev_guide/js/sdk/src/model/BalanceForAsset.js new file mode 100644 index 0000000..65879ba --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/BalanceForAsset.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.BalanceForAsset = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The BalanceForAsset model module. + * @module model/BalanceForAsset + * @version 1.3.0 + */ + + /** + * Constructs a new BalanceForAsset. + * @alias module:model/BalanceForAsset + * @class + * @param assetId {Number} + * @param amount {Number} + */ + var exports = function(assetId, amount) { + var _this = this; + + _this['asset_id'] = assetId; + _this['amount'] = amount; + }; + + /** + * Constructs a BalanceForAsset from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BalanceForAsset} obj Optional instance to populate. + * @return {module:model/BalanceForAsset} The populated BalanceForAsset instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/Block.js b/asset_transfers_dev_guide/js/sdk/src/model/Block.js new file mode 100644 index 0000000..c7c06d8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/Block.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.2 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.Block = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The Block model module. + * @module model/Block + * @version 1.2.2 + */ + + /** + * Constructs a new Block. + * @alias module:model/Block + * @class + * @param blockHash {String} + * @param height {Number} + * @param transactions {Array.} + */ + var exports = function(blockHash, height, transactions) { + var _this = this; + + _this['block_hash'] = blockHash; + _this['height'] = height; + _this['transactions'] = transactions; + }; + + /** + * Constructs a Block from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Block} obj Optional instance to populate. + * @return {module:model/Block} The populated Block instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('block_hash')) { + obj['block_hash'] = ApiClient.convertToType(data['block_hash'], 'String'); + } + if (data.hasOwnProperty('height')) { + obj['height'] = ApiClient.convertToType(data['height'], 'Number'); + } + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], ['String']); + } + } + return obj; + } + + /** + * @member {String} block_hash + */ + exports.prototype['block_hash'] = undefined; + /** + * @member {Number} height + */ + exports.prototype['height'] = undefined; + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/ConfidentialAnalyticsOutput.js b/asset_transfers_dev_guide/js/sdk/src/model/ConfidentialAnalyticsOutput.js new file mode 100644 index 0000000..213b30e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/ConfidentialAnalyticsOutput.js @@ -0,0 +1,100 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsConfidentialIssuanceDescription'), require('./AnalyticsOutput'), require('./AnalyticsOutputDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ConfidentialAnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QedItAssetTransfers.AnalyticsOutput, root.QedItAssetTransfers.AnalyticsOutputDescription); + } +}(this, function(ApiClient, AnalyticsConfidentialIssuanceDescription, AnalyticsOutput, AnalyticsOutputDescription) { + 'use strict'; + + + + /** + * The ConfidentialAnalyticsOutput model module. + * @module model/ConfidentialAnalyticsOutput + * @version 1.2.3 + */ + + /** + * Constructs a new ConfidentialAnalyticsOutput. + * @alias module:model/ConfidentialAnalyticsOutput + * @class + * @extends module:model/AnalyticsOutput + * @implements module:model/AnalyticsOutput + * @param isConfidential {} + * @param outputDescription {} + * @param confidentialIssuanceDescription {} + */ + var exports = function(isConfidential, outputDescription, confidentialIssuanceDescription) { + var _this = this; + + AnalyticsOutput.call(_this, isConfidential, outputDescription); + _this['confidential_issuance_description'] = confidentialIssuanceDescription; + }; + + /** + * Constructs a ConfidentialAnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfidentialAnalyticsOutput} obj Optional instance to populate. + * @return {module:model/ConfidentialAnalyticsOutput} The populated ConfidentialAnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + AnalyticsOutput.constructFromObject(data, obj); + if (data.hasOwnProperty('confidential_issuance_description')) { + obj['confidential_issuance_description'] = AnalyticsConfidentialIssuanceDescription.constructFromObject(data['confidential_issuance_description']); + } + } + return obj; + } + + exports.prototype = Object.create(AnalyticsOutput.prototype); + exports.prototype.constructor = exports; + + /** + * @member {module:model/AnalyticsConfidentialIssuanceDescription} confidential_issuance_description + */ + exports.prototype['confidential_issuance_description'] = undefined; + + // Implement AnalyticsOutput interface: + /** + * @member {Boolean} is_confidential + */ +exports.prototype['is_confidential'] = undefined; + + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ +exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/CreateRuleRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/CreateRuleRequest.js new file mode 100644 index 0000000..6c6cfca --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/CreateRuleRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Rule'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Rule')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.CreateRuleRequest = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + } +}(this, function(ApiClient, Rule) { + 'use strict'; + + + + /** + * The CreateRuleRequest model module. + * @module model/CreateRuleRequest + * @version 1.3.0 + */ + + /** + * Constructs a new CreateRuleRequest. + * @alias module:model/CreateRuleRequest + * @class + * @param walletId {String} + * @param authorization {String} + * @param rulesToAdd {Array.} + */ + var exports = function(walletId, authorization, rulesToAdd) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + _this['rules_to_add'] = rulesToAdd; + }; + + /** + * Constructs a CreateRuleRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRuleRequest} obj Optional instance to populate. + * @return {module:model/CreateRuleRequest} The populated CreateRuleRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('rules_to_add')) { + obj['rules_to_add'] = ApiClient.convertToType(data['rules_to_add'], [Rule]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {Array.} rules_to_add + */ + exports.prototype['rules_to_add'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/DeleteRuleRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/DeleteRuleRequest.js new file mode 100644 index 0000000..a7b5981 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/DeleteRuleRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Rule'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Rule')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.DeleteRuleRequest = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + } +}(this, function(ApiClient, Rule) { + 'use strict'; + + + + /** + * The DeleteRuleRequest model module. + * @module model/DeleteRuleRequest + * @version 1.3.0 + */ + + /** + * Constructs a new DeleteRuleRequest. + * @alias module:model/DeleteRuleRequest + * @class + * @param walletId {String} + * @param authorization {String} + * @param rulesToDelete {Array.} + */ + var exports = function(walletId, authorization, rulesToDelete) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + _this['rules_to_delete'] = rulesToDelete; + }; + + /** + * Constructs a DeleteRuleRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRuleRequest} obj Optional instance to populate. + * @return {module:model/DeleteRuleRequest} The populated DeleteRuleRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('rules_to_delete')) { + obj['rules_to_delete'] = ApiClient.convertToType(data['rules_to_delete'], [Rule]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {Array.} rules_to_delete + */ + exports.prototype['rules_to_delete'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/DeleteWalletRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/DeleteWalletRequest.js new file mode 100644 index 0000000..b07aa1e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/DeleteWalletRequest.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.DeleteWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The DeleteWalletRequest model module. + * @module model/DeleteWalletRequest + * @version 1.3.0 + */ + + /** + * Constructs a new DeleteWalletRequest. + * @alias module:model/DeleteWalletRequest + * @class + * @param walletId {String} + * @param authorization {String} + */ + var exports = function(walletId, authorization) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + }; + + /** + * Constructs a DeleteWalletRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteWalletRequest} obj Optional instance to populate. + * @return {module:model/DeleteWalletRequest} The populated DeleteWalletRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/ErrorResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/ErrorResponse.js new file mode 100644 index 0000000..a8b1fef --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/ErrorResponse.js @@ -0,0 +1,87 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ErrorResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The ErrorResponse model module. + * @module model/ErrorResponse + * @version 1.3.0 + */ + + /** + * Constructs a new ErrorResponse. + * @alias module:model/ErrorResponse + * @class + * @param errorCode {Number} + */ + var exports = function(errorCode) { + var _this = this; + + _this['error_code'] = errorCode; + }; + + /** + * Constructs a ErrorResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ErrorResponse} obj Optional instance to populate. + * @return {module:model/ErrorResponse} The populated ErrorResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('error_code')) { + obj['error_code'] = ApiClient.convertToType(data['error_code'], 'Number'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + } + return obj; + } + + /** + * @member {Number} error_code + */ + exports.prototype['error_code'] = undefined; + /** + * @member {String} message + */ + exports.prototype['message'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletRequest.js new file mode 100644 index 0000000..fd87c57 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletRequest.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ExportWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The ExportWalletRequest model module. + * @module model/ExportWalletRequest + * @version 1.3.0 + */ + + /** + * Constructs a new ExportWalletRequest. + * @alias module:model/ExportWalletRequest + * @class + * @param walletId {String} + */ + var exports = function(walletId) { + var _this = this; + + _this['wallet_id'] = walletId; + }; + + /** + * Constructs a ExportWalletRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExportWalletRequest} obj Optional instance to populate. + * @return {module:model/ExportWalletRequest} The populated ExportWalletRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletResponse.js new file mode 100644 index 0000000..b2ef88a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/ExportWalletResponse.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ExportWalletResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The ExportWalletResponse model module. + * @module model/ExportWalletResponse + * @version 1.3.0 + */ + + /** + * Constructs a new ExportWalletResponse. + * @alias module:model/ExportWalletResponse + * @class + * @param walletId {String} + * @param encryptedSk {String} + * @param salt {String} + */ + var exports = function(walletId, encryptedSk, salt) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['encrypted_sk'] = encryptedSk; + _this['salt'] = salt; + }; + + /** + * Constructs a ExportWalletResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExportWalletResponse} obj Optional instance to populate. + * @return {module:model/ExportWalletResponse} The populated ExportWalletResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('encrypted_sk')) { + obj['encrypted_sk'] = ApiClient.convertToType(data['encrypted_sk'], 'String'); + } + if (data.hasOwnProperty('salt')) { + obj['salt'] = ApiClient.convertToType(data['salt'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} encrypted_sk + */ + exports.prototype['encrypted_sk'] = undefined; + /** + * @member {String} salt + */ + exports.prototype['salt'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GenerateWalletRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GenerateWalletRequest.js new file mode 100644 index 0000000..d1381d4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GenerateWalletRequest.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GenerateWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GenerateWalletRequest model module. + * @module model/GenerateWalletRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GenerateWalletRequest. + * @alias module:model/GenerateWalletRequest + * @class + * @param walletId {String} + * @param authorization {String} + */ + var exports = function(walletId, authorization) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + }; + + /** + * Constructs a GenerateWalletRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenerateWalletRequest} obj Optional instance to populate. + * @return {module:model/GenerateWalletRequest} The populated GenerateWalletRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetActivityRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetActivityRequest.js new file mode 100644 index 0000000..fd8f1f2 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetActivityRequest.js @@ -0,0 +1,98 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetActivityRequest model module. + * @module model/GetActivityRequest + * @version 1.2.3 + */ + + /** + * Constructs a new GetActivityRequest. + * @alias module:model/GetActivityRequest + * @class + * @param walletId {String} + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(walletId, startIndex, numberOfResults) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetActivityRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetActivityRequest} obj Optional instance to populate. + * @return {module:model/GetActivityRequest} The populated GetActivityRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetActivityResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetActivityResponse.js new file mode 100644 index 0000000..3661b6a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetActivityResponse.js @@ -0,0 +1,89 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/TransactionsForWallet'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./TransactionsForWallet')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.TransactionsForWallet); + } +}(this, function(ApiClient, TransactionsForWallet) { + 'use strict'; + + + + /** + * The GetActivityResponse model module. + * @module model/GetActivityResponse + * @version 1.2.3 + */ + + /** + * Constructs a new GetActivityResponse. + * @alias module:model/GetActivityResponse + * @class + * @param walletId {String} + * @param transactions {Array.} + */ + var exports = function(walletId, transactions) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['transactions'] = transactions; + }; + + /** + * Constructs a GetActivityResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetActivityResponse} obj Optional instance to populate. + * @return {module:model/GetActivityResponse} The populated GetActivityResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [TransactionsForWallet]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetAllWalletsResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetAllWalletsResponse.js new file mode 100644 index 0000000..b3c8fb2 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetAllWalletsResponse.js @@ -0,0 +1,78 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetAllWalletsResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetAllWalletsResponse model module. + * @module model/GetAllWalletsResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetAllWalletsResponse. + * @alias module:model/GetAllWalletsResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetAllWalletsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAllWalletsResponse} obj Optional instance to populate. + * @return {module:model/GetAllWalletsResponse} The populated GetAllWalletsResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_ids')) { + obj['wallet_ids'] = ApiClient.convertToType(data['wallet_ids'], ['String']); + } + } + return obj; + } + + /** + * @member {Array.} wallet_ids + */ + exports.prototype['wallet_ids'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksRequest.js new file mode 100644 index 0000000..9c73c8a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksRequest.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetBlocksRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetBlocksRequest model module. + * @module model/GetBlocksRequest + * @version 1.2.0 + */ + + /** + * Constructs a new GetBlocksRequest. + * @alias module:model/GetBlocksRequest + * @class + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(startIndex, numberOfResults) { + var _this = this; + + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetBlocksRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetBlocksRequest} obj Optional instance to populate. + * @return {module:model/GetBlocksRequest} The populated GetBlocksRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksResponse.js new file mode 100644 index 0000000..8dcf3a9 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetBlocksResponse.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Block'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Block')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetBlocksResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Block); + } +}(this, function(ApiClient, Block) { + 'use strict'; + + + + /** + * The GetBlocksResponse model module. + * @module model/GetBlocksResponse + * @version 1.2.0 + */ + + /** + * Constructs a new GetBlocksResponse. + * @alias module:model/GetBlocksResponse + * @class + * @param blocks {Array.} + */ + var exports = function(blocks) { + var _this = this; + + _this['blocks'] = blocks; + }; + + /** + * Constructs a GetBlocksResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetBlocksResponse} obj Optional instance to populate. + * @return {module:model/GetBlocksResponse} The populated GetBlocksResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('blocks')) { + obj['blocks'] = ApiClient.convertToType(data['blocks'], [Block]); + } + } + return obj; + } + + /** + * @member {Array.} blocks + */ + exports.prototype['blocks'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityRequest.js new file mode 100644 index 0000000..d735a60 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityRequest.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetNetworkActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetNetworkActivityRequest model module. + * @module model/GetNetworkActivityRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetNetworkActivityRequest. + * @alias module:model/GetNetworkActivityRequest + * @class + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(startIndex, numberOfResults) { + var _this = this; + + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetNetworkActivityRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNetworkActivityRequest} obj Optional instance to populate. + * @return {module:model/GetNetworkActivityRequest} The populated GetNetworkActivityRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityResponse.js new file mode 100644 index 0000000..d5f1d33 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetNetworkActivityResponse.js @@ -0,0 +1,78 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticTransaction'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticTransaction')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetNetworkActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticTransaction); + } +}(this, function(ApiClient, AnalyticTransaction) { + 'use strict'; + + + + /** + * The GetNetworkActivityResponse model module. + * @module model/GetNetworkActivityResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetNetworkActivityResponse. + * @alias module:model/GetNetworkActivityResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetNetworkActivityResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNetworkActivityResponse} obj Optional instance to populate. + * @return {module:model/GetNetworkActivityResponse} The populated GetNetworkActivityResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [AnalyticTransaction]); + } + } + return obj; + } + + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressRequest.js new file mode 100644 index 0000000..1703172 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressRequest.js @@ -0,0 +1,87 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetNewAddressRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetNewAddressRequest model module. + * @module model/GetNewAddressRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetNewAddressRequest. + * @alias module:model/GetNewAddressRequest + * @class + * @param walletId {String} + */ + var exports = function(walletId) { + var _this = this; + + _this['wallet_id'] = walletId; + }; + + /** + * Constructs a GetNewAddressRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNewAddressRequest} obj Optional instance to populate. + * @return {module:model/GetNewAddressRequest} The populated GetNewAddressRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('diversifier')) { + obj['diversifier'] = ApiClient.convertToType(data['diversifier'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} diversifier + */ + exports.prototype['diversifier'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressResponse.js new file mode 100644 index 0000000..5ff6c81 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetNewAddressResponse.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetNewAddressResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetNewAddressResponse model module. + * @module model/GetNewAddressResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetNewAddressResponse. + * @alias module:model/GetNewAddressResponse + * @class + * @param walletId {String} + * @param recipientAddress {String} + */ + var exports = function(walletId, recipientAddress) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['recipient_address'] = recipientAddress; + }; + + /** + * Constructs a GetNewAddressResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetNewAddressResponse} obj Optional instance to populate. + * @return {module:model/GetNewAddressResponse} The populated GetNewAddressResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyRequest.js new file mode 100644 index 0000000..b709f5e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyRequest.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetPublicKeyRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetPublicKeyRequest model module. + * @module model/GetPublicKeyRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetPublicKeyRequest. + * @alias module:model/GetPublicKeyRequest + * @class + * @param walletId {String} + */ + var exports = function(walletId) { + var _this = this; + + _this['wallet_id'] = walletId; + }; + + /** + * Constructs a GetPublicKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetPublicKeyRequest} obj Optional instance to populate. + * @return {module:model/GetPublicKeyRequest} The populated GetPublicKeyRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyResponse.js new file mode 100644 index 0000000..a247e69 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetPublicKeyResponse.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetPublicKeyResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetPublicKeyResponse model module. + * @module model/GetPublicKeyResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetPublicKeyResponse. + * @alias module:model/GetPublicKeyResponse + * @class + * @param walletId {String} + * @param publicKey {String} + */ + var exports = function(walletId, publicKey) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['public_key'] = publicKey; + }; + + /** + * Constructs a GetPublicKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetPublicKeyResponse} obj Optional instance to populate. + * @return {module:model/GetPublicKeyResponse} The populated GetPublicKeyResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetRulesResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetRulesResponse.js new file mode 100644 index 0000000..4dd4e04 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetRulesResponse.js @@ -0,0 +1,78 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/Rule'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./Rule')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetRulesResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Rule); + } +}(this, function(ApiClient, Rule) { + 'use strict'; + + + + /** + * The GetRulesResponse model module. + * @module model/GetRulesResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetRulesResponse. + * @alias module:model/GetRulesResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetRulesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRulesResponse} obj Optional instance to populate. + * @return {module:model/GetRulesResponse} The populated GetRulesResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('rules')) { + obj['rules'] = ApiClient.convertToType(data['rules'], [Rule]); + } + } + return obj; + } + + /** + * @member {Array.} rules + */ + exports.prototype['rules'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusRequest.js new file mode 100644 index 0000000..08c066b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusRequest.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetTaskStatusRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetTaskStatusRequest model module. + * @module model/GetTaskStatusRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetTaskStatusRequest. + * @alias module:model/GetTaskStatusRequest + * @class + * @param id {String} + */ + var exports = function(id) { + var _this = this; + + _this['id'] = id; + }; + + /** + * Constructs a GetTaskStatusRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTaskStatusRequest} obj Optional instance to populate. + * @return {module:model/GetTaskStatusRequest} The populated GetTaskStatusRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusResponse.js new file mode 100644 index 0000000..4c39563 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetTaskStatusResponse.js @@ -0,0 +1,127 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetTaskStatusResponse = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetTaskStatusResponse model module. + * @module model/GetTaskStatusResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetTaskStatusResponse. + * @alias module:model/GetTaskStatusResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetTaskStatusResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTaskStatusResponse} obj Optional instance to populate. + * @return {module:model/GetTaskStatusResponse} The populated GetTaskStatusResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); + } + if (data.hasOwnProperty('result')) { + obj['result'] = ApiClient.convertToType(data['result'], 'String'); + } + if (data.hasOwnProperty('tx_hash')) { + obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], Object); + } + if (data.hasOwnProperty('error')) { + obj['error'] = ApiClient.convertToType(data['error'], 'String'); + } + } + return obj; + } + + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + /** + * @member {Date} created_at + */ + exports.prototype['created_at'] = undefined; + /** + * @member {Date} updated_at + */ + exports.prototype['updated_at'] = undefined; + /** + * @member {String} result + */ + exports.prototype['result'] = undefined; + /** + * @member {String} tx_hash + */ + exports.prototype['tx_hash'] = undefined; + /** + * @member {String} type + */ + exports.prototype['type'] = undefined; + /** + * @member {Object} data + */ + exports.prototype['data'] = undefined; + /** + * @member {String} error + */ + exports.prototype['error'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsRequest.js new file mode 100644 index 0000000..61214d1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetTransactionsRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetTransactionsRequest model module. + * @module model/GetTransactionsRequest + * @version 1.2.0 + */ + + /** + * Constructs a new GetTransactionsRequest. + * @alias module:model/GetTransactionsRequest + * @class + * @param walletId {String} + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(walletId, startIndex, numberOfResults) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetTransactionsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTransactionsRequest} obj Optional instance to populate. + * @return {module:model/GetTransactionsRequest} The populated GetTransactionsRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsResponse.js new file mode 100644 index 0000000..3b3a6fc --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetTransactionsResponse.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/TransactionsForWallet'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./TransactionsForWallet')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetTransactionsResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.TransactionsForWallet); + } +}(this, function(ApiClient, TransactionsForWallet) { + 'use strict'; + + + + /** + * The GetTransactionsResponse model module. + * @module model/GetTransactionsResponse + * @version 1.2.0 + */ + + /** + * Constructs a new GetTransactionsResponse. + * @alias module:model/GetTransactionsResponse + * @class + * @param walletId {String} + * @param transactions {Array.} + */ + var exports = function(walletId, transactions) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['transactions'] = transactions; + }; + + /** + * Constructs a GetTransactionsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTransactionsResponse} obj Optional instance to populate. + * @return {module:model/GetTransactionsResponse} The populated GetTransactionsResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [TransactionsForWallet]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityRequest.js new file mode 100644 index 0000000..b9762e7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetWalletActivityRequest model module. + * @module model/GetWalletActivityRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletActivityRequest. + * @alias module:model/GetWalletActivityRequest + * @class + * @param walletId {String} + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(walletId, startIndex, numberOfResults) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetWalletActivityRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletActivityRequest} obj Optional instance to populate. + * @return {module:model/GetWalletActivityRequest} The populated GetWalletActivityRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityResponse.js new file mode 100644 index 0000000..5745601 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletActivityResponse.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticWalletTx'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticWalletTx')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletTx); + } +}(this, function(ApiClient, AnalyticWalletTx) { + 'use strict'; + + + + /** + * The GetWalletActivityResponse model module. + * @module model/GetWalletActivityResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletActivityResponse. + * @alias module:model/GetWalletActivityResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetWalletActivityResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletActivityResponse} obj Optional instance to populate. + * @return {module:model/GetWalletActivityResponse} The populated GetWalletActivityResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [AnalyticWalletTx]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceRequest.js new file mode 100644 index 0000000..c2fe314 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceRequest.js @@ -0,0 +1,80 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletBalanceRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetWalletBalanceRequest model module. + * @module model/GetWalletBalanceRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletBalanceRequest. + * @alias module:model/GetWalletBalanceRequest + * @class + * @param walletId {String} + */ + var exports = function(walletId) { + var _this = this; + + _this['wallet_id'] = walletId; + }; + + /** + * Constructs a GetWalletBalanceRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletBalanceRequest} obj Optional instance to populate. + * @return {module:model/GetWalletBalanceRequest} The populated GetWalletBalanceRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceResponse.js new file mode 100644 index 0000000..331d5cb --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/GetWalletBalanceResponse.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/BalanceForAsset'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./BalanceForAsset')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletBalanceResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.BalanceForAsset); + } +}(this, function(ApiClient, BalanceForAsset) { + 'use strict'; + + + + /** + * The GetWalletBalanceResponse model module. + * @module model/GetWalletBalanceResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletBalanceResponse. + * @alias module:model/GetWalletBalanceResponse + * @class + * @param walletId {String} + * @param assets {Array.} + */ + var exports = function(walletId, assets) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['assets'] = assets; + }; + + /** + * Constructs a GetWalletBalanceResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletBalanceResponse} obj Optional instance to populate. + * @return {module:model/GetWalletBalanceResponse} The populated GetWalletBalanceResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('assets')) { + obj['assets'] = ApiClient.convertToType(data['assets'], [BalanceForAsset]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} assets + */ + exports.prototype['assets'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponse.js b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponse.js new file mode 100644 index 0000000..f99593b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponse.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HealthcheckResponseItem'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HealthcheckResponseItem')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.HealthcheckResponseItem); + } +}(this, function(ApiClient, HealthcheckResponseItem) { + 'use strict'; + + + + /** + * The HealthcheckResponse model module. + * @module model/HealthcheckResponse + * @version 1.3.0 + */ + + /** + * Constructs a new HealthcheckResponse. + * @alias module:model/HealthcheckResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponse} obj Optional instance to populate. + * @return {module:model/HealthcheckResponse} The populated HealthcheckResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('version')) { + obj['version'] = ApiClient.convertToType(data['version'], 'String'); + } + if (data.hasOwnProperty('blockchain_connector')) { + obj['blockchain_connector'] = HealthcheckResponseItem.constructFromObject(data['blockchain_connector']); + } + if (data.hasOwnProperty('message_queue')) { + obj['message_queue'] = HealthcheckResponseItem.constructFromObject(data['message_queue']); + } + if (data.hasOwnProperty('database')) { + obj['database'] = HealthcheckResponseItem.constructFromObject(data['database']); + } + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} version + */ + exports.prototype['version'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} blockchain_connector + */ + exports.prototype['blockchain_connector'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} message_queue + */ + exports.prototype['message_queue'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} database + */ + exports.prototype['database'] = undefined; + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js new file mode 100644 index 0000000..b88cfe4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponseBlockchainConnector = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The HealthcheckResponseBlockchainConnector model module. + * @module model/HealthcheckResponseBlockchainConnector + * @version 1.2.3 + */ + + /** + * Constructs a new HealthcheckResponseBlockchainConnector. + * @alias module:model/HealthcheckResponseBlockchainConnector + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponseBlockchainConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponseBlockchainConnector} obj Optional instance to populate. + * @return {module:model/HealthcheckResponseBlockchainConnector} The populated HealthcheckResponseBlockchainConnector instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + if (data.hasOwnProperty('error')) { + obj['error'] = ApiClient.convertToType(data['error'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + /** + * @member {String} error + */ + exports.prototype['error'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseItem.js b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseItem.js new file mode 100644 index 0000000..c187982 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/HealthcheckResponseItem.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponseItem = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The HealthcheckResponseItem model module. + * @module model/HealthcheckResponseItem + * @version 1.3.0 + */ + + /** + * Constructs a new HealthcheckResponseItem. + * @alias module:model/HealthcheckResponseItem + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponseItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponseItem} obj Optional instance to populate. + * @return {module:model/HealthcheckResponseItem} The populated HealthcheckResponseItem instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + if (data.hasOwnProperty('error')) { + obj['error'] = ApiClient.convertToType(data['error'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + /** + * @member {String} error + */ + exports.prototype['error'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/ImportWalletRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/ImportWalletRequest.js new file mode 100644 index 0000000..222b13b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/ImportWalletRequest.js @@ -0,0 +1,107 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ImportWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The ImportWalletRequest model module. + * @module model/ImportWalletRequest + * @version 1.3.0 + */ + + /** + * Constructs a new ImportWalletRequest. + * @alias module:model/ImportWalletRequest + * @class + * @param walletId {String} + * @param encryptedSk {String} + * @param authorization {String} + * @param salt {String} + */ + var exports = function(walletId, encryptedSk, authorization, salt) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['encrypted_sk'] = encryptedSk; + _this['authorization'] = authorization; + _this['salt'] = salt; + }; + + /** + * Constructs a ImportWalletRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ImportWalletRequest} obj Optional instance to populate. + * @return {module:model/ImportWalletRequest} The populated ImportWalletRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('encrypted_sk')) { + obj['encrypted_sk'] = ApiClient.convertToType(data['encrypted_sk'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('salt')) { + obj['salt'] = ApiClient.convertToType(data['salt'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} encrypted_sk + */ + exports.prototype['encrypted_sk'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {String} salt + */ + exports.prototype['salt'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/IssueAssetRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/IssueAssetRequest.js new file mode 100644 index 0000000..ad798ff --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/IssueAssetRequest.js @@ -0,0 +1,134 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.IssueAssetRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The IssueAssetRequest model module. + * @module model/IssueAssetRequest + * @version 1.3.0 + */ + + /** + * Constructs a new IssueAssetRequest. + * @alias module:model/IssueAssetRequest + * @class + * @param walletId {String} + * @param authorization {String} + * @param recipientAddress {String} + * @param amount {Number} + * @param assetId {Number} + * @param confidential {Boolean} + * @param memo {String} + */ + var exports = function(walletId, authorization, recipientAddress, amount, assetId, confidential, memo) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + _this['recipient_address'] = recipientAddress; + _this['amount'] = amount; + _this['asset_id'] = assetId; + _this['confidential'] = confidential; + _this['memo'] = memo; + }; + + /** + * Constructs a IssueAssetRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/IssueAssetRequest} obj Optional instance to populate. + * @return {module:model/IssueAssetRequest} The populated IssueAssetRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('confidential')) { + obj['confidential'] = ApiClient.convertToType(data['confidential'], 'Boolean'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Boolean} confidential + */ + exports.prototype['confidential'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/PublicAnalyticsOutput.js b/asset_transfers_dev_guide/js/sdk/src/model/PublicAnalyticsOutput.js new file mode 100644 index 0000000..7d60ad4 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/PublicAnalyticsOutput.js @@ -0,0 +1,100 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsOutput'), require('./AnalyticsOutputDescription'), require('./AnalyticsPublicIssuanceDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.PublicAnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutput, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + } +}(this, function(ApiClient, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription) { + 'use strict'; + + + + /** + * The PublicAnalyticsOutput model module. + * @module model/PublicAnalyticsOutput + * @version 1.2.3 + */ + + /** + * Constructs a new PublicAnalyticsOutput. + * @alias module:model/PublicAnalyticsOutput + * @class + * @extends module:model/AnalyticsOutput + * @implements module:model/AnalyticsOutput + * @param isConfidential {} + * @param outputDescription {} + * @param publicIssuanceDescription {} + */ + var exports = function(isConfidential, outputDescription, publicIssuanceDescription) { + var _this = this; + + AnalyticsOutput.call(_this, isConfidential, outputDescription); + _this['public_issuance_description'] = publicIssuanceDescription; + }; + + /** + * Constructs a PublicAnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PublicAnalyticsOutput} obj Optional instance to populate. + * @return {module:model/PublicAnalyticsOutput} The populated PublicAnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + AnalyticsOutput.constructFromObject(data, obj); + if (data.hasOwnProperty('public_issuance_description')) { + obj['public_issuance_description'] = AnalyticsPublicIssuanceDescription.constructFromObject(data['public_issuance_description']); + } + } + return obj; + } + + exports.prototype = Object.create(AnalyticsOutput.prototype); + exports.prototype.constructor = exports; + + /** + * @member {module:model/AnalyticsPublicIssuanceDescription} public_issuance_description + */ + exports.prototype['public_issuance_description'] = undefined; + + // Implement AnalyticsOutput interface: + /** + * @member {Boolean} is_confidential + */ +exports.prototype['is_confidential'] = undefined; + + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ +exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/Rule.js b/asset_transfers_dev_guide/js/sdk/src/model/Rule.js new file mode 100644 index 0000000..c14cf62 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/Rule.js @@ -0,0 +1,108 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.Rule = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The Rule model module. + * @module model/Rule + * @version 1.3.0 + */ + + /** + * Constructs a new Rule. + * @alias module:model/Rule + * @class + * @param publicKey {String} + */ + var exports = function(publicKey) { + var _this = this; + + _this['public_key'] = publicKey; + }; + + /** + * Constructs a Rule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Rule} obj Optional instance to populate. + * @return {module:model/Rule} The populated Rule instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('can_issue_confidentially')) { + obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); + } + if (data.hasOwnProperty('can_issue_asset_id_first')) { + obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); + } + if (data.hasOwnProperty('can_issue_asset_id_last')) { + obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + } + if (data.hasOwnProperty('is_admin')) { + obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {Boolean} can_issue_confidentially + */ + exports.prototype['can_issue_confidentially'] = undefined; + /** + * @member {Number} can_issue_asset_id_first + */ + exports.prototype['can_issue_asset_id_first'] = undefined; + /** + * @member {Number} can_issue_asset_id_last + */ + exports.prototype['can_issue_asset_id_last'] = undefined; + /** + * @member {Boolean} is_admin + */ + exports.prototype['is_admin'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/TransactionsForWallet.js b/asset_transfers_dev_guide/js/sdk/src/model/TransactionsForWallet.js new file mode 100644 index 0000000..203dcec --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/TransactionsForWallet.js @@ -0,0 +1,125 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.TransactionsForWallet = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The TransactionsForWallet model module. + * @module model/TransactionsForWallet + * @version 1.3.0 + */ + + /** + * Constructs a new TransactionsForWallet. + * @alias module:model/TransactionsForWallet + * @class + * @param isIncoming {Boolean} + * @param assetId {Number} + * @param amount {Number} + * @param recipientAddress {String} + * @param memo {String} + * @param id {String} + */ + var exports = function(isIncoming, assetId, amount, recipientAddress, memo, id) { + var _this = this; + + _this['is_incoming'] = isIncoming; + _this['asset_id'] = assetId; + _this['amount'] = amount; + _this['recipient_address'] = recipientAddress; + _this['memo'] = memo; + _this['id'] = id; + }; + + /** + * Constructs a TransactionsForWallet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TransactionsForWallet} obj Optional instance to populate. + * @return {module:model/TransactionsForWallet} The populated TransactionsForWallet instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_incoming')) { + obj['is_incoming'] = ApiClient.convertToType(data['is_incoming'], 'Boolean'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} is_incoming + */ + exports.prototype['is_incoming'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + /** + * @member {String} id + */ + exports.prototype['id'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/TransferAssetRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/TransferAssetRequest.js new file mode 100644 index 0000000..5f617b1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/TransferAssetRequest.js @@ -0,0 +1,125 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.TransferAssetRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The TransferAssetRequest model module. + * @module model/TransferAssetRequest + * @version 1.3.0 + */ + + /** + * Constructs a new TransferAssetRequest. + * @alias module:model/TransferAssetRequest + * @class + * @param walletId {String} + * @param authorization {String} + * @param recipientAddress {String} + * @param amount {Number} + * @param assetId {Number} + * @param memo {String} + */ + var exports = function(walletId, authorization, recipientAddress, amount, assetId, memo) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + _this['recipient_address'] = recipientAddress; + _this['amount'] = amount; + _this['asset_id'] = assetId; + _this['memo'] = memo; + }; + + /** + * Constructs a TransferAssetRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TransferAssetRequest} obj Optional instance to populate. + * @return {module:model/TransferAssetRequest} The populated TransferAssetRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/src/model/UnlockWalletRequest.js b/asset_transfers_dev_guide/js/sdk/src/model/UnlockWalletRequest.js new file mode 100644 index 0000000..e5b9f36 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/src/model/UnlockWalletRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.UnlockWalletRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The UnlockWalletRequest model module. + * @module model/UnlockWalletRequest + * @version 1.3.0 + */ + + /** + * Constructs a new UnlockWalletRequest. + * @alias module:model/UnlockWalletRequest + * @class + * @param walletId {String} + * @param authorization {String} + * @param seconds {Number} + */ + var exports = function(walletId, authorization, seconds) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['authorization'] = authorization; + _this['seconds'] = seconds; + }; + + /** + * Constructs a UnlockWalletRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UnlockWalletRequest} obj Optional instance to populate. + * @return {module:model/UnlockWalletRequest} The populated UnlockWalletRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('authorization')) { + obj['authorization'] = ApiClient.convertToType(data['authorization'], 'String'); + } + if (data.hasOwnProperty('seconds')) { + obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {String} authorization + */ + exports.prototype['authorization'] = undefined; + /** + * @member {Number} seconds + */ + exports.prototype['seconds'] = undefined; + + + + return exports; +})); + + diff --git a/asset_transfers_dev_guide/js/sdk/test/api/AnalyticsApi.spec.js b/asset_transfers_dev_guide/js/sdk/test/api/AnalyticsApi.spec.js new file mode 100644 index 0000000..06d745f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/api/AnalyticsApi.spec.js @@ -0,0 +1,65 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsApi', function() { + describe('analyticsGetBlocksPost', function() { + it('should call analyticsGetBlocksPost successfully', function(done) { + //uncomment below and update the code to test analyticsGetBlocksPost + //instance.analyticsGetBlocksPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/api/HealthApi.spec.js b/asset_transfers_dev_guide/js/sdk/test/api/HealthApi.spec.js new file mode 100644 index 0000000..dd0b64d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/api/HealthApi.spec.js @@ -0,0 +1,65 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthApi', function() { + describe('healthPost', function() { + it('should call healthPost successfully', function(done) { + //uncomment below and update the code to test healthPost + //instance.healthPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/api/NodeApi.spec.js b/asset_transfers_dev_guide/js/sdk/test/api/NodeApi.spec.js new file mode 100644 index 0000000..e0b1335 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/api/NodeApi.spec.js @@ -0,0 +1,135 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.NodeApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NodeApi', function() { + describe('nodeDeleteWalletPost', function() { + it('should call nodeDeleteWalletPost successfully', function(done) { + //uncomment below and update the code to test nodeDeleteWalletPost + //instance.nodeDeleteWalletPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeExportWalletPost', function() { + it('should call nodeExportWalletPost successfully', function(done) { + //uncomment below and update the code to test nodeExportWalletPost + //instance.nodeExportWalletPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeGenerateWalletPost', function() { + it('should call nodeGenerateWalletPost successfully', function(done) { + //uncomment below and update the code to test nodeGenerateWalletPost + //instance.nodeGenerateWalletPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeGetAllWalletsPost', function() { + it('should call nodeGetAllWalletsPost successfully', function(done) { + //uncomment below and update the code to test nodeGetAllWalletsPost + //instance.nodeGetAllWalletsPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeGetRulesPost', function() { + it('should call nodeGetRulesPost successfully', function(done) { + //uncomment below and update the code to test nodeGetRulesPost + //instance.nodeGetRulesPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeGetTaskStatusPost', function() { + it('should call nodeGetTaskStatusPost successfully', function(done) { + //uncomment below and update the code to test nodeGetTaskStatusPost + //instance.nodeGetTaskStatusPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeImportWalletPost', function() { + it('should call nodeImportWalletPost successfully', function(done) { + //uncomment below and update the code to test nodeImportWalletPost + //instance.nodeImportWalletPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('nodeUnlockWalletPost', function() { + it('should call nodeUnlockWalletPost successfully', function(done) { + //uncomment below and update the code to test nodeUnlockWalletPost + //instance.nodeUnlockWalletPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/api/WalletApi.spec.js b/asset_transfers_dev_guide/js/sdk/test/api/WalletApi.spec.js new file mode 100644 index 0000000..4175006 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/api/WalletApi.spec.js @@ -0,0 +1,135 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.WalletApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WalletApi', function() { + describe('walletCreateRulePost', function() { + it('should call walletCreateRulePost successfully', function(done) { + //uncomment below and update the code to test walletCreateRulePost + //instance.walletCreateRulePost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletDeleteRulePost', function() { + it('should call walletDeleteRulePost successfully', function(done) { + //uncomment below and update the code to test walletDeleteRulePost + //instance.walletDeleteRulePost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletGetNewAddressPost', function() { + it('should call walletGetNewAddressPost successfully', function(done) { + //uncomment below and update the code to test walletGetNewAddressPost + //instance.walletGetNewAddressPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletGetPublicKeyPost', function() { + it('should call walletGetPublicKeyPost successfully', function(done) { + //uncomment below and update the code to test walletGetPublicKeyPost + //instance.walletGetPublicKeyPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletGetWalletActivitiesPost', function() { + it('should call walletGetWalletActivitiesPost successfully', function(done) { + //uncomment below and update the code to test walletGetWalletActivitiesPost + //instance.walletGetWalletActivitiesPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletGetWalletBalancesPost', function() { + it('should call walletGetWalletBalancesPost successfully', function(done) { + //uncomment below and update the code to test walletGetWalletBalancesPost + //instance.walletGetWalletBalancesPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletIssueAssetPost', function() { + it('should call walletIssueAssetPost successfully', function(done) { + //uncomment below and update the code to test walletIssueAssetPost + //instance.walletIssueAssetPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('walletTransferAssetPost', function() { + it('should call walletTransferAssetPost successfully', function(done) { + //uncomment below and update the code to test walletTransferAssetPost + //instance.walletTransferAssetPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticIssueWalletTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticIssueWalletTx.spec.js new file mode 100644 index 0000000..7b0148b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticIssueWalletTx.spec.js @@ -0,0 +1,103 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticIssueWalletTx', function() { + it('should create an instance of AnalyticIssueWalletTx', function() { + // uncomment below and update the code to test AnalyticIssueWalletTx + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticIssueWalletTx); + }); + + it('should have the property isIncoming (base name: "is_incoming")', function() { + // uncomment below and update the code to test the property isIncoming + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property issuedBySelf (base name: "issued_by_self")', function() { + // uncomment below and update the code to test the property issuedBySelf + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property isConfidential (base name: "is_confidential")', function() { + // uncomment below and update the code to test the property isConfidential + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticRuleWalletTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticRuleWalletTx.spec.js new file mode 100644 index 0000000..9ea117f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticRuleWalletTx.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticRuleWalletTx', function() { + it('should create an instance of AnalyticRuleWalletTx', function() { + // uncomment below and update the code to test AnalyticRuleWalletTx + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticRuleWalletTx); + }); + + it('should have the property signedBySelf (base name: "signed_by_self")', function() { + // uncomment below and update the code to test the property signedBySelf + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property ruleAffectMe (base name: "rule_affect_me")', function() { + // uncomment below and update the code to test the property ruleAffectMe + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property txSigner (base name: "tx_signer")', function() { + // uncomment below and update the code to test the property txSigner + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property rule (base name: "rule")', function() { + // uncomment below and update the code to test the property rule + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransaction.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransaction.spec.js new file mode 100644 index 0000000..060db5d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransaction.spec.js @@ -0,0 +1,103 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticTransaction(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticTransaction', function() { + it('should create an instance of AnalyticTransaction', function() { + // uncomment below and update the code to test AnalyticTransaction + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticTransaction); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property blockHash (base name: "block_hash")', function() { + // uncomment below and update the code to test the property blockHash + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property indexInBlock (base name: "index_in_block")', function() { + // uncomment below and update the code to test the property indexInBlock + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property blockHeight (base name: "block_height")', function() { + // uncomment below and update the code to test the property blockHeight + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransferWalletTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransferWalletTx.spec.js new file mode 100644 index 0000000..a17a410 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticTransferWalletTx.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticTransferWalletTx', function() { + it('should create an instance of AnalyticTransferWalletTx', function() { + // uncomment below and update the code to test AnalyticTransferWalletTx + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticTransferWalletTx); + }); + + it('should have the property isIncoming (base name: "is_incoming")', function() { + // uncomment below and update the code to test the property isIncoming + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletMetadata.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletMetadata.spec.js new file mode 100644 index 0000000..d4f0a87 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletMetadata.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticWalletMetadata', function() { + it('should create an instance of AnalyticWalletMetadata', function() { + // uncomment below and update the code to test AnalyticWalletMetadata + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticWalletMetadata); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletTx.spec.js new file mode 100644 index 0000000..c043361 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticWalletTx.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticWalletTx', function() { + it('should create an instance of AnalyticWalletTx', function() { + // uncomment below and update the code to test AnalyticWalletTx + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticWalletTx); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js new file mode 100644 index 0000000..aff3a48 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsAssetConverterProofDescription', function() { + it('should create an instance of AnalyticsAssetConverterProofDescription', function() { + // uncomment below and update the code to test AnalyticsAssetConverterProofDescription + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsAssetConverterProofDescription); + }); + + it('should have the property inputCv (base name: "input_cv")', function() { + // uncomment below and update the code to test the property inputCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property amountCv (base name: "amount_cv")', function() { + // uncomment below and update the code to test the property amountCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property assetCv (base name: "asset_cv")', function() { + // uncomment below and update the code to test the property assetCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js new file mode 100644 index 0000000..6f2cc8e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsConfidentialIssuanceDescription', function() { + it('should create an instance of AnalyticsConfidentialIssuanceDescription', function() { + // uncomment below and update the code to test AnalyticsConfidentialIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription); + }); + + it('should have the property inputCv (base name: "input_cv")', function() { + // uncomment below and update the code to test the property inputCv + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property rule (base name: "rule")', function() { + // uncomment below and update the code to test the property rule + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsContent.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsContent.spec.js new file mode 100644 index 0000000..a0a07b6 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsContent.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsContent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsContent', function() { + it('should create an instance of AnalyticsContent', function() { + // uncomment below and update the code to test AnalyticsContent + //var instance = new QedItAssetTransfers.AnalyticsContent(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsContent); + }); + + it('should have the property txType (base name: "tx_type")', function() { + // uncomment below and update the code to test the property txType + //var instance = new QedItAssetTransfers.AnalyticsContent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsIssueTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsIssueTx.spec.js new file mode 100644 index 0000000..5ab9f19 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsIssueTx.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsIssueTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsIssueTx', function() { + it('should create an instance of AnalyticsIssueTx', function() { + // uncomment below and update the code to test AnalyticsIssueTx + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsIssueTx); + }); + + it('should have the property outputs (base name: "outputs")', function() { + // uncomment below and update the code to test the property outputs + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be(); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutput.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutput.spec.js new file mode 100644 index 0000000..b914ecb --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutput.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsOutput', function() { + it('should create an instance of AnalyticsOutput', function() { + // uncomment below and update the code to test AnalyticsOutput + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsOutput); + }); + + it('should have the property outputDescription (base name: "output_description")', function() { + // uncomment below and update the code to test the property outputDescription + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property confidentialIssuanceDescription (base name: "confidential_issuance_description")', function() { + // uncomment below and update the code to test the property confidentialIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property isConfidential (base name: "is_confidential")', function() { + // uncomment below and update the code to test the property isConfidential + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutputDescription.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutputDescription.spec.js new file mode 100644 index 0000000..1d9758b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsOutputDescription.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsOutputDescription', function() { + it('should create an instance of AnalyticsOutputDescription', function() { + // uncomment below and update the code to test AnalyticsOutputDescription + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsOutputDescription); + }); + + it('should have the property cv (base name: "cv")', function() { + // uncomment below and update the code to test the property cv + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property cm (base name: "cm")', function() { + // uncomment below and update the code to test the property cm + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property epk (base name: "epk")', function() { + // uncomment below and update the code to test the property epk + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property encNote (base name: "enc_note")', function() { + // uncomment below and update the code to test the property encNote + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property encSender (base name: "enc_sender")', function() { + // uncomment below and update the code to test the property encSender + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js new file mode 100644 index 0000000..e96af18 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js @@ -0,0 +1,73 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsPublicIssuanceDescription', function() { + it('should create an instance of AnalyticsPublicIssuanceDescription', function() { + // uncomment below and update the code to test AnalyticsPublicIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRule.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRule.spec.js new file mode 100644 index 0000000..25dc149 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRule.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRule(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRule', function() { + it('should create an instance of AnalyticsRule', function() { + // uncomment below and update the code to test AnalyticsRule + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRule); + }); + + it('should have the property minId (base name: "min_id")', function() { + // uncomment below and update the code to test the property minId + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be(); + }); + + it('should have the property maxId (base name: "max_id")', function() { + // uncomment below and update the code to test the property maxId + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleDefinition.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleDefinition.spec.js new file mode 100644 index 0000000..d73cf7e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleDefinition.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleDefinition', function() { + it('should create an instance of AnalyticsRuleDefinition', function() { + // uncomment below and update the code to test AnalyticsRuleDefinition + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleDefinition); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleTx.spec.js new file mode 100644 index 0000000..4e7cb0f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleTx.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleTx', function() { + it('should create an instance of AnalyticsRuleTx', function() { + // uncomment below and update the code to test AnalyticsRuleTx + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleTx); + }); + + it('should have the property senderPublicKey (base name: "sender_public_key")', function() { + // uncomment below and update the code to test the property senderPublicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToAdd (base name: "rules_to_add")', function() { + // uncomment below and update the code to test the property rulesToAdd + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToDelete (base name: "rules_to_delete")', function() { + // uncomment below and update the code to test the property rulesToDelete + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js new file mode 100644 index 0000000..026f207 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleWalletDefinition', function() { + it('should create an instance of AnalyticsRuleWalletDefinition', function() { + // uncomment below and update the code to test AnalyticsRuleWalletDefinition + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleWalletDefinition); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property operation (base name: "operation")', function() { + // uncomment below and update the code to test the property operation + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsSpendDescription.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsSpendDescription.spec.js new file mode 100644 index 0000000..d6b018d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsSpendDescription.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsSpendDescription', function() { + it('should create an instance of AnalyticsSpendDescription', function() { + // uncomment below and update the code to test AnalyticsSpendDescription + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsSpendDescription); + }); + + it('should have the property cv (base name: "cv")', function() { + // uncomment below and update the code to test the property cv + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property anchor (base name: "anchor")', function() { + // uncomment below and update the code to test the property anchor + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property nullifier (base name: "nullifier")', function() { + // uncomment below and update the code to test the property nullifier + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property rkOut (base name: "rk_out")', function() { + // uncomment below and update the code to test the property rkOut + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property spendAuthSig (base name: "spend_auth_sig")', function() { + // uncomment below and update the code to test the property spendAuthSig + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTransferTx.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTransferTx.spec.js new file mode 100644 index 0000000..c1f56dd --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTransferTx.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsTransferTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsTransferTx', function() { + it('should create an instance of AnalyticsTransferTx', function() { + // uncomment below and update the code to test AnalyticsTransferTx + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTransferTx); + }); + + it('should have the property assetConverterDescriptions (base name: "asset_converter_descriptions")', function() { + // uncomment below and update the code to test the property assetConverterDescriptions + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + it('should have the property spends (base name: "spends")', function() { + // uncomment below and update the code to test the property spends + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + it('should have the property outputs (base name: "outputs")', function() { + // uncomment below and update the code to test the property outputs + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTxMetadata.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTxMetadata.spec.js new file mode 100644 index 0000000..db9d240 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AnalyticsTxMetadata.spec.js @@ -0,0 +1,97 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsTxMetadata', function() { + it('should create an instance of AnalyticsTxMetadata', function() { + // uncomment below and update the code to test AnalyticsTxMetadata + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTxMetadata); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property blockHash (base name: "block_hash")', function() { + // uncomment below and update the code to test the property blockHash + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property indexInBlock (base name: "index_in_block")', function() { + // uncomment below and update the code to test the property indexInBlock + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property blockHeight (base name: "block_height")', function() { + // uncomment below and update the code to test the property blockHeight + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js new file mode 100644 index 0000000..2ce7b9d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/AsyncTaskCreatedResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AsyncTaskCreatedResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AsyncTaskCreatedResponse', function() { + it('should create an instance of AsyncTaskCreatedResponse', function() { + // uncomment below and update the code to test AsyncTaskCreatedResponse + //var instance = new QedItAssetTransfers.AsyncTaskCreatedResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.AsyncTaskCreatedResponse); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new QedItAssetTransfers.AsyncTaskCreatedResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/BalanceForAsset.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/BalanceForAsset.spec.js new file mode 100644 index 0000000..202f0ce --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/BalanceForAsset.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.BalanceForAsset(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BalanceForAsset', function() { + it('should create an instance of BalanceForAsset', function() { + // uncomment below and update the code to test BalanceForAsset + //var instance = new QedItAssetTransfers.BalanceForAsset(); + //expect(instance).to.be.a(QedItAssetTransfers.BalanceForAsset); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.BalanceForAsset(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.BalanceForAsset(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/Block.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/Block.spec.js new file mode 100644 index 0000000..71c5438 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/Block.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.Block(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Block', function() { + it('should create an instance of Block', function() { + // uncomment below and update the code to test Block + //var instance = new QedItAssetTransfers.Block(); + //expect(instance).to.be.a(QedItAssetTransfers.Block); + }); + + it('should have the property blockHash (base name: "block_hash")', function() { + // uncomment below and update the code to test the property blockHash + //var instance = new QedItAssetTransfers.Block(); + //expect(instance).to.be(); + }); + + it('should have the property height (base name: "height")', function() { + // uncomment below and update the code to test the property height + //var instance = new QedItAssetTransfers.Block(); + //expect(instance).to.be(); + }); + + it('should have the property transactions (base name: "transactions")', function() { + // uncomment below and update the code to test the property transactions + //var instance = new QedItAssetTransfers.Block(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js new file mode 100644 index 0000000..3948a5a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ConfidentialAnalyticsOutput', function() { + it('should create an instance of ConfidentialAnalyticsOutput', function() { + // uncomment below and update the code to test ConfidentialAnalyticsOutput + //var instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.ConfidentialAnalyticsOutput); + }); + + it('should have the property confidentialIssuanceDescription (base name: "confidential_issuance_description")', function() { + // uncomment below and update the code to test the property confidentialIssuanceDescription + //var instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/CreateRuleRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/CreateRuleRequest.spec.js new file mode 100644 index 0000000..9c942f8 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/CreateRuleRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.CreateRuleRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateRuleRequest', function() { + it('should create an instance of CreateRuleRequest', function() { + // uncomment below and update the code to test CreateRuleRequest + //var instance = new QedItAssetTransfers.CreateRuleRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.CreateRuleRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.CreateRuleRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.CreateRuleRequest(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToAdd (base name: "rules_to_add")', function() { + // uncomment below and update the code to test the property rulesToAdd + //var instance = new QedItAssetTransfers.CreateRuleRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/DeleteRuleRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/DeleteRuleRequest.spec.js new file mode 100644 index 0000000..73d6343 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/DeleteRuleRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.DeleteRuleRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeleteRuleRequest', function() { + it('should create an instance of DeleteRuleRequest', function() { + // uncomment below and update the code to test DeleteRuleRequest + //var instance = new QedItAssetTransfers.DeleteRuleRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.DeleteRuleRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.DeleteRuleRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.DeleteRuleRequest(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToDelete (base name: "rules_to_delete")', function() { + // uncomment below and update the code to test the property rulesToDelete + //var instance = new QedItAssetTransfers.DeleteRuleRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/DeleteWalletRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/DeleteWalletRequest.spec.js new file mode 100644 index 0000000..6ad78be --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/DeleteWalletRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.DeleteWalletRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeleteWalletRequest', function() { + it('should create an instance of DeleteWalletRequest', function() { + // uncomment below and update the code to test DeleteWalletRequest + //var instance = new QedItAssetTransfers.DeleteWalletRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.DeleteWalletRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.DeleteWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.DeleteWalletRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/ErrorResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/ErrorResponse.spec.js new file mode 100644 index 0000000..6566841 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/ErrorResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ErrorResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ErrorResponse', function() { + it('should create an instance of ErrorResponse', function() { + // uncomment below and update the code to test ErrorResponse + //var instance = new QedItAssetTransfers.ErrorResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.ErrorResponse); + }); + + it('should have the property errorCode (base name: "error_code")', function() { + // uncomment below and update the code to test the property errorCode + //var instance = new QedItAssetTransfers.ErrorResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new QedItAssetTransfers.ErrorResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletRequest.spec.js new file mode 100644 index 0000000..f42922b --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletRequest.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ExportWalletRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExportWalletRequest', function() { + it('should create an instance of ExportWalletRequest', function() { + // uncomment below and update the code to test ExportWalletRequest + //var instance = new QedItAssetTransfers.ExportWalletRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.ExportWalletRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.ExportWalletRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletResponse.spec.js new file mode 100644 index 0000000..1503447 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/ExportWalletResponse.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ExportWalletResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExportWalletResponse', function() { + it('should create an instance of ExportWalletResponse', function() { + // uncomment below and update the code to test ExportWalletResponse + //var instance = new QedItAssetTransfers.ExportWalletResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.ExportWalletResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.ExportWalletResponse(); + //expect(instance).to.be(); + }); + + it('should have the property encryptedSk (base name: "encrypted_sk")', function() { + // uncomment below and update the code to test the property encryptedSk + //var instance = new QedItAssetTransfers.ExportWalletResponse(); + //expect(instance).to.be(); + }); + + it('should have the property salt (base name: "salt")', function() { + // uncomment below and update the code to test the property salt + //var instance = new QedItAssetTransfers.ExportWalletResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GenerateWalletRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GenerateWalletRequest.spec.js new file mode 100644 index 0000000..d9345f9 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GenerateWalletRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GenerateWalletRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GenerateWalletRequest', function() { + it('should create an instance of GenerateWalletRequest', function() { + // uncomment below and update the code to test GenerateWalletRequest + //var instance = new QedItAssetTransfers.GenerateWalletRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GenerateWalletRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GenerateWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.GenerateWalletRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetActivityRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetActivityRequest.spec.js new file mode 100644 index 0000000..134c65d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetActivityRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.2 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetActivityRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetActivityRequest', function() { + it('should create an instance of GetActivityRequest', function() { + // uncomment below and update the code to test GetActivityRequest + //var instance = new QedItAssetTransfers.GetActivityRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetActivityRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetActivityRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetActivityResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetActivityResponse.spec.js new file mode 100644 index 0000000..55fffc0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetActivityResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.2 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetActivityResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetActivityResponse', function() { + it('should create an instance of GetActivityResponse', function() { + // uncomment below and update the code to test GetActivityResponse + //var instance = new QedItAssetTransfers.GetActivityResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetActivityResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetActivityResponse(); + //expect(instance).to.be(); + }); + + it('should have the property transactions (base name: "transactions")', function() { + // uncomment below and update the code to test the property transactions + //var instance = new QedItAssetTransfers.GetActivityResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetAllWalletsResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetAllWalletsResponse.spec.js new file mode 100644 index 0000000..53ca424 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetAllWalletsResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetAllWalletsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetAllWalletsResponse', function() { + it('should create an instance of GetAllWalletsResponse', function() { + // uncomment below and update the code to test GetAllWalletsResponse + //var instance = new QedItAssetTransfers.GetAllWalletsResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetAllWalletsResponse); + }); + + it('should have the property walletIds (base name: "wallet_ids")', function() { + // uncomment below and update the code to test the property walletIds + //var instance = new QedItAssetTransfers.GetAllWalletsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksRequest.spec.js new file mode 100644 index 0000000..01585a7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetBlocksRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetBlocksRequest', function() { + it('should create an instance of GetBlocksRequest', function() { + // uncomment below and update the code to test GetBlocksRequest + //var instance = new QedItAssetTransfers.GetBlocksRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetBlocksRequest); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetBlocksRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetBlocksRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksResponse.spec.js new file mode 100644 index 0000000..0ade62e --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetBlocksResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetBlocksResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetBlocksResponse', function() { + it('should create an instance of GetBlocksResponse', function() { + // uncomment below and update the code to test GetBlocksResponse + //var instance = new QedItAssetTransfers.GetBlocksResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetBlocksResponse); + }); + + it('should have the property blocks (base name: "blocks")', function() { + // uncomment below and update the code to test the property blocks + //var instance = new QedItAssetTransfers.GetBlocksResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityRequest.spec.js new file mode 100644 index 0000000..2f8196f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetNetworkActivityRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNetworkActivityRequest', function() { + it('should create an instance of GetNetworkActivityRequest', function() { + // uncomment below and update the code to test GetNetworkActivityRequest + //var instance = new QedItAssetTransfers.GetNetworkActivityRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetNetworkActivityRequest); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetNetworkActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetNetworkActivityRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityResponse.spec.js new file mode 100644 index 0000000..48176ac --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetNetworkActivityResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetNetworkActivityResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNetworkActivityResponse', function() { + it('should create an instance of GetNetworkActivityResponse', function() { + // uncomment below and update the code to test GetNetworkActivityResponse + //var instance = new QedItAssetTransfers.GetNetworkActivityResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetNetworkActivityResponse); + }); + + it('should have the property blocks (base name: "blocks")', function() { + // uncomment below and update the code to test the property blocks + //var instance = new QedItAssetTransfers.GetNetworkActivityResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressRequest.spec.js new file mode 100644 index 0000000..f309eeb --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressRequest.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetNewAddressRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNewAddressRequest', function() { + it('should create an instance of GetNewAddressRequest', function() { + // uncomment below and update the code to test GetNewAddressRequest + //var instance = new QedItAssetTransfers.GetNewAddressRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetNewAddressRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetNewAddressRequest(); + //expect(instance).to.be(); + }); + + it('should have the property diversifier (base name: "diversifier")', function() { + // uncomment below and update the code to test the property diversifier + //var instance = new QedItAssetTransfers.GetNewAddressRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressResponse.spec.js new file mode 100644 index 0000000..193a6ba --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetNewAddressResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetNewAddressResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetNewAddressResponse', function() { + it('should create an instance of GetNewAddressResponse', function() { + // uncomment below and update the code to test GetNewAddressResponse + //var instance = new QedItAssetTransfers.GetNewAddressResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetNewAddressResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetNewAddressResponse(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.GetNewAddressResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyRequest.spec.js new file mode 100644 index 0000000..ad52dd1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyRequest.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetPublicKeyRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetPublicKeyRequest', function() { + it('should create an instance of GetPublicKeyRequest', function() { + // uncomment below and update the code to test GetPublicKeyRequest + //var instance = new QedItAssetTransfers.GetPublicKeyRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetPublicKeyRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetPublicKeyRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyResponse.spec.js new file mode 100644 index 0000000..b11e965 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetPublicKeyResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetPublicKeyResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetPublicKeyResponse', function() { + it('should create an instance of GetPublicKeyResponse', function() { + // uncomment below and update the code to test GetPublicKeyResponse + //var instance = new QedItAssetTransfers.GetPublicKeyResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetPublicKeyResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetPublicKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.GetPublicKeyResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetRulesResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetRulesResponse.spec.js new file mode 100644 index 0000000..9f75e54 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetRulesResponse.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetRulesResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetRulesResponse', function() { + it('should create an instance of GetRulesResponse', function() { + // uncomment below and update the code to test GetRulesResponse + //var instance = new QedItAssetTransfers.GetRulesResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetRulesResponse); + }); + + it('should have the property rules (base name: "rules")', function() { + // uncomment below and update the code to test the property rules + //var instance = new QedItAssetTransfers.GetRulesResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusRequest.spec.js new file mode 100644 index 0000000..0129da3 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusRequest.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetTaskStatusRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetTaskStatusRequest', function() { + it('should create an instance of GetTaskStatusRequest', function() { + // uncomment below and update the code to test GetTaskStatusRequest + //var instance = new QedItAssetTransfers.GetTaskStatusRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetTaskStatusRequest); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new QedItAssetTransfers.GetTaskStatusRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusResponse.spec.js new file mode 100644 index 0000000..3d9e574 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetTaskStatusResponse.spec.js @@ -0,0 +1,109 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetTaskStatusResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetTaskStatusResponse', function() { + it('should create an instance of GetTaskStatusResponse', function() { + // uncomment below and update the code to test GetTaskStatusResponse + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetTaskStatusResponse); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property result (base name: "result")', function() { + // uncomment below and update the code to test the property result + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property error (base name: "error")', function() { + // uncomment below and update the code to test the property error + //var instance = new QedItAssetTransfers.GetTaskStatusResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsRequest.spec.js new file mode 100644 index 0000000..bc158b0 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetTransactionsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetTransactionsRequest', function() { + it('should create an instance of GetTransactionsRequest', function() { + // uncomment below and update the code to test GetTransactionsRequest + //var instance = new QedItAssetTransfers.GetTransactionsRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetTransactionsRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetTransactionsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetTransactionsRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetTransactionsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsResponse.spec.js new file mode 100644 index 0000000..5a9f1ae --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetTransactionsResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetTransactionsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetTransactionsResponse', function() { + it('should create an instance of GetTransactionsResponse', function() { + // uncomment below and update the code to test GetTransactionsResponse + //var instance = new QedItAssetTransfers.GetTransactionsResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetTransactionsResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetTransactionsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property transactions (base name: "transactions")', function() { + // uncomment below and update the code to test the property transactions + //var instance = new QedItAssetTransfers.GetTransactionsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityRequest.spec.js new file mode 100644 index 0000000..e60d9c7 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletActivityRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletActivityRequest', function() { + it('should create an instance of GetWalletActivityRequest', function() { + // uncomment below and update the code to test GetWalletActivityRequest + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletActivityRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityResponse.spec.js new file mode 100644 index 0000000..d085980 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletActivityResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletActivityResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletActivityResponse', function() { + it('should create an instance of GetWalletActivityResponse', function() { + // uncomment below and update the code to test GetWalletActivityResponse + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletActivityResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be(); + }); + + it('should have the property transactions (base name: "transactions")', function() { + // uncomment below and update the code to test the property transactions + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceRequest.spec.js new file mode 100644 index 0000000..c0946e2 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceRequest.spec.js @@ -0,0 +1,67 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletBalanceRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletBalanceRequest', function() { + it('should create an instance of GetWalletBalanceRequest', function() { + // uncomment below and update the code to test GetWalletBalanceRequest + //var instance = new QedItAssetTransfers.GetWalletBalanceRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletBalanceRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletBalanceRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceResponse.spec.js new file mode 100644 index 0000000..a1039ff --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/GetWalletBalanceResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletBalanceResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletBalanceResponse', function() { + it('should create an instance of GetWalletBalanceResponse', function() { + // uncomment below and update the code to test GetWalletBalanceResponse + //var instance = new QedItAssetTransfers.GetWalletBalanceResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletBalanceResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletBalanceResponse(); + //expect(instance).to.be(); + }); + + it('should have the property assets (base name: "assets")', function() { + // uncomment below and update the code to test the property assets + //var instance = new QedItAssetTransfers.GetWalletBalanceResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponse.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponse.spec.js new file mode 100644 index 0000000..21fdc2a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponse.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponse', function() { + it('should create an instance of HealthcheckResponse', function() { + // uncomment below and update the code to test HealthcheckResponse + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponse); + }); + + it('should have the property blockchainConnector (base name: "blockchain_connector")', function() { + // uncomment below and update the code to test the property blockchainConnector + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property mq (base name: "mq")', function() { + // uncomment below and update the code to test the property mq + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property database (base name: "database")', function() { + // uncomment below and update the code to test the property database + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js new file mode 100644 index 0000000..c700fc1 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponseBlockchainConnector', function() { + it('should create an instance of HealthcheckResponseBlockchainConnector', function() { + // uncomment below and update the code to test HealthcheckResponseBlockchainConnector + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponseBlockchainConnector); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be(); + }); + + it('should have the property error (base name: "error")', function() { + // uncomment below and update the code to test the property error + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseItem.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseItem.spec.js new file mode 100644 index 0000000..4caab6a --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/HealthcheckResponseItem.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponseItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponseItem', function() { + it('should create an instance of HealthcheckResponseItem', function() { + // uncomment below and update the code to test HealthcheckResponseItem + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponseItem); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be(); + }); + + it('should have the property error (base name: "error")', function() { + // uncomment below and update the code to test the property error + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/ImportWalletRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/ImportWalletRequest.spec.js new file mode 100644 index 0000000..8526289 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/ImportWalletRequest.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ImportWalletRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ImportWalletRequest', function() { + it('should create an instance of ImportWalletRequest', function() { + // uncomment below and update the code to test ImportWalletRequest + //var instance = new QedItAssetTransfers.ImportWalletRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.ImportWalletRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.ImportWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property encryptedSk (base name: "encrypted_sk")', function() { + // uncomment below and update the code to test the property encryptedSk + //var instance = new QedItAssetTransfers.ImportWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.ImportWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property salt (base name: "salt")', function() { + // uncomment below and update the code to test the property salt + //var instance = new QedItAssetTransfers.ImportWalletRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/IssueAssetRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/IssueAssetRequest.spec.js new file mode 100644 index 0000000..f32e8c6 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/IssueAssetRequest.spec.js @@ -0,0 +1,103 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.IssueAssetRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('IssueAssetRequest', function() { + it('should create an instance of IssueAssetRequest', function() { + // uncomment below and update the code to test IssueAssetRequest + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.IssueAssetRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property confidential (base name: "confidential")', function() { + // uncomment below and update the code to test the property confidential + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.IssueAssetRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/PublicAnalyticsOutput.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/PublicAnalyticsOutput.spec.js new file mode 100644 index 0000000..ada7b0d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/PublicAnalyticsOutput.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PublicAnalyticsOutput', function() { + it('should create an instance of PublicAnalyticsOutput', function() { + // uncomment below and update the code to test PublicAnalyticsOutput + //var instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.PublicAnalyticsOutput); + }); + + it('should have the property publicIssuanceDescription (base name: "public_issuance_description")', function() { + // uncomment below and update the code to test the property publicIssuanceDescription + //var instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/Rule.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/Rule.spec.js new file mode 100644 index 0000000..1437ea3 --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/Rule.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.Rule(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Rule', function() { + it('should create an instance of Rule', function() { + // uncomment below and update the code to test Rule + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be.a(QedItAssetTransfers.Rule); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin + //var instance = new QedItAssetTransfers.Rule(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/TransactionsForWallet.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/TransactionsForWallet.spec.js new file mode 100644 index 0000000..47d2bdd --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/TransactionsForWallet.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.TransactionsForWallet(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TransactionsForWallet', function() { + it('should create an instance of TransactionsForWallet', function() { + // uncomment below and update the code to test TransactionsForWallet + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be.a(QedItAssetTransfers.TransactionsForWallet); + }); + + it('should have the property isIncoming (base name: "is_incoming")', function() { + // uncomment below and update the code to test the property isIncoming + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new QedItAssetTransfers.TransactionsForWallet(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/TransferAssetRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/TransferAssetRequest.spec.js new file mode 100644 index 0000000..9c4489f --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/TransferAssetRequest.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.TransferAssetRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TransferAssetRequest', function() { + it('should create an instance of TransferAssetRequest', function() { + // uncomment below and update the code to test TransferAssetRequest + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.TransferAssetRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.TransferAssetRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/js/sdk/test/model/UnlockWalletRequest.spec.js b/asset_transfers_dev_guide/js/sdk/test/model/UnlockWalletRequest.spec.js new file mode 100644 index 0000000..5c0e68d --- /dev/null +++ b/asset_transfers_dev_guide/js/sdk/test/model/UnlockWalletRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.UnlockWalletRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UnlockWalletRequest', function() { + it('should create an instance of UnlockWalletRequest', function() { + // uncomment below and update the code to test UnlockWalletRequest + //var instance = new QedItAssetTransfers.UnlockWalletRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.UnlockWalletRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.UnlockWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property authorization (base name: "authorization")', function() { + // uncomment below and update the code to test the property authorization + //var instance = new QedItAssetTransfers.UnlockWalletRequest(); + //expect(instance).to.be(); + }); + + it('should have the property seconds (base name: "seconds")', function() { + // uncomment below and update the code to test the property seconds + //var instance = new QedItAssetTransfers.UnlockWalletRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/asset_transfers_dev_guide/spec/asset-swagger.yaml b/asset_transfers_dev_guide/spec/asset-swagger.yaml new file mode 100644 index 0000000..7ad1c96 --- /dev/null +++ b/asset_transfers_dev_guide/spec/asset-swagger.yaml @@ -0,0 +1,1439 @@ +openapi: 3.0.0 +info: + version: 1.3.0 + title: QED-it - Asset Transfers +security: + - ApiKeyAuth: [] +servers: + - url: http://{server_url}:12052 + variables: + server_url: + default: localhost +paths: + /wallet/get_balances: + post: + tags: + - Wallet + summary: Get wallets balance + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletBalanceRequest' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletBalanceResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/issue_asset: + post: + tags: + - Wallet + summary: Issue assets [async call] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/IssueAssetRequest' + responses: + '201': + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/transfer_asset: + post: + tags: + - Wallet + summary: Transfer assets [async call] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/TransferAssetRequest' + responses: + '201': + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/get_new_address: + post: + tags: + - Wallet + summary: Get a new address from a given diversifier or generate randomly + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetNewAddressRequest' + responses: + '201': + description: Success/Created + content: + application/json: + schema: + $ref: '#/components/schemas/GetNewAddressResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/get_public_key: + post: + tags: + - Wallet + summary: Get wallet public key + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetPublicKeyRequest' + responses: + '201': + description: Success/Created + content: + application/json: + schema: + $ref: '#/components/schemas/GetPublicKeyResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/create_rule: + post: + tags: + - Wallet + summary: Create & broadcast add-config-rule [async call] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateRuleRequest' + responses: + '201': + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/delete_rule: + post: + tags: + - Wallet + summary: Create & broadcast delete-config-rule [async call] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteRuleRequest' + responses: + '201': + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /wallet/get_activity: + post: + tags: + - Wallet + summary: Get wallet activity (transactions) + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletActivityRequest' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetWalletActivityResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /analytics/get_network_activity: + post: + tags: + - Analytics + summary: Get details on past blocks + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetNetworkActivityRequest' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetNetworkActivityResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/generate_wallet: + post: + tags: + - Node + summary: Generate a new wallet + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GenerateWalletRequest' + responses: + '200': + description: Success + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/delete_wallet: + post: + tags: + - Node + summary: Delete a wallet + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteWalletRequest' + responses: + '200': + description: Success + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/import_wallet: + post: + tags: + - Node + summary: Import wallet from secret key + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ImportWalletRequest' + responses: + '200': + description: Success + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/unlock_wallet: + post: + tags: + - Node + summary: Unlocks a wallet for a given amount of seconds [async call] + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UnlockWalletRequest' + responses: + '201': + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/AsyncTaskCreatedResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/export_wallet: + post: + tags: + - Node + summary: Export wallet secret key + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ExportWalletRequest' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/ExportWalletResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/get_rules: + post: + tags: + - Node + summary: Get network governance rules + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetRulesResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/get_all_wallets: + post: + tags: + - Node + summary: Get all wallet labels + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetAllWalletsResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /node/get_task_status: + post: + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GetTaskStatusRequest' + tags: + - Node + summary: Get all tasks in the node + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GetTaskStatusResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '401': + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + /health: + post: + tags: + - Health + summary: Perform a healthcheck of the node and its dependent services + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/HealthcheckResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' +components: + securitySchemes: + ApiKeyAuth: + type: apiKey + name: x-auth-token + in: header + schemas: + IntPointer: + type: integer + GetWalletBalanceRequest: + type: object + properties: + wallet_id: + type: string + required: + - wallet_id + example: + wallet_id: source_wallet + BalanceForAsset: + type: object + properties: + asset_id: + type: integer + amount: + type: integer + required: + - asset_id + - amount + example: + wallet_id: source_wallet + GetWalletBalanceResponse: + type: object + properties: + wallet_id: + type: string + assets: + type: array + items: + $ref: '#/components/schemas/BalanceForAsset' + required: + - wallet_id + - assets + example: + wallet_id: source_wallet + assets: + - asset_id: 1 + amount: 8 + TransferAssetRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + recipient_address: + type: string + amount: + type: integer + asset_id: + type: integer + memo: + type: string + required: + - wallet_id + - authorization + - recipient_address + - amount + - asset_id + - memo + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + amount: 4 + asset_id: 1 + memo: '{"recipient_name": "Dan"}' + GetWalletActivityRequest: + type: object + properties: + wallet_id: + type: string + start_index: + type: integer + number_of_results: + type: integer + required: + - wallet_id + - start_index + - number_of_results + example: + wallet_id: source_wallet + start_index: 0 + number_of_results: 10 + TransactionsForWallet: + type: object + properties: + is_incoming: + type: boolean + asset_id: + type: integer + amount: + type: integer + recipient_address: + type: string + memo: + type: string + id: + type: string + required: + - is_incoming + - asset_id + - amount + - recipient_address + - memo + - id + GetRulesResponse: + type: object + properties: + rules: + type: array + items: + $ref: '#/components/schemas/Rule' + GetAllWalletsResponse: + type: object + properties: + wallet_ids: + type: array + items: + type: string + example: + wallet_ids: + - Jane + - John + - Marty + GetTaskStatusRequest: + type: object + properties: + id: + type: string + required: + - id + example: + id: "5aaa4045-e949-4c44-a7ef-25fb55a1afa6" + GetTaskStatusResponse: + type: object + properties: + id: + type: string + created_at: + type: string + format: date + updated_at: + type: string + format: date + result: + type: string + tx_hash: + type: string + type: + type: string + data: + type: object + error: + type: string + example: + id: "5aaa4045-e949-4c44-a7ef-25fb55a1afa6" + created_at: "2019-03-12T16:40:22" + updated_at: "2019-03-12T16:41:17" + result: "success" + tx_hash: "0xd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1" + type: "transfer_asset" + data: {} + GetNetworkActivityRequest: + type: object + properties: + start_index: + type: integer + number_of_results: + type: integer + required: + - start_index + - number_of_results + example: + start_index: 0 + number_of_results: 10 + GetNetworkActivityResponse: + type: object + properties: + transactions: + type: array + items: + $ref: '#/components/schemas/AnalyticTransaction' + IssueAssetRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + recipient_address: + type: string + amount: + type: integer + asset_id: + type: integer + confidential: + type: boolean + memo: + type: string + required: + - wallet_id + - authorization + - recipient_address + - amount + - confidential + - asset_id + - memo + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + amount: 4 + asset_id: 1 + confidential: false + memo: '{"recipient_name": "Dan"}' + GetNewAddressRequest: + type: object + properties: + wallet_id: + type: string + diversifier: + type: string + required: + - wallet_id + example: + wallet_id: source_wallet + GetNewAddressResponse: + type: object + properties: + wallet_id: + type: string + recipient_address: + type: string + required: + - wallet_id + - recipient_address + example: + wallet_id: source_wallet + recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f + GetPublicKeyRequest: + type: object + properties: + wallet_id: + type: string + required: + - wallet_id + example: + wallet_id: source_wallet + GetPublicKeyResponse: + type: object + properties: + wallet_id: + type: string + public_key: + type: string + required: + - wallet_id + - public_key + example: + wallet_id: source_wallet + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + ImportWalletRequest: + type: object + properties: + wallet_id: + type: string + encrypted_sk: + type: string + authorization: + type: string + salt: + type: string + required: + - wallet_id + - encrypted_sk + - authorization + - salt + example: + wallet_id: source_wallet + encrypted_sk: 44d2836bbfcc7c69dd35dbe854d54a093be9a1be7f9d658325a8d2526f67ede16abf0d1430edab07be9b8c12070260af + authorization: PrivacyIsAwesome + salt: 27ca2bf75fe4c1564398459bd2f39a89645bf98aeeb1f99a9c9efa6e5c39cbfe + ExportWalletRequest: + type: object + properties: + wallet_id: + type: string + required: + - wallet_id + example: + wallet_id: source_wallet + ExportWalletResponse: + type: object + properties: + wallet_id: + type: string + encrypted_sk: + type: string + salt: + type: string + required: + - wallet_id + - encrypted_sk + - salt + example: + wallet_id: source_wallet + encrypted_sk: 44d2836bbfcc7c69dd35dbe854d54a093be9a1be7f9d658325a8d2526f67ede16abf0d1430edab07be9b8c12070260af + salt: 27ca2bf75fe4c1564398459bd2f39a89645bf98aeeb1f99a9c9efa6e5c39cbfe + GenerateWalletRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + required: + - wallet_id + - authorization + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + DeleteWalletRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + required: + - wallet_id + - authorization + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + UnlockWalletRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + seconds: + type: integer + required: + - wallet_id + - authorization + - seconds + example: + wallet_id: source_wallet + authorization: PrivacyIsAwesome + seconds: 600 + CreateRuleRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + rules_to_add: + type: array + items: + $ref: '#/components/schemas/Rule' + required: + - wallet_id + - authorization + - rules_to_add + example: + wallet_id: issuer_wallet + authorization: PrivacyIsAwesome + rules_to_add: + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + DeleteRuleRequest: + type: object + properties: + wallet_id: + type: string + authorization: + type: string + rules_to_delete: + type: array + items: + $ref: '#/components/schemas/Rule' + required: + - wallet_id + - authorization + - rules_to_delete + example: + wallet_id: issuer_wallet + authorization: PrivacyIsAwesome + rules_to_delete: + - public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + Rule: + type: object + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + can_issue_asset_id_first: + type: integer + can_issue_asset_id_last: + type: integer + is_admin: + type: boolean + required: + - public_key + example: + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + can_issue_confidentially: false + can_issue_asset_id_first: 100 + can_issue_asset_id_last: 112 + is_admin: false + ErrorResponse: + type: object + properties: + error_code: + type: integer + message: + type: string + required: + - error_code + example: + error_code: 400 + message: "error message" + AsyncTaskCreatedResponse: + type: object + properties: + id: + type: string + required: + - id + example: + id: "70a88558-2b8b-4b63-a5b6-2c54b24377f5" + + + AnalyticTransaction: + type: object + properties: + metadata: + $ref: '#/components/schemas/AnalyticsTxMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticsIssueTx' + - $ref: '#/components/schemas/AnalyticsTransferTx' + - $ref: '#/components/schemas/AnalyticsRuleTx' + example: + metadata: + type: 'Issue' + tx_hash: 'd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1' + block_hash: '9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434' + timestamp: '2019-05-20T02:10:46-07:00' + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: 'c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27' + cm: '0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681' + epk: 'f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d' + enc_note: '3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9' + enc_sender: '9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd' + zkproof: 'cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470' + public_key: 'bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204' + signature: '97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b' + + AnalyticsTxMetadata: + type: object + properties: + type: + type: string + tx_hash: + type: string + block_hash: + type: string + timestamp: + type: string + index_in_block: + type: integer + block_height: + type: integer + + AnalyticsIssueTx: + type: object + properties: + outputs: + type: array + items: + $ref: '#/components/schemas/AnalyticsOutput' + public_key: + type: string + signature: + type: string + + AnalyticsTransferTx: + type: object + properties: + asset_converter_descriptions: + type: array + items: + $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' + spends: + type: array + items: + $ref: '#/components/schemas/AnalyticsSpendDescription' + outputs: + type: array + items: + $ref: '#/components/schemas/AnalyticsOutputDescription' + binding_sig: + type: string + spend_auth_sigs: + type: array + items: + type: string + + AnalyticsRuleTx: + type: object + properties: + sender_public_key: + type: string + rules_to_add: + type: array + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + rules_to_delete: + type: array + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + nonce: + type: integer + signature: + type: string + + AnalyticsRuleDefinition: + type: object + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + type: integer + can_issue_asset_id_last: + type: integer + example: + public_key: "AAAAAAAAAA==" + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + + AnalyticsRuleWalletDefinition: + type: object + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + type: integer + can_issue_asset_id_last: + type: integer + operation: + type: string + example: + public_key: "AAAAAAAAAA==" + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + operation: "CreateRule" + + AnalyticsOutput: + type: object + properties: + is_confidential: + type: boolean + public_issuance_description: + $ref: '#/components/schemas/AnalyticsPublicIssuanceDescription' + confidential_issuance_description: + $ref: '#/components/schemas/AnalyticsConfidentialIssuanceDescription' + output_description: + $ref: '#/components/schemas/AnalyticsOutputDescription' + + AnalyticsPublicIssuanceDescription: + type: object + nullable: true + required: + - asset_id + - amount + properties: + asset_id: + type: integer + minimum: 1 + amount: + type: integer + minimum: 0 + example: + asset_id: 10 + amount: 3 + + AnalyticsAssetConverterProofDescription: + type: object + properties: + input_cv: + type: string + amount_cv: + type: string + asset_cv: + type: string + zkproof: + type: string + example: + asset_cv: "AAAAAAAAAAA=" + amount_cv: "AAAAAAAAAAA=" + input_cv: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + + AnalyticsSpendDescription: + type: object + properties: + cv: + type: string + anchor: + type: string + nullifier: + type: string + rk_out: + type: string + zkproof: + type: string + example: + cv: "AAAAAAAAAAA=" + anchor: "AAAAAAAAAAA=" + nullifier: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + rk_out: "AAAAAAAAAAA=" + + AnalyticsOutputDescription: + type: object + properties: + cv: + type: string + cm: + type: string + epk: + type: string + zkproof: + type: string + enc_note: + type: string + enc_sender: + type: string + example: + cv: "AAAAAAAAAAA=" + cm: "000AAAAAAA=" + epk: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + enc_note: "AAAAAAAAAAA=" + enc_sender: "000AAAAAAA=" + + AnalyticsConfidentialIssuanceDescription: + type: object + nullable: true + properties: + input_cv: + type: string + zkproof: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRule' + example: + input_cv: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + rule: + - min_id: 11 + - max_id: 20 + + AnalyticsRule: + type: object + properties: + min_id: + type: integer + max_id: + type: integer + required: + - min_id + - max_id + example: + min_id: 11 + max_id: 20 + + GetWalletActivityResponse: + type: object + properties: + wallet_id: + type: string + transactions: + type: array + items: + $ref: '#/components/schemas/AnalyticWalletTx' + + AnalyticWalletTx: + type: object + properties: + metadata: + $ref: '#/components/schemas/AnalyticWalletMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticIssueWalletTx' + - $ref: '#/components/schemas/AnalyticTransferWalletTx' + - $ref: '#/components/schemas/AnalyticRuleWalletTx' + + AnalyticWalletMetadata: + type: object + properties: + type: + type: string + tx_hash: + type: string + timestamp: + type: string + + AnalyticIssueWalletTx: + type: object + properties: + is_incoming: + type: boolean + issued_by_self: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + type: integer + amount: + type: integer + is_confidential: + type: boolean + + AnalyticTransferWalletTx: + type: object + properties: + is_incoming: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + type: integer + amount: + type: integer + + AnalyticRuleWalletTx: + type: object + properties: + signed_by_self: + type: boolean + rule_affect_self: + type: boolean + tx_signer: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRuleWalletDefinition' + + HealthcheckResponse: + type: object + properties: + version: + type: string + blockchain_connector: + $ref: '#/components/schemas/HealthcheckResponseItem' + message_queue: + $ref: '#/components/schemas/HealthcheckResponseItem' + database: + $ref: '#/components/schemas/HealthcheckResponseItem' + passing: + type: boolean + example: + version: '1.3.0' + blockchain_connector: + error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082: + connect: connection refused' + passing: false + database: + error: '' + passing: true + mq: + error: '' + passing: true + passing: false + + HealthcheckResponseItem: + type: object + properties: + passing: + type: boolean + error: + type: string diff --git a/go/examples/cmd/transferandread/main.go b/go/examples/cmd/transferandread/main.go index d8785a5..688b32d 100644 --- a/go/examples/cmd/transferandread/main.go +++ b/go/examples/cmd/transferandread/main.go @@ -5,6 +5,8 @@ import ( "crypto/rand" "encoding/hex" "fmt" + "github.com/mitchellh/mapstructure" + "log" "github.com/QED-it/asset_transfers_dev_guide/go/examples/util" "github.com/QED-it/asset_transfers_dev_guide/go/sdk" @@ -76,8 +78,8 @@ func main() { // END transfer from source to destination // START read transactions in the destination wallet and find this transfer - getActivityRequest := sdk.GetActivityRequest{ - WalletId: "dest_wallet", + getActivityRequest := sdk.GetWalletActivityRequest{ + WalletId: "dest_wallet", NumberOfResults: 1000, StartIndex: 0, } @@ -88,6 +90,23 @@ func main() { } lastTx := getTransactionsResponse.Transactions[len(getTransactionsResponse.Transactions)-1] - fmt.Printf("got an asset with asset ID %d, amount %d and memo \"%s\"", lastTx.AssetId, lastTx.Amount, lastTx.Memo) - // END read transactions in the destination wallet and find this transfer + + switch lastTx.Metadata.Type { + case "Issue": + var txContent sdk.AnalyticIssueWalletTx + err := mapstructure.Decode(lastTx.Content, &txContent) + if err != nil { + log.Fatal(err) + } + fmt.Printf("got an issue-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + + case "Transfer": + var txContent sdk.AnalyticTransferWalletTx + err := mapstructure.Decode(lastTx.Content, &txContent) + if err != nil { + log.Fatal(err) + } + fmt.Printf("got an transfer-tx with asset ID %d, amount %d and memo \"%s\"", txContent.AssetId, txContent.Amount, txContent.Memo) + + } } diff --git a/go/examples/cmd/tutorial/main.go b/go/examples/cmd/tutorial/main.go index 7dd2a68..e1ea384 100644 --- a/go/examples/cmd/tutorial/main.go +++ b/go/examples/cmd/tutorial/main.go @@ -39,7 +39,7 @@ func main() { } getNewAddressRequest := sdk.GetNewAddressRequest{ - WalletId: "Jane", + WalletId: "Jane", Diversifier: "69be9d33a15535a59dd111", } @@ -84,7 +84,7 @@ func main() { fmt.Printf("Jane's wallet balances: %v\n", getWalletBalancesResponse) - getActivityRequest := sdk.GetActivityRequest{ + getActivityRequest := sdk.GetWalletActivityRequest{ WalletId: "Jane", StartIndex: 0, NumberOfResults: 10, diff --git a/go/sdk/README.md b/go/sdk/README.md index 53d270d..2620a84 100644 --- a/go/sdk/README.md +++ b/go/sdk/README.md @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.2.2 +- API version: 1.3.0 - Package version: 1.1.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -31,6 +31,7 @@ All URIs are relative to *http://localhost:12052* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AnalyticsApi* | [**AnalyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsgetnetworkactivitypost) | **Post** /analytics/get_network_activity | Get details on past blocks +*HealthApi* | [**HealthPost**](docs/HealthApi.md#healthpost) | **Post** /health | Perform a healthcheck of the node and its dependent services *NodeApi* | [**NodeDeleteWalletPost**](docs/NodeApi.md#nodedeletewalletpost) | **Post** /node/delete_wallet | Delete a wallet *NodeApi* | [**NodeExportWalletPost**](docs/NodeApi.md#nodeexportwalletpost) | **Post** /node/export_wallet | Export wallet secret key *NodeApi* | [**NodeGenerateWalletPost**](docs/NodeApi.md#nodegeneratewalletpost) | **Post** /node/generate_wallet | Generate a new wallet @@ -51,9 +52,27 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) + - [AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) + - [AnalyticTransaction](docs/AnalyticTransaction.md) + - [AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) + - [AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) + - [AnalyticWalletTx](docs/AnalyticWalletTx.md) + - [AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) + - [AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) + - [AnalyticsIssueTx](docs/AnalyticsIssueTx.md) + - [AnalyticsOutput](docs/AnalyticsOutput.md) + - [AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) + - [AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) + - [AnalyticsRule](docs/AnalyticsRule.md) + - [AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) + - [AnalyticsRuleTx](docs/AnalyticsRuleTx.md) + - [AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) + - [AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) + - [AnalyticsTransferTx](docs/AnalyticsTransferTx.md) + - [AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) - [AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) - [BalanceForAsset](docs/BalanceForAsset.md) - - [Block](docs/Block.md) - [CreateRuleRequest](docs/CreateRuleRequest.md) - [DeleteRuleRequest](docs/DeleteRuleRequest.md) - [DeleteWalletRequest](docs/DeleteWalletRequest.md) @@ -61,8 +80,6 @@ Class | Method | HTTP request | Description - [ExportWalletRequest](docs/ExportWalletRequest.md) - [ExportWalletResponse](docs/ExportWalletResponse.md) - [GenerateWalletRequest](docs/GenerateWalletRequest.md) - - [GetActivityRequest](docs/GetActivityRequest.md) - - [GetActivityResponse](docs/GetActivityResponse.md) - [GetAllWalletsResponse](docs/GetAllWalletsResponse.md) - [GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) - [GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) @@ -73,8 +90,12 @@ Class | Method | HTTP request | Description - [GetRulesResponse](docs/GetRulesResponse.md) - [GetTaskStatusRequest](docs/GetTaskStatusRequest.md) - [GetTaskStatusResponse](docs/GetTaskStatusResponse.md) + - [GetWalletActivityRequest](docs/GetWalletActivityRequest.md) + - [GetWalletActivityResponse](docs/GetWalletActivityResponse.md) - [GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) - [GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) + - [HealthcheckResponse](docs/HealthcheckResponse.md) + - [HealthcheckResponseItem](docs/HealthcheckResponseItem.md) - [ImportWalletRequest](docs/ImportWalletRequest.md) - [IssueAssetRequest](docs/IssueAssetRequest.md) - [Rule](docs/Rule.md) diff --git a/go/sdk/api/openapi.yaml b/go/sdk/api/openapi.yaml index 8c523e6..8cbf912 100644 --- a/go/sdk/api/openapi.yaml +++ b/go/sdk/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: QED-it - Asset Transfers - version: 1.2.2 + version: 1.3.0 servers: - url: http://{server_url}:12052 variables: @@ -268,14 +268,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetActivityRequest' + $ref: '#/components/schemas/GetWalletActivityRequest' required: true responses: 200: content: application/json: schema: - $ref: '#/components/schemas/GetActivityResponse' + $ref: '#/components/schemas/GetWalletActivityResponse' description: Success 400: content: @@ -586,8 +586,35 @@ paths: summary: Get all tasks in the node tags: - Node + /health: + post: + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/HealthcheckResponse' + description: Success + 400: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Bad request + 500: + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Internal error + summary: Perform a healthcheck of the node and its dependent services + tags: + - Health components: schemas: + IntPointer: + format: int32 + type: integer GetWalletBalanceRequest: example: wallet_id: source_wallet @@ -659,7 +686,7 @@ components: - recipient_address - wallet_id type: object - GetActivityRequest: + GetWalletActivityRequest: example: wallet_id: source_wallet start_index: 0 @@ -702,27 +729,6 @@ components: - memo - recipient_address type: object - GetActivityResponse: - example: - wallet_id: source_wallet - transactions: - - is_incoming: true - asset_id: 1 - amount: 8 - recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f - memo: '{"recipient_name": "Dan"}' - id: 0xd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 - properties: - wallet_id: - type: string - transactions: - items: - $ref: '#/components/schemas/TransactionsForWallet' - type: array - required: - - transactions - - wallet_id - type: object GetRulesResponse: example: rules: @@ -807,36 +813,58 @@ components: - number_of_results - start_index type: object - Block: - properties: - block_hash: - type: string - height: - format: int32 - type: integer - transactions: - items: - type: string - type: array - required: - - block_hash - - height - - transactions - type: object GetNetworkActivityResponse: example: - blocks: - - block_hash: abababababababababababababab - height: 10 - transactions: - - XKCOKXOASKPOWJEASDlkjweNALNSD== + transactions: + - metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b + - metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b properties: - blocks: + transactions: items: - $ref: '#/components/schemas/Block' + $ref: '#/components/schemas/AnalyticTransaction' type: array - required: - - blocks type: object IssueAssetRequest: example: @@ -1103,6 +1131,397 @@ components: required: - id type: object + AnalyticTransaction: + example: + metadata: + type: Issue + tx_hash: d379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1 + block_hash: 9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434 + timestamp: 2019-05-20T02:10:46-07:00 + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27 + cm: 0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681 + epk: f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d + enc_note: 3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9 + enc_sender: 9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd + zkproof: cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470 + public_key: bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204 + signature: 97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b + properties: + metadata: + $ref: '#/components/schemas/AnalyticsTxMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticsIssueTx' + - $ref: '#/components/schemas/AnalyticsTransferTx' + - $ref: '#/components/schemas/AnalyticsRuleTx' + type: object + AnalyticsTxMetadata: + properties: + type: + type: string + tx_hash: + type: string + block_hash: + type: string + timestamp: + type: string + index_in_block: + format: int32 + type: integer + block_height: + format: int32 + type: integer + type: object + AnalyticsIssueTx: + properties: + outputs: + items: + $ref: '#/components/schemas/AnalyticsOutput' + type: array + public_key: + type: string + signature: + type: string + type: object + AnalyticsTransferTx: + properties: + asset_converter_descriptions: + items: + $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' + type: array + spends: + items: + $ref: '#/components/schemas/AnalyticsSpendDescription' + type: array + outputs: + items: + $ref: '#/components/schemas/AnalyticsOutputDescription' + type: array + binding_sig: + type: string + spend_auth_sigs: + items: + type: string + type: array + type: object + AnalyticsRuleTx: + properties: + sender_public_key: + type: string + rules_to_add: + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + type: array + rules_to_delete: + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + type: array + nonce: + format: int32 + type: integer + signature: + type: string + type: object + AnalyticsRuleDefinition: + example: + public_key: AAAAAAAAAA== + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + format: int32 + type: integer + can_issue_asset_id_last: + format: int32 + type: integer + type: object + AnalyticsRuleWalletDefinition: + example: + public_key: AAAAAAAAAA== + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + operation: CreateRule + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + format: int32 + type: integer + can_issue_asset_id_last: + format: int32 + type: integer + operation: + type: string + type: object + AnalyticsOutput: + properties: + is_confidential: + type: boolean + public_issuance_description: + $ref: '#/components/schemas/AnalyticsPublicIssuanceDescription' + confidential_issuance_description: + $ref: '#/components/schemas/AnalyticsConfidentialIssuanceDescription' + output_description: + $ref: '#/components/schemas/AnalyticsOutputDescription' + type: object + AnalyticsPublicIssuanceDescription: + example: + asset_id: 10 + amount: 3 + nullable: true + properties: + asset_id: + format: int32 + minimum: 1 + type: integer + amount: + format: int32 + minimum: 0 + type: integer + required: + - amount + - asset_id + type: object + AnalyticsAssetConverterProofDescription: + example: + asset_cv: AAAAAAAAAAA= + amount_cv: AAAAAAAAAAA= + input_cv: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + properties: + input_cv: + type: string + amount_cv: + type: string + asset_cv: + type: string + zkproof: + type: string + type: object + AnalyticsSpendDescription: + example: + cv: AAAAAAAAAAA= + anchor: AAAAAAAAAAA= + nullifier: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + rk_out: AAAAAAAAAAA= + properties: + cv: + type: string + anchor: + type: string + nullifier: + type: string + rk_out: + type: string + zkproof: + type: string + type: object + AnalyticsOutputDescription: + example: + cv: AAAAAAAAAAA= + cm: 000AAAAAAA= + epk: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + enc_note: AAAAAAAAAAA= + enc_sender: 000AAAAAAA= + properties: + cv: + type: string + cm: + type: string + epk: + type: string + zkproof: + type: string + enc_note: + type: string + enc_sender: + type: string + type: object + AnalyticsConfidentialIssuanceDescription: + example: + input_cv: AAAAAAAAAAA= + zkproof: 000AAAAAAA= + rule: + - min_id: 11 + - max_id: 20 + nullable: true + properties: + input_cv: + type: string + zkproof: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRule' + type: object + AnalyticsRule: + example: + min_id: 11 + max_id: 20 + properties: + min_id: + format: int32 + type: integer + max_id: + format: int32 + type: integer + required: + - max_id + - min_id + type: object + GetWalletActivityResponse: + example: + wallet_id: wallet_id + transactions: + - metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + - metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + properties: + wallet_id: + type: string + transactions: + items: + $ref: '#/components/schemas/AnalyticWalletTx' + type: array + type: object + AnalyticWalletTx: + example: + metadata: + tx_hash: tx_hash + type: type + timestamp: timestamp + content: "" + properties: + metadata: + $ref: '#/components/schemas/AnalyticWalletMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticIssueWalletTx' + - $ref: '#/components/schemas/AnalyticTransferWalletTx' + - $ref: '#/components/schemas/AnalyticRuleWalletTx' + type: object + AnalyticWalletMetadata: + example: + tx_hash: tx_hash + type: type + timestamp: timestamp + properties: + type: + type: string + tx_hash: + type: string + timestamp: + type: string + type: object + AnalyticIssueWalletTx: + properties: + is_incoming: + type: boolean + issued_by_self: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + is_confidential: + type: boolean + type: object + AnalyticTransferWalletTx: + properties: + is_incoming: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + format: int32 + type: integer + amount: + format: int32 + type: integer + type: object + AnalyticRuleWalletTx: + properties: + signed_by_self: + type: boolean + rule_affect_self: + type: boolean + tx_signer: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRuleWalletDefinition' + type: object + HealthcheckResponse: + example: + version: 1.3.0 + blockchain_connector: + error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082: + connect: connection refused' + passing: false + database: + error: "" + passing: true + mq: + error: "" + passing: true + passing: false + properties: + version: + type: string + blockchain_connector: + $ref: '#/components/schemas/HealthcheckResponseItem' + message_queue: + $ref: '#/components/schemas/HealthcheckResponseItem' + database: + $ref: '#/components/schemas/HealthcheckResponseItem' + passing: + type: boolean + type: object + HealthcheckResponseItem: + properties: + passing: + type: boolean + error: + type: string + type: object securitySchemes: ApiKeyAuth: in: header diff --git a/go/sdk/api_analytics.go b/go/sdk/api_analytics.go index 19b0973..b015b51 100644 --- a/go/sdk/api_analytics.go +++ b/go/sdk/api_analytics.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_health.go b/go/sdk/api_health.go new file mode 100644 index 0000000..0f07d11 --- /dev/null +++ b/go/sdk/api_health.go @@ -0,0 +1,143 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type HealthApiService service + +/* +HealthApiService Perform a healthcheck of the node and its dependent services + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return HealthcheckResponse +*/ +func (a *HealthApiService) HealthPost(ctx context.Context) (HealthcheckResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue HealthcheckResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/health" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["x-auth-token"] = key + } + } + + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v HealthcheckResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/go/sdk/api_node.go b/go/sdk/api_node.go index bcce2a0..4dc18d4 100644 --- a/go/sdk/api_node.go +++ b/go/sdk/api_node.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/api_wallet.go b/go/sdk/api_wallet.go index 4f24264..a7250fa 100644 --- a/go/sdk/api_wallet.go +++ b/go/sdk/api_wallet.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -289,17 +289,17 @@ func (a *WalletApiService) WalletDeleteRulePost(ctx context.Context, deleteRuleR /* WalletApiService Get wallet activity (transactions) * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param getActivityRequest -@return GetActivityResponse + * @param getWalletActivityRequest +@return GetWalletActivityResponse */ -func (a *WalletApiService) WalletGetActivityPost(ctx context.Context, getActivityRequest GetActivityRequest) (GetActivityResponse, *http.Response, error) { +func (a *WalletApiService) WalletGetActivityPost(ctx context.Context, getWalletActivityRequest GetWalletActivityRequest) (GetWalletActivityResponse, *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Post") localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue GetActivityResponse + localVarReturnValue GetWalletActivityResponse ) // create path and map variables @@ -327,7 +327,7 @@ func (a *WalletApiService) WalletGetActivityPost(ctx context.Context, getActivit localVarHeaderParams["Accept"] = localVarHttpHeaderAccept } // body params - localVarPostBody = &getActivityRequest + localVarPostBody = &getWalletActivityRequest if ctx != nil { // API Key Authentication if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { @@ -363,7 +363,7 @@ func (a *WalletApiService) WalletGetActivityPost(ctx context.Context, getActivit error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { - var v GetActivityResponse + var v GetWalletActivityResponse err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() diff --git a/go/sdk/client.go b/go/sdk/client.go index 2ae1e5e..e5283d4 100644 --- a/go/sdk/client.go +++ b/go/sdk/client.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -37,7 +37,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the QED-it - Asset Transfers API v1.2.2 +// APIClient manages communication with the QED-it - Asset Transfers API v1.3.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -47,6 +47,8 @@ type APIClient struct { AnalyticsApi *AnalyticsApiService + HealthApi *HealthApiService + NodeApi *NodeApiService WalletApi *WalletApiService @@ -69,6 +71,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { // API Services c.AnalyticsApi = (*AnalyticsApiService)(&c.common) + c.HealthApi = (*HealthApiService)(&c.common) c.NodeApi = (*NodeApiService)(&c.common) c.WalletApi = (*WalletApiService)(&c.common) @@ -319,17 +322,17 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err - } - return nil + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } return errors.New("undefined response type") } diff --git a/go/sdk/configuration.go b/go/sdk/configuration.go index 64d4563..3fdd364 100644 --- a/go/sdk/configuration.go +++ b/go/sdk/configuration.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/docs/AnalyticIssueWalletTx.md b/go/sdk/docs/AnalyticIssueWalletTx.md new file mode 100644 index 0000000..9271f7e --- /dev/null +++ b/go/sdk/docs/AnalyticIssueWalletTx.md @@ -0,0 +1,16 @@ +# AnalyticIssueWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsIncoming** | **bool** | | [optional] +**IssuedBySelf** | **bool** | | [optional] +**Memo** | **string** | | [optional] +**RecipientAddress** | **string** | | [optional] +**AssetId** | **int32** | | [optional] +**Amount** | **int32** | | [optional] +**IsConfidential** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticRuleWalletTx.md b/go/sdk/docs/AnalyticRuleWalletTx.md new file mode 100644 index 0000000..0a2bee5 --- /dev/null +++ b/go/sdk/docs/AnalyticRuleWalletTx.md @@ -0,0 +1,13 @@ +# AnalyticRuleWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SignedBySelf** | **bool** | | [optional] +**RuleAffectSelf** | **bool** | | [optional] +**TxSigner** | **string** | | [optional] +**Rule** | [**AnalyticsRuleWalletDefinition**](AnalyticsRuleWalletDefinition.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticTransaction.md b/go/sdk/docs/AnalyticTransaction.md new file mode 100644 index 0000000..31f90ce --- /dev/null +++ b/go/sdk/docs/AnalyticTransaction.md @@ -0,0 +1,11 @@ +# AnalyticTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**AnalyticsTxMetadata**](AnalyticsTxMetadata.md) | | [optional] +**Content** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticTransferWalletTx.md b/go/sdk/docs/AnalyticTransferWalletTx.md new file mode 100644 index 0000000..ad52301 --- /dev/null +++ b/go/sdk/docs/AnalyticTransferWalletTx.md @@ -0,0 +1,14 @@ +# AnalyticTransferWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsIncoming** | **bool** | | [optional] +**Memo** | **string** | | [optional] +**RecipientAddress** | **string** | | [optional] +**AssetId** | **int32** | | [optional] +**Amount** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticWalletMetadata.md b/go/sdk/docs/AnalyticWalletMetadata.md new file mode 100644 index 0000000..51affed --- /dev/null +++ b/go/sdk/docs/AnalyticWalletMetadata.md @@ -0,0 +1,12 @@ +# AnalyticWalletMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] +**TxHash** | **string** | | [optional] +**Timestamp** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticWalletTx.md b/go/sdk/docs/AnalyticWalletTx.md new file mode 100644 index 0000000..2b44f6c --- /dev/null +++ b/go/sdk/docs/AnalyticWalletTx.md @@ -0,0 +1,11 @@ +# AnalyticWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | [**AnalyticWalletMetadata**](AnalyticWalletMetadata.md) | | [optional] +**Content** | [**map[string]interface{}**](map[string]interface{}.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsAssetConverterProofDescription.md b/go/sdk/docs/AnalyticsAssetConverterProofDescription.md new file mode 100644 index 0000000..d5bfe86 --- /dev/null +++ b/go/sdk/docs/AnalyticsAssetConverterProofDescription.md @@ -0,0 +1,13 @@ +# AnalyticsAssetConverterProofDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputCv** | **string** | | [optional] +**AmountCv** | **string** | | [optional] +**AssetCv** | **string** | | [optional] +**Zkproof** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md new file mode 100644 index 0000000..7683d87 --- /dev/null +++ b/go/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -0,0 +1,12 @@ +# AnalyticsConfidentialIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InputCv** | **string** | | [optional] +**Zkproof** | **string** | | [optional] +**Rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsContent.md b/go/sdk/docs/AnalyticsContent.md new file mode 100644 index 0000000..8380ea9 --- /dev/null +++ b/go/sdk/docs/AnalyticsContent.md @@ -0,0 +1,10 @@ +# AnalyticsContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TxType** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsIssueTx.md b/go/sdk/docs/AnalyticsIssueTx.md new file mode 100644 index 0000000..1f1d649 --- /dev/null +++ b/go/sdk/docs/AnalyticsIssueTx.md @@ -0,0 +1,12 @@ +# AnalyticsIssueTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Outputs** | [**[]AnalyticsOutput**](AnalyticsOutput.md) | | [optional] +**PublicKey** | **string** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsIssueTxAllOf.md b/go/sdk/docs/AnalyticsIssueTxAllOf.md new file mode 100644 index 0000000..33473cf --- /dev/null +++ b/go/sdk/docs/AnalyticsIssueTxAllOf.md @@ -0,0 +1,13 @@ +# AnalyticsIssueTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Outputs** | [**[]AnalyticsOutput**](AnalyticsOutput.md) | | [optional] +**PublicKey** | **string** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsOutput.md b/go/sdk/docs/AnalyticsOutput.md new file mode 100644 index 0000000..2c181e8 --- /dev/null +++ b/go/sdk/docs/AnalyticsOutput.md @@ -0,0 +1,13 @@ +# AnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | [optional] +**PublicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | [optional] +**ConfidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | [optional] +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsOutputDescription.md b/go/sdk/docs/AnalyticsOutputDescription.md new file mode 100644 index 0000000..75b5a78 --- /dev/null +++ b/go/sdk/docs/AnalyticsOutputDescription.md @@ -0,0 +1,15 @@ +# AnalyticsOutputDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cv** | **string** | | [optional] +**Cm** | **string** | | [optional] +**Epk** | **string** | | [optional] +**Zkproof** | **string** | | [optional] +**EncNote** | **string** | | [optional] +**EncSender** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsPublicIssuanceDescription.md b/go/sdk/docs/AnalyticsPublicIssuanceDescription.md new file mode 100644 index 0000000..86f6705 --- /dev/null +++ b/go/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -0,0 +1,11 @@ +# AnalyticsPublicIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetId** | **int32** | | +**Amount** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsRule.md b/go/sdk/docs/AnalyticsRule.md new file mode 100644 index 0000000..9a0d8b7 --- /dev/null +++ b/go/sdk/docs/AnalyticsRule.md @@ -0,0 +1,11 @@ +# AnalyticsRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MinId** | **int32** | | +**MaxId** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsRuleDefinition.md b/go/sdk/docs/AnalyticsRuleDefinition.md new file mode 100644 index 0000000..ee68d95 --- /dev/null +++ b/go/sdk/docs/AnalyticsRuleDefinition.md @@ -0,0 +1,14 @@ +# AnalyticsRuleDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | [optional] +**CanIssueConfidentially** | **bool** | | [optional] +**IsAdmin** | **bool** | | [optional] +**CanIssueAssetIdFirst** | **int32** | | [optional] +**CanIssueAssetIdLast** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsRuleTx.md b/go/sdk/docs/AnalyticsRuleTx.md new file mode 100644 index 0000000..1d6d30d --- /dev/null +++ b/go/sdk/docs/AnalyticsRuleTx.md @@ -0,0 +1,14 @@ +# AnalyticsRuleTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderPublicKey** | **string** | | [optional] +**RulesToAdd** | [**[]AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**RulesToDelete** | [**[]AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**Nonce** | **int32** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsRuleTxAllOf.md b/go/sdk/docs/AnalyticsRuleTxAllOf.md new file mode 100644 index 0000000..50b092a --- /dev/null +++ b/go/sdk/docs/AnalyticsRuleTxAllOf.md @@ -0,0 +1,15 @@ +# AnalyticsRuleTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SenderPublicKey** | **string** | | [optional] +**RulesToAdd** | [**AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**RulesToDelete** | [**AnalyticsRuleDefinition**](AnalyticsRuleDefinition.md) | | [optional] +**Nonce** | **int32** | | [optional] +**Signature** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsRuleWalletDefinition.md b/go/sdk/docs/AnalyticsRuleWalletDefinition.md new file mode 100644 index 0000000..05ea64a --- /dev/null +++ b/go/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -0,0 +1,15 @@ +# AnalyticsRuleWalletDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | | [optional] +**CanIssueConfidentially** | **bool** | | [optional] +**IsAdmin** | **bool** | | [optional] +**CanIssueAssetIdFirst** | **int32** | | [optional] +**CanIssueAssetIdLast** | **int32** | | [optional] +**Operation** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsSpendDescription.md b/go/sdk/docs/AnalyticsSpendDescription.md new file mode 100644 index 0000000..146faea --- /dev/null +++ b/go/sdk/docs/AnalyticsSpendDescription.md @@ -0,0 +1,14 @@ +# AnalyticsSpendDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cv** | **string** | | [optional] +**Anchor** | **string** | | [optional] +**Nullifier** | **string** | | [optional] +**RkOut** | **string** | | [optional] +**Zkproof** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsTransferTx.md b/go/sdk/docs/AnalyticsTransferTx.md new file mode 100644 index 0000000..c025eb5 --- /dev/null +++ b/go/sdk/docs/AnalyticsTransferTx.md @@ -0,0 +1,14 @@ +# AnalyticsTransferTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetConverterDescriptions** | [**[]AnalyticsAssetConverterProofDescription**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**Spends** | [**[]AnalyticsSpendDescription**](AnalyticsSpendDescription.md) | | [optional] +**Outputs** | [**[]AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] +**BindingSig** | **string** | | [optional] +**SpendAuthSigs** | **[]string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsTransferTxAllOf.md b/go/sdk/docs/AnalyticsTransferTxAllOf.md new file mode 100644 index 0000000..a42caca --- /dev/null +++ b/go/sdk/docs/AnalyticsTransferTxAllOf.md @@ -0,0 +1,15 @@ +# AnalyticsTransferTxAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetConverterDescriptions** | [**AnalyticsAssetConverterProofDescription**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**Spends** | [**[]AnalyticsSpendDescription**](AnalyticsSpendDescription.md) | | [optional] +**Outputs** | [**[]AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] +**BindingSig** | **string** | | [optional] +**SpendAuthSigs** | **[]string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/AnalyticsTxMetadata.md b/go/sdk/docs/AnalyticsTxMetadata.md new file mode 100644 index 0000000..e1e4b65 --- /dev/null +++ b/go/sdk/docs/AnalyticsTxMetadata.md @@ -0,0 +1,15 @@ +# AnalyticsTxMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | [optional] +**TxHash** | **string** | | [optional] +**BlockHash** | **string** | | [optional] +**Timestamp** | **string** | | [optional] +**IndexInBlock** | **int32** | | [optional] +**BlockHeight** | **int32** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/ConfidentialAnalyticsOutput.md b/go/sdk/docs/ConfidentialAnalyticsOutput.md new file mode 100644 index 0000000..5b75247 --- /dev/null +++ b/go/sdk/docs/ConfidentialAnalyticsOutput.md @@ -0,0 +1,12 @@ +# ConfidentialAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | +**ConfidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/GetNetworkActivityResponse.md b/go/sdk/docs/GetNetworkActivityResponse.md index b0cf458..304ee76 100644 --- a/go/sdk/docs/GetNetworkActivityResponse.md +++ b/go/sdk/docs/GetNetworkActivityResponse.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Blocks** | [**[]Block**](Block.md) | | +**Transactions** | [**[]AnalyticTransaction**](AnalyticTransaction.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/sdk/docs/GetWalletActivityRequest.md b/go/sdk/docs/GetWalletActivityRequest.md new file mode 100644 index 0000000..403c7a0 --- /dev/null +++ b/go/sdk/docs/GetWalletActivityRequest.md @@ -0,0 +1,12 @@ +# GetWalletActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | +**StartIndex** | **int32** | | +**NumberOfResults** | **int32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/GetWalletActivityResponse.md b/go/sdk/docs/GetWalletActivityResponse.md new file mode 100644 index 0000000..4ab3c8a --- /dev/null +++ b/go/sdk/docs/GetWalletActivityResponse.md @@ -0,0 +1,11 @@ +# GetWalletActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WalletId** | **string** | | [optional] +**Transactions** | [**[]AnalyticWalletTx**](AnalyticWalletTx.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/HealthApi.md b/go/sdk/docs/HealthApi.md new file mode 100644 index 0000000..64d7b56 --- /dev/null +++ b/go/sdk/docs/HealthApi.md @@ -0,0 +1,31 @@ +# \HealthApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**HealthPost**](HealthApi.md#HealthPost) | **Post** /health | Perform a healthcheck of the node and its dependent services + + +# **HealthPost** +> HealthcheckResponse HealthPost(ctx, ) +Perform a healthcheck of the node and its dependent services + +### Required Parameters +This endpoint does not need any parameter. + +### Return type + +[**HealthcheckResponse**](HealthcheckResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/go/sdk/docs/HealthcheckResponse.md b/go/sdk/docs/HealthcheckResponse.md new file mode 100644 index 0000000..a1546b1 --- /dev/null +++ b/go/sdk/docs/HealthcheckResponse.md @@ -0,0 +1,14 @@ +# HealthcheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Version** | **string** | | [optional] +**BlockchainConnector** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**MessageQueue** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**Database** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**Passing** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/HealthcheckResponseBlockchainConnector.md b/go/sdk/docs/HealthcheckResponseBlockchainConnector.md new file mode 100644 index 0000000..99e3382 --- /dev/null +++ b/go/sdk/docs/HealthcheckResponseBlockchainConnector.md @@ -0,0 +1,11 @@ +# HealthcheckResponseBlockchainConnector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Passing** | **bool** | | [optional] +**Error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/HealthcheckResponseItem.md b/go/sdk/docs/HealthcheckResponseItem.md new file mode 100644 index 0000000..7af4ed5 --- /dev/null +++ b/go/sdk/docs/HealthcheckResponseItem.md @@ -0,0 +1,11 @@ +# HealthcheckResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Passing** | **bool** | | [optional] +**Error** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/PublicAnalyticsOutput.md b/go/sdk/docs/PublicAnalyticsOutput.md new file mode 100644 index 0000000..4a80d5a --- /dev/null +++ b/go/sdk/docs/PublicAnalyticsOutput.md @@ -0,0 +1,12 @@ +# PublicAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsConfidential** | **bool** | | +**OutputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | +**PublicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/sdk/docs/WalletApi.md b/go/sdk/docs/WalletApi.md index cea7717..afe778b 100644 --- a/go/sdk/docs/WalletApi.md +++ b/go/sdk/docs/WalletApi.md @@ -67,7 +67,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **WalletGetActivityPost** -> GetActivityResponse WalletGetActivityPost(ctx, getActivityRequest) +> GetWalletActivityResponse WalletGetActivityPost(ctx, getWalletActivityRequest) Get wallet activity (transactions) ### Required Parameters @@ -75,11 +75,11 @@ Get wallet activity (transactions) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **getActivityRequest** | [**GetActivityRequest**](GetActivityRequest.md)| | + **getWalletActivityRequest** | [**GetWalletActivityRequest**](GetWalletActivityRequest.md)| | ### Return type -[**GetActivityResponse**](GetActivityResponse.md) +[**GetWalletActivityResponse**](GetWalletActivityResponse.md) ### Authorization diff --git a/go/sdk/model_analytic_issue_wallet_tx.go b/go/sdk/model_analytic_issue_wallet_tx.go new file mode 100644 index 0000000..40a4c0d --- /dev/null +++ b/go/sdk/model_analytic_issue_wallet_tx.go @@ -0,0 +1,20 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticIssueWalletTx struct { + IsIncoming bool `json:"is_incoming,omitempty"` + IssuedBySelf bool `json:"issued_by_self,omitempty"` + Memo string `json:"memo,omitempty"` + RecipientAddress string `json:"recipient_address,omitempty"` + AssetId int32 `json:"asset_id,omitempty"` + Amount int32 `json:"amount,omitempty"` + IsConfidential bool `json:"is_confidential,omitempty"` +} diff --git a/go/sdk/model_analytic_rule_wallet_tx.go b/go/sdk/model_analytic_rule_wallet_tx.go new file mode 100644 index 0000000..6026557 --- /dev/null +++ b/go/sdk/model_analytic_rule_wallet_tx.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticRuleWalletTx struct { + SignedBySelf bool `json:"signed_by_self,omitempty"` + RuleAffectSelf bool `json:"rule_affect_self,omitempty"` + TxSigner string `json:"tx_signer,omitempty"` + Rule AnalyticsRuleWalletDefinition `json:"rule,omitempty"` +} diff --git a/go/sdk/model_analytic_transaction.go b/go/sdk/model_analytic_transaction.go new file mode 100644 index 0000000..a94b9bb --- /dev/null +++ b/go/sdk/model_analytic_transaction.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticTransaction struct { + Metadata AnalyticsTxMetadata `json:"metadata,omitempty"` + Content map[string]interface{} `json:"content,omitempty"` +} diff --git a/go/sdk/model_analytic_transfer_wallet_tx.go b/go/sdk/model_analytic_transfer_wallet_tx.go new file mode 100644 index 0000000..779546e --- /dev/null +++ b/go/sdk/model_analytic_transfer_wallet_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticTransferWalletTx struct { + IsIncoming bool `json:"is_incoming,omitempty"` + Memo string `json:"memo,omitempty"` + RecipientAddress string `json:"recipient_address,omitempty"` + AssetId int32 `json:"asset_id,omitempty"` + Amount int32 `json:"amount,omitempty"` +} diff --git a/go/sdk/model_analytic_wallet_metadata.go b/go/sdk/model_analytic_wallet_metadata.go new file mode 100644 index 0000000..85ca73e --- /dev/null +++ b/go/sdk/model_analytic_wallet_metadata.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticWalletMetadata struct { + Type string `json:"type,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + Timestamp string `json:"timestamp,omitempty"` +} diff --git a/go/sdk/model_analytic_wallet_tx.go b/go/sdk/model_analytic_wallet_tx.go new file mode 100644 index 0000000..263ea97 --- /dev/null +++ b/go/sdk/model_analytic_wallet_tx.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticWalletTx struct { + Metadata AnalyticWalletMetadata `json:"metadata,omitempty"` + Content map[string]interface{} `json:"content,omitempty"` +} diff --git a/go/sdk/model_analytics_asset_converter_proof_description.go b/go/sdk/model_analytics_asset_converter_proof_description.go new file mode 100644 index 0000000..4d01656 --- /dev/null +++ b/go/sdk/model_analytics_asset_converter_proof_description.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsAssetConverterProofDescription struct { + InputCv string `json:"input_cv,omitempty"` + AmountCv string `json:"amount_cv,omitempty"` + AssetCv string `json:"asset_cv,omitempty"` + Zkproof string `json:"zkproof,omitempty"` +} diff --git a/go/sdk/model_analytics_confidential_issuance_description.go b/go/sdk/model_analytics_confidential_issuance_description.go new file mode 100644 index 0000000..cfff46f --- /dev/null +++ b/go/sdk/model_analytics_confidential_issuance_description.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsConfidentialIssuanceDescription struct { + InputCv string `json:"input_cv,omitempty"` + Zkproof string `json:"zkproof,omitempty"` + Rule AnalyticsRule `json:"rule,omitempty"` +} diff --git a/go/sdk/model_analytics_content.go b/go/sdk/model_analytics_content.go new file mode 100644 index 0000000..3bac6a8 --- /dev/null +++ b/go/sdk/model_analytics_content.go @@ -0,0 +1,14 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsContent struct { + TxType string `json:"tx_type"` +} diff --git a/go/sdk/model_analytics_issue_tx.go b/go/sdk/model_analytics_issue_tx.go new file mode 100644 index 0000000..1f3b29e --- /dev/null +++ b/go/sdk/model_analytics_issue_tx.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsIssueTx struct { + Outputs []AnalyticsOutput `json:"outputs,omitempty"` + PublicKey string `json:"public_key,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/go/sdk/model_analytics_issue_tx_all_of.go b/go/sdk/model_analytics_issue_tx_all_of.go new file mode 100644 index 0000000..ea39829 --- /dev/null +++ b/go/sdk/model_analytics_issue_tx_all_of.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsIssueTxAllOf struct { + Outputs []AnalyticsOutput `json:"outputs,omitempty"` + PublicKey string `json:"public_key,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/go/sdk/model_analytics_output.go b/go/sdk/model_analytics_output.go new file mode 100644 index 0000000..7bf91f2 --- /dev/null +++ b/go/sdk/model_analytics_output.go @@ -0,0 +1,17 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsOutput struct { + IsConfidential bool `json:"is_confidential,omitempty"` + PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description,omitempty"` + ConfidentialIssuanceDescription AnalyticsConfidentialIssuanceDescription `json:"confidential_issuance_description,omitempty"` + OutputDescription AnalyticsOutputDescription `json:"output_description,omitempty"` +} diff --git a/go/sdk/model_analytics_output_description.go b/go/sdk/model_analytics_output_description.go new file mode 100644 index 0000000..947dfeb --- /dev/null +++ b/go/sdk/model_analytics_output_description.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsOutputDescription struct { + Cv string `json:"cv,omitempty"` + Cm string `json:"cm,omitempty"` + Epk string `json:"epk,omitempty"` + Zkproof string `json:"zkproof,omitempty"` + EncNote string `json:"enc_note,omitempty"` + EncSender string `json:"enc_sender,omitempty"` +} diff --git a/go/sdk/model_analytics_public_issuance_description.go b/go/sdk/model_analytics_public_issuance_description.go new file mode 100644 index 0000000..cfa66af --- /dev/null +++ b/go/sdk/model_analytics_public_issuance_description.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsPublicIssuanceDescription struct { + AssetId int32 `json:"asset_id"` + Amount int32 `json:"amount"` +} diff --git a/go/sdk/model_analytics_rule.go b/go/sdk/model_analytics_rule.go new file mode 100644 index 0000000..4e33f22 --- /dev/null +++ b/go/sdk/model_analytics_rule.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRule struct { + MinId int32 `json:"min_id"` + MaxId int32 `json:"max_id"` +} diff --git a/go/sdk/model_analytics_rule_definition.go b/go/sdk/model_analytics_rule_definition.go new file mode 100644 index 0000000..93c5deb --- /dev/null +++ b/go/sdk/model_analytics_rule_definition.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleDefinition struct { + PublicKey string `json:"public_key,omitempty"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` +} diff --git a/go/sdk/model_analytics_rule_tx.go b/go/sdk/model_analytics_rule_tx.go new file mode 100644 index 0000000..dc5eca0 --- /dev/null +++ b/go/sdk/model_analytics_rule_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleTx struct { + SenderPublicKey string `json:"sender_public_key,omitempty"` + RulesToAdd []AnalyticsRuleDefinition `json:"rules_to_add,omitempty"` + RulesToDelete []AnalyticsRuleDefinition `json:"rules_to_delete,omitempty"` + Nonce int32 `json:"nonce,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/go/sdk/model_analytics_rule_tx_all_of.go b/go/sdk/model_analytics_rule_tx_all_of.go new file mode 100644 index 0000000..0c33db5 --- /dev/null +++ b/go/sdk/model_analytics_rule_tx_all_of.go @@ -0,0 +1,18 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleTxAllOf struct { + SenderPublicKey string `json:"sender_public_key,omitempty"` + RulesToAdd AnalyticsRuleDefinition `json:"rules_to_add,omitempty"` + RulesToDelete AnalyticsRuleDefinition `json:"rules_to_delete,omitempty"` + Nonce int32 `json:"nonce,omitempty"` + Signature string `json:"signature,omitempty"` +} diff --git a/go/sdk/model_analytics_rule_wallet_definition.go b/go/sdk/model_analytics_rule_wallet_definition.go new file mode 100644 index 0000000..dbda7b4 --- /dev/null +++ b/go/sdk/model_analytics_rule_wallet_definition.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsRuleWalletDefinition struct { + PublicKey string `json:"public_key,omitempty"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + Operation string `json:"operation,omitempty"` +} diff --git a/go/sdk/model_analytics_spend_description.go b/go/sdk/model_analytics_spend_description.go new file mode 100644 index 0000000..9eec7e3 --- /dev/null +++ b/go/sdk/model_analytics_spend_description.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsSpendDescription struct { + Cv string `json:"cv,omitempty"` + Anchor string `json:"anchor,omitempty"` + Nullifier string `json:"nullifier,omitempty"` + RkOut string `json:"rk_out,omitempty"` + Zkproof string `json:"zkproof,omitempty"` +} diff --git a/go/sdk/model_analytics_transfer_tx.go b/go/sdk/model_analytics_transfer_tx.go new file mode 100644 index 0000000..4995847 --- /dev/null +++ b/go/sdk/model_analytics_transfer_tx.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTransferTx struct { + AssetConverterDescriptions []AnalyticsAssetConverterProofDescription `json:"asset_converter_descriptions,omitempty"` + Spends []AnalyticsSpendDescription `json:"spends,omitempty"` + Outputs []AnalyticsOutputDescription `json:"outputs,omitempty"` + BindingSig string `json:"binding_sig,omitempty"` + SpendAuthSigs []string `json:"spend_auth_sigs,omitempty"` +} diff --git a/go/sdk/model_analytics_transfer_tx_all_of.go b/go/sdk/model_analytics_transfer_tx_all_of.go new file mode 100644 index 0000000..78cdc07 --- /dev/null +++ b/go/sdk/model_analytics_transfer_tx_all_of.go @@ -0,0 +1,18 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTransferTxAllOf struct { + AssetConverterDescriptions AnalyticsAssetConverterProofDescription `json:"asset_converter_descriptions,omitempty"` + Spends []AnalyticsSpendDescription `json:"spends,omitempty"` + Outputs []AnalyticsOutputDescription `json:"outputs,omitempty"` + BindingSig string `json:"binding_sig,omitempty"` + SpendAuthSigs []string `json:"spend_auth_sigs,omitempty"` +} diff --git a/go/sdk/model_analytics_tx_metadata.go b/go/sdk/model_analytics_tx_metadata.go new file mode 100644 index 0000000..dda9058 --- /dev/null +++ b/go/sdk/model_analytics_tx_metadata.go @@ -0,0 +1,19 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type AnalyticsTxMetadata struct { + Type string `json:"type,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + BlockHash string `json:"block_hash,omitempty"` + Timestamp string `json:"timestamp,omitempty"` + IndexInBlock int32 `json:"index_in_block,omitempty"` + BlockHeight int32 `json:"block_height,omitempty"` +} diff --git a/go/sdk/model_async_task_created_response.go b/go/sdk/model_async_task_created_response.go index 42d5a1f..3ad501c 100644 --- a/go/sdk/model_async_task_created_response.go +++ b/go/sdk/model_async_task_created_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_balance_for_asset.go b/go/sdk/model_balance_for_asset.go index 403e53c..30e796a 100644 --- a/go/sdk/model_balance_for_asset.go +++ b/go/sdk/model_balance_for_asset.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,5 +11,5 @@ package sdk type BalanceForAsset struct { AssetId int32 `json:"asset_id"` - Amount int32 `json:"amount"` + Amount int32 `json:"amount"` } diff --git a/go/sdk/model_confidential_analytics_output.go b/go/sdk/model_confidential_analytics_output.go new file mode 100644 index 0000000..25683d6 --- /dev/null +++ b/go/sdk/model_confidential_analytics_output.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type ConfidentialAnalyticsOutput struct { + IsConfidential bool `json:"is_confidential"` + OutputDescription AnalyticsOutputDescription `json:"output_description"` + ConfidentialIssuanceDescription AnalyticsConfidentialIssuanceDescription `json:"confidential_issuance_description"` +} diff --git a/go/sdk/model_create_rule_request.go b/go/sdk/model_create_rule_request.go index 92e6d80..2330254 100644 --- a/go/sdk/model_create_rule_request.go +++ b/go/sdk/model_create_rule_request.go @@ -3,14 +3,14 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type CreateRuleRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Authorization string `json:"authorization"` - RulesToAdd []Rule `json:"rules_to_add"` + RulesToAdd []Rule `json:"rules_to_add"` } diff --git a/go/sdk/model_delete_rule_request.go b/go/sdk/model_delete_rule_request.go index 2317839..ce97fbb 100644 --- a/go/sdk/model_delete_rule_request.go +++ b/go/sdk/model_delete_rule_request.go @@ -3,14 +3,14 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type DeleteRuleRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Authorization string `json:"authorization"` RulesToDelete []Rule `json:"rules_to_delete"` } diff --git a/go/sdk/model_delete_wallet_request.go b/go/sdk/model_delete_wallet_request.go index de036a7..66c0c2c 100644 --- a/go/sdk/model_delete_wallet_request.go +++ b/go/sdk/model_delete_wallet_request.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type DeleteWalletRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Authorization string `json:"authorization"` } diff --git a/go/sdk/model_error_response.go b/go/sdk/model_error_response.go index 90225d9..21022a6 100644 --- a/go/sdk/model_error_response.go +++ b/go/sdk/model_error_response.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type ErrorResponse struct { - ErrorCode int32 `json:"error_code"` - Message string `json:"message,omitempty"` + ErrorCode int32 `json:"error_code"` + Message string `json:"message,omitempty"` } diff --git a/go/sdk/model_export_wallet_request.go b/go/sdk/model_export_wallet_request.go index 3cb4ead..e42cad0 100644 --- a/go/sdk/model_export_wallet_request.go +++ b/go/sdk/model_export_wallet_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_export_wallet_response.go b/go/sdk/model_export_wallet_response.go index def4951..7471f78 100644 --- a/go/sdk/model_export_wallet_response.go +++ b/go/sdk/model_export_wallet_response.go @@ -3,14 +3,14 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type ExportWalletResponse struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` EncryptedSk string `json:"encrypted_sk"` - Salt string `json:"salt"` + Salt string `json:"salt"` } diff --git a/go/sdk/model_generate_wallet_request.go b/go/sdk/model_generate_wallet_request.go index 87a361f..0b0b127 100644 --- a/go/sdk/model_generate_wallet_request.go +++ b/go/sdk/model_generate_wallet_request.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GenerateWalletRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Authorization string `json:"authorization"` } diff --git a/go/sdk/model_get_activity_request.go b/go/sdk/model_get_activity_request.go index 28c3f85..b6abcfc 100644 --- a/go/sdk/model_get_activity_request.go +++ b/go/sdk/model_get_activity_request.go @@ -1,9 +1,9 @@ /* - * QED-it - Asset Transfers + * QEDIT – Asset Transfers * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.2.3 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_activity_response.go b/go/sdk/model_get_activity_response.go index a4ddabc..9189b96 100644 --- a/go/sdk/model_get_activity_response.go +++ b/go/sdk/model_get_activity_response.go @@ -1,9 +1,9 @@ /* - * QED-it - Asset Transfers + * QEDIT – Asset Transfers * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.2.3 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_all_wallets_response.go b/go/sdk/model_get_all_wallets_response.go index 515ea58..c2627d2 100644 --- a/go/sdk/model_get_all_wallets_response.go +++ b/go/sdk/model_get_all_wallets_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_network_activity_request.go b/go/sdk/model_get_network_activity_request.go index 67bc763..17216fe 100644 --- a/go/sdk/model_get_network_activity_request.go +++ b/go/sdk/model_get_network_activity_request.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetNetworkActivityRequest struct { - StartIndex int32 `json:"start_index"` + StartIndex int32 `json:"start_index"` NumberOfResults int32 `json:"number_of_results"` } diff --git a/go/sdk/model_get_network_activity_response.go b/go/sdk/model_get_network_activity_response.go index bfcd7c9..9100469 100644 --- a/go/sdk/model_get_network_activity_response.go +++ b/go/sdk/model_get_network_activity_response.go @@ -3,12 +3,12 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetNetworkActivityResponse struct { - Blocks []Block `json:"blocks"` + Transactions []AnalyticTransaction `json:"transactions,omitempty"` } diff --git a/go/sdk/model_get_new_address_request.go b/go/sdk/model_get_new_address_request.go index fc07e6f..8813543 100644 --- a/go/sdk/model_get_new_address_request.go +++ b/go/sdk/model_get_new_address_request.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetNewAddressRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Diversifier string `json:"diversifier,omitempty"` } diff --git a/go/sdk/model_get_new_address_response.go b/go/sdk/model_get_new_address_response.go index 4b4a162..b864b19 100644 --- a/go/sdk/model_get_new_address_response.go +++ b/go/sdk/model_get_new_address_response.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetNewAddressResponse struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` RecipientAddress string `json:"recipient_address"` } diff --git a/go/sdk/model_get_public_key_request.go b/go/sdk/model_get_public_key_request.go index 09cd14b..674452a 100644 --- a/go/sdk/model_get_public_key_request.go +++ b/go/sdk/model_get_public_key_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_public_key_response.go b/go/sdk/model_get_public_key_response.go index d9f8e58..24ca737 100644 --- a/go/sdk/model_get_public_key_response.go +++ b/go/sdk/model_get_public_key_response.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetPublicKeyResponse struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` PublicKey string `json:"public_key"` } diff --git a/go/sdk/model_get_rules_response.go b/go/sdk/model_get_rules_response.go index 6ccb02b..0c8b452 100644 --- a/go/sdk/model_get_rules_response.go +++ b/go/sdk/model_get_rules_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_request.go b/go/sdk/model_get_task_status_request.go index 902787f..3f83356 100644 --- a/go/sdk/model_get_task_status_request.go +++ b/go/sdk/model_get_task_status_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_task_status_response.go b/go/sdk/model_get_task_status_response.go index 482a2c7..06be5e2 100644 --- a/go/sdk/model_get_task_status_response.go +++ b/go/sdk/model_get_task_status_response.go @@ -3,19 +3,19 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetTaskStatusResponse struct { - Id string `json:"id,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` - Result string `json:"result,omitempty"` - TxHash string `json:"tx_hash,omitempty"` - Type string `json:"type,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Error string `json:"error,omitempty"` + Id string `json:"id,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` + Result string `json:"result,omitempty"` + TxHash string `json:"tx_hash,omitempty"` + Type string `json:"type,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Error string `json:"error,omitempty"` } diff --git a/go/sdk/model_get_wallet_activity_request.go b/go/sdk/model_get_wallet_activity_request.go new file mode 100644 index 0000000..858dc4a --- /dev/null +++ b/go/sdk/model_get_wallet_activity_request.go @@ -0,0 +1,16 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletActivityRequest struct { + WalletId string `json:"wallet_id"` + StartIndex int32 `json:"start_index"` + NumberOfResults int32 `json:"number_of_results"` +} diff --git a/go/sdk/model_get_wallet_activity_response.go b/go/sdk/model_get_wallet_activity_response.go new file mode 100644 index 0000000..94a5e03 --- /dev/null +++ b/go/sdk/model_get_wallet_activity_response.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type GetWalletActivityResponse struct { + WalletId string `json:"wallet_id,omitempty"` + Transactions []AnalyticWalletTx `json:"transactions,omitempty"` +} diff --git a/go/sdk/model_get_wallet_balance_request.go b/go/sdk/model_get_wallet_balance_request.go index f793575..0506924 100644 --- a/go/sdk/model_get_wallet_balance_request.go +++ b/go/sdk/model_get_wallet_balance_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/go/sdk/model_get_wallet_balance_response.go b/go/sdk/model_get_wallet_balance_response.go index 6a80554..0054c1d 100644 --- a/go/sdk/model_get_wallet_balance_response.go +++ b/go/sdk/model_get_wallet_balance_response.go @@ -3,13 +3,13 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type GetWalletBalanceResponse struct { - WalletId string `json:"wallet_id"` - Assets []BalanceForAsset `json:"assets"` + WalletId string `json:"wallet_id"` + Assets []BalanceForAsset `json:"assets"` } diff --git a/go/sdk/model_healthcheck_response.go b/go/sdk/model_healthcheck_response.go new file mode 100644 index 0000000..9d7d457 --- /dev/null +++ b/go/sdk/model_healthcheck_response.go @@ -0,0 +1,18 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponse struct { + Version string `json:"version,omitempty"` + BlockchainConnector HealthcheckResponseItem `json:"blockchain_connector,omitempty"` + MessageQueue HealthcheckResponseItem `json:"message_queue,omitempty"` + Database HealthcheckResponseItem `json:"database,omitempty"` + Passing bool `json:"passing,omitempty"` +} diff --git a/go/sdk/model_healthcheck_response_blockchain_connector.go b/go/sdk/model_healthcheck_response_blockchain_connector.go new file mode 100644 index 0000000..40392c8 --- /dev/null +++ b/go/sdk/model_healthcheck_response_blockchain_connector.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponseBlockchainConnector struct { + Passing bool `json:"passing,omitempty"` + Error string `json:"error,omitempty"` +} diff --git a/go/sdk/model_healthcheck_response_item.go b/go/sdk/model_healthcheck_response_item.go new file mode 100644 index 0000000..bae6af2 --- /dev/null +++ b/go/sdk/model_healthcheck_response_item.go @@ -0,0 +1,15 @@ +/* + * QED-it - Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.3.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type HealthcheckResponseItem struct { + Passing bool `json:"passing,omitempty"` + Error string `json:"error,omitempty"` +} diff --git a/go/sdk/model_import_wallet_request.go b/go/sdk/model_import_wallet_request.go index a67b6ef..5b25c65 100644 --- a/go/sdk/model_import_wallet_request.go +++ b/go/sdk/model_import_wallet_request.go @@ -3,15 +3,15 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type ImportWalletRequest struct { - WalletId string `json:"wallet_id"` - EncryptedSk string `json:"encrypted_sk"` + WalletId string `json:"wallet_id"` + EncryptedSk string `json:"encrypted_sk"` Authorization string `json:"authorization"` - Salt string `json:"salt"` + Salt string `json:"salt"` } diff --git a/go/sdk/model_issue_asset_request.go b/go/sdk/model_issue_asset_request.go index 2e5414e..e7a1a39 100644 --- a/go/sdk/model_issue_asset_request.go +++ b/go/sdk/model_issue_asset_request.go @@ -3,18 +3,18 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type IssueAssetRequest struct { - WalletId string `json:"wallet_id"` - Authorization string `json:"authorization"` + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` RecipientAddress string `json:"recipient_address"` - Amount int32 `json:"amount"` - AssetId int32 `json:"asset_id"` - Confidential bool `json:"confidential"` - Memo string `json:"memo"` + Amount int32 `json:"amount"` + AssetId int32 `json:"asset_id"` + Confidential bool `json:"confidential"` + Memo string `json:"memo"` } diff --git a/go/sdk/model_public_analytics_output.go b/go/sdk/model_public_analytics_output.go new file mode 100644 index 0000000..fc1f342 --- /dev/null +++ b/go/sdk/model_public_analytics_output.go @@ -0,0 +1,16 @@ +/* + * QEDIT – Asset Transfers + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 1.2.3 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package sdk + +type PublicAnalyticsOutput struct { + IsConfidential bool `json:"is_confidential"` + OutputDescription AnalyticsOutputDescription `json:"output_description"` + PublicIssuanceDescription AnalyticsPublicIssuanceDescription `json:"public_issuance_description"` +} diff --git a/go/sdk/model_rule.go b/go/sdk/model_rule.go index 0095318..5e41442 100644 --- a/go/sdk/model_rule.go +++ b/go/sdk/model_rule.go @@ -3,16 +3,16 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type Rule struct { - PublicKey string `json:"public_key"` - CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` - CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` - CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` - IsAdmin bool `json:"is_admin,omitempty"` + PublicKey string `json:"public_key"` + CanIssueConfidentially bool `json:"can_issue_confidentially,omitempty"` + CanIssueAssetIdFirst int32 `json:"can_issue_asset_id_first,omitempty"` + CanIssueAssetIdLast int32 `json:"can_issue_asset_id_last,omitempty"` + IsAdmin bool `json:"is_admin,omitempty"` } diff --git a/go/sdk/model_transactions_for_wallet.go b/go/sdk/model_transactions_for_wallet.go index 055156b..e5bf1fc 100644 --- a/go/sdk/model_transactions_for_wallet.go +++ b/go/sdk/model_transactions_for_wallet.go @@ -3,17 +3,17 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type TransactionsForWallet struct { - IsIncoming bool `json:"is_incoming"` - AssetId int32 `json:"asset_id"` - Amount int32 `json:"amount"` + IsIncoming bool `json:"is_incoming"` + AssetId int32 `json:"asset_id"` + Amount int32 `json:"amount"` RecipientAddress string `json:"recipient_address"` - Memo string `json:"memo"` - Id string `json:"id"` + Memo string `json:"memo"` + Id string `json:"id"` } diff --git a/go/sdk/model_transfer_asset_request.go b/go/sdk/model_transfer_asset_request.go index cc58217..2778c40 100644 --- a/go/sdk/model_transfer_asset_request.go +++ b/go/sdk/model_transfer_asset_request.go @@ -3,17 +3,17 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type TransferAssetRequest struct { - WalletId string `json:"wallet_id"` - Authorization string `json:"authorization"` + WalletId string `json:"wallet_id"` + Authorization string `json:"authorization"` RecipientAddress string `json:"recipient_address"` - Amount int32 `json:"amount"` - AssetId int32 `json:"asset_id"` - Memo string `json:"memo"` + Amount int32 `json:"amount"` + AssetId int32 `json:"asset_id"` + Memo string `json:"memo"` } diff --git a/go/sdk/model_unlock_wallet_request.go b/go/sdk/model_unlock_wallet_request.go index e12f17a..1121f6f 100644 --- a/go/sdk/model_unlock_wallet_request.go +++ b/go/sdk/model_unlock_wallet_request.go @@ -3,14 +3,14 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package sdk type UnlockWalletRequest struct { - WalletId string `json:"wallet_id"` + WalletId string `json:"wallet_id"` Authorization string `json:"authorization"` - Seconds int32 `json:"seconds"` + Seconds int32 `json:"seconds"` } diff --git a/go/sdk/response.go b/go/sdk/response.go index 6f734c6..5a869c2 100644 --- a/go/sdk/response.go +++ b/go/sdk/response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.2.2 + * API version: 1.3.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/js/sdk/README.md b/js/sdk/README.md index 52ea039..371e111 100644 --- a/js/sdk/README.md +++ b/js/sdk/README.md @@ -4,8 +4,8 @@ QedItAssetTransfers - JavaScript client for qed-it-asset-transfers No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.2.2 -- Package version: 1.2.2 +- API version: 1.3.0 +- Package version: 1.3.0 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -121,6 +121,7 @@ All URIs are relative to *http://localhost:12052* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *QedItAssetTransfers.AnalyticsApi* | [**analyticsGetNetworkActivityPost**](docs/AnalyticsApi.md#analyticsGetNetworkActivityPost) | **POST** /analytics/get_network_activity | Get details on past blocks +*QedItAssetTransfers.HealthApi* | [**healthPost**](docs/HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services *QedItAssetTransfers.NodeApi* | [**nodeDeleteWalletPost**](docs/NodeApi.md#nodeDeleteWalletPost) | **POST** /node/delete_wallet | Delete a wallet *QedItAssetTransfers.NodeApi* | [**nodeExportWalletPost**](docs/NodeApi.md#nodeExportWalletPost) | **POST** /node/export_wallet | Export wallet secret key *QedItAssetTransfers.NodeApi* | [**nodeGenerateWalletPost**](docs/NodeApi.md#nodeGenerateWalletPost) | **POST** /node/generate_wallet | Generate a new wallet @@ -141,9 +142,27 @@ Class | Method | HTTP request | Description ## Documentation for Models + - [QedItAssetTransfers.AnalyticIssueWalletTx](docs/AnalyticIssueWalletTx.md) + - [QedItAssetTransfers.AnalyticRuleWalletTx](docs/AnalyticRuleWalletTx.md) + - [QedItAssetTransfers.AnalyticTransaction](docs/AnalyticTransaction.md) + - [QedItAssetTransfers.AnalyticTransferWalletTx](docs/AnalyticTransferWalletTx.md) + - [QedItAssetTransfers.AnalyticWalletMetadata](docs/AnalyticWalletMetadata.md) + - [QedItAssetTransfers.AnalyticWalletTx](docs/AnalyticWalletTx.md) + - [QedItAssetTransfers.AnalyticsAssetConverterProofDescription](docs/AnalyticsAssetConverterProofDescription.md) + - [QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription](docs/AnalyticsConfidentialIssuanceDescription.md) + - [QedItAssetTransfers.AnalyticsIssueTx](docs/AnalyticsIssueTx.md) + - [QedItAssetTransfers.AnalyticsOutput](docs/AnalyticsOutput.md) + - [QedItAssetTransfers.AnalyticsOutputDescription](docs/AnalyticsOutputDescription.md) + - [QedItAssetTransfers.AnalyticsPublicIssuanceDescription](docs/AnalyticsPublicIssuanceDescription.md) + - [QedItAssetTransfers.AnalyticsRule](docs/AnalyticsRule.md) + - [QedItAssetTransfers.AnalyticsRuleDefinition](docs/AnalyticsRuleDefinition.md) + - [QedItAssetTransfers.AnalyticsRuleTx](docs/AnalyticsRuleTx.md) + - [QedItAssetTransfers.AnalyticsRuleWalletDefinition](docs/AnalyticsRuleWalletDefinition.md) + - [QedItAssetTransfers.AnalyticsSpendDescription](docs/AnalyticsSpendDescription.md) + - [QedItAssetTransfers.AnalyticsTransferTx](docs/AnalyticsTransferTx.md) + - [QedItAssetTransfers.AnalyticsTxMetadata](docs/AnalyticsTxMetadata.md) - [QedItAssetTransfers.AsyncTaskCreatedResponse](docs/AsyncTaskCreatedResponse.md) - [QedItAssetTransfers.BalanceForAsset](docs/BalanceForAsset.md) - - [QedItAssetTransfers.Block](docs/Block.md) - [QedItAssetTransfers.CreateRuleRequest](docs/CreateRuleRequest.md) - [QedItAssetTransfers.DeleteRuleRequest](docs/DeleteRuleRequest.md) - [QedItAssetTransfers.DeleteWalletRequest](docs/DeleteWalletRequest.md) @@ -151,8 +170,6 @@ Class | Method | HTTP request | Description - [QedItAssetTransfers.ExportWalletRequest](docs/ExportWalletRequest.md) - [QedItAssetTransfers.ExportWalletResponse](docs/ExportWalletResponse.md) - [QedItAssetTransfers.GenerateWalletRequest](docs/GenerateWalletRequest.md) - - [QedItAssetTransfers.GetActivityRequest](docs/GetActivityRequest.md) - - [QedItAssetTransfers.GetActivityResponse](docs/GetActivityResponse.md) - [QedItAssetTransfers.GetAllWalletsResponse](docs/GetAllWalletsResponse.md) - [QedItAssetTransfers.GetNetworkActivityRequest](docs/GetNetworkActivityRequest.md) - [QedItAssetTransfers.GetNetworkActivityResponse](docs/GetNetworkActivityResponse.md) @@ -163,8 +180,12 @@ Class | Method | HTTP request | Description - [QedItAssetTransfers.GetRulesResponse](docs/GetRulesResponse.md) - [QedItAssetTransfers.GetTaskStatusRequest](docs/GetTaskStatusRequest.md) - [QedItAssetTransfers.GetTaskStatusResponse](docs/GetTaskStatusResponse.md) + - [QedItAssetTransfers.GetWalletActivityRequest](docs/GetWalletActivityRequest.md) + - [QedItAssetTransfers.GetWalletActivityResponse](docs/GetWalletActivityResponse.md) - [QedItAssetTransfers.GetWalletBalanceRequest](docs/GetWalletBalanceRequest.md) - [QedItAssetTransfers.GetWalletBalanceResponse](docs/GetWalletBalanceResponse.md) + - [QedItAssetTransfers.HealthcheckResponse](docs/HealthcheckResponse.md) + - [QedItAssetTransfers.HealthcheckResponseItem](docs/HealthcheckResponseItem.md) - [QedItAssetTransfers.ImportWalletRequest](docs/ImportWalletRequest.md) - [QedItAssetTransfers.IssueAssetRequest](docs/IssueAssetRequest.md) - [QedItAssetTransfers.Rule](docs/Rule.md) diff --git a/js/sdk/docs/AnalyticIssueWalletTx.md b/js/sdk/docs/AnalyticIssueWalletTx.md new file mode 100644 index 0000000..7c7baf7 --- /dev/null +++ b/js/sdk/docs/AnalyticIssueWalletTx.md @@ -0,0 +1,14 @@ +# QedItAssetTransfers.AnalyticIssueWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isIncoming** | **Boolean** | | [optional] +**issuedBySelf** | **Boolean** | | [optional] +**memo** | **String** | | [optional] +**recipientAddress** | **String** | | [optional] +**assetId** | **Number** | | [optional] +**amount** | **Number** | | [optional] +**isConfidential** | **Boolean** | | [optional] + + diff --git a/js/sdk/docs/AnalyticRuleWalletTx.md b/js/sdk/docs/AnalyticRuleWalletTx.md new file mode 100644 index 0000000..7ab0c10 --- /dev/null +++ b/js/sdk/docs/AnalyticRuleWalletTx.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticRuleWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signedBySelf** | **Boolean** | | [optional] +**ruleAffectSelf** | **Boolean** | | [optional] +**txSigner** | **String** | | [optional] +**rule** | [**AnalyticsRuleWalletDefinition**](AnalyticsRuleWalletDefinition.md) | | [optional] + + diff --git a/js/sdk/docs/AnalyticTransaction.md b/js/sdk/docs/AnalyticTransaction.md new file mode 100644 index 0000000..d9d1a51 --- /dev/null +++ b/js/sdk/docs/AnalyticTransaction.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**AnalyticsTxMetadata**](AnalyticsTxMetadata.md) | | [optional] +**content** | **Object** | | [optional] + + diff --git a/js/sdk/docs/AnalyticTransferWalletTx.md b/js/sdk/docs/AnalyticTransferWalletTx.md new file mode 100644 index 0000000..173e2ab --- /dev/null +++ b/js/sdk/docs/AnalyticTransferWalletTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticTransferWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isIncoming** | **Boolean** | | [optional] +**memo** | **String** | | [optional] +**recipientAddress** | **String** | | [optional] +**assetId** | **Number** | | [optional] +**amount** | **Number** | | [optional] + + diff --git a/js/sdk/docs/AnalyticWalletMetadata.md b/js/sdk/docs/AnalyticWalletMetadata.md new file mode 100644 index 0000000..b937f71 --- /dev/null +++ b/js/sdk/docs/AnalyticWalletMetadata.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticWalletMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**txHash** | **String** | | [optional] +**timestamp** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticWalletTx.md b/js/sdk/docs/AnalyticWalletTx.md new file mode 100644 index 0000000..02ddc16 --- /dev/null +++ b/js/sdk/docs/AnalyticWalletTx.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticWalletTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**AnalyticWalletMetadata**](AnalyticWalletMetadata.md) | | [optional] +**content** | **Object** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsAssetConverterProofDescription.md b/js/sdk/docs/AnalyticsAssetConverterProofDescription.md new file mode 100644 index 0000000..35a6a74 --- /dev/null +++ b/js/sdk/docs/AnalyticsAssetConverterProofDescription.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticsAssetConverterProofDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inputCv** | **String** | | [optional] +**amountCv** | **String** | | [optional] +**assetCv** | **String** | | [optional] +**zkproof** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md new file mode 100644 index 0000000..0eccaae --- /dev/null +++ b/js/sdk/docs/AnalyticsConfidentialIssuanceDescription.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inputCv** | **String** | | [optional] +**zkproof** | **String** | | [optional] +**rule** | [**AnalyticsRule**](AnalyticsRule.md) | | [optional] + + diff --git a/js/sdk/docs/AnalyticsContent.md b/js/sdk/docs/AnalyticsContent.md new file mode 100644 index 0000000..c0b130b --- /dev/null +++ b/js/sdk/docs/AnalyticsContent.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.AnalyticsContent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**txType** | **String** | | + + diff --git a/js/sdk/docs/AnalyticsIssueTx.md b/js/sdk/docs/AnalyticsIssueTx.md new file mode 100644 index 0000000..900d011 --- /dev/null +++ b/js/sdk/docs/AnalyticsIssueTx.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.AnalyticsIssueTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outputs** | [**[AnalyticsOutput]**](AnalyticsOutput.md) | | [optional] +**publicKey** | **String** | | [optional] +**signature** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsOutput.md b/js/sdk/docs/AnalyticsOutput.md new file mode 100644 index 0000000..4afccb2 --- /dev/null +++ b/js/sdk/docs/AnalyticsOutput.md @@ -0,0 +1,11 @@ +# QedItAssetTransfers.AnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isConfidential** | **Boolean** | | [optional] +**publicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | [optional] +**confidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | [optional] +**outputDescription** | [**AnalyticsOutputDescription**](AnalyticsOutputDescription.md) | | [optional] + + diff --git a/js/sdk/docs/AnalyticsOutputDescription.md b/js/sdk/docs/AnalyticsOutputDescription.md new file mode 100644 index 0000000..e60f773 --- /dev/null +++ b/js/sdk/docs/AnalyticsOutputDescription.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsOutputDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cv** | **String** | | [optional] +**cm** | **String** | | [optional] +**epk** | **String** | | [optional] +**zkproof** | **String** | | [optional] +**encNote** | **String** | | [optional] +**encSender** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsPublicIssuanceDescription.md b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md new file mode 100644 index 0000000..6374187 --- /dev/null +++ b/js/sdk/docs/AnalyticsPublicIssuanceDescription.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticsPublicIssuanceDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetId** | **Number** | | +**amount** | **Number** | | + + diff --git a/js/sdk/docs/AnalyticsRule.md b/js/sdk/docs/AnalyticsRule.md new file mode 100644 index 0000000..20f95a8 --- /dev/null +++ b/js/sdk/docs/AnalyticsRule.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.AnalyticsRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minId** | **Number** | | +**maxId** | **Number** | | + + diff --git a/js/sdk/docs/AnalyticsRuleDefinition.md b/js/sdk/docs/AnalyticsRuleDefinition.md new file mode 100644 index 0000000..d33f39e --- /dev/null +++ b/js/sdk/docs/AnalyticsRuleDefinition.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsRuleDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicKey** | **String** | | [optional] +**canIssueConfidentially** | **Boolean** | | [optional] +**isAdmin** | **Boolean** | | [optional] +**canIssueAssetIdFirst** | **Number** | | [optional] +**canIssueAssetIdLast** | **Number** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsRuleTx.md b/js/sdk/docs/AnalyticsRuleTx.md new file mode 100644 index 0000000..7251454 --- /dev/null +++ b/js/sdk/docs/AnalyticsRuleTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsRuleTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**senderPublicKey** | **String** | | [optional] +**rulesToAdd** | [**[AnalyticsRuleDefinition]**](AnalyticsRuleDefinition.md) | | [optional] +**rulesToDelete** | [**[AnalyticsRuleDefinition]**](AnalyticsRuleDefinition.md) | | [optional] +**nonce** | **Number** | | [optional] +**signature** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsRuleWalletDefinition.md b/js/sdk/docs/AnalyticsRuleWalletDefinition.md new file mode 100644 index 0000000..5c11f6b --- /dev/null +++ b/js/sdk/docs/AnalyticsRuleWalletDefinition.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsRuleWalletDefinition + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicKey** | **String** | | [optional] +**canIssueConfidentially** | **Boolean** | | [optional] +**isAdmin** | **Boolean** | | [optional] +**canIssueAssetIdFirst** | **Number** | | [optional] +**canIssueAssetIdLast** | **Number** | | [optional] +**operation** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsSpendDescription.md b/js/sdk/docs/AnalyticsSpendDescription.md new file mode 100644 index 0000000..85a093d --- /dev/null +++ b/js/sdk/docs/AnalyticsSpendDescription.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsSpendDescription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cv** | **String** | | [optional] +**anchor** | **String** | | [optional] +**nullifier** | **String** | | [optional] +**rkOut** | **String** | | [optional] +**zkproof** | **String** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsTransferTx.md b/js/sdk/docs/AnalyticsTransferTx.md new file mode 100644 index 0000000..de26ca0 --- /dev/null +++ b/js/sdk/docs/AnalyticsTransferTx.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.AnalyticsTransferTx + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetConverterDescriptions** | [**[AnalyticsAssetConverterProofDescription]**](AnalyticsAssetConverterProofDescription.md) | | [optional] +**spends** | [**[AnalyticsSpendDescription]**](AnalyticsSpendDescription.md) | | [optional] +**outputs** | [**[AnalyticsOutputDescription]**](AnalyticsOutputDescription.md) | | [optional] +**bindingSig** | **String** | | [optional] +**spendAuthSigs** | **[String]** | | [optional] + + diff --git a/js/sdk/docs/AnalyticsTxMetadata.md b/js/sdk/docs/AnalyticsTxMetadata.md new file mode 100644 index 0000000..53170ff --- /dev/null +++ b/js/sdk/docs/AnalyticsTxMetadata.md @@ -0,0 +1,13 @@ +# QedItAssetTransfers.AnalyticsTxMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**txHash** | **String** | | [optional] +**blockHash** | **String** | | [optional] +**timestamp** | **String** | | [optional] +**indexInBlock** | **Number** | | [optional] +**blockHeight** | **Number** | | [optional] + + diff --git a/js/sdk/docs/ConfidentialAnalyticsOutput.md b/js/sdk/docs/ConfidentialAnalyticsOutput.md new file mode 100644 index 0000000..835e9de --- /dev/null +++ b/js/sdk/docs/ConfidentialAnalyticsOutput.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.ConfidentialAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**confidentialIssuanceDescription** | [**AnalyticsConfidentialIssuanceDescription**](AnalyticsConfidentialIssuanceDescription.md) | | + + diff --git a/js/sdk/docs/GetNetworkActivityResponse.md b/js/sdk/docs/GetNetworkActivityResponse.md index a536e38..1db00cf 100644 --- a/js/sdk/docs/GetNetworkActivityResponse.md +++ b/js/sdk/docs/GetNetworkActivityResponse.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**blocks** | [**[Block]**](Block.md) | | +**transactions** | [**[AnalyticTransaction]**](AnalyticTransaction.md) | | [optional] diff --git a/js/sdk/docs/GetWalletActivityRequest.md b/js/sdk/docs/GetWalletActivityRequest.md new file mode 100644 index 0000000..14325ed --- /dev/null +++ b/js/sdk/docs/GetWalletActivityRequest.md @@ -0,0 +1,10 @@ +# QedItAssetTransfers.GetWalletActivityRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | +**startIndex** | **Number** | | +**numberOfResults** | **Number** | | + + diff --git a/js/sdk/docs/GetWalletActivityResponse.md b/js/sdk/docs/GetWalletActivityResponse.md new file mode 100644 index 0000000..520d5fc --- /dev/null +++ b/js/sdk/docs/GetWalletActivityResponse.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.GetWalletActivityResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**walletId** | **String** | | [optional] +**transactions** | [**[AnalyticWalletTx]**](AnalyticWalletTx.md) | | [optional] + + diff --git a/js/sdk/docs/HealthApi.md b/js/sdk/docs/HealthApi.md new file mode 100644 index 0000000..636e5e4 --- /dev/null +++ b/js/sdk/docs/HealthApi.md @@ -0,0 +1,50 @@ +# QedItAssetTransfers.HealthApi + +All URIs are relative to *http://localhost:12052* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**healthPost**](HealthApi.md#healthPost) | **POST** /health | Perform a healthcheck of the node and its dependent services + + + +# **healthPost** +> HealthcheckResponse healthPost() + +Perform a healthcheck of the node and its dependent services + +### Example +```javascript +var QedItAssetTransfers = require('qed-it-asset-transfers'); +var defaultClient = QedItAssetTransfers.ApiClient.instance; +// Configure API key authorization: ApiKeyAuth +var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; +ApiKeyAuth.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyAuth.apiKeyPrefix = 'Token'; + +var apiInstance = new QedItAssetTransfers.HealthApi(); +apiInstance.healthPost().then(function(data) { + console.log('API called successfully. Returned data: ' + data); +}, function(error) { + console.error(error); +}); + +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**HealthcheckResponse**](HealthcheckResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/js/sdk/docs/HealthcheckResponse.md b/js/sdk/docs/HealthcheckResponse.md new file mode 100644 index 0000000..9735704 --- /dev/null +++ b/js/sdk/docs/HealthcheckResponse.md @@ -0,0 +1,12 @@ +# QedItAssetTransfers.HealthcheckResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | **String** | | [optional] +**blockchainConnector** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**messageQueue** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**database** | [**HealthcheckResponseItem**](HealthcheckResponseItem.md) | | [optional] +**passing** | **Boolean** | | [optional] + + diff --git a/js/sdk/docs/HealthcheckResponseBlockchainConnector.md b/js/sdk/docs/HealthcheckResponseBlockchainConnector.md new file mode 100644 index 0000000..78e4fa1 --- /dev/null +++ b/js/sdk/docs/HealthcheckResponseBlockchainConnector.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.HealthcheckResponseBlockchainConnector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**passing** | **Boolean** | | [optional] +**error** | **String** | | [optional] + + diff --git a/js/sdk/docs/HealthcheckResponseItem.md b/js/sdk/docs/HealthcheckResponseItem.md new file mode 100644 index 0000000..e53e5e7 --- /dev/null +++ b/js/sdk/docs/HealthcheckResponseItem.md @@ -0,0 +1,9 @@ +# QedItAssetTransfers.HealthcheckResponseItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**passing** | **Boolean** | | [optional] +**error** | **String** | | [optional] + + diff --git a/js/sdk/docs/PublicAnalyticsOutput.md b/js/sdk/docs/PublicAnalyticsOutput.md new file mode 100644 index 0000000..f622a69 --- /dev/null +++ b/js/sdk/docs/PublicAnalyticsOutput.md @@ -0,0 +1,8 @@ +# QedItAssetTransfers.PublicAnalyticsOutput + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**publicIssuanceDescription** | [**AnalyticsPublicIssuanceDescription**](AnalyticsPublicIssuanceDescription.md) | | + + diff --git a/js/sdk/docs/WalletApi.md b/js/sdk/docs/WalletApi.md index 99bab1d..dbf0eaf 100644 --- a/js/sdk/docs/WalletApi.md +++ b/js/sdk/docs/WalletApi.md @@ -106,7 +106,7 @@ Name | Type | Description | Notes # **walletGetActivityPost** -> GetActivityResponse walletGetActivityPost(getActivityRequest) +> GetWalletActivityResponse walletGetActivityPost(getWalletActivityRequest) Get wallet activity (transactions) @@ -121,8 +121,8 @@ ApiKeyAuth.apiKey = 'YOUR API KEY'; //ApiKeyAuth.apiKeyPrefix = 'Token'; var apiInstance = new QedItAssetTransfers.WalletApi(); -var getActivityRequest = new QedItAssetTransfers.GetActivityRequest(); // GetActivityRequest | -apiInstance.walletGetActivityPost(getActivityRequest).then(function(data) { +var getWalletActivityRequest = new QedItAssetTransfers.GetWalletActivityRequest(); // GetWalletActivityRequest | +apiInstance.walletGetActivityPost(getWalletActivityRequest).then(function(data) { console.log('API called successfully. Returned data: ' + data); }, function(error) { console.error(error); @@ -134,11 +134,11 @@ apiInstance.walletGetActivityPost(getActivityRequest).then(function(data) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **getActivityRequest** | [**GetActivityRequest**](GetActivityRequest.md)| | + **getWalletActivityRequest** | [**GetWalletActivityRequest**](GetWalletActivityRequest.md)| | ### Return type -[**GetActivityResponse**](GetActivityResponse.md) +[**GetWalletActivityResponse**](GetWalletActivityResponse.md) ### Authorization diff --git a/js/sdk/package.json b/js/sdk/package.json index d8c8011..41db4a8 100644 --- a/js/sdk/package.json +++ b/js/sdk/package.json @@ -1,6 +1,6 @@ { "name": "qed-it-asset-transfers", - "version": "1.2.2", + "version": "1.3.0", "description": "ERROR_UNKNOWN", "license": "Unlicense", "main": "src/index.js", diff --git a/js/sdk/src/ApiClient.js b/js/sdk/src/ApiClient.js index e7ab57c..44bed28 100644 --- a/js/sdk/src/ApiClient.js +++ b/js/sdk/src/ApiClient.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -32,7 +32,7 @@ /** * @module ApiClient - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/api/AnalyticsApi.js b/js/sdk/src/api/AnalyticsApi.js index bab0981..c47509a 100644 --- a/js/sdk/src/api/AnalyticsApi.js +++ b/js/sdk/src/api/AnalyticsApi.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -33,7 +33,7 @@ /** * Analytics service. * @module api/AnalyticsApi - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/api/HealthApi.js b/js/sdk/src/api/HealthApi.js new file mode 100644 index 0000000..a00899d --- /dev/null +++ b/js/sdk/src/api/HealthApi.js @@ -0,0 +1,95 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/ErrorResponse', 'model/HealthcheckResponse'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('../model/ErrorResponse'), require('../model/HealthcheckResponse')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.HealthcheckResponse); + } +}(this, function(ApiClient, ErrorResponse, HealthcheckResponse) { + 'use strict'; + + /** + * Health service. + * @module api/HealthApi + * @version 1.3.0 + */ + + /** + * Constructs a new HealthApi. + * @alias module:api/HealthApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + var exports = function(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + + + + /** + * Perform a healthcheck of the node and its dependent services + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HealthcheckResponse} and HTTP response + */ + this.healthPostWithHttpInfo = function() { + var postBody = null; + + + var pathParams = { + }; + var queryParams = { + }; + var collectionQueryParams = { + }; + var headerParams = { + }; + var formParams = { + }; + + var authNames = ['ApiKeyAuth']; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = HealthcheckResponse; + + return this.apiClient.callApi( + '/health', 'POST', + pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ); + } + + /** + * Perform a healthcheck of the node and its dependent services + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HealthcheckResponse} + */ + this.healthPost = function() { + return this.healthPostWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + }; + + return exports; +})); diff --git a/js/sdk/src/api/NodeApi.js b/js/sdk/src/api/NodeApi.js index 8adbd09..2fb565e 100644 --- a/js/sdk/src/api/NodeApi.js +++ b/js/sdk/src/api/NodeApi.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -33,7 +33,7 @@ /** * Node service. * @module api/NodeApi - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/api/WalletApi.js b/js/sdk/src/api/WalletApi.js index 24c9f21..7c7cf57 100644 --- a/js/sdk/src/api/WalletApi.js +++ b/js/sdk/src/api/WalletApi.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,24 +16,24 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/ErrorResponse', 'model/GetActivityRequest', 'model/GetActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/IssueAssetRequest', 'model/TransferAssetRequest'], factory); + define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/ErrorResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/IssueAssetRequest', 'model/TransferAssetRequest'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/CreateRuleRequest'), require('../model/DeleteRuleRequest'), require('../model/ErrorResponse'), require('../model/GetActivityRequest'), require('../model/GetActivityResponse'), require('../model/GetNewAddressRequest'), require('../model/GetNewAddressResponse'), require('../model/GetPublicKeyRequest'), require('../model/GetPublicKeyResponse'), require('../model/GetWalletBalanceRequest'), require('../model/GetWalletBalanceResponse'), require('../model/IssueAssetRequest'), require('../model/TransferAssetRequest')); + module.exports = factory(require('../ApiClient'), require('../model/AsyncTaskCreatedResponse'), require('../model/CreateRuleRequest'), require('../model/DeleteRuleRequest'), require('../model/ErrorResponse'), require('../model/GetNewAddressRequest'), require('../model/GetNewAddressResponse'), require('../model/GetPublicKeyRequest'), require('../model/GetPublicKeyResponse'), require('../model/GetWalletActivityRequest'), require('../model/GetWalletActivityResponse'), require('../model/GetWalletBalanceRequest'), require('../model/GetWalletBalanceResponse'), require('../model/IssueAssetRequest'), require('../model/TransferAssetRequest')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.WalletApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.CreateRuleRequest, root.QedItAssetTransfers.DeleteRuleRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetActivityRequest, root.QedItAssetTransfers.GetActivityResponse, root.QedItAssetTransfers.GetNewAddressRequest, root.QedItAssetTransfers.GetNewAddressResponse, root.QedItAssetTransfers.GetPublicKeyRequest, root.QedItAssetTransfers.GetPublicKeyResponse, root.QedItAssetTransfers.GetWalletBalanceRequest, root.QedItAssetTransfers.GetWalletBalanceResponse, root.QedItAssetTransfers.IssueAssetRequest, root.QedItAssetTransfers.TransferAssetRequest); + root.QedItAssetTransfers.WalletApi = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AsyncTaskCreatedResponse, root.QedItAssetTransfers.CreateRuleRequest, root.QedItAssetTransfers.DeleteRuleRequest, root.QedItAssetTransfers.ErrorResponse, root.QedItAssetTransfers.GetNewAddressRequest, root.QedItAssetTransfers.GetNewAddressResponse, root.QedItAssetTransfers.GetPublicKeyRequest, root.QedItAssetTransfers.GetPublicKeyResponse, root.QedItAssetTransfers.GetWalletActivityRequest, root.QedItAssetTransfers.GetWalletActivityResponse, root.QedItAssetTransfers.GetWalletBalanceRequest, root.QedItAssetTransfers.GetWalletBalanceResponse, root.QedItAssetTransfers.IssueAssetRequest, root.QedItAssetTransfers.TransferAssetRequest); } -}(this, function(ApiClient, AsyncTaskCreatedResponse, CreateRuleRequest, DeleteRuleRequest, ErrorResponse, GetActivityRequest, GetActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, IssueAssetRequest, TransferAssetRequest) { +}(this, function(ApiClient, AsyncTaskCreatedResponse, CreateRuleRequest, DeleteRuleRequest, ErrorResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, IssueAssetRequest, TransferAssetRequest) { 'use strict'; /** * Wallet service. * @module api/WalletApi - * @version 1.2.2 + * @version 1.3.0 */ /** @@ -150,15 +150,15 @@ /** * Get wallet activity (transactions) - * @param {module:model/GetActivityRequest} getActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivityResponse} and HTTP response + * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWalletActivityResponse} and HTTP response */ - this.walletGetActivityPostWithHttpInfo = function(getActivityRequest) { - var postBody = getActivityRequest; + this.walletGetActivityPostWithHttpInfo = function(getWalletActivityRequest) { + var postBody = getWalletActivityRequest; - // verify the required parameter 'getActivityRequest' is set - if (getActivityRequest === undefined || getActivityRequest === null) { - throw new Error("Missing the required parameter 'getActivityRequest' when calling walletGetActivityPost"); + // verify the required parameter 'getWalletActivityRequest' is set + if (getWalletActivityRequest === undefined || getWalletActivityRequest === null) { + throw new Error("Missing the required parameter 'getWalletActivityRequest' when calling walletGetActivityPost"); } @@ -176,7 +176,7 @@ var authNames = ['ApiKeyAuth']; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = GetActivityResponse; + var returnType = GetWalletActivityResponse; return this.apiClient.callApi( '/wallet/get_activity', 'POST', @@ -187,11 +187,11 @@ /** * Get wallet activity (transactions) - * @param {module:model/GetActivityRequest} getActivityRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivityResponse} + * @param {module:model/GetWalletActivityRequest} getWalletActivityRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWalletActivityResponse} */ - this.walletGetActivityPost = function(getActivityRequest) { - return this.walletGetActivityPostWithHttpInfo(getActivityRequest) + this.walletGetActivityPost = function(getWalletActivityRequest) { + return this.walletGetActivityPostWithHttpInfo(getWalletActivityRequest) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/js/sdk/src/index.js b/js/sdk/src/index.js index 054fdaa..97c20e3 100644 --- a/js/sdk/src/index.js +++ b/js/sdk/src/index.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,12 +16,12 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/Block', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetActivityRequest', 'model/GetActivityResponse', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Rule', 'model/TransactionsForWallet', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/NodeApi', 'api/WalletApi'], factory); + define(['ApiClient', 'model/AnalyticIssueWalletTx', 'model/AnalyticRuleWalletTx', 'model/AnalyticTransaction', 'model/AnalyticTransferWalletTx', 'model/AnalyticWalletMetadata', 'model/AnalyticWalletTx', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsIssueTx', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription', 'model/AnalyticsRule', 'model/AnalyticsRuleDefinition', 'model/AnalyticsRuleTx', 'model/AnalyticsRuleWalletDefinition', 'model/AnalyticsSpendDescription', 'model/AnalyticsTransferTx', 'model/AnalyticsTxMetadata', 'model/AsyncTaskCreatedResponse', 'model/BalanceForAsset', 'model/CreateRuleRequest', 'model/DeleteRuleRequest', 'model/DeleteWalletRequest', 'model/ErrorResponse', 'model/ExportWalletRequest', 'model/ExportWalletResponse', 'model/GenerateWalletRequest', 'model/GetAllWalletsResponse', 'model/GetNetworkActivityRequest', 'model/GetNetworkActivityResponse', 'model/GetNewAddressRequest', 'model/GetNewAddressResponse', 'model/GetPublicKeyRequest', 'model/GetPublicKeyResponse', 'model/GetRulesResponse', 'model/GetTaskStatusRequest', 'model/GetTaskStatusResponse', 'model/GetWalletActivityRequest', 'model/GetWalletActivityResponse', 'model/GetWalletBalanceRequest', 'model/GetWalletBalanceResponse', 'model/HealthcheckResponse', 'model/HealthcheckResponseItem', 'model/ImportWalletRequest', 'model/IssueAssetRequest', 'model/Rule', 'model/TransactionsForWallet', 'model/TransferAssetRequest', 'model/UnlockWalletRequest', 'api/AnalyticsApi', 'api/HealthApi', 'api/NodeApi', 'api/WalletApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/Block'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetActivityRequest'), require('./model/GetActivityResponse'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Rule'), require('./model/TransactionsForWallet'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/NodeApi'), require('./api/WalletApi')); + module.exports = factory(require('./ApiClient'), require('./model/AnalyticIssueWalletTx'), require('./model/AnalyticRuleWalletTx'), require('./model/AnalyticTransaction'), require('./model/AnalyticTransferWalletTx'), require('./model/AnalyticWalletMetadata'), require('./model/AnalyticWalletTx'), require('./model/AnalyticsAssetConverterProofDescription'), require('./model/AnalyticsConfidentialIssuanceDescription'), require('./model/AnalyticsIssueTx'), require('./model/AnalyticsOutput'), require('./model/AnalyticsOutputDescription'), require('./model/AnalyticsPublicIssuanceDescription'), require('./model/AnalyticsRule'), require('./model/AnalyticsRuleDefinition'), require('./model/AnalyticsRuleTx'), require('./model/AnalyticsRuleWalletDefinition'), require('./model/AnalyticsSpendDescription'), require('./model/AnalyticsTransferTx'), require('./model/AnalyticsTxMetadata'), require('./model/AsyncTaskCreatedResponse'), require('./model/BalanceForAsset'), require('./model/CreateRuleRequest'), require('./model/DeleteRuleRequest'), require('./model/DeleteWalletRequest'), require('./model/ErrorResponse'), require('./model/ExportWalletRequest'), require('./model/ExportWalletResponse'), require('./model/GenerateWalletRequest'), require('./model/GetAllWalletsResponse'), require('./model/GetNetworkActivityRequest'), require('./model/GetNetworkActivityResponse'), require('./model/GetNewAddressRequest'), require('./model/GetNewAddressResponse'), require('./model/GetPublicKeyRequest'), require('./model/GetPublicKeyResponse'), require('./model/GetRulesResponse'), require('./model/GetTaskStatusRequest'), require('./model/GetTaskStatusResponse'), require('./model/GetWalletActivityRequest'), require('./model/GetWalletActivityResponse'), require('./model/GetWalletBalanceRequest'), require('./model/GetWalletBalanceResponse'), require('./model/HealthcheckResponse'), require('./model/HealthcheckResponseItem'), require('./model/ImportWalletRequest'), require('./model/IssueAssetRequest'), require('./model/Rule'), require('./model/TransactionsForWallet'), require('./model/TransferAssetRequest'), require('./model/UnlockWalletRequest'), require('./api/AnalyticsApi'), require('./api/HealthApi'), require('./api/NodeApi'), require('./api/WalletApi')); } -}(function(ApiClient, AsyncTaskCreatedResponse, BalanceForAsset, Block, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetActivityRequest, GetActivityResponse, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, ImportWalletRequest, IssueAssetRequest, Rule, TransactionsForWallet, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, NodeApi, WalletApi) { +}(function(ApiClient, AnalyticIssueWalletTx, AnalyticRuleWalletTx, AnalyticTransaction, AnalyticTransferWalletTx, AnalyticWalletMetadata, AnalyticWalletTx, AnalyticsAssetConverterProofDescription, AnalyticsConfidentialIssuanceDescription, AnalyticsIssueTx, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription, AnalyticsRule, AnalyticsRuleDefinition, AnalyticsRuleTx, AnalyticsRuleWalletDefinition, AnalyticsSpendDescription, AnalyticsTransferTx, AnalyticsTxMetadata, AsyncTaskCreatedResponse, BalanceForAsset, CreateRuleRequest, DeleteRuleRequest, DeleteWalletRequest, ErrorResponse, ExportWalletRequest, ExportWalletResponse, GenerateWalletRequest, GetAllWalletsResponse, GetNetworkActivityRequest, GetNetworkActivityResponse, GetNewAddressRequest, GetNewAddressResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRulesResponse, GetTaskStatusRequest, GetTaskStatusResponse, GetWalletActivityRequest, GetWalletActivityResponse, GetWalletBalanceRequest, GetWalletBalanceResponse, HealthcheckResponse, HealthcheckResponseItem, ImportWalletRequest, IssueAssetRequest, Rule, TransactionsForWallet, TransferAssetRequest, UnlockWalletRequest, AnalyticsApi, HealthApi, NodeApi, WalletApi) { 'use strict'; /** @@ -53,7 +53,7 @@ * *

* @module index - * @version 1.2.2 + * @version 1.3.0 */ var exports = { /** @@ -61,6 +61,101 @@ * @property {module:ApiClient} */ ApiClient: ApiClient, + /** + * The AnalyticIssueWalletTx model constructor. + * @property {module:model/AnalyticIssueWalletTx} + */ + AnalyticIssueWalletTx: AnalyticIssueWalletTx, + /** + * The AnalyticRuleWalletTx model constructor. + * @property {module:model/AnalyticRuleWalletTx} + */ + AnalyticRuleWalletTx: AnalyticRuleWalletTx, + /** + * The AnalyticTransaction model constructor. + * @property {module:model/AnalyticTransaction} + */ + AnalyticTransaction: AnalyticTransaction, + /** + * The AnalyticTransferWalletTx model constructor. + * @property {module:model/AnalyticTransferWalletTx} + */ + AnalyticTransferWalletTx: AnalyticTransferWalletTx, + /** + * The AnalyticWalletMetadata model constructor. + * @property {module:model/AnalyticWalletMetadata} + */ + AnalyticWalletMetadata: AnalyticWalletMetadata, + /** + * The AnalyticWalletTx model constructor. + * @property {module:model/AnalyticWalletTx} + */ + AnalyticWalletTx: AnalyticWalletTx, + /** + * The AnalyticsAssetConverterProofDescription model constructor. + * @property {module:model/AnalyticsAssetConverterProofDescription} + */ + AnalyticsAssetConverterProofDescription: AnalyticsAssetConverterProofDescription, + /** + * The AnalyticsConfidentialIssuanceDescription model constructor. + * @property {module:model/AnalyticsConfidentialIssuanceDescription} + */ + AnalyticsConfidentialIssuanceDescription: AnalyticsConfidentialIssuanceDescription, + /** + * The AnalyticsIssueTx model constructor. + * @property {module:model/AnalyticsIssueTx} + */ + AnalyticsIssueTx: AnalyticsIssueTx, + /** + * The AnalyticsOutput model constructor. + * @property {module:model/AnalyticsOutput} + */ + AnalyticsOutput: AnalyticsOutput, + /** + * The AnalyticsOutputDescription model constructor. + * @property {module:model/AnalyticsOutputDescription} + */ + AnalyticsOutputDescription: AnalyticsOutputDescription, + /** + * The AnalyticsPublicIssuanceDescription model constructor. + * @property {module:model/AnalyticsPublicIssuanceDescription} + */ + AnalyticsPublicIssuanceDescription: AnalyticsPublicIssuanceDescription, + /** + * The AnalyticsRule model constructor. + * @property {module:model/AnalyticsRule} + */ + AnalyticsRule: AnalyticsRule, + /** + * The AnalyticsRuleDefinition model constructor. + * @property {module:model/AnalyticsRuleDefinition} + */ + AnalyticsRuleDefinition: AnalyticsRuleDefinition, + /** + * The AnalyticsRuleTx model constructor. + * @property {module:model/AnalyticsRuleTx} + */ + AnalyticsRuleTx: AnalyticsRuleTx, + /** + * The AnalyticsRuleWalletDefinition model constructor. + * @property {module:model/AnalyticsRuleWalletDefinition} + */ + AnalyticsRuleWalletDefinition: AnalyticsRuleWalletDefinition, + /** + * The AnalyticsSpendDescription model constructor. + * @property {module:model/AnalyticsSpendDescription} + */ + AnalyticsSpendDescription: AnalyticsSpendDescription, + /** + * The AnalyticsTransferTx model constructor. + * @property {module:model/AnalyticsTransferTx} + */ + AnalyticsTransferTx: AnalyticsTransferTx, + /** + * The AnalyticsTxMetadata model constructor. + * @property {module:model/AnalyticsTxMetadata} + */ + AnalyticsTxMetadata: AnalyticsTxMetadata, /** * The AsyncTaskCreatedResponse model constructor. * @property {module:model/AsyncTaskCreatedResponse} @@ -71,11 +166,6 @@ * @property {module:model/BalanceForAsset} */ BalanceForAsset: BalanceForAsset, - /** - * The Block model constructor. - * @property {module:model/Block} - */ - Block: Block, /** * The CreateRuleRequest model constructor. * @property {module:model/CreateRuleRequest} @@ -111,16 +201,6 @@ * @property {module:model/GenerateWalletRequest} */ GenerateWalletRequest: GenerateWalletRequest, - /** - * The GetActivityRequest model constructor. - * @property {module:model/GetActivityRequest} - */ - GetActivityRequest: GetActivityRequest, - /** - * The GetActivityResponse model constructor. - * @property {module:model/GetActivityResponse} - */ - GetActivityResponse: GetActivityResponse, /** * The GetAllWalletsResponse model constructor. * @property {module:model/GetAllWalletsResponse} @@ -171,6 +251,16 @@ * @property {module:model/GetTaskStatusResponse} */ GetTaskStatusResponse: GetTaskStatusResponse, + /** + * The GetWalletActivityRequest model constructor. + * @property {module:model/GetWalletActivityRequest} + */ + GetWalletActivityRequest: GetWalletActivityRequest, + /** + * The GetWalletActivityResponse model constructor. + * @property {module:model/GetWalletActivityResponse} + */ + GetWalletActivityResponse: GetWalletActivityResponse, /** * The GetWalletBalanceRequest model constructor. * @property {module:model/GetWalletBalanceRequest} @@ -181,6 +271,16 @@ * @property {module:model/GetWalletBalanceResponse} */ GetWalletBalanceResponse: GetWalletBalanceResponse, + /** + * The HealthcheckResponse model constructor. + * @property {module:model/HealthcheckResponse} + */ + HealthcheckResponse: HealthcheckResponse, + /** + * The HealthcheckResponseItem model constructor. + * @property {module:model/HealthcheckResponseItem} + */ + HealthcheckResponseItem: HealthcheckResponseItem, /** * The ImportWalletRequest model constructor. * @property {module:model/ImportWalletRequest} @@ -216,6 +316,11 @@ * @property {module:api/AnalyticsApi} */ AnalyticsApi: AnalyticsApi, + /** + * The HealthApi service constructor. + * @property {module:api/HealthApi} + */ + HealthApi: HealthApi, /** * The NodeApi service constructor. * @property {module:api/NodeApi} diff --git a/js/sdk/src/model/AnalyticIssueWalletTx.js b/js/sdk/src/model/AnalyticIssueWalletTx.js new file mode 100644 index 0000000..d5a50f2 --- /dev/null +++ b/js/sdk/src/model/AnalyticIssueWalletTx.js @@ -0,0 +1,120 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticIssueWalletTx = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticIssueWalletTx model module. + * @module model/AnalyticIssueWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticIssueWalletTx. + * @alias module:model/AnalyticIssueWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticIssueWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticIssueWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticIssueWalletTx} The populated AnalyticIssueWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_incoming')) { + obj['is_incoming'] = ApiClient.convertToType(data['is_incoming'], 'Boolean'); + } + if (data.hasOwnProperty('issued_by_self')) { + obj['issued_by_self'] = ApiClient.convertToType(data['issued_by_self'], 'Boolean'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('is_confidential')) { + obj['is_confidential'] = ApiClient.convertToType(data['is_confidential'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {Boolean} is_incoming + */ + exports.prototype['is_incoming'] = undefined; + /** + * @member {Boolean} issued_by_self + */ + exports.prototype['issued_by_self'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + /** + * @member {Boolean} is_confidential + */ + exports.prototype['is_confidential'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticRuleWalletTx.js b/js/sdk/src/model/AnalyticRuleWalletTx.js new file mode 100644 index 0000000..d3e4c4e --- /dev/null +++ b/js/sdk/src/model/AnalyticRuleWalletTx.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRuleWalletDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleWalletDefinition')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticRuleWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleWalletDefinition); + } +}(this, function(ApiClient, AnalyticsRuleWalletDefinition) { + 'use strict'; + + + + /** + * The AnalyticRuleWalletTx model module. + * @module model/AnalyticRuleWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticRuleWalletTx. + * @alias module:model/AnalyticRuleWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticRuleWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticRuleWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticRuleWalletTx} The populated AnalyticRuleWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('signed_by_self')) { + obj['signed_by_self'] = ApiClient.convertToType(data['signed_by_self'], 'Boolean'); + } + if (data.hasOwnProperty('rule_affect_self')) { + obj['rule_affect_self'] = ApiClient.convertToType(data['rule_affect_self'], 'Boolean'); + } + if (data.hasOwnProperty('tx_signer')) { + obj['tx_signer'] = ApiClient.convertToType(data['tx_signer'], 'String'); + } + if (data.hasOwnProperty('rule')) { + obj['rule'] = AnalyticsRuleWalletDefinition.constructFromObject(data['rule']); + } + } + return obj; + } + + /** + * @member {Boolean} signed_by_self + */ + exports.prototype['signed_by_self'] = undefined; + /** + * @member {Boolean} rule_affect_self + */ + exports.prototype['rule_affect_self'] = undefined; + /** + * @member {String} tx_signer + */ + exports.prototype['tx_signer'] = undefined; + /** + * @member {module:model/AnalyticsRuleWalletDefinition} rule + */ + exports.prototype['rule'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticTransaction.js b/js/sdk/src/model/AnalyticTransaction.js new file mode 100644 index 0000000..33330ae --- /dev/null +++ b/js/sdk/src/model/AnalyticTransaction.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsTxMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsTxMetadata')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticTransaction = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsTxMetadata); + } +}(this, function(ApiClient, AnalyticsTxMetadata) { + 'use strict'; + + + + /** + * The AnalyticTransaction model module. + * @module model/AnalyticTransaction + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticTransaction. + * @alias module:model/AnalyticTransaction + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticTransaction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticTransaction} obj Optional instance to populate. + * @return {module:model/AnalyticTransaction} The populated AnalyticTransaction instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = AnalyticsTxMetadata.constructFromObject(data['metadata']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], Object); + } + } + return obj; + } + + /** + * @member {module:model/AnalyticsTxMetadata} metadata + */ + exports.prototype['metadata'] = undefined; + /** + * @member {Object} content + */ + exports.prototype['content'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticTransferWalletTx.js b/js/sdk/src/model/AnalyticTransferWalletTx.js new file mode 100644 index 0000000..e323de6 --- /dev/null +++ b/js/sdk/src/model/AnalyticTransferWalletTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticTransferWalletTx = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticTransferWalletTx model module. + * @module model/AnalyticTransferWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticTransferWalletTx. + * @alias module:model/AnalyticTransferWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticTransferWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticTransferWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticTransferWalletTx} The populated AnalyticTransferWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_incoming')) { + obj['is_incoming'] = ApiClient.convertToType(data['is_incoming'], 'Boolean'); + } + if (data.hasOwnProperty('memo')) { + obj['memo'] = ApiClient.convertToType(data['memo'], 'String'); + } + if (data.hasOwnProperty('recipient_address')) { + obj['recipient_address'] = ApiClient.convertToType(data['recipient_address'], 'String'); + } + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Boolean} is_incoming + */ + exports.prototype['is_incoming'] = undefined; + /** + * @member {String} memo + */ + exports.prototype['memo'] = undefined; + /** + * @member {String} recipient_address + */ + exports.prototype['recipient_address'] = undefined; + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticWalletMetadata.js b/js/sdk/src/model/AnalyticWalletMetadata.js new file mode 100644 index 0000000..0102a03 --- /dev/null +++ b/js/sdk/src/model/AnalyticWalletMetadata.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticWalletMetadata = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticWalletMetadata model module. + * @module model/AnalyticWalletMetadata + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticWalletMetadata. + * @alias module:model/AnalyticWalletMetadata + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticWalletMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticWalletMetadata} obj Optional instance to populate. + * @return {module:model/AnalyticWalletMetadata} The populated AnalyticWalletMetadata instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('tx_hash')) { + obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); + } + if (data.hasOwnProperty('timestamp')) { + obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); + } + } + return obj; + } + + /** + * @member {String} type + */ + exports.prototype['type'] = undefined; + /** + * @member {String} tx_hash + */ + exports.prototype['tx_hash'] = undefined; + /** + * @member {String} timestamp + */ + exports.prototype['timestamp'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticWalletTx.js b/js/sdk/src/model/AnalyticWalletTx.js new file mode 100644 index 0000000..f242ece --- /dev/null +++ b/js/sdk/src/model/AnalyticWalletTx.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticWalletMetadata'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticWalletMetadata')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticWalletTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletMetadata); + } +}(this, function(ApiClient, AnalyticWalletMetadata) { + 'use strict'; + + + + /** + * The AnalyticWalletTx model module. + * @module model/AnalyticWalletTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticWalletTx. + * @alias module:model/AnalyticWalletTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticWalletTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticWalletTx} obj Optional instance to populate. + * @return {module:model/AnalyticWalletTx} The populated AnalyticWalletTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = AnalyticWalletMetadata.constructFromObject(data['metadata']); + } + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], Object); + } + } + return obj; + } + + /** + * @member {module:model/AnalyticWalletMetadata} metadata + */ + exports.prototype['metadata'] = undefined; + /** + * @member {Object} content + */ + exports.prototype['content'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js b/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js new file mode 100644 index 0000000..4e0bc80 --- /dev/null +++ b/js/sdk/src/model/AnalyticsAssetConverterProofDescription.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsAssetConverterProofDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsAssetConverterProofDescription model module. + * @module model/AnalyticsAssetConverterProofDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsAssetConverterProofDescription. + * @alias module:model/AnalyticsAssetConverterProofDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsAssetConverterProofDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsAssetConverterProofDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsAssetConverterProofDescription} The populated AnalyticsAssetConverterProofDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('input_cv')) { + obj['input_cv'] = ApiClient.convertToType(data['input_cv'], 'String'); + } + if (data.hasOwnProperty('amount_cv')) { + obj['amount_cv'] = ApiClient.convertToType(data['amount_cv'], 'String'); + } + if (data.hasOwnProperty('asset_cv')) { + obj['asset_cv'] = ApiClient.convertToType(data['asset_cv'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + } + return obj; + } + + /** + * @member {String} input_cv + */ + exports.prototype['input_cv'] = undefined; + /** + * @member {String} amount_cv + */ + exports.prototype['amount_cv'] = undefined; + /** + * @member {String} asset_cv + */ + exports.prototype['asset_cv'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js new file mode 100644 index 0000000..f53db3a --- /dev/null +++ b/js/sdk/src/model/AnalyticsConfidentialIssuanceDescription.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRule'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRule')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRule); + } +}(this, function(ApiClient, AnalyticsRule) { + 'use strict'; + + + + /** + * The AnalyticsConfidentialIssuanceDescription model module. + * @module model/AnalyticsConfidentialIssuanceDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsConfidentialIssuanceDescription. + * @alias module:model/AnalyticsConfidentialIssuanceDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsConfidentialIssuanceDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsConfidentialIssuanceDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsConfidentialIssuanceDescription} The populated AnalyticsConfidentialIssuanceDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('input_cv')) { + obj['input_cv'] = ApiClient.convertToType(data['input_cv'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + if (data.hasOwnProperty('rule')) { + obj['rule'] = AnalyticsRule.constructFromObject(data['rule']); + } + } + return obj; + } + + /** + * @member {String} input_cv + */ + exports.prototype['input_cv'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + /** + * @member {module:model/AnalyticsRule} rule + */ + exports.prototype['rule'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsContent.js b/js/sdk/src/model/AnalyticsContent.js new file mode 100644 index 0000000..62ae55b --- /dev/null +++ b/js/sdk/src/model/AnalyticsContent.js @@ -0,0 +1,80 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsContent = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsContent model module. + * @module model/AnalyticsContent + * @version 1.2.3 + */ + + /** + * Constructs a new AnalyticsContent. + * @alias module:model/AnalyticsContent + * @class + * @param txType {String} + */ + var exports = function(txType) { + var _this = this; + + _this['tx_type'] = txType; + }; + + /** + * Constructs a AnalyticsContent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsContent} obj Optional instance to populate. + * @return {module:model/AnalyticsContent} The populated AnalyticsContent instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('tx_type')) { + obj['tx_type'] = ApiClient.convertToType(data['tx_type'], 'String'); + } + } + return obj; + } + + /** + * @member {String} tx_type + */ + exports.prototype['tx_type'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsIssueTx.js b/js/sdk/src/model/AnalyticsIssueTx.js new file mode 100644 index 0000000..beafef0 --- /dev/null +++ b/js/sdk/src/model/AnalyticsIssueTx.js @@ -0,0 +1,92 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsOutput'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsOutput')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsIssueTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutput); + } +}(this, function(ApiClient, AnalyticsOutput) { + 'use strict'; + + + + /** + * The AnalyticsIssueTx model module. + * @module model/AnalyticsIssueTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsIssueTx. + * @alias module:model/AnalyticsIssueTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsIssueTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsIssueTx} obj Optional instance to populate. + * @return {module:model/AnalyticsIssueTx} The populated AnalyticsIssueTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('outputs')) { + obj['outputs'] = ApiClient.convertToType(data['outputs'], [AnalyticsOutput]); + } + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('signature')) { + obj['signature'] = ApiClient.convertToType(data['signature'], 'String'); + } + } + return obj; + } + + /** + * @member {Array.} outputs + */ + exports.prototype['outputs'] = undefined; + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {String} signature + */ + exports.prototype['signature'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsOutput.js b/js/sdk/src/model/AnalyticsOutput.js new file mode 100644 index 0000000..38bc9b3 --- /dev/null +++ b/js/sdk/src/model/AnalyticsOutput.js @@ -0,0 +1,99 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsConfidentialIssuanceDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsPublicIssuanceDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + } +}(this, function(ApiClient, AnalyticsConfidentialIssuanceDescription, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription) { + 'use strict'; + + + + /** + * The AnalyticsOutput model module. + * @module model/AnalyticsOutput + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsOutput. + * @alias module:model/AnalyticsOutput + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsOutput} obj Optional instance to populate. + * @return {module:model/AnalyticsOutput} The populated AnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('is_confidential')) { + obj['is_confidential'] = ApiClient.convertToType(data['is_confidential'], 'Boolean'); + } + if (data.hasOwnProperty('public_issuance_description')) { + obj['public_issuance_description'] = AnalyticsPublicIssuanceDescription.constructFromObject(data['public_issuance_description']); + } + if (data.hasOwnProperty('confidential_issuance_description')) { + obj['confidential_issuance_description'] = AnalyticsConfidentialIssuanceDescription.constructFromObject(data['confidential_issuance_description']); + } + if (data.hasOwnProperty('output_description')) { + obj['output_description'] = AnalyticsOutputDescription.constructFromObject(data['output_description']); + } + } + return obj; + } + + /** + * @member {Boolean} is_confidential + */ + exports.prototype['is_confidential'] = undefined; + /** + * @member {module:model/AnalyticsPublicIssuanceDescription} public_issuance_description + */ + exports.prototype['public_issuance_description'] = undefined; + /** + * @member {module:model/AnalyticsConfidentialIssuanceDescription} confidential_issuance_description + */ + exports.prototype['confidential_issuance_description'] = undefined; + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ + exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsOutputDescription.js b/js/sdk/src/model/AnalyticsOutputDescription.js new file mode 100644 index 0000000..b2b67ea --- /dev/null +++ b/js/sdk/src/model/AnalyticsOutputDescription.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsOutputDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsOutputDescription model module. + * @module model/AnalyticsOutputDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsOutputDescription. + * @alias module:model/AnalyticsOutputDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsOutputDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsOutputDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsOutputDescription} The populated AnalyticsOutputDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('cv')) { + obj['cv'] = ApiClient.convertToType(data['cv'], 'String'); + } + if (data.hasOwnProperty('cm')) { + obj['cm'] = ApiClient.convertToType(data['cm'], 'String'); + } + if (data.hasOwnProperty('epk')) { + obj['epk'] = ApiClient.convertToType(data['epk'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + if (data.hasOwnProperty('enc_note')) { + obj['enc_note'] = ApiClient.convertToType(data['enc_note'], 'String'); + } + if (data.hasOwnProperty('enc_sender')) { + obj['enc_sender'] = ApiClient.convertToType(data['enc_sender'], 'String'); + } + } + return obj; + } + + /** + * @member {String} cv + */ + exports.prototype['cv'] = undefined; + /** + * @member {String} cm + */ + exports.prototype['cm'] = undefined; + /** + * @member {String} epk + */ + exports.prototype['epk'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + /** + * @member {String} enc_note + */ + exports.prototype['enc_note'] = undefined; + /** + * @member {String} enc_sender + */ + exports.prototype['enc_sender'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js new file mode 100644 index 0000000..d8271cb --- /dev/null +++ b/js/sdk/src/model/AnalyticsPublicIssuanceDescription.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsPublicIssuanceDescription model module. + * @module model/AnalyticsPublicIssuanceDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsPublicIssuanceDescription. + * @alias module:model/AnalyticsPublicIssuanceDescription + * @class + * @param assetId {Number} + * @param amount {Number} + */ + var exports = function(assetId, amount) { + var _this = this; + + _this['asset_id'] = assetId; + _this['amount'] = amount; + }; + + /** + * Constructs a AnalyticsPublicIssuanceDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsPublicIssuanceDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsPublicIssuanceDescription} The populated AnalyticsPublicIssuanceDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('asset_id')) { + obj['asset_id'] = ApiClient.convertToType(data['asset_id'], 'Number'); + } + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} asset_id + */ + exports.prototype['asset_id'] = undefined; + /** + * @member {Number} amount + */ + exports.prototype['amount'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsRule.js b/js/sdk/src/model/AnalyticsRule.js new file mode 100644 index 0000000..d7f910c --- /dev/null +++ b/js/sdk/src/model/AnalyticsRule.js @@ -0,0 +1,89 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRule = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRule model module. + * @module model/AnalyticsRule + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRule. + * @alias module:model/AnalyticsRule + * @class + * @param minId {Number} + * @param maxId {Number} + */ + var exports = function(minId, maxId) { + var _this = this; + + _this['min_id'] = minId; + _this['max_id'] = maxId; + }; + + /** + * Constructs a AnalyticsRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRule} obj Optional instance to populate. + * @return {module:model/AnalyticsRule} The populated AnalyticsRule instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('min_id')) { + obj['min_id'] = ApiClient.convertToType(data['min_id'], 'Number'); + } + if (data.hasOwnProperty('max_id')) { + obj['max_id'] = ApiClient.convertToType(data['max_id'], 'Number'); + } + } + return obj; + } + + /** + * @member {Number} min_id + */ + exports.prototype['min_id'] = undefined; + /** + * @member {Number} max_id + */ + exports.prototype['max_id'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsRuleDefinition.js b/js/sdk/src/model/AnalyticsRuleDefinition.js new file mode 100644 index 0000000..321ba5a --- /dev/null +++ b/js/sdk/src/model/AnalyticsRuleDefinition.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleDefinition = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRuleDefinition model module. + * @module model/AnalyticsRuleDefinition + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleDefinition. + * @alias module:model/AnalyticsRuleDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleDefinition} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleDefinition} The populated AnalyticsRuleDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('can_issue_confidentially')) { + obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); + } + if (data.hasOwnProperty('is_admin')) { + obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); + } + if (data.hasOwnProperty('can_issue_asset_id_first')) { + obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); + } + if (data.hasOwnProperty('can_issue_asset_id_last')) { + obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {Boolean} can_issue_confidentially + */ + exports.prototype['can_issue_confidentially'] = undefined; + /** + * @member {Boolean} is_admin + */ + exports.prototype['is_admin'] = undefined; + /** + * @member {Number} can_issue_asset_id_first + */ + exports.prototype['can_issue_asset_id_first'] = undefined; + /** + * @member {Number} can_issue_asset_id_last + */ + exports.prototype['can_issue_asset_id_last'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsRuleTx.js b/js/sdk/src/model/AnalyticsRuleTx.js new file mode 100644 index 0000000..ce5424c --- /dev/null +++ b/js/sdk/src/model/AnalyticsRuleTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsRuleDefinition'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsRuleDefinition')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsRuleDefinition); + } +}(this, function(ApiClient, AnalyticsRuleDefinition) { + 'use strict'; + + + + /** + * The AnalyticsRuleTx model module. + * @module model/AnalyticsRuleTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleTx. + * @alias module:model/AnalyticsRuleTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleTx} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleTx} The populated AnalyticsRuleTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('sender_public_key')) { + obj['sender_public_key'] = ApiClient.convertToType(data['sender_public_key'], 'String'); + } + if (data.hasOwnProperty('rules_to_add')) { + obj['rules_to_add'] = ApiClient.convertToType(data['rules_to_add'], [AnalyticsRuleDefinition]); + } + if (data.hasOwnProperty('rules_to_delete')) { + obj['rules_to_delete'] = ApiClient.convertToType(data['rules_to_delete'], [AnalyticsRuleDefinition]); + } + if (data.hasOwnProperty('nonce')) { + obj['nonce'] = ApiClient.convertToType(data['nonce'], 'Number'); + } + if (data.hasOwnProperty('signature')) { + obj['signature'] = ApiClient.convertToType(data['signature'], 'String'); + } + } + return obj; + } + + /** + * @member {String} sender_public_key + */ + exports.prototype['sender_public_key'] = undefined; + /** + * @member {Array.} rules_to_add + */ + exports.prototype['rules_to_add'] = undefined; + /** + * @member {Array.} rules_to_delete + */ + exports.prototype['rules_to_delete'] = undefined; + /** + * @member {Number} nonce + */ + exports.prototype['nonce'] = undefined; + /** + * @member {String} signature + */ + exports.prototype['signature'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsRuleWalletDefinition.js b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js new file mode 100644 index 0000000..f710c71 --- /dev/null +++ b/js/sdk/src/model/AnalyticsRuleWalletDefinition.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsRuleWalletDefinition = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsRuleWalletDefinition model module. + * @module model/AnalyticsRuleWalletDefinition + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsRuleWalletDefinition. + * @alias module:model/AnalyticsRuleWalletDefinition + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsRuleWalletDefinition from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsRuleWalletDefinition} obj Optional instance to populate. + * @return {module:model/AnalyticsRuleWalletDefinition} The populated AnalyticsRuleWalletDefinition instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); + } + if (data.hasOwnProperty('can_issue_confidentially')) { + obj['can_issue_confidentially'] = ApiClient.convertToType(data['can_issue_confidentially'], 'Boolean'); + } + if (data.hasOwnProperty('is_admin')) { + obj['is_admin'] = ApiClient.convertToType(data['is_admin'], 'Boolean'); + } + if (data.hasOwnProperty('can_issue_asset_id_first')) { + obj['can_issue_asset_id_first'] = ApiClient.convertToType(data['can_issue_asset_id_first'], 'Number'); + } + if (data.hasOwnProperty('can_issue_asset_id_last')) { + obj['can_issue_asset_id_last'] = ApiClient.convertToType(data['can_issue_asset_id_last'], 'Number'); + } + if (data.hasOwnProperty('operation')) { + obj['operation'] = ApiClient.convertToType(data['operation'], 'String'); + } + } + return obj; + } + + /** + * @member {String} public_key + */ + exports.prototype['public_key'] = undefined; + /** + * @member {Boolean} can_issue_confidentially + */ + exports.prototype['can_issue_confidentially'] = undefined; + /** + * @member {Boolean} is_admin + */ + exports.prototype['is_admin'] = undefined; + /** + * @member {Number} can_issue_asset_id_first + */ + exports.prototype['can_issue_asset_id_first'] = undefined; + /** + * @member {Number} can_issue_asset_id_last + */ + exports.prototype['can_issue_asset_id_last'] = undefined; + /** + * @member {String} operation + */ + exports.prototype['operation'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsSpendDescription.js b/js/sdk/src/model/AnalyticsSpendDescription.js new file mode 100644 index 0000000..7f3ca10 --- /dev/null +++ b/js/sdk/src/model/AnalyticsSpendDescription.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsSpendDescription = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsSpendDescription model module. + * @module model/AnalyticsSpendDescription + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsSpendDescription. + * @alias module:model/AnalyticsSpendDescription + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsSpendDescription from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsSpendDescription} obj Optional instance to populate. + * @return {module:model/AnalyticsSpendDescription} The populated AnalyticsSpendDescription instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('cv')) { + obj['cv'] = ApiClient.convertToType(data['cv'], 'String'); + } + if (data.hasOwnProperty('anchor')) { + obj['anchor'] = ApiClient.convertToType(data['anchor'], 'String'); + } + if (data.hasOwnProperty('nullifier')) { + obj['nullifier'] = ApiClient.convertToType(data['nullifier'], 'String'); + } + if (data.hasOwnProperty('rk_out')) { + obj['rk_out'] = ApiClient.convertToType(data['rk_out'], 'String'); + } + if (data.hasOwnProperty('zkproof')) { + obj['zkproof'] = ApiClient.convertToType(data['zkproof'], 'String'); + } + } + return obj; + } + + /** + * @member {String} cv + */ + exports.prototype['cv'] = undefined; + /** + * @member {String} anchor + */ + exports.prototype['anchor'] = undefined; + /** + * @member {String} nullifier + */ + exports.prototype['nullifier'] = undefined; + /** + * @member {String} rk_out + */ + exports.prototype['rk_out'] = undefined; + /** + * @member {String} zkproof + */ + exports.prototype['zkproof'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsTransferTx.js b/js/sdk/src/model/AnalyticsTransferTx.js new file mode 100644 index 0000000..58018fe --- /dev/null +++ b/js/sdk/src/model/AnalyticsTransferTx.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsAssetConverterProofDescription', 'model/AnalyticsOutputDescription', 'model/AnalyticsSpendDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsAssetConverterProofDescription'), require('./AnalyticsOutputDescription'), require('./AnalyticsSpendDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsTransferTx = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsAssetConverterProofDescription, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsSpendDescription); + } +}(this, function(ApiClient, AnalyticsAssetConverterProofDescription, AnalyticsOutputDescription, AnalyticsSpendDescription) { + 'use strict'; + + + + /** + * The AnalyticsTransferTx model module. + * @module model/AnalyticsTransferTx + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsTransferTx. + * @alias module:model/AnalyticsTransferTx + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsTransferTx from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsTransferTx} obj Optional instance to populate. + * @return {module:model/AnalyticsTransferTx} The populated AnalyticsTransferTx instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('asset_converter_descriptions')) { + obj['asset_converter_descriptions'] = ApiClient.convertToType(data['asset_converter_descriptions'], [AnalyticsAssetConverterProofDescription]); + } + if (data.hasOwnProperty('spends')) { + obj['spends'] = ApiClient.convertToType(data['spends'], [AnalyticsSpendDescription]); + } + if (data.hasOwnProperty('outputs')) { + obj['outputs'] = ApiClient.convertToType(data['outputs'], [AnalyticsOutputDescription]); + } + if (data.hasOwnProperty('binding_sig')) { + obj['binding_sig'] = ApiClient.convertToType(data['binding_sig'], 'String'); + } + if (data.hasOwnProperty('spend_auth_sigs')) { + obj['spend_auth_sigs'] = ApiClient.convertToType(data['spend_auth_sigs'], ['String']); + } + } + return obj; + } + + /** + * @member {Array.} asset_converter_descriptions + */ + exports.prototype['asset_converter_descriptions'] = undefined; + /** + * @member {Array.} spends + */ + exports.prototype['spends'] = undefined; + /** + * @member {Array.} outputs + */ + exports.prototype['outputs'] = undefined; + /** + * @member {String} binding_sig + */ + exports.prototype['binding_sig'] = undefined; + /** + * @member {Array.} spend_auth_sigs + */ + exports.prototype['spend_auth_sigs'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AnalyticsTxMetadata.js b/js/sdk/src/model/AnalyticsTxMetadata.js new file mode 100644 index 0000000..63b5c82 --- /dev/null +++ b/js/sdk/src/model/AnalyticsTxMetadata.js @@ -0,0 +1,113 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.AnalyticsTxMetadata = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The AnalyticsTxMetadata model module. + * @module model/AnalyticsTxMetadata + * @version 1.3.0 + */ + + /** + * Constructs a new AnalyticsTxMetadata. + * @alias module:model/AnalyticsTxMetadata + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a AnalyticsTxMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AnalyticsTxMetadata} obj Optional instance to populate. + * @return {module:model/AnalyticsTxMetadata} The populated AnalyticsTxMetadata instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('tx_hash')) { + obj['tx_hash'] = ApiClient.convertToType(data['tx_hash'], 'String'); + } + if (data.hasOwnProperty('block_hash')) { + obj['block_hash'] = ApiClient.convertToType(data['block_hash'], 'String'); + } + if (data.hasOwnProperty('timestamp')) { + obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); + } + if (data.hasOwnProperty('index_in_block')) { + obj['index_in_block'] = ApiClient.convertToType(data['index_in_block'], 'Number'); + } + if (data.hasOwnProperty('block_height')) { + obj['block_height'] = ApiClient.convertToType(data['block_height'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} type + */ + exports.prototype['type'] = undefined; + /** + * @member {String} tx_hash + */ + exports.prototype['tx_hash'] = undefined; + /** + * @member {String} block_hash + */ + exports.prototype['block_hash'] = undefined; + /** + * @member {String} timestamp + */ + exports.prototype['timestamp'] = undefined; + /** + * @member {Number} index_in_block + */ + exports.prototype['index_in_block'] = undefined; + /** + * @member {Number} block_height + */ + exports.prototype['block_height'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/AsyncTaskCreatedResponse.js b/js/sdk/src/model/AsyncTaskCreatedResponse.js index 1fe1ee1..09e03b9 100644 --- a/js/sdk/src/model/AsyncTaskCreatedResponse.js +++ b/js/sdk/src/model/AsyncTaskCreatedResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The AsyncTaskCreatedResponse model module. * @module model/AsyncTaskCreatedResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/BalanceForAsset.js b/js/sdk/src/model/BalanceForAsset.js index 84b87f9..65879ba 100644 --- a/js/sdk/src/model/BalanceForAsset.js +++ b/js/sdk/src/model/BalanceForAsset.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The BalanceForAsset model module. * @module model/BalanceForAsset - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/ConfidentialAnalyticsOutput.js b/js/sdk/src/model/ConfidentialAnalyticsOutput.js new file mode 100644 index 0000000..213b30e --- /dev/null +++ b/js/sdk/src/model/ConfidentialAnalyticsOutput.js @@ -0,0 +1,100 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsConfidentialIssuanceDescription', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsConfidentialIssuanceDescription'), require('./AnalyticsOutput'), require('./AnalyticsOutputDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.ConfidentialAnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription, root.QedItAssetTransfers.AnalyticsOutput, root.QedItAssetTransfers.AnalyticsOutputDescription); + } +}(this, function(ApiClient, AnalyticsConfidentialIssuanceDescription, AnalyticsOutput, AnalyticsOutputDescription) { + 'use strict'; + + + + /** + * The ConfidentialAnalyticsOutput model module. + * @module model/ConfidentialAnalyticsOutput + * @version 1.2.3 + */ + + /** + * Constructs a new ConfidentialAnalyticsOutput. + * @alias module:model/ConfidentialAnalyticsOutput + * @class + * @extends module:model/AnalyticsOutput + * @implements module:model/AnalyticsOutput + * @param isConfidential {} + * @param outputDescription {} + * @param confidentialIssuanceDescription {} + */ + var exports = function(isConfidential, outputDescription, confidentialIssuanceDescription) { + var _this = this; + + AnalyticsOutput.call(_this, isConfidential, outputDescription); + _this['confidential_issuance_description'] = confidentialIssuanceDescription; + }; + + /** + * Constructs a ConfidentialAnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfidentialAnalyticsOutput} obj Optional instance to populate. + * @return {module:model/ConfidentialAnalyticsOutput} The populated ConfidentialAnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + AnalyticsOutput.constructFromObject(data, obj); + if (data.hasOwnProperty('confidential_issuance_description')) { + obj['confidential_issuance_description'] = AnalyticsConfidentialIssuanceDescription.constructFromObject(data['confidential_issuance_description']); + } + } + return obj; + } + + exports.prototype = Object.create(AnalyticsOutput.prototype); + exports.prototype.constructor = exports; + + /** + * @member {module:model/AnalyticsConfidentialIssuanceDescription} confidential_issuance_description + */ + exports.prototype['confidential_issuance_description'] = undefined; + + // Implement AnalyticsOutput interface: + /** + * @member {Boolean} is_confidential + */ +exports.prototype['is_confidential'] = undefined; + + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ +exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/CreateRuleRequest.js b/js/sdk/src/model/CreateRuleRequest.js index af8f36a..6c6cfca 100644 --- a/js/sdk/src/model/CreateRuleRequest.js +++ b/js/sdk/src/model/CreateRuleRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The CreateRuleRequest model module. * @module model/CreateRuleRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/DeleteRuleRequest.js b/js/sdk/src/model/DeleteRuleRequest.js index 0aae89d..a7b5981 100644 --- a/js/sdk/src/model/DeleteRuleRequest.js +++ b/js/sdk/src/model/DeleteRuleRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The DeleteRuleRequest model module. * @module model/DeleteRuleRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/DeleteWalletRequest.js b/js/sdk/src/model/DeleteWalletRequest.js index 258b3a3..b07aa1e 100644 --- a/js/sdk/src/model/DeleteWalletRequest.js +++ b/js/sdk/src/model/DeleteWalletRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The DeleteWalletRequest model module. * @module model/DeleteWalletRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/ErrorResponse.js b/js/sdk/src/model/ErrorResponse.js index feaa90b..a8b1fef 100644 --- a/js/sdk/src/model/ErrorResponse.js +++ b/js/sdk/src/model/ErrorResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ErrorResponse model module. * @module model/ErrorResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/ExportWalletRequest.js b/js/sdk/src/model/ExportWalletRequest.js index 8264650..fd87c57 100644 --- a/js/sdk/src/model/ExportWalletRequest.js +++ b/js/sdk/src/model/ExportWalletRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportWalletRequest model module. * @module model/ExportWalletRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/ExportWalletResponse.js b/js/sdk/src/model/ExportWalletResponse.js index d74052c..b2ef88a 100644 --- a/js/sdk/src/model/ExportWalletResponse.js +++ b/js/sdk/src/model/ExportWalletResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ExportWalletResponse model module. * @module model/ExportWalletResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GenerateWalletRequest.js b/js/sdk/src/model/GenerateWalletRequest.js index 2eb2ac3..d1381d4 100644 --- a/js/sdk/src/model/GenerateWalletRequest.js +++ b/js/sdk/src/model/GenerateWalletRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GenerateWalletRequest model module. * @module model/GenerateWalletRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetActivityRequest.js b/js/sdk/src/model/GetActivityRequest.js index 88665ce..fd8f1f2 100644 --- a/js/sdk/src/model/GetActivityRequest.js +++ b/js/sdk/src/model/GetActivityRequest.js @@ -1,8 +1,8 @@ /** - * QED-it - Asset Transfers + * QEDIT – Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.2.3 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetActivityRequest model module. * @module model/GetActivityRequest - * @version 1.2.2 + * @version 1.2.3 */ /** diff --git a/js/sdk/src/model/GetActivityResponse.js b/js/sdk/src/model/GetActivityResponse.js index 135b73c..3661b6a 100644 --- a/js/sdk/src/model/GetActivityResponse.js +++ b/js/sdk/src/model/GetActivityResponse.js @@ -1,8 +1,8 @@ /** - * QED-it - Asset Transfers + * QEDIT – Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.2.3 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetActivityResponse model module. * @module model/GetActivityResponse - * @version 1.2.2 + * @version 1.2.3 */ /** diff --git a/js/sdk/src/model/GetAllWalletsResponse.js b/js/sdk/src/model/GetAllWalletsResponse.js index dd96a1c..b3c8fb2 100644 --- a/js/sdk/src/model/GetAllWalletsResponse.js +++ b/js/sdk/src/model/GetAllWalletsResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetAllWalletsResponse model module. * @module model/GetAllWalletsResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityRequest.js b/js/sdk/src/model/GetNetworkActivityRequest.js index f6e1278..d735a60 100644 --- a/js/sdk/src/model/GetNetworkActivityRequest.js +++ b/js/sdk/src/model/GetNetworkActivityRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNetworkActivityRequest model module. * @module model/GetNetworkActivityRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetNetworkActivityResponse.js b/js/sdk/src/model/GetNetworkActivityResponse.js index a09dba2..d5f1d33 100644 --- a/js/sdk/src/model/GetNetworkActivityResponse.js +++ b/js/sdk/src/model/GetNetworkActivityResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -16,18 +16,18 @@ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Block'], factory); + define(['ApiClient', 'model/AnalyticTransaction'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Block')); + module.exports = factory(require('../ApiClient'), require('./AnalyticTransaction')); } else { // Browser globals (root is window) if (!root.QedItAssetTransfers) { root.QedItAssetTransfers = {}; } - root.QedItAssetTransfers.GetNetworkActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.Block); + root.QedItAssetTransfers.GetNetworkActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticTransaction); } -}(this, function(ApiClient, Block) { +}(this, function(ApiClient, AnalyticTransaction) { 'use strict'; @@ -35,19 +35,17 @@ /** * The GetNetworkActivityResponse model module. * @module model/GetNetworkActivityResponse - * @version 1.2.2 + * @version 1.3.0 */ /** * Constructs a new GetNetworkActivityResponse. * @alias module:model/GetNetworkActivityResponse * @class - * @param blocks {Array.} */ - var exports = function(blocks) { + var exports = function() { var _this = this; - _this['blocks'] = blocks; }; /** @@ -60,17 +58,17 @@ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); - if (data.hasOwnProperty('blocks')) { - obj['blocks'] = ApiClient.convertToType(data['blocks'], [Block]); + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [AnalyticTransaction]); } } return obj; } /** - * @member {Array.} blocks + * @member {Array.} transactions */ - exports.prototype['blocks'] = undefined; + exports.prototype['transactions'] = undefined; diff --git a/js/sdk/src/model/GetNewAddressRequest.js b/js/sdk/src/model/GetNewAddressRequest.js index 695f829..1703172 100644 --- a/js/sdk/src/model/GetNewAddressRequest.js +++ b/js/sdk/src/model/GetNewAddressRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNewAddressRequest model module. * @module model/GetNewAddressRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetNewAddressResponse.js b/js/sdk/src/model/GetNewAddressResponse.js index 8fefa13..5ff6c81 100644 --- a/js/sdk/src/model/GetNewAddressResponse.js +++ b/js/sdk/src/model/GetNewAddressResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetNewAddressResponse model module. * @module model/GetNewAddressResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetPublicKeyRequest.js b/js/sdk/src/model/GetPublicKeyRequest.js index c789407..b709f5e 100644 --- a/js/sdk/src/model/GetPublicKeyRequest.js +++ b/js/sdk/src/model/GetPublicKeyRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetPublicKeyRequest model module. * @module model/GetPublicKeyRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetPublicKeyResponse.js b/js/sdk/src/model/GetPublicKeyResponse.js index 0bab8c4..a247e69 100644 --- a/js/sdk/src/model/GetPublicKeyResponse.js +++ b/js/sdk/src/model/GetPublicKeyResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetPublicKeyResponse model module. * @module model/GetPublicKeyResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetRulesResponse.js b/js/sdk/src/model/GetRulesResponse.js index b4d5e9d..4dd4e04 100644 --- a/js/sdk/src/model/GetRulesResponse.js +++ b/js/sdk/src/model/GetRulesResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetRulesResponse model module. * @module model/GetRulesResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetTaskStatusRequest.js b/js/sdk/src/model/GetTaskStatusRequest.js index 4b020bf..08c066b 100644 --- a/js/sdk/src/model/GetTaskStatusRequest.js +++ b/js/sdk/src/model/GetTaskStatusRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetTaskStatusRequest model module. * @module model/GetTaskStatusRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetTaskStatusResponse.js b/js/sdk/src/model/GetTaskStatusResponse.js index e2118c2..4c39563 100644 --- a/js/sdk/src/model/GetTaskStatusResponse.js +++ b/js/sdk/src/model/GetTaskStatusResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetTaskStatusResponse model module. * @module model/GetTaskStatusResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetWalletActivityRequest.js b/js/sdk/src/model/GetWalletActivityRequest.js new file mode 100644 index 0000000..b9762e7 --- /dev/null +++ b/js/sdk/src/model/GetWalletActivityRequest.js @@ -0,0 +1,98 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletActivityRequest = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The GetWalletActivityRequest model module. + * @module model/GetWalletActivityRequest + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletActivityRequest. + * @alias module:model/GetWalletActivityRequest + * @class + * @param walletId {String} + * @param startIndex {Number} + * @param numberOfResults {Number} + */ + var exports = function(walletId, startIndex, numberOfResults) { + var _this = this; + + _this['wallet_id'] = walletId; + _this['start_index'] = startIndex; + _this['number_of_results'] = numberOfResults; + }; + + /** + * Constructs a GetWalletActivityRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletActivityRequest} obj Optional instance to populate. + * @return {module:model/GetWalletActivityRequest} The populated GetWalletActivityRequest instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('start_index')) { + obj['start_index'] = ApiClient.convertToType(data['start_index'], 'Number'); + } + if (data.hasOwnProperty('number_of_results')) { + obj['number_of_results'] = ApiClient.convertToType(data['number_of_results'], 'Number'); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Number} start_index + */ + exports.prototype['start_index'] = undefined; + /** + * @member {Number} number_of_results + */ + exports.prototype['number_of_results'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/GetWalletActivityResponse.js b/js/sdk/src/model/GetWalletActivityResponse.js new file mode 100644 index 0000000..5745601 --- /dev/null +++ b/js/sdk/src/model/GetWalletActivityResponse.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticWalletTx'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticWalletTx')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.GetWalletActivityResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticWalletTx); + } +}(this, function(ApiClient, AnalyticWalletTx) { + 'use strict'; + + + + /** + * The GetWalletActivityResponse model module. + * @module model/GetWalletActivityResponse + * @version 1.3.0 + */ + + /** + * Constructs a new GetWalletActivityResponse. + * @alias module:model/GetWalletActivityResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a GetWalletActivityResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetWalletActivityResponse} obj Optional instance to populate. + * @return {module:model/GetWalletActivityResponse} The populated GetWalletActivityResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('wallet_id')) { + obj['wallet_id'] = ApiClient.convertToType(data['wallet_id'], 'String'); + } + if (data.hasOwnProperty('transactions')) { + obj['transactions'] = ApiClient.convertToType(data['transactions'], [AnalyticWalletTx]); + } + } + return obj; + } + + /** + * @member {String} wallet_id + */ + exports.prototype['wallet_id'] = undefined; + /** + * @member {Array.} transactions + */ + exports.prototype['transactions'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/GetWalletBalanceRequest.js b/js/sdk/src/model/GetWalletBalanceRequest.js index 83b17bc..c2fe314 100644 --- a/js/sdk/src/model/GetWalletBalanceRequest.js +++ b/js/sdk/src/model/GetWalletBalanceRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletBalanceRequest model module. * @module model/GetWalletBalanceRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/GetWalletBalanceResponse.js b/js/sdk/src/model/GetWalletBalanceResponse.js index e893c60..331d5cb 100644 --- a/js/sdk/src/model/GetWalletBalanceResponse.js +++ b/js/sdk/src/model/GetWalletBalanceResponse.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The GetWalletBalanceResponse model module. * @module model/GetWalletBalanceResponse - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/HealthcheckResponse.js b/js/sdk/src/model/HealthcheckResponse.js new file mode 100644 index 0000000..f99593b --- /dev/null +++ b/js/sdk/src/model/HealthcheckResponse.js @@ -0,0 +1,106 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/HealthcheckResponseItem'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./HealthcheckResponseItem')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponse = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.HealthcheckResponseItem); + } +}(this, function(ApiClient, HealthcheckResponseItem) { + 'use strict'; + + + + /** + * The HealthcheckResponse model module. + * @module model/HealthcheckResponse + * @version 1.3.0 + */ + + /** + * Constructs a new HealthcheckResponse. + * @alias module:model/HealthcheckResponse + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponse} obj Optional instance to populate. + * @return {module:model/HealthcheckResponse} The populated HealthcheckResponse instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('version')) { + obj['version'] = ApiClient.convertToType(data['version'], 'String'); + } + if (data.hasOwnProperty('blockchain_connector')) { + obj['blockchain_connector'] = HealthcheckResponseItem.constructFromObject(data['blockchain_connector']); + } + if (data.hasOwnProperty('message_queue')) { + obj['message_queue'] = HealthcheckResponseItem.constructFromObject(data['message_queue']); + } + if (data.hasOwnProperty('database')) { + obj['database'] = HealthcheckResponseItem.constructFromObject(data['database']); + } + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + } + return obj; + } + + /** + * @member {String} version + */ + exports.prototype['version'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} blockchain_connector + */ + exports.prototype['blockchain_connector'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} message_queue + */ + exports.prototype['message_queue'] = undefined; + /** + * @member {module:model/HealthcheckResponseItem} database + */ + exports.prototype['database'] = undefined; + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js b/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js new file mode 100644 index 0000000..b88cfe4 --- /dev/null +++ b/js/sdk/src/model/HealthcheckResponseBlockchainConnector.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponseBlockchainConnector = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The HealthcheckResponseBlockchainConnector model module. + * @module model/HealthcheckResponseBlockchainConnector + * @version 1.2.3 + */ + + /** + * Constructs a new HealthcheckResponseBlockchainConnector. + * @alias module:model/HealthcheckResponseBlockchainConnector + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponseBlockchainConnector from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponseBlockchainConnector} obj Optional instance to populate. + * @return {module:model/HealthcheckResponseBlockchainConnector} The populated HealthcheckResponseBlockchainConnector instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + if (data.hasOwnProperty('error')) { + obj['error'] = ApiClient.convertToType(data['error'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + /** + * @member {String} error + */ + exports.prototype['error'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/HealthcheckResponseItem.js b/js/sdk/src/model/HealthcheckResponseItem.js new file mode 100644 index 0000000..c187982 --- /dev/null +++ b/js/sdk/src/model/HealthcheckResponseItem.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.HealthcheckResponseItem = factory(root.QedItAssetTransfers.ApiClient); + } +}(this, function(ApiClient) { + 'use strict'; + + + + /** + * The HealthcheckResponseItem model module. + * @module model/HealthcheckResponseItem + * @version 1.3.0 + */ + + /** + * Constructs a new HealthcheckResponseItem. + * @alias module:model/HealthcheckResponseItem + * @class + */ + var exports = function() { + var _this = this; + + }; + + /** + * Constructs a HealthcheckResponseItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HealthcheckResponseItem} obj Optional instance to populate. + * @return {module:model/HealthcheckResponseItem} The populated HealthcheckResponseItem instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + if (data.hasOwnProperty('passing')) { + obj['passing'] = ApiClient.convertToType(data['passing'], 'Boolean'); + } + if (data.hasOwnProperty('error')) { + obj['error'] = ApiClient.convertToType(data['error'], 'String'); + } + } + return obj; + } + + /** + * @member {Boolean} passing + */ + exports.prototype['passing'] = undefined; + /** + * @member {String} error + */ + exports.prototype['error'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/ImportWalletRequest.js b/js/sdk/src/model/ImportWalletRequest.js index d07aca0..222b13b 100644 --- a/js/sdk/src/model/ImportWalletRequest.js +++ b/js/sdk/src/model/ImportWalletRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The ImportWalletRequest model module. * @module model/ImportWalletRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/IssueAssetRequest.js b/js/sdk/src/model/IssueAssetRequest.js index 23d4bc4..ad798ff 100644 --- a/js/sdk/src/model/IssueAssetRequest.js +++ b/js/sdk/src/model/IssueAssetRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The IssueAssetRequest model module. * @module model/IssueAssetRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/PublicAnalyticsOutput.js b/js/sdk/src/model/PublicAnalyticsOutput.js new file mode 100644 index 0000000..7d60ad4 --- /dev/null +++ b/js/sdk/src/model/PublicAnalyticsOutput.js @@ -0,0 +1,100 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['ApiClient', 'model/AnalyticsOutput', 'model/AnalyticsOutputDescription', 'model/AnalyticsPublicIssuanceDescription'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + module.exports = factory(require('../ApiClient'), require('./AnalyticsOutput'), require('./AnalyticsOutputDescription'), require('./AnalyticsPublicIssuanceDescription')); + } else { + // Browser globals (root is window) + if (!root.QedItAssetTransfers) { + root.QedItAssetTransfers = {}; + } + root.QedItAssetTransfers.PublicAnalyticsOutput = factory(root.QedItAssetTransfers.ApiClient, root.QedItAssetTransfers.AnalyticsOutput, root.QedItAssetTransfers.AnalyticsOutputDescription, root.QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + } +}(this, function(ApiClient, AnalyticsOutput, AnalyticsOutputDescription, AnalyticsPublicIssuanceDescription) { + 'use strict'; + + + + /** + * The PublicAnalyticsOutput model module. + * @module model/PublicAnalyticsOutput + * @version 1.2.3 + */ + + /** + * Constructs a new PublicAnalyticsOutput. + * @alias module:model/PublicAnalyticsOutput + * @class + * @extends module:model/AnalyticsOutput + * @implements module:model/AnalyticsOutput + * @param isConfidential {} + * @param outputDescription {} + * @param publicIssuanceDescription {} + */ + var exports = function(isConfidential, outputDescription, publicIssuanceDescription) { + var _this = this; + + AnalyticsOutput.call(_this, isConfidential, outputDescription); + _this['public_issuance_description'] = publicIssuanceDescription; + }; + + /** + * Constructs a PublicAnalyticsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PublicAnalyticsOutput} obj Optional instance to populate. + * @return {module:model/PublicAnalyticsOutput} The populated PublicAnalyticsOutput instance. + */ + exports.constructFromObject = function(data, obj) { + if (data) { + obj = obj || new exports(); + AnalyticsOutput.constructFromObject(data, obj); + if (data.hasOwnProperty('public_issuance_description')) { + obj['public_issuance_description'] = AnalyticsPublicIssuanceDescription.constructFromObject(data['public_issuance_description']); + } + } + return obj; + } + + exports.prototype = Object.create(AnalyticsOutput.prototype); + exports.prototype.constructor = exports; + + /** + * @member {module:model/AnalyticsPublicIssuanceDescription} public_issuance_description + */ + exports.prototype['public_issuance_description'] = undefined; + + // Implement AnalyticsOutput interface: + /** + * @member {Boolean} is_confidential + */ +exports.prototype['is_confidential'] = undefined; + + /** + * @member {module:model/AnalyticsOutputDescription} output_description + */ +exports.prototype['output_description'] = undefined; + + + + return exports; +})); + + diff --git a/js/sdk/src/model/Rule.js b/js/sdk/src/model/Rule.js index 29dd399..c14cf62 100644 --- a/js/sdk/src/model/Rule.js +++ b/js/sdk/src/model/Rule.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The Rule model module. * @module model/Rule - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/TransactionsForWallet.js b/js/sdk/src/model/TransactionsForWallet.js index 9750cb1..203dcec 100644 --- a/js/sdk/src/model/TransactionsForWallet.js +++ b/js/sdk/src/model/TransactionsForWallet.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The TransactionsForWallet model module. * @module model/TransactionsForWallet - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/TransferAssetRequest.js b/js/sdk/src/model/TransferAssetRequest.js index 56fe684..5f617b1 100644 --- a/js/sdk/src/model/TransferAssetRequest.js +++ b/js/sdk/src/model/TransferAssetRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The TransferAssetRequest model module. * @module model/TransferAssetRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/src/model/UnlockWalletRequest.js b/js/sdk/src/model/UnlockWalletRequest.js index ef5eea1..e5b9f36 100644 --- a/js/sdk/src/model/UnlockWalletRequest.js +++ b/js/sdk/src/model/UnlockWalletRequest.js @@ -2,7 +2,7 @@ * QED-it - Asset Transfers * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: 1.2.2 + * OpenAPI spec version: 1.3.0 * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -35,7 +35,7 @@ /** * The UnlockWalletRequest model module. * @module model/UnlockWalletRequest - * @version 1.2.2 + * @version 1.3.0 */ /** diff --git a/js/sdk/test/api/HealthApi.spec.js b/js/sdk/test/api/HealthApi.spec.js new file mode 100644 index 0000000..dd0b64d --- /dev/null +++ b/js/sdk/test/api/HealthApi.spec.js @@ -0,0 +1,65 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthApi', function() { + describe('healthPost', function() { + it('should call healthPost successfully', function(done) { + //uncomment below and update the code to test healthPost + //instance.healthPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/js/sdk/test/model/AnalyticIssueWalletTx.spec.js b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js new file mode 100644 index 0000000..7b0148b --- /dev/null +++ b/js/sdk/test/model/AnalyticIssueWalletTx.spec.js @@ -0,0 +1,103 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticIssueWalletTx', function() { + it('should create an instance of AnalyticIssueWalletTx', function() { + // uncomment below and update the code to test AnalyticIssueWalletTx + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticIssueWalletTx); + }); + + it('should have the property isIncoming (base name: "is_incoming")', function() { + // uncomment below and update the code to test the property isIncoming + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property issuedBySelf (base name: "issued_by_self")', function() { + // uncomment below and update the code to test the property issuedBySelf + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property isConfidential (base name: "is_confidential")', function() { + // uncomment below and update the code to test the property isConfidential + //var instance = new QedItAssetTransfers.AnalyticIssueWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticRuleWalletTx.spec.js b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js new file mode 100644 index 0000000..9ea117f --- /dev/null +++ b/js/sdk/test/model/AnalyticRuleWalletTx.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticRuleWalletTx', function() { + it('should create an instance of AnalyticRuleWalletTx', function() { + // uncomment below and update the code to test AnalyticRuleWalletTx + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticRuleWalletTx); + }); + + it('should have the property signedBySelf (base name: "signed_by_self")', function() { + // uncomment below and update the code to test the property signedBySelf + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property ruleAffectMe (base name: "rule_affect_me")', function() { + // uncomment below and update the code to test the property ruleAffectMe + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property txSigner (base name: "tx_signer")', function() { + // uncomment below and update the code to test the property txSigner + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property rule (base name: "rule")', function() { + // uncomment below and update the code to test the property rule + //var instance = new QedItAssetTransfers.AnalyticRuleWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticTransaction.spec.js b/js/sdk/test/model/AnalyticTransaction.spec.js new file mode 100644 index 0000000..060db5d --- /dev/null +++ b/js/sdk/test/model/AnalyticTransaction.spec.js @@ -0,0 +1,103 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticTransaction(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticTransaction', function() { + it('should create an instance of AnalyticTransaction', function() { + // uncomment below and update the code to test AnalyticTransaction + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticTransaction); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property blockHash (base name: "block_hash")', function() { + // uncomment below and update the code to test the property blockHash + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property indexInBlock (base name: "index_in_block")', function() { + // uncomment below and update the code to test the property indexInBlock + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property blockHeight (base name: "block_height")', function() { + // uncomment below and update the code to test the property blockHeight + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new QedItAssetTransfers.AnalyticTransaction(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticTransferWalletTx.spec.js b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js new file mode 100644 index 0000000..a17a410 --- /dev/null +++ b/js/sdk/test/model/AnalyticTransferWalletTx.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticTransferWalletTx', function() { + it('should create an instance of AnalyticTransferWalletTx', function() { + // uncomment below and update the code to test AnalyticTransferWalletTx + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticTransferWalletTx); + }); + + it('should have the property isIncoming (base name: "is_incoming")', function() { + // uncomment below and update the code to test the property isIncoming + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property memo (base name: "memo")', function() { + // uncomment below and update the code to test the property memo + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property recipientAddress (base name: "recipient_address")', function() { + // uncomment below and update the code to test the property recipientAddress + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticTransferWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticWalletMetadata.spec.js b/js/sdk/test/model/AnalyticWalletMetadata.spec.js new file mode 100644 index 0000000..d4f0a87 --- /dev/null +++ b/js/sdk/test/model/AnalyticWalletMetadata.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticWalletMetadata', function() { + it('should create an instance of AnalyticWalletMetadata', function() { + // uncomment below and update the code to test AnalyticWalletMetadata + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticWalletMetadata); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticWalletMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticWalletTx.spec.js b/js/sdk/test/model/AnalyticWalletTx.spec.js new file mode 100644 index 0000000..c043361 --- /dev/null +++ b/js/sdk/test/model/AnalyticWalletTx.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticWalletTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticWalletTx', function() { + it('should create an instance of AnalyticWalletTx', function() { + // uncomment below and update the code to test AnalyticWalletTx + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticWalletTx); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be(); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new QedItAssetTransfers.AnalyticWalletTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js b/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js new file mode 100644 index 0000000..aff3a48 --- /dev/null +++ b/js/sdk/test/model/AnalyticsAssetConverterProofDescription.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsAssetConverterProofDescription', function() { + it('should create an instance of AnalyticsAssetConverterProofDescription', function() { + // uncomment below and update the code to test AnalyticsAssetConverterProofDescription + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsAssetConverterProofDescription); + }); + + it('should have the property inputCv (base name: "input_cv")', function() { + // uncomment below and update the code to test the property inputCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property amountCv (base name: "amount_cv")', function() { + // uncomment below and update the code to test the property amountCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property assetCv (base name: "asset_cv")', function() { + // uncomment below and update the code to test the property assetCv + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsAssetConverterProofDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js new file mode 100644 index 0000000..6f2cc8e --- /dev/null +++ b/js/sdk/test/model/AnalyticsConfidentialIssuanceDescription.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsConfidentialIssuanceDescription', function() { + it('should create an instance of AnalyticsConfidentialIssuanceDescription', function() { + // uncomment below and update the code to test AnalyticsConfidentialIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription); + }); + + it('should have the property inputCv (base name: "input_cv")', function() { + // uncomment below and update the code to test the property inputCv + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property rule (base name: "rule")', function() { + // uncomment below and update the code to test the property rule + //var instance = new QedItAssetTransfers.AnalyticsConfidentialIssuanceDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsContent.spec.js b/js/sdk/test/model/AnalyticsContent.spec.js new file mode 100644 index 0000000..a0a07b6 --- /dev/null +++ b/js/sdk/test/model/AnalyticsContent.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsContent(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsContent', function() { + it('should create an instance of AnalyticsContent', function() { + // uncomment below and update the code to test AnalyticsContent + //var instance = new QedItAssetTransfers.AnalyticsContent(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsContent); + }); + + it('should have the property txType (base name: "tx_type")', function() { + // uncomment below and update the code to test the property txType + //var instance = new QedItAssetTransfers.AnalyticsContent(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsIssueTx.spec.js b/js/sdk/test/model/AnalyticsIssueTx.spec.js new file mode 100644 index 0000000..5ab9f19 --- /dev/null +++ b/js/sdk/test/model/AnalyticsIssueTx.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsIssueTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsIssueTx', function() { + it('should create an instance of AnalyticsIssueTx', function() { + // uncomment below and update the code to test AnalyticsIssueTx + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsIssueTx); + }); + + it('should have the property outputs (base name: "outputs")', function() { + // uncomment below and update the code to test the property outputs + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be(); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsIssueTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsOutput.spec.js b/js/sdk/test/model/AnalyticsOutput.spec.js new file mode 100644 index 0000000..b914ecb --- /dev/null +++ b/js/sdk/test/model/AnalyticsOutput.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsOutput', function() { + it('should create an instance of AnalyticsOutput', function() { + // uncomment below and update the code to test AnalyticsOutput + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsOutput); + }); + + it('should have the property outputDescription (base name: "output_description")', function() { + // uncomment below and update the code to test the property outputDescription + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property confidentialIssuanceDescription (base name: "confidential_issuance_description")', function() { + // uncomment below and update the code to test the property confidentialIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + it('should have the property isConfidential (base name: "is_confidential")', function() { + // uncomment below and update the code to test the property isConfidential + //var instance = new QedItAssetTransfers.AnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsOutputDescription.spec.js b/js/sdk/test/model/AnalyticsOutputDescription.spec.js new file mode 100644 index 0000000..1d9758b --- /dev/null +++ b/js/sdk/test/model/AnalyticsOutputDescription.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsOutputDescription', function() { + it('should create an instance of AnalyticsOutputDescription', function() { + // uncomment below and update the code to test AnalyticsOutputDescription + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsOutputDescription); + }); + + it('should have the property cv (base name: "cv")', function() { + // uncomment below and update the code to test the property cv + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property cm (base name: "cm")', function() { + // uncomment below and update the code to test the property cm + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property epk (base name: "epk")', function() { + // uncomment below and update the code to test the property epk + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property encNote (base name: "enc_note")', function() { + // uncomment below and update the code to test the property encNote + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + it('should have the property encSender (base name: "enc_sender")', function() { + // uncomment below and update the code to test the property encSender + //var instance = new QedItAssetTransfers.AnalyticsOutputDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js new file mode 100644 index 0000000..e96af18 --- /dev/null +++ b/js/sdk/test/model/AnalyticsPublicIssuanceDescription.spec.js @@ -0,0 +1,73 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsPublicIssuanceDescription', function() { + it('should create an instance of AnalyticsPublicIssuanceDescription', function() { + // uncomment below and update the code to test AnalyticsPublicIssuanceDescription + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsPublicIssuanceDescription); + }); + + it('should have the property assetId (base name: "asset_id")', function() { + // uncomment below and update the code to test the property assetId + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be(); + }); + + it('should have the property amount (base name: "amount")', function() { + // uncomment below and update the code to test the property amount + //var instance = new QedItAssetTransfers.AnalyticsPublicIssuanceDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsRule.spec.js b/js/sdk/test/model/AnalyticsRule.spec.js new file mode 100644 index 0000000..25dc149 --- /dev/null +++ b/js/sdk/test/model/AnalyticsRule.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRule(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRule', function() { + it('should create an instance of AnalyticsRule', function() { + // uncomment below and update the code to test AnalyticsRule + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRule); + }); + + it('should have the property minId (base name: "min_id")', function() { + // uncomment below and update the code to test the property minId + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be(); + }); + + it('should have the property maxId (base name: "max_id")', function() { + // uncomment below and update the code to test the property maxId + //var instance = new QedItAssetTransfers.AnalyticsRule(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsRuleDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js new file mode 100644 index 0000000..d73cf7e --- /dev/null +++ b/js/sdk/test/model/AnalyticsRuleDefinition.spec.js @@ -0,0 +1,91 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleDefinition', function() { + it('should create an instance of AnalyticsRuleDefinition', function() { + // uncomment below and update the code to test AnalyticsRuleDefinition + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleDefinition); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.AnalyticsRuleDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsRuleTx.spec.js b/js/sdk/test/model/AnalyticsRuleTx.spec.js new file mode 100644 index 0000000..4e7cb0f --- /dev/null +++ b/js/sdk/test/model/AnalyticsRuleTx.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleTx', function() { + it('should create an instance of AnalyticsRuleTx', function() { + // uncomment below and update the code to test AnalyticsRuleTx + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleTx); + }); + + it('should have the property senderPublicKey (base name: "sender_public_key")', function() { + // uncomment below and update the code to test the property senderPublicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToAdd (base name: "rules_to_add")', function() { + // uncomment below and update the code to test the property rulesToAdd + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + it('should have the property rulesToDelete (base name: "rules_to_delete")', function() { + // uncomment below and update the code to test the property rulesToDelete + //var instance = new QedItAssetTransfers.AnalyticsRuleTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js new file mode 100644 index 0000000..026f207 --- /dev/null +++ b/js/sdk/test/model/AnalyticsRuleWalletDefinition.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsRuleWalletDefinition', function() { + it('should create an instance of AnalyticsRuleWalletDefinition', function() { + // uncomment below and update the code to test AnalyticsRuleWalletDefinition + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsRuleWalletDefinition); + }); + + it('should have the property publicKey (base name: "public_key")', function() { + // uncomment below and update the code to test the property publicKey + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueConfidentially (base name: "can_issue_confidentially")', function() { + // uncomment below and update the code to test the property canIssueConfidentially + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property isAdmin (base name: "is_admin")', function() { + // uncomment below and update the code to test the property isAdmin + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdFirst (base name: "can_issue_asset_id_first")', function() { + // uncomment below and update the code to test the property canIssueAssetIdFirst + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property canIssueAssetIdLast (base name: "can_issue_asset_id_last")', function() { + // uncomment below and update the code to test the property canIssueAssetIdLast + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + it('should have the property operation (base name: "operation")', function() { + // uncomment below and update the code to test the property operation + //var instance = new QedItAssetTransfers.AnalyticsRuleWalletDefinition(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsSpendDescription.spec.js b/js/sdk/test/model/AnalyticsSpendDescription.spec.js new file mode 100644 index 0000000..d6b018d --- /dev/null +++ b/js/sdk/test/model/AnalyticsSpendDescription.spec.js @@ -0,0 +1,97 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsSpendDescription', function() { + it('should create an instance of AnalyticsSpendDescription', function() { + // uncomment below and update the code to test AnalyticsSpendDescription + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsSpendDescription); + }); + + it('should have the property cv (base name: "cv")', function() { + // uncomment below and update the code to test the property cv + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property anchor (base name: "anchor")', function() { + // uncomment below and update the code to test the property anchor + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property nullifier (base name: "nullifier")', function() { + // uncomment below and update the code to test the property nullifier + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property rkOut (base name: "rk_out")', function() { + // uncomment below and update the code to test the property rkOut + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property zkproof (base name: "zkproof")', function() { + // uncomment below and update the code to test the property zkproof + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + it('should have the property spendAuthSig (base name: "spend_auth_sig")', function() { + // uncomment below and update the code to test the property spendAuthSig + //var instance = new QedItAssetTransfers.AnalyticsSpendDescription(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsTransferTx.spec.js b/js/sdk/test/model/AnalyticsTransferTx.spec.js new file mode 100644 index 0000000..c1f56dd --- /dev/null +++ b/js/sdk/test/model/AnalyticsTransferTx.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsTransferTx(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsTransferTx', function() { + it('should create an instance of AnalyticsTransferTx', function() { + // uncomment below and update the code to test AnalyticsTransferTx + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTransferTx); + }); + + it('should have the property assetConverterDescriptions (base name: "asset_converter_descriptions")', function() { + // uncomment below and update the code to test the property assetConverterDescriptions + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + it('should have the property spends (base name: "spends")', function() { + // uncomment below and update the code to test the property spends + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + it('should have the property outputs (base name: "outputs")', function() { + // uncomment below and update the code to test the property outputs + //var instance = new QedItAssetTransfers.AnalyticsTransferTx(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/AnalyticsTxMetadata.spec.js b/js/sdk/test/model/AnalyticsTxMetadata.spec.js new file mode 100644 index 0000000..db9d240 --- /dev/null +++ b/js/sdk/test/model/AnalyticsTxMetadata.spec.js @@ -0,0 +1,97 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AnalyticsTxMetadata', function() { + it('should create an instance of AnalyticsTxMetadata', function() { + // uncomment below and update the code to test AnalyticsTxMetadata + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be.a(QedItAssetTransfers.AnalyticsTxMetadata); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property txHash (base name: "tx_hash")', function() { + // uncomment below and update the code to test the property txHash + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property blockHash (base name: "block_hash")', function() { + // uncomment below and update the code to test the property blockHash + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property timestamp (base name: "timestamp")', function() { + // uncomment below and update the code to test the property timestamp + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property indexInBlock (base name: "index_in_block")', function() { + // uncomment below and update the code to test the property indexInBlock + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + it('should have the property blockHeight (base name: "block_height")', function() { + // uncomment below and update the code to test the property blockHeight + //var instance = new QedItAssetTransfers.AnalyticsTxMetadata(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js b/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js new file mode 100644 index 0000000..3948a5a --- /dev/null +++ b/js/sdk/test/model/ConfidentialAnalyticsOutput.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ConfidentialAnalyticsOutput', function() { + it('should create an instance of ConfidentialAnalyticsOutput', function() { + // uncomment below and update the code to test ConfidentialAnalyticsOutput + //var instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.ConfidentialAnalyticsOutput); + }); + + it('should have the property confidentialIssuanceDescription (base name: "confidential_issuance_description")', function() { + // uncomment below and update the code to test the property confidentialIssuanceDescription + //var instance = new QedItAssetTransfers.ConfidentialAnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/GetWalletActivityRequest.spec.js b/js/sdk/test/model/GetWalletActivityRequest.spec.js new file mode 100644 index 0000000..e60d9c7 --- /dev/null +++ b/js/sdk/test/model/GetWalletActivityRequest.spec.js @@ -0,0 +1,79 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletActivityRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletActivityRequest', function() { + it('should create an instance of GetWalletActivityRequest', function() { + // uncomment below and update the code to test GetWalletActivityRequest + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletActivityRequest); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startIndex (base name: "start_index")', function() { + // uncomment below and update the code to test the property startIndex + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + it('should have the property numberOfResults (base name: "number_of_results")', function() { + // uncomment below and update the code to test the property numberOfResults + //var instance = new QedItAssetTransfers.GetWalletActivityRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/GetWalletActivityResponse.spec.js b/js/sdk/test/model/GetWalletActivityResponse.spec.js new file mode 100644 index 0000000..d085980 --- /dev/null +++ b/js/sdk/test/model/GetWalletActivityResponse.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.3.0 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.GetWalletActivityResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetWalletActivityResponse', function() { + it('should create an instance of GetWalletActivityResponse', function() { + // uncomment below and update the code to test GetWalletActivityResponse + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.GetWalletActivityResponse); + }); + + it('should have the property walletId (base name: "wallet_id")', function() { + // uncomment below and update the code to test the property walletId + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be(); + }); + + it('should have the property transactions (base name: "transactions")', function() { + // uncomment below and update the code to test the property transactions + //var instance = new QedItAssetTransfers.GetWalletActivityResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/HealthcheckResponse.spec.js b/js/sdk/test/model/HealthcheckResponse.spec.js new file mode 100644 index 0000000..21fdc2a --- /dev/null +++ b/js/sdk/test/model/HealthcheckResponse.spec.js @@ -0,0 +1,85 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponse', function() { + it('should create an instance of HealthcheckResponse', function() { + // uncomment below and update the code to test HealthcheckResponse + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponse); + }); + + it('should have the property blockchainConnector (base name: "blockchain_connector")', function() { + // uncomment below and update the code to test the property blockchainConnector + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property mq (base name: "mq")', function() { + // uncomment below and update the code to test the property mq + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property database (base name: "database")', function() { + // uncomment below and update the code to test the property database + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js b/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js new file mode 100644 index 0000000..c700fc1 --- /dev/null +++ b/js/sdk/test/model/HealthcheckResponseBlockchainConnector.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponseBlockchainConnector', function() { + it('should create an instance of HealthcheckResponseBlockchainConnector', function() { + // uncomment below and update the code to test HealthcheckResponseBlockchainConnector + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponseBlockchainConnector); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be(); + }); + + it('should have the property error (base name: "error")', function() { + // uncomment below and update the code to test the property error + //var instance = new QedItAssetTransfers.HealthcheckResponseBlockchainConnector(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/HealthcheckResponseItem.spec.js b/js/sdk/test/model/HealthcheckResponseItem.spec.js new file mode 100644 index 0000000..4caab6a --- /dev/null +++ b/js/sdk/test/model/HealthcheckResponseItem.spec.js @@ -0,0 +1,73 @@ +/** + * QED-it - Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.HealthcheckResponseItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthcheckResponseItem', function() { + it('should create an instance of HealthcheckResponseItem', function() { + // uncomment below and update the code to test HealthcheckResponseItem + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be.a(QedItAssetTransfers.HealthcheckResponseItem); + }); + + it('should have the property passing (base name: "passing")', function() { + // uncomment below and update the code to test the property passing + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be(); + }); + + it('should have the property error (base name: "error")', function() { + // uncomment below and update the code to test the property error + //var instance = new QedItAssetTransfers.HealthcheckResponseItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/js/sdk/test/model/PublicAnalyticsOutput.spec.js b/js/sdk/test/model/PublicAnalyticsOutput.spec.js new file mode 100644 index 0000000..ada7b0d --- /dev/null +++ b/js/sdk/test/model/PublicAnalyticsOutput.spec.js @@ -0,0 +1,67 @@ +/** + * QEDIT – Asset Transfers + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * OpenAPI spec version: 1.2.3 + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * + * OpenAPI Generator version: 3.3.3 + * + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', '../../src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require('../../src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.QedItAssetTransfers); + } +}(this, function(expect, QedItAssetTransfers) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PublicAnalyticsOutput', function() { + it('should create an instance of PublicAnalyticsOutput', function() { + // uncomment below and update the code to test PublicAnalyticsOutput + //var instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + //expect(instance).to.be.a(QedItAssetTransfers.PublicAnalyticsOutput); + }); + + it('should have the property publicIssuanceDescription (base name: "public_issuance_description")', function() { + // uncomment below and update the code to test the property publicIssuanceDescription + //var instance = new QedItAssetTransfers.PublicAnalyticsOutput(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/spec/asset-swagger.yaml b/spec/asset-swagger.yaml index e8a0471..7ad1c96 100644 --- a/spec/asset-swagger.yaml +++ b/spec/asset-swagger.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.2.2 + version: 1.3.0 title: QED-it - Asset Transfers security: - ApiKeyAuth: [] @@ -272,14 +272,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetActivityRequest' + $ref: '#/components/schemas/GetWalletActivityRequest' responses: '200': description: Success content: application/json: schema: - $ref: '#/components/schemas/GetActivityResponse' + $ref: '#/components/schemas/GetWalletActivityResponse' '400': description: Bad request content: @@ -586,6 +586,30 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorResponse' + /health: + post: + tags: + - Health + summary: Perform a healthcheck of the node and its dependent services + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/HealthcheckResponse' + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + '500': + description: Internal error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' components: securitySchemes: ApiKeyAuth: @@ -593,6 +617,8 @@ components: name: x-auth-token in: header schemas: + IntPointer: + type: integer GetWalletBalanceRequest: type: object properties: @@ -660,7 +686,7 @@ components: amount: 4 asset_id: 1 memo: '{"recipient_name": "Dan"}' - GetActivityRequest: + GetWalletActivityRequest: type: object properties: wallet_id: @@ -699,27 +725,6 @@ components: - recipient_address - memo - id - GetActivityResponse: - type: object - properties: - wallet_id: - type: string - transactions: - type: array - items: - $ref: '#/components/schemas/TransactionsForWallet' - required: - - wallet_id - - transactions - example: - wallet_id: source_wallet - transactions: - - is_incoming: true - asset_id: 1 - amount: 8 - recipient_address: q1dxlf6vap2566t8w3z8f5j5lxy9n036zfsaytjve7fedsw6w8c9q9ctrwfz6ryyjwkgvj6tjg70f - memo: '{"recipient_name": "Dan"}' - id: "0xd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1" GetRulesResponse: type: object properties: @@ -790,36 +795,13 @@ components: example: start_index: 0 number_of_results: 10 - Block: - type: object - properties: - block_hash: - type: string - height: - type: integer - transactions: - type: array - items: - type: string - required: - - block_hash - - height - - transactions GetNetworkActivityResponse: type: object properties: - blocks: + transactions: type: array items: - $ref: '#/components/schemas/Block' - required: - - blocks - example: - blocks: - - block_hash: abababababababababababababab - height: 10 - transactions: - - XKCOKXOASKPOWJEASDlkjweNALNSD== + $ref: '#/components/schemas/AnalyticTransaction' IssueAssetRequest: type: object properties: @@ -1080,3 +1062,378 @@ components: example: id: "70a88558-2b8b-4b63-a5b6-2c54b24377f5" + + AnalyticTransaction: + type: object + properties: + metadata: + $ref: '#/components/schemas/AnalyticsTxMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticsIssueTx' + - $ref: '#/components/schemas/AnalyticsTransferTx' + - $ref: '#/components/schemas/AnalyticsRuleTx' + example: + metadata: + type: 'Issue' + tx_hash: 'd379aa4e5e40552910c8ae456c65dcf51e9779fc9281ac2dc9e677ec810af6b1' + block_hash: '9701560ba877d5552303cb54d10d461a0836a324649608a0a56c885b631b0434' + timestamp: '2019-05-20T02:10:46-07:00' + index_in_block: 1 + block_height: 100 + content: + outputs: + - is_confidntial: false, + public_issuance_description: + amount: 12 + asset_id: 5 + output_description: + cv: 'c2366ace373af05c92fc315dd502637ee4fa6ba46f05319ddcff209619bbaa27' + cm: '0e148cb409e313cb13f28c6d8110fdb7f4daf119db99cedeab1234bd64ac4681' + epk: 'f58c334ecde6e3efaeba6faedadb615c0fad30115a62e18c872481a293bd589d' + enc_note: '3222a401fc15115399e3b54c51509d9e5fafec2ddede463a8606d8d405f45c88a5a0d6e29728745407cdfe6d4b98a863b55cc230a463436e9f228c984085cc3082c48f6a2a9cb3b6a2ebb140e202c124b4d8483bc75e9978db08ff818fcf9ffa5c3fe226114fe27f41673220734471611af7255bbfb2bd4c2793fa45372f9ac3e91b4c2de92f0688dd92b1a993ed268e024e48f4e04c406a6e898c3bb3b290e3fde79bdaa0f9d9' + enc_sender: '9cb97b6764e8ad490bd5246c133245bc9424455b9cb7cc98fc1e054c8d0827863b5f89424bc910a09040461b4d01c5bfe732dcd491dc8cd78e0eba00e62919105211c1ce8d7ab1a37adc87d118890ffd' + zkproof: 'cc43f2c6be02d5e340dcbc1cae9ab4c8199731e115637186384d2e0a30051daa9031a9546683483d1d32b27b0fd47afd03c393cb5f1a5e68319889da501f296126a4f98f9a9ee1db5ba9d9ecda561176ac2d5ca00b45eaf0a09ad20785ed7c5bb5351b3116b1c7858ed44b9abdcd4aeefa4afa7d2f03d64c1b60b316a6d40595a183132f6ef391bf44002a7677f27f793e7661d2a00917e63a13af3af50d5f99f02bf24af4d743f51fce0712252dba7fa89fa5d89855d9c9d323ab1ffe3f0470' + public_key: 'bf45ab74bd4a46fe7a2432ba05e2f726bf4fe42a80052849e13e2541230d3204' + signature: '97a94ce9ad8fdb4fa9933b67e4022fe92e19516728cb1b5f43edf3aaad994a544d13725708fd38a683b82a2d0092b89a09f5463ce688b39215b10f6a732e480b' + + AnalyticsTxMetadata: + type: object + properties: + type: + type: string + tx_hash: + type: string + block_hash: + type: string + timestamp: + type: string + index_in_block: + type: integer + block_height: + type: integer + + AnalyticsIssueTx: + type: object + properties: + outputs: + type: array + items: + $ref: '#/components/schemas/AnalyticsOutput' + public_key: + type: string + signature: + type: string + + AnalyticsTransferTx: + type: object + properties: + asset_converter_descriptions: + type: array + items: + $ref: '#/components/schemas/AnalyticsAssetConverterProofDescription' + spends: + type: array + items: + $ref: '#/components/schemas/AnalyticsSpendDescription' + outputs: + type: array + items: + $ref: '#/components/schemas/AnalyticsOutputDescription' + binding_sig: + type: string + spend_auth_sigs: + type: array + items: + type: string + + AnalyticsRuleTx: + type: object + properties: + sender_public_key: + type: string + rules_to_add: + type: array + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + rules_to_delete: + type: array + items: + $ref: '#/components/schemas/AnalyticsRuleDefinition' + nonce: + type: integer + signature: + type: string + + AnalyticsRuleDefinition: + type: object + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + type: integer + can_issue_asset_id_last: + type: integer + example: + public_key: "AAAAAAAAAA==" + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + + AnalyticsRuleWalletDefinition: + type: object + properties: + public_key: + type: string + can_issue_confidentially: + type: boolean + is_admin: + type: boolean + can_issue_asset_id_first: + type: integer + can_issue_asset_id_last: + type: integer + operation: + type: string + example: + public_key: "AAAAAAAAAA==" + can_issue_confidentially: true + is_admin: true + can_issue_asset_id_first: 11 + can_issue_asset_id_last: 20 + operation: "CreateRule" + + AnalyticsOutput: + type: object + properties: + is_confidential: + type: boolean + public_issuance_description: + $ref: '#/components/schemas/AnalyticsPublicIssuanceDescription' + confidential_issuance_description: + $ref: '#/components/schemas/AnalyticsConfidentialIssuanceDescription' + output_description: + $ref: '#/components/schemas/AnalyticsOutputDescription' + + AnalyticsPublicIssuanceDescription: + type: object + nullable: true + required: + - asset_id + - amount + properties: + asset_id: + type: integer + minimum: 1 + amount: + type: integer + minimum: 0 + example: + asset_id: 10 + amount: 3 + + AnalyticsAssetConverterProofDescription: + type: object + properties: + input_cv: + type: string + amount_cv: + type: string + asset_cv: + type: string + zkproof: + type: string + example: + asset_cv: "AAAAAAAAAAA=" + amount_cv: "AAAAAAAAAAA=" + input_cv: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + + AnalyticsSpendDescription: + type: object + properties: + cv: + type: string + anchor: + type: string + nullifier: + type: string + rk_out: + type: string + zkproof: + type: string + example: + cv: "AAAAAAAAAAA=" + anchor: "AAAAAAAAAAA=" + nullifier: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + rk_out: "AAAAAAAAAAA=" + + AnalyticsOutputDescription: + type: object + properties: + cv: + type: string + cm: + type: string + epk: + type: string + zkproof: + type: string + enc_note: + type: string + enc_sender: + type: string + example: + cv: "AAAAAAAAAAA=" + cm: "000AAAAAAA=" + epk: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + enc_note: "AAAAAAAAAAA=" + enc_sender: "000AAAAAAA=" + + AnalyticsConfidentialIssuanceDescription: + type: object + nullable: true + properties: + input_cv: + type: string + zkproof: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRule' + example: + input_cv: "AAAAAAAAAAA=" + zkproof: "000AAAAAAA=" + rule: + - min_id: 11 + - max_id: 20 + + AnalyticsRule: + type: object + properties: + min_id: + type: integer + max_id: + type: integer + required: + - min_id + - max_id + example: + min_id: 11 + max_id: 20 + + GetWalletActivityResponse: + type: object + properties: + wallet_id: + type: string + transactions: + type: array + items: + $ref: '#/components/schemas/AnalyticWalletTx' + + AnalyticWalletTx: + type: object + properties: + metadata: + $ref: '#/components/schemas/AnalyticWalletMetadata' + content: + oneOf: + - $ref: '#/components/schemas/AnalyticIssueWalletTx' + - $ref: '#/components/schemas/AnalyticTransferWalletTx' + - $ref: '#/components/schemas/AnalyticRuleWalletTx' + + AnalyticWalletMetadata: + type: object + properties: + type: + type: string + tx_hash: + type: string + timestamp: + type: string + + AnalyticIssueWalletTx: + type: object + properties: + is_incoming: + type: boolean + issued_by_self: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + type: integer + amount: + type: integer + is_confidential: + type: boolean + + AnalyticTransferWalletTx: + type: object + properties: + is_incoming: + type: boolean + memo: + type: string + recipient_address: + type: string + asset_id: + type: integer + amount: + type: integer + + AnalyticRuleWalletTx: + type: object + properties: + signed_by_self: + type: boolean + rule_affect_self: + type: boolean + tx_signer: + type: string + rule: + $ref: '#/components/schemas/AnalyticsRuleWalletDefinition' + + HealthcheckResponse: + type: object + properties: + version: + type: string + blockchain_connector: + $ref: '#/components/schemas/HealthcheckResponseItem' + message_queue: + $ref: '#/components/schemas/HealthcheckResponseItem' + database: + $ref: '#/components/schemas/HealthcheckResponseItem' + passing: + type: boolean + example: + version: '1.3.0' + blockchain_connector: + error: 'Post http://localhost:8082/connector/get_block: dial tcp 127.0.0.1:8082: + connect: connection refused' + passing: false + database: + error: '' + passing: true + mq: + error: '' + passing: true + passing: false + + HealthcheckResponseItem: + type: object + properties: + passing: + type: boolean + error: + type: string