Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: master -> dev-orchestration #9038

Merged
merged 53 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
3d13c09
feat!: make Network and IBC vats durable (#8721)
iomekam Feb 29, 2024
f45a0f5
lint: loosen for .d.ts
turadg Feb 16, 2024
0be5be3
chore(deps): pin tsx
turadg Feb 28, 2024
bd0e567
lint: void unhandled when
turadg Feb 28, 2024
c57996a
lint: for loop
turadg Feb 28, 2024
9975f38
chore: telescope generate
turadg Feb 15, 2024
7aa4049
chore: match existing cosmic-proto (until replacing)
turadg Feb 15, 2024
317defa
build: ts-nocheck for 'util' package
turadg Feb 28, 2024
4cfc9eb
test: Ava with TypeScript
turadg Feb 15, 2024
d2467e7
build: ESM compat
turadg Feb 15, 2024
733d5c7
build: source protos without symlink
turadg Feb 20, 2024
2323213
chore: revise bad generation https://github.com/cosmology-tech/telesc…
turadg Feb 15, 2024
4250edf
chore: tweak Telescope config (no change in output)
turadg Feb 16, 2024
babf2e1
chore: replace cosmic-proto with Telescope version
turadg Feb 16, 2024
f122002
chore: drop CJS
turadg Feb 28, 2024
446262b
chore(deps): bump @cosmjs/*
turadg Feb 26, 2024
ca28da0
chore(deps): bump @confio/relayer
turadg Feb 26, 2024
3a55025
build: separate tsconfig so lint doesn't build
turadg Feb 23, 2024
6c3b571
chore: yarn codegen
turadg Feb 17, 2024
1e8d923
build: ignore output
turadg Feb 27, 2024
55ae8c8
build: export swingset/swingset.js
turadg Feb 27, 2024
b7bbc85
feat: SES compatibility
turadg Feb 26, 2024
d967a9c
test: exports
turadg Feb 15, 2024
7c75d76
test: integration with Emerynet
turadg Feb 16, 2024
f65ca3e
chore(deps): override protobufjs version
turadg Feb 26, 2024
66955c1
fix(sim-params): power_flag casing
turadg Feb 28, 2024
6598319
feat: use HTTP to fetch SwingSet Params
turadg Feb 17, 2024
5f19df9
refactor: use new cosmic-proto
turadg Feb 16, 2024
db6cdef
docs: document only what works in tests
turadg Feb 29, 2024
072c457
Merge pull request #8931 from Agoric/8917-telescope
mergify[bot] Feb 29, 2024
f33b371
8868 gen submissions (#9009)
Chris-Hibbert Feb 29, 2024
5500554
feat: move specification of generated submission files to proposals
Chris-Hibbert Feb 28, 2024
e6b53e7
feat: refactor ZoeSeat to drop cyclic structure that blocked GC
Chris-Hibbert Dec 20, 2023
bdf582e
chore: deduplicate Interface guards for zoeSeat and originalZoeSeat
Chris-Hibbert Dec 28, 2023
5d5722f
feat: when zcfSeats exit or fail, delete objects holding cycles (#8697)
Chris-Hibbert Jan 2, 2024
7a91d1f
Merge pull request #8682 from Agoric/8672-acyclicZoeSeatKit
mergify[bot] Mar 1, 2024
26bbc2f
feat: allow creators/revivors of Issuers to decline recoverySets
Chris-Hibbert Feb 29, 2024
9eb20a4
feat: disable recoverSets in priceAuthority and fluxAggregator
Chris-Hibbert Feb 29, 2024
aa4b7db
docs: clarification on adding the ability to convert issuers
Chris-Hibbert Mar 1, 2024
de159f2
Merge pull request #9013 from Agoric/8400-recoverySets-nonIncremental
mergify[bot] Mar 1, 2024
35e62c4
docs(network): scrub TODOs
dckc Feb 23, 2024
6136a64
docs(network): networkVat powers are to be shared via Ports
dckc Feb 23, 2024
fd864a4
Merge pull request #8979 from Agoric/dc-net-power-docs
mergify[bot] Mar 2, 2024
6efe80a
feat(ibc): support async IBC version negotiation when present
michaelfig Mar 4, 2024
739c509
fix(vibc): propagate `Relayer` account address
michaelfig Mar 4, 2024
fff392b
build(cosmos): add `ibc-go` fork and `go mod tidy`
michaelfig Mar 4, 2024
ca5933c
feat(vibc): add `AsyncVersions` flag anticipating `ibc-go`
michaelfig Mar 4, 2024
80e450a
refactor(vibc): split into more granular objects
michaelfig Dec 15, 2023
b89aaca
feat(vibc): use triggers to raise targeted events
michaelfig Jan 1, 2024
c2b36dc
chore(cosmos): make `ActionHeader` a mutable pointer target
michaelfig Jan 6, 2024
cdf36d1
Merge pull request #9030 from Agoric/mfig-ibc-revamp
mergify[bot] Mar 5, 2024
c268687
ci(after-merge): handle uncommitted changes and report on failures
michaelfig Mar 3, 2024
c5284e4
Merge pull request #9028 from Agoric/mfig-8945-dev-canary
mergify[bot] Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ packages/stat-logger
**/vars.tf
**/*.log
**/dist
!packages/cosmic-proto/dist
**/build
**/bundles
**/__pycache__
Expand Down
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ module.exports = {
'no-undef': 'off',
},
},
{
files: ['*.d.ts'],
rules: {
// Irrelevant in a typedef
'no-use-before-define': 'off',
// Linter confuses the type declaration with value declaration
'no-redeclare': 'off',
},
},
{
// disable type-aware linting in HTML
files: ['*.html'],
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/after-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,22 @@ jobs:
TAG=other-dev
;;
esac
# Prevent `lerna publish` from failing due to uncommitted changes.
git stash
# without concurrency until https://github.com/Agoric/agoric-sdk/issues/8091
yarn lerna publish --concurrency 1 --conventional-prerelease --canary --exact \
--dist-tag=$TAG --preid=$TAG-$(git rev-parse --short=7 HEAD) \
--no-push --no-verify-access --yes
# restore the stashed changes for caching
git stash apply
- name: notify on failure
if: failure()
uses: ./.github/actions/notify-status
with:
from: ${{ secrets.NOTIFY_EMAIL_FROM }}
to: ${{ secrets.NOTIFY_EMAIL_TO }}
password: ${{ secrets.NOTIFY_EMAIL_PASSWORD }}
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

coverage:
needs: build
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ bundles
bundle-*.js
compiled
dist
!packages/cosmic-proto/dist
api-docs

# misc
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ public

# copied from upstream
/packages/xsnap/lib/object-inspect.js

9 changes: 8 additions & 1 deletion a3p-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ make -C ../packages/deployment docker-build-sdk

## Generating core-eval submissions

Some core-eval proposals `submission` content are generated from the `agoric-sdk` code, and must be rebuilt every time there is a change. The `/scripts/generate-a3p-submission.sh` script contains commands to generate the core-eval content and move it to the expected proposal package's `submission` folder. It is executed as part of `a3p-integration`'s `build:submission` step.
Some core-eval proposals `submission` content are generated from the `agoric-sdk`
code, and must be rebuilt every time there is a change. The
`/scripts/generate-a3p-submission.sh` script contains commands to generate the
core-eval content and move it to the expected proposal package's submission
directory. It is executed as part of `a3p-integration`'s `build:submission` step.
Each proposal that requires such a build step should add a `build:submission`
rule in its package.json to specify the details of proposals that require a
build step.

## Building synthetic-chain images

Expand Down
2 changes: 1 addition & 1 deletion a3p-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "yarn run build:sdk && yarn run build:submission && yarn run build:synthetic-chain",
"build:sdk": "make -C ../packages/deployment docker-build-sdk",
"build:submission": "../scripts/generate-a3p-submission.sh",
"build:submission": "../scripts/generate-a3p-submission-dir.sh",
"build:synthetic-chain": "yarn synthetic-chain build",
"test": "yarn synthetic-chain test",
"doctor": "yarn synthetic-chain doctor"
Expand Down
4 changes: 3 additions & 1 deletion a3p-integration/proposals/a:upgrade-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"upgradeInfo": {
"coreProposals": []
},
"sdk-generate": [ "probe-zcf-bundle probeZcfBundle probe-submission" ],
"type": "Software Upgrade Proposal"
},
"type": "module",
Expand All @@ -23,7 +24,8 @@
]
},
"scripts": {
"agops": "yarn --cwd /usr/src/agoric-sdk/ --silent agops"
"agops": "yarn --cwd /usr/src/agoric-sdk/ --silent agops",
"build:submission": "../../../scripts/generate-a3p-submission.sh probe-zcf-bundle a:upgrade-next probeZcfBundle probe-submission"
},
"packageManager": "yarn@4.1.0"
}
4 changes: 3 additions & 1 deletion a3p-integration/proposals/b:localchain/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
CoreEvalProposal to install vat-localchain

