Skip to content

Commit

Permalink
Merge pull request #64 from ixofoundation/develop
Browse files Browse the repository at this point in the history
Fix gitignore to not ignore codegen module folders
  • Loading branch information
Michael-Ixo authored Aug 6, 2024
2 parents 8b39f44 + 2c57191 commit 18464c8
Show file tree
Hide file tree
Showing 65 changed files with 2,030 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ pids
out

# dist
main
module
/main
/module

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
Expand Down Expand Up @@ -50,4 +50,4 @@ yarn.lock
# others
.DS_Store

.env
.env
24 changes: 12 additions & 12 deletions __tests__/flows/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const bankBasic = () =>
describe("Testing the cosmos bank module", () => {
testMsg("/cosmos.bank.v1beta1.MsgSend", async () => {
const res = await Cosmos.BankSendTrx(
100,
undefined,
WalletUsers.tester,
WalletUsers.alice,
"secp",
Expand All @@ -29,17 +29,17 @@ export const bankBasic = () =>
);
return res;
});
// testMsg("/cosmos.bank.v1beta1.MsgSend", async () => {
// const res = await Cosmos.BankSendTrx(
// 10000,
// WalletUsers.alice,
// WalletUsers.alice,
// "ed",
// "secp"
// // "ixo1kaluffrp0ncy3dlrerla3nd8v6zxwzmega3v7g"
// );
// return res;
// });
testMsg("/cosmos.bank.v1beta1.MsgSend", async () => {
const res = await Cosmos.BankSendTrx(
10000,
WalletUsers.alice,
WalletUsers.alice,
"ed",
"secp"
// "ixo1kaluffrp0ncy3dlrerla3nd8v6zxwzmega3v7g"
);
return res;
});
});

export const textProposalBasic = () =>
Expand Down
2 changes: 1 addition & 1 deletion __tests__/flows/iids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const generateBlockchainTestUsers = () => {
beforeAll(() =>
generateNewWallet(
WalletUsers.tester, // Miguel
"urge title veteran subway broccoli print popular cloth win girl search uncover"
"jungle brave person inmate dirt upset try rotate twin fossil grid border"
// process.env.ROOT_ECS!
)
);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ IID.generateBlockchainTestUsers();

// IID.registerIids();
// Proposals.instantiateModulesProposals();
Cosmos.bankBasic();
// Cosmos.bankBasic();
// IID.iidsBasic();
// Bonds.bondsBasic();
// Entity.enititiesBasic();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ixo/impactxclient-sdk",
"version": "2.0.0",
"version": "2.0.1",
"description": "One ixo client to rule them all, One ixo client to find, One ixo client to bring them all, and in impact bind them",
"author": "Ixo <ixo>",
"homepage": "https://github.com/ixofoundation/ixo-MultiClient-SDK#readme",
Expand Down
31 changes: 31 additions & 0 deletions proto/cosmos/auth/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package cosmos.auth.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object for the auth module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/auth"
};

// bech32_prefix is the bech32 account prefix for the app.
string bech32_prefix = 1;

// module_account_permissions are module account permissions.
repeated ModuleAccountPermission module_account_permissions = 2;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 3;
}

// ModuleAccountPermission represents permissions for a module account.
message ModuleAccountPermission {
// account is the name of the module.
string account = 1;

// permissions are the permissions this module has. Currently recognized
// values are minter, burner and staking.
repeated string permissions = 2;
}
12 changes: 12 additions & 0 deletions proto/cosmos/authz/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.authz.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the authz module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/authz"
};
}
26 changes: 26 additions & 0 deletions proto/cosmos/bank/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

package cosmos.bank.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the bank module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/bank"
};

// blocked_module_accounts_override configures exceptional module accounts which should be blocked from receiving
// funds. If left empty it defaults to the list of account names supplied in the auth module configuration as
// module_account_permissions
repeated string blocked_module_accounts_override = 1;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 2;

// restrictions_order specifies the order of send restrictions and should be
// a list of module names which provide a send restriction instance. If no
// order is provided, then restrictions will be applied in alphabetical order
// of module names.
repeated string restrictions_order = 3;
}
15 changes: 15 additions & 0 deletions proto/cosmos/circuit/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

package cosmos.circuit.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the circuit module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "cosmossdk.io/x/circuit"
};

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 1;
}
15 changes: 15 additions & 0 deletions proto/cosmos/consensus/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

package cosmos.consensus.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the consensus module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/consensus"
};

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 1;
}
18 changes: 18 additions & 0 deletions proto/cosmos/crisis/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package cosmos.crisis.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the crisis module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/crisis"
};

// fee_collector_name is the name of the FeeCollector ModuleAccount.
string fee_collector_name = 1;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 2;
}
17 changes: 17 additions & 0 deletions proto/cosmos/distribution/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";

package cosmos.distribution.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the distribution module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/distribution"
};

string fee_collector_name = 1;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 2;
}
12 changes: 12 additions & 0 deletions proto/cosmos/evidence/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.evidence.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the evidence module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "cosmossdk.io/x/evidence"
};
}
12 changes: 12 additions & 0 deletions proto/cosmos/feegrant/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.feegrant.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the feegrant module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "cosmossdk.io/x/feegrant"
};
}
12 changes: 12 additions & 0 deletions proto/cosmos/genutil/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.genutil.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object for the genutil module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/genutil"
};
}
19 changes: 19 additions & 0 deletions proto/cosmos/gov/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";

package cosmos.gov.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the gov module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/gov"
};

// max_metadata_len defines the maximum proposal metadata length.
// Defaults to 255 if not explicitly set.
uint64 max_metadata_len = 1;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 2;
}
24 changes: 24 additions & 0 deletions proto/cosmos/group/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
syntax = "proto3";

package cosmos.group.module.v1;

import "cosmos/app/v1alpha1/module.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "amino/amino.proto";

// Module is the config object of the group module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/group"
};

// max_execution_period defines the max duration after a proposal's voting period ends that members can send a MsgExec
// to execute the proposal.
google.protobuf.Duration max_execution_period = 1
[(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true];

// max_metadata_len defines the max length of the metadata bytes field for various entities within the group module.
// Defaults to 255 if not explicitly set.
uint64 max_metadata_len = 2;
}
17 changes: 17 additions & 0 deletions proto/cosmos/mint/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";

package cosmos.mint.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the mint module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/mint"
};

string fee_collector_name = 1;

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 2;
}
12 changes: 12 additions & 0 deletions proto/cosmos/nft/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.nft.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the nft module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "cosmossdk.io/x/nft"
};
}
14 changes: 14 additions & 0 deletions proto/cosmos/orm/module/v1alpha1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
syntax = "proto3";

package cosmos.orm.module.v1alpha1;

import "cosmos/app/v1alpha1/module.proto";

// Module defines the ORM module which adds providers to the app container for
// ORM ModuleDB's and in the future will automatically register query
// services for modules that use the ORM.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "cosmossdk.io/orm"
};
}
12 changes: 12 additions & 0 deletions proto/cosmos/params/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";

package cosmos.params.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the params module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/params"
};
}
15 changes: 15 additions & 0 deletions proto/cosmos/slashing/module/v1/module.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

package cosmos.slashing.module.v1;

import "cosmos/app/v1alpha1/module.proto";

// Module is the config object of the slashing module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/slashing"
};

// authority defines the custom module authority. If not set, defaults to the governance module.
string authority = 1;
}
Loading

0 comments on commit 18464c8

Please sign in to comment.