Skip to content

Commit

Permalink
Fix schema and types
Browse files Browse the repository at this point in the history
  • Loading branch information
tasiov committed Oct 1, 2023
1 parent 7d7594b commit 5d63e73
Show file tree
Hide file tree
Showing 19 changed files with 210 additions and 4,672 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/infinity-builder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-builder"
version = "0.1.0"
version = "0.1.1"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
6 changes: 5 additions & 1 deletion contracts/infinity-builder/schema/infinity-builder.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"contract_name": "infinity-builder",
"contract_version": "0.1.0",
"contract_version": "0.1.1",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"required": [
"code_ids",
"default_royalty_fee_percent",
"fair_burn",
"fair_burn_fee_percent",
"marketplace",
Expand All @@ -27,6 +28,9 @@
"code_ids": {
"$ref": "#/definitions/CodeIds"
},
"default_royalty_fee_percent": {
"$ref": "#/definitions/Decimal"
},
"fair_burn": {
"type": "string"
},
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-factory/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-factory"
version = "0.1.1"
version = "0.1.2"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-factory/schema/infinity-factory.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-factory",
"contract_version": "0.1.1",
"contract_version": "0.1.2",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-global/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-global"
version = "0.1.1"
version = "0.1.2"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
20 changes: 19 additions & 1 deletion contracts/infinity-global/schema/infinity-global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-global",
"contract_version": "0.1.1",
"contract_version": "0.1.2",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down Expand Up @@ -45,6 +45,7 @@
"GlobalConfig_for_String": {
"type": "object",
"required": [
"default_royalty_fee_percent",
"fair_burn",
"fair_burn_fee_percent",
"infinity_factory",
Expand All @@ -58,6 +59,14 @@
"royalty_registry"
],
"properties": {
"default_royalty_fee_percent": {
"description": "The royalty percentage amount to be paid when no royalty is specified for the protocol",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
},
"fair_burn": {
"description": "The address of the FairBurn contract",
"type": "string"
Expand Down Expand Up @@ -183,6 +192,7 @@
"title": "GlobalConfig_for_Addr",
"type": "object",
"required": [
"default_royalty_fee_percent",
"fair_burn",
"fair_burn_fee_percent",
"infinity_factory",
Expand All @@ -196,6 +206,14 @@
"royalty_registry"
],
"properties": {
"default_royalty_fee_percent": {
"description": "The royalty percentage amount to be paid when no royalty is specified for the protocol",
"allOf": [
{
"$ref": "#/definitions/Decimal"
}
]
},
"fair_burn": {
"description": "The address of the FairBurn contract",
"allOf": [
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-index/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-index"
version = "0.1.1"
version = "0.1.2"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-index/schema/infinity-index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-index",
"contract_version": "0.1.1",
"contract_version": "0.1.2",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-pair/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-pair"
version = "0.1.1"
version = "0.1.2"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-pair/schema/infinity-pair.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-pair",
"contract_version": "0.1.1",
"contract_version": "0.1.2",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-router/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "infinity-router"
version = "0.1.2"
version = "0.1.3"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion contracts/infinity-router/schema/infinity-router.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "infinity-router",
"contract_version": "0.1.2",
"contract_version": "0.1.3",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@cosmjs/proto-signing": "^0.31.0",
"@cosmjs/stargate": "^0.31.0",
"@stargazezone/core-types": "0.1.0",
"@stargazezone/infinity-types": "0.8.0",
"@stargazezone/infinity-types": "0.10.0",
"@stargazezone/launchpad": "^2.3.3",
"@types/jest": "^29.5.2",
"axios": "^1.4.0",
Expand Down
1 change: 1 addition & 0 deletions typescript/packages/e2e-tests/tests/setup/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default class Context {
fair_burn: fairBurnAddress,
fair_burn_fee_percent: '0.005',
marketplace: marketplaceAddress,
default_royalty_fee_percent: '0.005',
max_royalty_fee_percent: '0.05',
max_swap_fee_percent: '0.10',
min_prices: [{ amount: '1000000', denom: 'ustars' }],
Expand Down
2 changes: 1 addition & 1 deletion typescript/packages/infinity-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stargazezone/infinity-types",
"version": "0.9.0",
"version": "0.11.0",
"description": "The official types package for the Infinity Swap protocol",
"author": "Tasio Victoria",
"homepage": "https://stargaze.zone/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type Uint128 = string;
export interface InstantiateMsg {
admin?: string | null;
code_ids: CodeIds;
default_royalty_fee_percent: Decimal;
fair_burn: string;
fair_burn_fee_percent: Decimal;
marketplace: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface InstantiateMsg {
min_prices: Coin[];
}
export interface GlobalConfigForString {
default_royalty_fee_percent: Decimal;
fair_burn: string;
fair_burn_fee_percent: Decimal;
infinity_factory: string;
Expand Down Expand Up @@ -40,6 +41,7 @@ export type QueryMsg = {
};
export type Addr = string;
export interface GlobalConfigForAddr {
default_royalty_fee_percent: Decimal;
fair_burn: Addr;
fair_burn_fee_percent: Decimal;
infinity_factory: Addr;
Expand Down
Loading

0 comments on commit 5d63e73

Please sign in to comment.