The `submission` for the proposal is automatically generated during `yarn build` in `a3p-integration` using the code in agoric-sdk through `script/generate-a3p-submission.sh`.
The `submission` for the proposal is automatically generated during `yarn build`
in `a3p-integration` using the code in agoric-sdk through
`script/generate-a3p-submission-dirs.sh`. and `script/generate-a3p-submission.sh`
6 changes: 5 additions & 1 deletion a3p-integration/proposals/b:localchain/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"agoricProposal": {
"type": "/agoric.swingset.CoreEvalProposal",
"source": "subdir"
"source": "subdir",
"sdk-generate": [ "test-localchain" ]
},
"type": "module",
"license": "Apache-2.0",
Expand All @@ -16,5 +17,8 @@
"!submission"
]
},
"scripts": {
"build:submission": "../../../scripts/generate-a3p-submission.sh test-localchain b:localchain"
},
"packageManager": "yarn@4.1.0"
}
2 changes: 1 addition & 1 deletion bin/agd
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if $need_nodejs; then
esac
fi

(
${NO_BUILD:-false} || (
# Send the build output to stderr unless we're only building. This prevents
# the daemon's stdout from being polluted with build output.
$only_build || exec 1>&2
Expand Down
11 changes: 4 additions & 7 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,16 +502,13 @@ func NewAgoricApp(
)

app.VibcKeeper = vibc.NewKeeper(
appCodec, keys[vibc.StoreKey],
appCodec,
app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
app.BankKeeper,
scopedVibcKeeper,
app.SwingSetKeeper.PushAction,
)
).WithScope(keys[vibc.StoreKey], scopedVibcKeeper, app.SwingSetKeeper.PushAction)

vibcModule := vibc.NewAppModule(app.VibcKeeper)
vibcModule := vibc.NewAppModule(app.VibcKeeper, app.BankKeeper)
vibcIBCModule := vibc.NewIBCModule(app.VibcKeeper)
app.vibcPort = vm.RegisterPortHandler("vibc", vibcIBCModule)
app.vibcPort = vm.RegisterPortHandler("vibc", vibc.NewReceiver(app.VibcKeeper))

app.VbankKeeper = vbank.NewKeeper(
appCodec, keys[vbank.StoreKey], app.GetSubspace(vbank.ModuleName),
Expand Down
19 changes: 13 additions & 6 deletions golang/cosmos/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/Agoric/agoric-sdk/golang/cosmos
go 1.20

require (
cosmossdk.io/errors v1.0.0-beta.7
cosmossdk.io/math v1.0.0-rc.0
github.com/armon/go-metrics v0.4.1
github.com/cosmos/cosmos-sdk v0.46.16
Expand Down Expand Up @@ -31,7 +32,6 @@ require (
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
Expand Down Expand Up @@ -169,9 +169,6 @@ replace (

github.com/confio/ics23/go => github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1

// We need a fork of cosmos-sdk until all of the differences are merged.
github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2

// https://pkg.go.dev/vuln/GO-2023-2409
github.com/dvsekhvalnov/jose2go => github.com/dvsekhvalnov/jose2go v1.5.1-0.20231206184617-48ba0b76bc88

Expand All @@ -185,13 +182,23 @@ replace (

// replace broken goleveldb.
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)

// Agoric-specific replacements:
replace (
// We need a fork of cosmos-sdk until all of the differences are merged.
github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2

// Async version negotiation
github.com/cosmos/ibc-go/v6 => github.com/agoric-labs/ibc-go/v6 v6.2.1-alpha.agoric.3

// use cometbft
// Use our fork at least until post-v0.34.14 is released with
// https://github.com/tendermint/tendermint/issue/6899 resolved.
github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.30-alpha.agoric.1

// For testing against a local cosmos-sdk or tendermint
// For testing against a local cosmos-sdk, ibc-go, or cometbft
// github.com/cosmos/cosmos-sdk => ../../../forks/cosmos-sdk
// github.com/tendermint/tendermint => ../../../forks/tendermint
// github.com/cosmos/ibc-go/v6 => ../../../forks/ibc-go/v6
// github.com/tendermint/tendermint => ../../../forks/cometbft
)
4 changes: 2 additions & 2 deletions golang/cosmos/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2 h1:iHHqpYC0JzMbH4UYnQr
github.com/agoric-labs/cosmos-sdk v0.46.16-alpha.agoric.2/go.mod h1:zUe5lsg/X7SeSO1nGkzOh9EGKO295szfrxIxYmeLYic=
github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1 h1:2jvHI/2d+psWAZy6FQ0vXJCHUtfU3ZbbW+pQFL04arQ=
github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg=
github.com/agoric-labs/ibc-go/v6 v6.2.1-alpha.agoric.3 h1:YqvVwK+Lg/ZsuwyVm9UbPs8K55fg00R3Y9KnmaTBdgc=
github.com/agoric-labs/ibc-go/v6 v6.2.1-alpha.agoric.3/go.mod h1:V9NOCRS9RPkSJNJQIPRAjZn/lo2mCAAKOSv3/83ISDY=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
Expand Down Expand Up @@ -380,8 +382,6 @@ github.com/cosmos/iavl v0.19.6 h1:XY78yEeNPrEYyNCKlqr9chrwoeSDJ0bV2VjocTk//OU=
github.com/cosmos/iavl v0.19.6/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 v6.1.1 h1:2geCtV4PoNPeRnVc0HMAcRcv+7W3Mvk2nmASkGkOdzE=
github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6 v6.1.1/go.mod h1:ovYRGX7P7Vq0D54JIVlIm/47STEKgWJfw9frvL0AWGQ=
github.com/cosmos/ibc-go/v6 v6.2.1 h1:NiaDXTRhKwf3n9kELD4VRIe5zby1yk1jBvaz9tXTQ6k=
github.com/cosmos/ibc-go/v6 v6.2.1/go.mod h1:XLsARy4Y7+GtAqzMcxNdlQf6lx+ti1e8KcMGv5NIK7A=
github.com/cosmos/keyring v1.2.0 h1:8C1lBP9xhImmIabyXW4c3vFjjLiBdGCmfLUfeZlV1Yo=
github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA=
github.com/cosmos/ledger-cosmos-go v0.12.4 h1:drvWt+GJP7Aiw550yeb3ON/zsrgW0jgh5saFCr7pDnw=
Expand Down
20 changes: 10 additions & 10 deletions golang/cosmos/x/swingset/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ import (
)

type beginBlockAction struct {
vm.ActionHeader `actionType:"BEGIN_BLOCK"`
ChainID string `json:"chainID"`
Params types.Params `json:"params"`
*vm.ActionHeader `actionType:"BEGIN_BLOCK"`
ChainID string `json:"chainID"`
Params types.Params `json:"params"`
}

type endBlockAction struct {
vm.ActionHeader `actionType:"END_BLOCK"`
*vm.ActionHeader `actionType:"END_BLOCK"`
}

type commitBlockAction struct {
vm.ActionHeader `actionType:"COMMIT_BLOCK"`
*vm.ActionHeader `actionType:"COMMIT_BLOCK"`
}

type afterCommitBlockAction struct {
vm.ActionHeader `actionType:"AFTER_COMMIT_BLOCK"`
*vm.ActionHeader `actionType:"AFTER_COMMIT_BLOCK"`
}

func BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock, keeper Keeper) error {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyBeginBlocker)

action := &beginBlockAction{
action := beginBlockAction{
ChainID: ctx.ChainID(),
Params: keeper.GetParams(ctx),
}
Expand All @@ -56,7 +56,7 @@ var endBlockTime int64
func EndBlock(ctx sdk.Context, req abci.RequestEndBlock, keeper Keeper) ([]abci.ValidatorUpdate, error) {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyEndBlocker)

action := &endBlockAction{}
action := endBlockAction{}
_, err := keeper.BlockingSend(ctx, action)

// fmt.Fprintf(os.Stderr, "END_BLOCK Returned from SwingSet: %s, %v\n", out, err)
Expand All @@ -83,7 +83,7 @@ func getEndBlockContext() sdk.Context {
func CommitBlock(keeper Keeper) error {
defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), "commit_blocker")

action := &commitBlockAction{}
action := commitBlockAction{}
_, err := keeper.BlockingSend(getEndBlockContext(), action)

// fmt.Fprintf(os.Stderr, "COMMIT_BLOCK Returned from SwingSet: %s, %v\n", out, err)
Expand All @@ -98,7 +98,7 @@ func CommitBlock(keeper Keeper) error {
func AfterCommitBlock(keeper Keeper) error {
// defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), "commit_blocker")

action := &afterCommitBlockAction{}
action := afterCommitBlockAction{}
_, err := keeper.BlockingSend(getEndBlockContext(), action)

// fmt.Fprintf(os.Stderr, "AFTER_COMMIT_BLOCK Returned from SwingSet: %s, %v\n", out, err)
Expand Down
Loading
Loading