Skip to content

Commit

Permalink
Change module name
Browse files Browse the repository at this point in the history
  • Loading branch information
dusanstanis committed Jun 27, 2024
1 parent 5d4de1d commit 3a264e3
Show file tree
Hide file tree
Showing 275 changed files with 442 additions and 439 deletions.
12 changes: 6 additions & 6 deletions .chglog/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/akash-network/akash-api
repository_url: https://github.com/spheronFdn/akash-api-fork
options:
commits:
# filters:
Expand All @@ -12,11 +12,11 @@ options:
# - perf
# - refactor
commit_groups:
title_maps:
feat: Features
fix: Bug Fixes
perf: Performance Improvements
refactor: Code Refactoring
title_maps:
feat: Features
fix: Bug Fixes
perf: Performance Improvements
refactor: Code Refactoring
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# Akash API

[![lint](https://github.com/akash-network/akash-api/actions/workflows/lint.yaml/badge.svg)](https://github.com/akash-network/akash-api/actions/workflows/lint.yaml)
[![tests](https://github.com/akash-network/akash-api/actions/workflows/tests.yaml/badge.svg)](https://github.com/akash-network/akash-api/actions/workflows/tests.yaml)
[![lint](https://github.com/spheronFdn/akash-api-fork/actions/workflows/lint.yaml/badge.svg)](https://github.com/spheronFdn/akash-api-fork/actions/workflows/lint.yaml)
[![tests](https://github.com/spheronFdn/akash-api-fork/actions/workflows/tests.yaml/badge.svg)](https://github.com/spheronFdn/akash-api-fork/actions/workflows/tests.yaml)

## Brief

The purpose of this repo is to combine gRPC API definitions for [Akash node](https://github.com/akash-network/node)
and [Akash provider](https://github.com/akash-network/provider) in a single place as well as code-generation related to it.

There are currently defined two buf packages with further intentions to be published into BSR if there is demand for it:
- `buf.build/akash-network/node` - Akash protobuf definitions previously located in [proto](https://github.com/akash-network/node/tree/master/proto/akash)
have all been moved [under](./proto/node/akash). All generated code can be found [here](./go/node)
- `buf.build/akash-network/provider` - Akash manifest definitions previously defined as plan Go structs have been converted into Protobuf [definitions](./proto/provider/akash)

- `buf.build/akash-network/node` - Akash protobuf definitions previously located in [proto](https://github.com/akash-network/node/tree/master/proto/akash)
have all been moved [under](./proto/node/akash). All generated code can be found [here](./go/node)
- `buf.build/akash-network/provider` - Akash manifest definitions previously defined as plan Go structs have been converted into Protobuf [definitions](./proto/provider/akash)

Proto docs are available:

- for [node](docs/proto/node.md)
- for [provider](docs/proto/provider.md)

Expand All @@ -28,4 +31,5 @@ Actual releases indicating changes to the repo itself. API version are defined w
## Pre-generated packages

We provide generated code allowing developers to just import and focus on features, not how to generate stubs.

- [Go](./go)
11 changes: 5 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@

<a name="v0.0.1"></a>

## v0.0.1

> 2023-02-16
### Ci

* set codeowners ([#2](https://github.com/akash-network/akash-api/issues/2))
- set codeowners ([#2](https://github.com/spheronFdn/akash-api-fork/issues/2))

### Docs

* **readme:** set project description
- **readme:** set project description

### Features

* initial commit ([#1](https://github.com/akash-network/akash-api/issues/1))
* initial commit

- initial commit ([#1](https://github.com/spheronFdn/akash-api-fork/issues/1))
- initial commit
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/akash-network/akash-api
module github.com/spheronFdn/akash-api-fork

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion go/inventory/v1/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1
import (
sdk "github.com/cosmos/cosmos-sdk/types"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
)

type ResourcesMetric struct {
Expand Down
2 changes: 1 addition & 1 deletion go/inventory/v1/resourcepair.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"k8s.io/apimachinery/pkg/api/resource"

types "github.com/akash-network/akash-api/go/node/types/v1beta3"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
)

func NewResourcePair(allocatable, allocated int64, format resource.Format) ResourcePair {
Expand Down
6 changes: 3 additions & 3 deletions go/inventory/v1/resourcepair.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/manifest/v2beta1/group.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v2beta1

import (
types "github.com/akash-network/akash-api/go/node/types/v1beta2"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta2"
)

// GetName returns the name of group
Expand Down
4 changes: 2 additions & 2 deletions go/manifest/v2beta1/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

k8svalidation "k8s.io/apimachinery/pkg/util/validation"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta2"
types "github.com/akash-network/akash-api/go/node/types/v1beta2"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta2"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta2"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions go/manifest/v2beta1/manifest_cross_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta1"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta2"
akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta2"
tutil "github.com/akash-network/akash-api/go/testutil"
"github.com/akash-network/akash-api/go/testutil/v1beta2"
manifest "github.com/spheronFdn/akash-api-fork/go/manifest/v2beta1"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta2"
akashtypes "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta2"
tutil "github.com/spheronFdn/akash-api-fork/go/testutil"
"github.com/spheronFdn/akash-api-fork/go/testutil/v1beta2"
)

func TestManifestWithEmptyDeployment(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions go/manifest/v2beta1/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

"github.com/stretchr/testify/assert"

manifest "github.com/akash-network/akash-api/go/manifest/v2beta1"
dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta2"
akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta2"
"github.com/akash-network/akash-api/go/testutil/v1beta2"
manifest "github.com/spheronFdn/akash-api-fork/go/manifest/v2beta1"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta2"
akashtypes "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta2"
"github.com/spheronFdn/akash-api-fork/go/testutil/v1beta2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/manifest/v2beta2/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
)

var _ dtypes.ResourceGroup = (*Group)(nil)
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta2/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v2beta2
import (
"fmt"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
)

type Groups []Group
Expand Down
4 changes: 2 additions & 2 deletions go/manifest/v2beta2/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package v2beta2
import (
k8svalidation "k8s.io/apimachinery/pkg/util/validation"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
types "github.com/akash-network/akash-api/go/node/types/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
)

type validateManifestGroupsHelper struct {
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta2/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions go/manifest/v2beta2/manifest_cross_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
tutil "github.com/akash-network/akash-api/go/testutil"
"github.com/akash-network/akash-api/go/testutil/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
akashtypes "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
tutil "github.com/spheronFdn/akash-api-fork/go/testutil"
"github.com/spheronFdn/akash-api-fork/go/testutil/v1beta3"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions go/manifest/v2beta2/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
akashtypes "github.com/akash-network/akash-api/go/node/types/v1beta3"
"github.com/akash-network/akash-api/go/testutil/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
akashtypes "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
"github.com/spheronFdn/akash-api-fork/go/testutil/v1beta3"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

k8svalidation "k8s.io/apimachinery/pkg/util/validation"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
)

func (s *Service) validate(helper *validateManifestGroupsHelper) error {
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta2/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go/manifest/v2beta2/serviceexpose.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math"
"sort"

dtypes "github.com/akash-network/akash-api/go/node/deployment/v1beta3"
types "github.com/akash-network/akash-api/go/node/types/v1beta3"
dtypes "github.com/spheronFdn/akash-api-fork/go/node/deployment/v1beta3"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
)

func (s *ServiceExpose) GetEndpoints() types.Endpoints {
Expand Down
2 changes: 1 addition & 1 deletion go/manifest/v2beta2/serviceexposes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v2beta2
import (
"sort"

types "github.com/akash-network/akash-api/go/node/types/v1beta3"
types "github.com/spheronFdn/akash-api-fork/go/node/types/v1beta3"
)

type ServiceExposes []ServiceExpose
Expand Down
10 changes: 5 additions & 5 deletions go/node/audit/v1beta1/audit.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/node/audit/v1beta1/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1beta1
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/akash-network/akash-api/go/sdkutil"
"github.com/spheronFdn/akash-api-fork/go/sdkutil"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions go/node/audit/v1beta2/audit.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/node/audit/v1beta2/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1beta2
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/akash-network/akash-api/go/sdkutil"
"github.com/spheronFdn/akash-api-fork/go/sdkutil"
)

const (
Expand Down
Loading

0 comments on commit 3a264e3

Please sign in to comment.