diff --git a/metadata/metadata.gen.go b/metadata/metadata.gen.go index 721428b..0a39a2e 100644 --- a/metadata/metadata.gen.go +++ b/metadata/metadata.gen.go @@ -1,6 +1,6 @@ -// sequence-metadata v0.4.0 7cd2d21d284379078f35906687a348ebecb44a36 +// sequence-metadata v0.4.0 175612355772aacba3cf944ab67503e460df09c8 // -- -// Code generated by webrpc-gen@v0.21.0 with golang generator. DO NOT EDIT. +// Code generated by webrpc-gen@v0.21.1 with golang generator. DO NOT EDIT. // // webrpc-gen -schema=metadata.ridl -target=golang -pkg=metadata -client -out=./clients/metadata.gen.go package metadata @@ -22,7 +22,7 @@ import ( const WebrpcHeader = "Webrpc" -const WebrpcHeaderValue = "webrpc@v0.21.0;gen-golang@v0.16.0;sequence-metadata@v0.4.0" +const WebrpcHeaderValue = "webrpc@v0.21.1;gen-golang@v0.16.0;sequence-metadata@v0.4.0" // WebRPC description and code-gen version func WebRPCVersion() string { @@ -36,7 +36,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "7cd2d21d284379078f35906687a348ebecb44a36" + return "175612355772aacba3cf944ab67503e460df09c8" } type WebrpcGenVersions struct { @@ -291,13 +291,23 @@ type Version struct { } type RuntimeStatus struct { - HealthOK bool `json:"healthOK"` - StartTime time.Time `json:"startTime"` - Uptime uint64 `json:"uptime"` - Ver string `json:"ver"` - Branch string `json:"branch"` - CommitHash string `json:"commitHash"` - Checks *RuntimeChecks `json:"checks"` + HealthOK bool `json:"healthOK"` + StartTime time.Time `json:"startTime"` + Uptime uint64 `json:"uptime"` + UptimeString string `json:"uptimeString"` + Ver string `json:"ver"` + Branch string `json:"branch"` + CommitHash string `json:"commitHash"` + Checks *RuntimeChecks `json:"checks"` + Runnable map[string]*RunnableStatus `json:"runnable,omitempty"` +} + +type RunnableStatus struct { + Running bool `json:"running"` + Restarts int `json:"restarts"` + StartTime time.Time `json:"startTime"` + EndTime *time.Time `json:"endTime"` + LastError interface{} `json:"lastError"` } type RuntimeChecks struct { @@ -602,17 +612,17 @@ var ( "/rpc/Metadata/GetTokenRefreshStatus": { Name: "GetTokenRefreshStatus", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/GetTokenRefreshResult": { Name: "GetTokenRefreshResult", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/CancelRefreshJob": { Name: "CancelRefreshJob", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/RefreshContractInfo": { Name: "RefreshContractInfo", @@ -687,52 +697,52 @@ var ( "/rpc/Metadata/GetNiftyswapTokenQuantity": { Name: "GetNiftyswapTokenQuantity", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/GetNiftyswapUnitPrices": { Name: "GetNiftyswapUnitPrices", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/GetNiftyswapUnitPricesWithQuantities": { Name: "GetNiftyswapUnitPricesWithQuantities", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/AddContractToMintMonitor": { Name: "AddContractToMintMonitor", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/RemoveContractFromMintMonitor": { Name: "RemoveContractFromMintMonitor", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/MintMonitorJobStatus": { Name: "MintMonitorJobStatus", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/MintMonitorTriggerJob": { Name: "MintMonitorTriggerJob", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/SyncContractTokens": { Name: "SyncContractTokens", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/AbortContractSync": { Name: "AbortContractSync", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/ContractSyncJobStatus": { Name: "ContractSyncJobStatus", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Metadata/DirectoryGetNetworks": { Name: "DirectoryGetNetworks", @@ -747,7 +757,7 @@ var ( "/rpc/Metadata/DirectorySearchCollections": { Name: "DirectorySearchCollections", Service: "Metadata", - Annotations: map[string]string{}, + Annotations: map[string]string{"internal": ""}, }, "/rpc/Collections/CreateCollection": { Name: "CreateCollection", @@ -997,10 +1007,10 @@ type Metadata interface { SearchTokens(ctx context.Context, q string, chainID *string, page *Page) ([]*TokenMetadata, *Page, error) SearchContracts(ctx context.Context, q string, chainID *string, chainIDs []string, types []ContractType, page *Page) ([]*ContractInfo, *Page, error) // Niftyswap querying data - // map of tokenID :: quantity GetNiftyswapTokenQuantity(ctx context.Context, chainID string, contractAddress string, tokenIDs []string) (map[string]string, error) - // map of tokenID :: price + // map of tokenID :: quantity GetNiftyswapUnitPrices(ctx context.Context, chainID string, contractAddress string, req *GetNiftyswapUnitPricesRequest, fresh bool) (map[string]string, error) + // map of tokenID :: price GetNiftyswapUnitPricesWithQuantities(ctx context.Context, chainID string, contractAddress string, req *GetNiftyswapUnitPricesRequest, fresh bool) (map[string]*GetNiftyswapUnitPricesResponse, error) AddContractToMintMonitor(ctx context.Context, chainID string, contractAddress string) (bool, error) RemoveContractFromMintMonitor(ctx context.Context, chainID string, contractAddress string) (bool, error) @@ -1092,10 +1102,10 @@ type MetadataClient interface { SearchTokens(ctx context.Context, q string, chainID *string, page *Page) ([]*TokenMetadata, *Page, error) SearchContracts(ctx context.Context, q string, chainID *string, chainIDs []string, types []ContractType, page *Page) ([]*ContractInfo, *Page, error) // Niftyswap querying data - // map of tokenID :: quantity GetNiftyswapTokenQuantity(ctx context.Context, chainID string, contractAddress string, tokenIDs []string) (map[string]string, error) - // map of tokenID :: price + // map of tokenID :: quantity GetNiftyswapUnitPrices(ctx context.Context, chainID string, contractAddress string, req *GetNiftyswapUnitPricesRequest, fresh bool) (map[string]string, error) + // map of tokenID :: price GetNiftyswapUnitPricesWithQuantities(ctx context.Context, chainID string, contractAddress string, req *GetNiftyswapUnitPricesRequest, fresh bool) (map[string]*GetNiftyswapUnitPricesResponse, error) AddContractToMintMonitor(ctx context.Context, chainID string, contractAddress string) (bool, error) RemoveContractFromMintMonitor(ctx context.Context, chainID string, contractAddress string) (bool, error)