Skip to content

Commit

Permalink
Refactoring Data interface AsListData method to AsDataList.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshutr committed Apr 4, 2022
1 parent db85400 commit 25d7a1f
Show file tree
Hide file tree
Showing 789 changed files with 2,929 additions and 2,930 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ linters-settings:
min-complexity: 25 # cyclical complexity

goimports:
local-prefixes: "github.com/persistenceOne/persistenceSDK"
local-prefixes: "github.com/AssetMantle/modules"

gomnd:
settings:
Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ Thank you for considering making contributions to the Persistence SDK and relate
Contributing to this repo can mean many things such as participating in discussion or proposing code changes. To ensure
a smooth workflow for all contributors, the general procedure for contributing has been established:

1. Start by browsing [new issues](https://github.com/persistenceOne/persistenceSDK/issues). If you are looking for
1. Start by browsing [new issues](https://github.com/AssetMantle/modules/issues). If you are looking for
something interesting or if you have something in your mind, there is a chance it was has been discussed.

- Looking for a good place to start contributing? How about checking out
some [good first issues](https://github.com/persistenceOne/persistenceSDK/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
some [good first issues](https://github.com/AssetMantle/modules/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
?

2. Determine whether a GitHub issue or discussion is more appropriate for your needs:
1. If you want to propose something new that requires specification or an additional design, or you would like to change
a process, start with a [new discussion](https://github.com/persistenceOne/persistenceSDK/discussions/new). With
a process, start with a [new discussion](https://github.com/AssetMantle/modules/discussions/new). With
discussions, we can better handle the design process using discussion threads. A discussion usually leads to one or
more issues.
2. If the issue you want addressed is a specific proposal or a bug, then open
a [new issue](https://github.com/persistenceOne/persistenceSDK/issues/new/choose).
3. Review existing [issues](https://github.com/persistenceOne/persistenceSDK/issues) to find an issue you'd like to help
a [new issue](https://github.com/AssetMantle/modules/issues/new/choose).
3. Review existing [issues](https://github.com/AssetMantle/modules/issues) to find an issue you'd like to help
with.
3. Participate in thoughtful discussion on that issue.
4. If you would like to contribute:
Expand All @@ -51,8 +51,8 @@ taken place in a GitHub issue, that PR runs a high likelihood of being rejected.
## Architecture Decision Records (ADR)

When proposing an architecture decision for the Persistence SDK, please start by opening
an [issue](https://github.com/persistenceOne/persistenceSDK/issues/new/choose) or
a [discussion](https://github.com/persistenceOne/persistenceSDK/discussions/new) with a summary of the proposal. Once
an [issue](https://github.com/AssetMantle/modules/issues/new/choose) or
a [discussion](https://github.com/AssetMantle/modules/discussions/new) with a summary of the proposal. Once
the proposal has been discussed and there is rough alignment on a high-level approach to the design,
the [ADR creation process](hhttps://github.com/persistenceOne/assetMantle/blob/puneet2019/adr/docs/adr/PROCESS.md) can
begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the
Expand Down Expand Up @@ -257,7 +257,7 @@ distinct stages: **Strategy Discovery**, **Concept Approval**, and

* Architecture Decision Records (ADRs) may be proposed by any contributors or maintainers of the Persistence SDK, and
should follow the guidelines outlined in the
[ADR Creation Process](https://github.com/persistenceOne/persistenceSDK/blob/master/docs/architecture/PROCESS.md)
[ADR Creation Process](https://github.com/AssetMantle/modules/blob/master/docs/architecture/PROCESS.md)
* After proposal, a time bound period for Request for Comment (RFC) on ADRs commences
* ADRs are intended to be iterative, and may be merged into `master` while still in a `Proposed` status

Expand Down
14 changes: 7 additions & 7 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ Contributing to this repo can mean many things such as participating in
discussion or proposing code changes. To ensure a smooth workflow for all
contributors, the general procedure for contributing has been established:

1. Start by browsing [new issues](https://github.com/persistenceOne/persistenceSDK/issues). If you are looking for something interesting or if you have something in your mind, there is a chance it was has been discussed.
- Looking for a good place to start contributing? How about checking out some [good first issues](https://github.com/persistenceOne/persistenceSDK/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)?
1. Start by browsing [new issues](https://github.com/AssetMantle/modules/issues). If you are looking for something interesting or if you have something in your mind, there is a chance it was has been discussed.
- Looking for a good place to start contributing? How about checking out some [good first issues](https://github.com/AssetMantle/modules/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)?
2. Determine whether a GitHub issue or discussion is more appropriate for your needs:
1. If you want to propose something new that requires specification or an additional design, or you would like to change a process, start with a [new discussion](https://github.com/persistenceOne/persistenceSDK/discussions/new). With discussions, we can better handle the design process using discussion threads. A discussion usually leads to one or more issues.
2. If the issue you want addressed is a specific proposal or a bug, then open a [new issue](https://github.com/persistenceOne/persistenceSDK/issues/new/choose).
3. Review existing [issues](https://github.com/persistenceOne/persistenceSDK/issues) to find an issue you'd like to help with.
1. If you want to propose something new that requires specification or an additional design, or you would like to change a process, start with a [new discussion](https://github.com/AssetMantle/modules/discussions/new). With discussions, we can better handle the design process using discussion threads. A discussion usually leads to one or more issues.
2. If the issue you want addressed is a specific proposal or a bug, then open a [new issue](https://github.com/AssetMantle/modules/issues/new/choose).
3. Review existing [issues](https://github.com/AssetMantle/modules/issues) to find an issue you'd like to help with.
3. Participate in thoughtful discussion on that issue.
4. If you would like to contribute:
1. Ensure that the proposal has been accepted.
Expand All @@ -46,7 +46,7 @@ taken place in a GitHub issue, that PR runs a high likelihood of being rejected.

## Architecture Decision Records (ADR)

When proposing an architecture decision for the Persistence SDK, please start by opening an [issue](https://github.com/persistenceOne/persistenceSDK/issues/new/choose) or a [discussion](https://github.com/persistenceOne/persistenceSDK/discussions/new) with a summary of the proposal. Once the proposal has been discussed and there is rough alignment on a high-level approach to the design, the [ADR creation process](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) can begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the proposed implementation. If you would like to see examples of how these are written, please refer to the current [ADRs](https://github.com/cosmos/cosmos-sdk/tree/master/docs/architecture).
When proposing an architecture decision for the Persistence SDK, please start by opening an [issue](https://github.com/AssetMantle/modules/issues/new/choose) or a [discussion](https://github.com/AssetMantle/modules/discussions/new) with a summary of the proposal. Once the proposal has been discussed and there is rough alignment on a high-level approach to the design, the [ADR creation process](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) can begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the proposed implementation. If you would like to see examples of how these are written, please refer to the current [ADRs](https://github.com/cosmos/cosmos-sdk/tree/master/docs/architecture).

## Development Procedure

Expand Down Expand Up @@ -248,7 +248,7 @@ is broken up into three distinct stages: **Strategy Discovery**, **Concept Appro

* Architecture Decision Records (ADRs) may be proposed by any contributors or maintainers of the Persistence SDK,
and should follow the guidelines outlined in the
[ADR Creation Process](https://github.com/persistenceOne/persistenceSDK/blob/master/docs/architecture/PROCESS.md)
[ADR Creation Process](https://github.com/AssetMantle/modules/blob/master/docs/architecture/PROCESS.md)
* After proposal, a time bound period for Request for Comment (RFC) on ADRs commences
* ADRs are intended to be iterative, and may be merged into `master` while still in a `Proposed` status

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ lintci-update: lintci-remove lintci-install

goimports:
// TODO correct
goimports -local="github.com/persistenceOne/persistenceSDK" -w .
goimports -local="github.com/AssetMantle/modules" -w .
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// TODO correct
# persistenceSDK

[![Go Report Card](https://goreportcard.com/badge/github.com/persistenceOne/persistenceSDK)](https://goreportcard.com/report/github.com/persistenceOne/persistenceSDK)
[![license](https://img.shields.io/github/license/persistenceOne/persistenceSDK.svg)](https://github.com/persistenceOne/persistenceSDK/blob/master/LICENSE)
[![LoC](https://tokei.rs/b1/github/persistenceOne/persistenceSDK)](https://github.com/persistenceOne/persistenceSDK)
[![Go Report Card](https://goreportcard.com/badge/github.com/AssetMantle/modules)](https://goreportcard.com/report/github.com/AssetMantle/modules)
[![license](https://img.shields.io/github/license/AssetMantle/modules.svg)](https://github.com/AssetMantle/modules/blob/master/LICENSE)
[![LoC](https://tokei.rs/b1/github/AssetMantle/modules)](https://github.com/AssetMantle/modules)

Node modules and client utilities to build Persistence platform node applications.
2 changes: 1 addition & 1 deletion constants/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package errors
import (
"github.com/cosmos/cosmos-sdk/types/errors"

"github.com/persistenceOne/persistenceSDK/constants"
"github.com/AssetMantle/modules/constants"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion constants/flags/queuing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package flags

import "github.com/persistenceOne/persistenceSDK/schema/helpers/base"
import "github.com/AssetMantle/modules/schema/helpers/base"

// Note: Arranged alphabetically
var (
Expand Down
2 changes: 1 addition & 1 deletion constants/flags/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package flags

import (
"github.com/persistenceOne/persistenceSDK/schema/helpers/base"
"github.com/AssetMantle/modules/schema/helpers/base"
)

// Note: Arranged alphabetically
Expand Down
2 changes: 1 addition & 1 deletion constants/ids/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package ids

import "github.com/persistenceOne/persistenceSDK/schema/types/base"
import "github.com/AssetMantle/modules/schema/types/base"

// Note: Arranged alphabetically
var (
Expand Down
4 changes: 2 additions & 2 deletions constants/properties/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package properties
import (
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/persistenceOne/persistenceSDK/constants/ids"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/constants/ids"
"github.com/AssetMantle/modules/schema/types/base"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion constants/test/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package test
import (
"github.com/cosmos/cosmos-sdk/types/errors"

"github.com/persistenceOne/persistenceSDK/constants"
"github.com/AssetMantle/modules/constants"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// TODO Rename
module github.com/persistenceOne/persistenceSDK
module github.com/AssetMantle/modules

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions modules/assets/auxiliaries/prototype.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package auxiliaries

import (
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/helpers/base"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/helpers/base"
)

func Prototype() helpers.Auxiliaries {
Expand Down
2 changes: 1 addition & 1 deletion modules/assets/auxiliaries/prototype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/schema/helpers/base"
"github.com/AssetMantle/modules/schema/helpers/base"
)

func Test_Auxiliaries_Prototype(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion modules/assets/internal/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdkTypes "github.com/cosmos/cosmos-sdk/types"
abciTypes "github.com/tendermint/tendermint/abci/types"

"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/AssetMantle/modules/schema/helpers"
)

type block struct {
Expand Down
8 changes: 4 additions & 4 deletions modules/assets/internal/block/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"github.com/tendermint/tendermint/libs/log"
tendermintDB "github.com/tendermint/tm-db"

"github.com/persistenceOne/persistenceSDK/modules/assets/internal/mapper"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/parameters"
"github.com/persistenceOne/persistenceSDK/schema"
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/AssetMantle/modules/modules/assets/internal/mapper"
"github.com/AssetMantle/modules/modules/assets/internal/parameters"
"github.com/AssetMantle/modules/schema"
"github.com/AssetMantle/modules/schema/helpers"
)

func CreateTestInput(t *testing.T) sdkTypes.Context {
Expand Down
2 changes: 1 addition & 1 deletion modules/assets/internal/block/prototype.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package block

import "github.com/persistenceOne/persistenceSDK/schema/helpers"
import "github.com/AssetMantle/modules/schema/helpers"

func Prototype() helpers.Block {
return block{}
Expand Down
6 changes: 3 additions & 3 deletions modules/assets/internal/common/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package common
import (
"github.com/cosmos/cosmos-sdk/codec"

"github.com/persistenceOne/persistenceSDK/modules/assets/internal/key"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/mappable"
"github.com/persistenceOne/persistenceSDK/utilities/module"
"github.com/AssetMantle/modules/modules/assets/internal/key"
"github.com/AssetMantle/modules/modules/assets/internal/mappable"
"github.com/AssetMantle/modules/utilities/module"
)

var Codec *codec.Codec
Expand Down
10 changes: 5 additions & 5 deletions modules/assets/internal/genesis/prototype.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
package genesis

import (
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/key"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/mappable"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/parameters"
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/helpers/base"
"github.com/AssetMantle/modules/modules/assets/internal/key"
"github.com/AssetMantle/modules/modules/assets/internal/mappable"
"github.com/AssetMantle/modules/modules/assets/internal/parameters"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/helpers/base"
)

func Prototype() helpers.Genesis {
Expand Down
10 changes: 5 additions & 5 deletions modules/assets/internal/genesis/prototype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/modules/assets/internal/key"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/mappable"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/parameters"
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/helpers/base"
"github.com/AssetMantle/modules/modules/assets/internal/key"
"github.com/AssetMantle/modules/modules/assets/internal/mappable"
"github.com/AssetMantle/modules/modules/assets/internal/parameters"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/helpers/base"
)

func TestPrototype(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions modules/assets/internal/key/assetID.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

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

"github.com/persistenceOne/persistenceSDK/constants"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/module"
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/qualified/base"
"github.com/persistenceOne/persistenceSDK/schema/types"
codecUtilities "github.com/persistenceOne/persistenceSDK/utilities/codec"
"github.com/AssetMantle/modules/constants"
"github.com/AssetMantle/modules/modules/assets/internal/module"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/qualified/base"
"github.com/AssetMantle/modules/schema/types"
codecUtilities "github.com/AssetMantle/modules/utilities/codec"
)

type assetID struct {
Expand Down
6 changes: 3 additions & 3 deletions modules/assets/internal/key/assetID_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/constants"
baseTraits "github.com/persistenceOne/persistenceSDK/schema/qualified/base"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/constants"
baseTraits "github.com/AssetMantle/modules/schema/qualified/base"
"github.com/AssetMantle/modules/schema/types/base"
)

func Test_AssetID_Methods(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions modules/assets/internal/key/prototype.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package key

import (
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/types/base"
)

func Prototype() helpers.Key {
Expand Down
2 changes: 1 addition & 1 deletion modules/assets/internal/key/prototype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/schema/types/base"
)

func TestPrototype(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions modules/assets/internal/key/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ package key
import (
"strings"

"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/AssetMantle/modules/schema/helpers"

"github.com/persistenceOne/persistenceSDK/constants"
"github.com/persistenceOne/persistenceSDK/schema/types"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/constants"
"github.com/AssetMantle/modules/schema/types"
"github.com/AssetMantle/modules/schema/types/base"
)

func readAssetID(assetIDString string) types.ID {
Expand Down
4 changes: 2 additions & 2 deletions modules/assets/internal/key/utilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/constants"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/constants"
"github.com/AssetMantle/modules/schema/types/base"
)

func TestFromID(t *testing.T) {
Expand Down
18 changes: 9 additions & 9 deletions modules/assets/internal/mappable/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ package mappable
import (
"github.com/cosmos/cosmos-sdk/codec"

"github.com/persistenceOne/persistenceSDK/constants/ids"
"github.com/persistenceOne/persistenceSDK/constants/properties"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/key"
"github.com/persistenceOne/persistenceSDK/modules/assets/internal/module"
"github.com/persistenceOne/persistenceSDK/schema/helpers"
"github.com/persistenceOne/persistenceSDK/schema/mappables"
"github.com/persistenceOne/persistenceSDK/schema/qualified/base"
"github.com/persistenceOne/persistenceSDK/schema/types"
codecUtilities "github.com/persistenceOne/persistenceSDK/utilities/codec"
"github.com/AssetMantle/modules/constants/ids"
"github.com/AssetMantle/modules/constants/properties"
"github.com/AssetMantle/modules/modules/assets/internal/key"
"github.com/AssetMantle/modules/modules/assets/internal/module"
"github.com/AssetMantle/modules/schema/helpers"
"github.com/AssetMantle/modules/schema/mappables"
"github.com/AssetMantle/modules/schema/qualified/base"
"github.com/AssetMantle/modules/schema/types"
codecUtilities "github.com/AssetMantle/modules/utilities/codec"
)

type asset struct {
Expand Down
8 changes: 4 additions & 4 deletions modules/assets/internal/mappable/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ package mappable
import (
"testing"

"github.com/persistenceOne/persistenceSDK/constants/ids"
qualified2 "github.com/persistenceOne/persistenceSDK/schema/qualified/base"
"github.com/AssetMantle/modules/constants/ids"
qualified2 "github.com/AssetMantle/modules/schema/qualified/base"

"github.com/stretchr/testify/require"

"github.com/persistenceOne/persistenceSDK/modules/assets/internal/key"
"github.com/persistenceOne/persistenceSDK/schema/types/base"
"github.com/AssetMantle/modules/modules/assets/internal/key"
"github.com/AssetMantle/modules/schema/types/base"
)

func Test_Asset_Methods(t *testing.T) {
Expand Down
Loading

0 comments on commit 25d7a1f

Please sign in to comment.