Skip to content

Commit 48f4dcd

Browse files
committed
Update publishing and schema scripts
1 parent 77e480b commit 48f4dcd

44 files changed

Lines changed: 786 additions & 5878 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

framework/justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ migrate +CHAINS:
5454
just run-script migrate {{CHAINS}}
5555

5656
publish-schemas version:
57-
SCHEMA_OUT_DIR=$(cd ../schemas && echo "$PWD") \
57+
SCHEMA_OUT_DIR=$(cd ../../schemas && echo "$PWD") \
5858
VERSION={{version}} \
5959
cargo ws exec --no-bail bash -lc 'cargo schema && { outdir="$SCHEMA_OUT_DIR/abstract/${PWD##*/}/$VERSION"; mkdir -p "$outdir"; rm -rf "schema/raw"; cp -a "schema/." "$outdir"; }'
6060

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[alias]
22
wasm = "build --release --target wasm32-unknown-unknown"
33
unit-test = "test --lib"
4-
schema = "run --example schema"
5-
deploy = "run --example deploy"
4+
schema = "run --example schema --features schema"
5+
deploy = "run --example deploy --features interface"

modules/contracts/adapters/cw-staking/schema/module-schema.json

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"contract_name": "module-schema",
3-
"contract_version": "0.17.0",
3+
"contract_version": "0.18.0",
44
"idl_version": "1.0.0",
55
"instantiate": {
66
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -382,7 +382,7 @@
382382
"title": "StakingInfoResponse",
383383
"type": "object",
384384
"required": [
385-
"staking_contract_address",
385+
"staking_target",
386386
"staking_token"
387387
],
388388
"properties": {
@@ -394,8 +394,8 @@
394394
"format": "uint32",
395395
"minimum": 0.0
396396
},
397-
"staking_contract_address": {
398-
"$ref": "#/definitions/Addr"
397+
"staking_target": {
398+
"$ref": "#/definitions/StakingTarget"
399399
},
400400
"staking_token": {
401401
"$ref": "#/definitions/AssetInfoBase_for_Addr"
@@ -478,6 +478,37 @@
478478
"additionalProperties": false
479479
}
480480
]
481+
},
482+
"StakingTarget": {
483+
"description": "Possible staking targets to support staking on cosmwasm contract or cosmos Lockup module",
484+
"oneOf": [
485+
{
486+
"type": "object",
487+
"required": [
488+
"contract"
489+
],
490+
"properties": {
491+
"contract": {
492+
"$ref": "#/definitions/Addr"
493+
}
494+
},
495+
"additionalProperties": false
496+
},
497+
{
498+
"type": "object",
499+
"required": [
500+
"id"
501+
],
502+
"properties": {
503+
"id": {
504+
"type": "integer",
505+
"format": "uint64",
506+
"minimum": 0.0
507+
}
508+
},
509+
"additionalProperties": false
510+
}
511+
]
481512
}
482513
}
483514
},

modules/contracts/adapters/cw-staking/schema/raw/execute.json

Lines changed: 0 additions & 197 deletions
This file was deleted.

modules/contracts/adapters/cw-staking/schema/raw/instantiate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

modules/contracts/adapters/cw-staking/schema/raw/migrate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)