@agoric/cosmos 0.35.0-u15.0 → 0.35.0-u16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -149
- package/MAINTAINERS.md +3 -0
- package/Makefile +36 -26
- package/ante/ante.go +6 -5
- package/ante/inbound_test.go +3 -2
- package/ante/vm_admission.go +2 -1
- package/app/app.go +206 -147
- package/app/upgrade.go +76 -0
- package/cmd/agd/agvm.go +42 -0
- package/cmd/agd/main.go +130 -11
- package/cmd/libdaemon/main.go +64 -53
- package/cmd/libdaemon/main_test.go +2 -1
- package/daemon/cmd/root.go +164 -74
- package/daemon/cmd/root_test.go +189 -1
- package/daemon/main.go +4 -2
- package/e2e_test/Makefile +29 -0
- package/e2e_test/README.md +100 -0
- package/e2e_test/go.mod +217 -0
- package/e2e_test/go.sum +1323 -0
- package/e2e_test/ibc_conformance_test.go +56 -0
- package/e2e_test/pfm_test.go +613 -0
- package/e2e_test/util.go +271 -0
- package/git-revision.txt +1 -1
- package/go.mod +12 -7
- package/go.sum +13 -9
- package/package.json +8 -4
- package/proto/agoric/swingset/genesis.proto +4 -0
- package/proto/agoric/swingset/swingset.proto +1 -1
- package/proto/agoric/vlocalchain/.clang-format +7 -0
- package/proto/agoric/vlocalchain/vlocalchain.proto +31 -0
- package/proto/agoric/vtransfer/genesis.proto +18 -0
- package/scripts/protocgen.sh +7 -8
- package/types/kv_entry_helpers.go +42 -0
- package/upgradegaia.sh +8 -8
- package/vm/action.go +5 -4
- package/vm/action_test.go +31 -11
- package/vm/client.go +113 -0
- package/vm/client_test.go +182 -0
- package/vm/controller.go +17 -40
- package/vm/core_proposals.go +22 -2
- package/vm/jsonrpcconn/jsonrpcconn.go +160 -0
- package/vm/jsonrpcconn/jsonrpcconn_test.go +126 -0
- package/vm/proto_json.go +38 -0
- package/vm/proto_json_test.go +103 -0
- package/vm/server.go +124 -0
- package/x/swingset/abci.go +10 -10
- package/x/swingset/alias.go +2 -0
- package/x/swingset/client/cli/tx.go +4 -0
- package/x/swingset/genesis.go +84 -24
- package/x/swingset/handler.go +2 -1
- package/x/swingset/keeper/extension_snapshotter.go +2 -2
- package/x/swingset/keeper/keeper.go +13 -25
- package/x/swingset/keeper/msg_server.go +18 -18
- package/x/swingset/keeper/proposal.go +3 -3
- package/x/swingset/keeper/querier.go +12 -11
- package/x/swingset/keeper/swing_store_exports_handler.go +16 -5
- package/x/swingset/keeper/test_utils.go +16 -0
- package/x/swingset/module.go +7 -7
- package/x/swingset/proposal_handler.go +2 -1
- package/x/swingset/testing/queue.go +17 -0
- package/x/swingset/types/default-params.go +1 -1
- package/x/swingset/types/expected_keepers.go +3 -2
- package/x/swingset/types/genesis.pb.go +78 -25
- package/x/swingset/types/msgs.go +44 -24
- package/x/swingset/types/params.go +2 -1
- package/x/swingset/types/proposal.go +5 -4
- package/x/swingset/types/swingset.pb.go +1 -1
- package/x/vbank/genesis.go +0 -2
- package/x/vbank/handler.go +2 -1
- package/x/vbank/keeper/querier.go +4 -3
- package/x/vbank/module.go +0 -5
- package/x/vbank/types/msgs.go +0 -12
- package/x/vbank/vbank.go +9 -9
- package/x/vbank/vbank_test.go +2 -2
- package/x/vibc/alias.go +3 -0
- package/x/vibc/handler.go +16 -9
- package/x/vibc/keeper/keeper.go +102 -65
- package/x/vibc/keeper/triggers.go +101 -0
- package/x/vibc/module.go +5 -8
- package/x/vibc/types/expected_keepers.go +13 -0
- package/x/vibc/types/ibc_module.go +336 -0
- package/x/vibc/types/receiver.go +170 -0
- package/x/vlocalchain/alias.go +19 -0
- package/x/vlocalchain/handler.go +21 -0
- package/x/vlocalchain/keeper/keeper.go +279 -0
- package/x/vlocalchain/keeper/keeper_test.go +97 -0
- package/x/vlocalchain/types/codec.go +34 -0
- package/x/vlocalchain/types/key.go +27 -0
- package/x/vlocalchain/types/msgs.go +16 -0
- package/x/vlocalchain/types/vlocalchain.pb.go +1072 -0
- package/x/vlocalchain/vlocalchain.go +114 -0
- package/x/vlocalchain/vlocalchain_test.go +434 -0
- package/x/vstorage/handler.go +2 -1
- package/x/vstorage/keeper/grpc_query.go +0 -1
- package/x/vstorage/keeper/keeper.go +13 -20
- package/x/vstorage/keeper/querier.go +6 -5
- package/x/vstorage/keeper/querier_test.go +4 -3
- package/x/vstorage/module.go +0 -5
- package/x/vstorage/testing/queue.go +27 -0
- package/x/vtransfer/alias.go +13 -0
- package/x/vtransfer/genesis.go +39 -0
- package/x/vtransfer/genesis_test.go +12 -0
- package/x/vtransfer/handler.go +20 -0
- package/x/vtransfer/ibc_middleware.go +186 -0
- package/x/vtransfer/ibc_middleware_test.go +448 -0
- package/x/vtransfer/keeper/keeper.go +281 -0
- package/x/vtransfer/module.go +124 -0
- package/x/vtransfer/types/expected_keepers.go +38 -0
- package/x/vtransfer/types/genesis.pb.go +327 -0
- package/x/vtransfer/types/key.go +9 -0
- package/x/vtransfer/types/msgs.go +9 -0
- package/proto/agoric/lien/genesis.proto +0 -25
- package/proto/agoric/lien/lien.proto +0 -25
- package/x/lien/alias.go +0 -17
- package/x/lien/genesis.go +0 -58
- package/x/lien/genesis_test.go +0 -101
- package/x/lien/keeper/account.go +0 -290
- package/x/lien/keeper/keeper.go +0 -255
- package/x/lien/keeper/keeper_test.go +0 -623
- package/x/lien/lien.go +0 -205
- package/x/lien/lien_test.go +0 -533
- package/x/lien/module.go +0 -115
- package/x/lien/spec/01_concepts.md +0 -146
- package/x/lien/spec/02_messages.md +0 -96
- package/x/lien/types/accountkeeper.go +0 -81
- package/x/lien/types/accountstate.go +0 -27
- package/x/lien/types/expected_keepers.go +0 -18
- package/x/lien/types/genesis.pb.go +0 -567
- package/x/lien/types/key.go +0 -25
- package/x/lien/types/lien.pb.go +0 -403
- package/x/vibc/ibc.go +0 -394
package/CHANGELOG.md
CHANGED
|
@@ -3,172 +3,144 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [0.35.0-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* upgrade zcf: install bundle and call updateZcfBundleId() ([74662d7](https://github.com/Agoric/agoric-sdk/commit/74662d73c0c213cbb537d7ff20e24fc31f35656d)), closes [#9250](https://github.com/Agoric/agoric-sdk/issues/9250)
|
|
12
|
-
* **cosmos:** Next upgrade is `agoric-upgrade-15` ([6a84bb1](https://github.com/Agoric/agoric-sdk/commit/6a84bb15b436a9f1f1556604028d029ef2190a8d))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* various fixes and features for u15 ([21e6f7c](https://github.com/Agoric/agoric-sdk/commit/21e6f7c7c36250d1cc270d97fada5590e8ae3a7f))
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## [0.35.0-u14.1](https://github.com/gibson042/agoric-sdk/compare/@agoric/cosmos@0.35.0-u14.0...@agoric/cosmos@0.35.0-u14.1) (2024-03-12)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Features
|
|
25
|
-
|
|
26
|
-
* **cosmos:** add agorictest-upgrade-14-rc1 upgrade name ([f6e8731](https://github.com/gibson042/agoric-sdk/commit/f6e873145f0c064b7714db30765ad7ce3b755075))
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### Bug Fixes
|
|
30
|
-
|
|
31
|
-
* eliminate fee double-charge by using configurable decorator ([65d5eef](https://github.com/gibson042/agoric-sdk/commit/65d5eeffe8fdb70fb939eb0c4cbcbb68abdc9326))
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
## [0.35.0-u14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u13.0...@agoric/cosmos@0.35.0-u14.0) (2024-02-27)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### ⚠ BREAKING CHANGES
|
|
39
|
-
|
|
40
|
-
* **cosmos:** make vm comms use `context.Context`
|
|
41
|
-
|
|
42
|
-
### Features
|
|
43
|
-
|
|
44
|
-
* repair KREAd contract on zoe upgrade ([6ac7623](https://github.com/Agoric/agoric-sdk/commit/6ac762379e2660353a23202acd2d6fb52ed13682))
|
|
45
|
-
* **cosmos:** Add a "CapData" vstorage RPC endpoint ([d20e708](https://github.com/Agoric/agoric-sdk/commit/d20e708cf68e6b0616218e668f21f66b491032b5)), closes [#7581](https://github.com/Agoric/agoric-sdk/issues/7581)
|
|
46
|
-
* **cosmos:** Add a vstorage package for decoding CapData ([f1b6b74](https://github.com/Agoric/agoric-sdk/commit/f1b6b74d6410412d86f094175fca72e2e17e8a2b))
|
|
47
|
-
* **cosmos:** clean up `OnStartHook` and `OnExitHook` signatures ([e8a3a77](https://github.com/Agoric/agoric-sdk/commit/e8a3a77aacab4affa7e83885ece8789418a31846))
|
|
48
|
-
* **cosmos:** make vm comms use `context.Context` ([0bb03a0](https://github.com/Agoric/agoric-sdk/commit/0bb03a0f222426bf8da6729d968c404dc9e72468))
|
|
49
|
-
* agd vstorage 'path' for data or children ([71a217e](https://github.com/Agoric/agoric-sdk/commit/71a217e5a3576b6e8e89fb27e59eb7f2ebde592b))
|
|
50
|
-
* **cosmos:** Always include alleged name and slot id in vstorage CapData remotable representations ([ee23c4e](https://github.com/Agoric/agoric-sdk/commit/ee23c4e404d90afaa28dbf53dfdb33cb9c3eda1b))
|
|
51
|
-
* expose node service to retrieve operator config ([972d243](https://github.com/Agoric/agoric-sdk/commit/972d243eff2bf1eb0ca10f8a9860109a5a39cf87))
|
|
52
|
-
* replace zoe and zcf ([#8846](https://github.com/Agoric/agoric-sdk/issues/8846)) ([0169c7e](https://github.com/Agoric/agoric-sdk/commit/0169c7e505099fdcfa8e4d1436e5d3b372f1c320))
|
|
53
|
-
* tolerate missing files in gaia 3-way diff ([8633f4d](https://github.com/Agoric/agoric-sdk/commit/8633f4d7917a12035182715d560d50f312ece4ff))
|
|
54
|
-
* upgrade ibc-go to v6.2.1 ([2371b51](https://github.com/Agoric/agoric-sdk/commit/2371b5178eff16baadc5716a3f7e11573d3b8889))
|
|
55
|
-
* **cosmos:** impose defaults when sending VM actions ([d32e71e](https://github.com/Agoric/agoric-sdk/commit/d32e71ec14121c3c69aa3c173f284c706d329c75))
|
|
56
|
-
* **cosmos:** next upgrade is `agoric-upgrade-14` ([0333099](https://github.com/Agoric/agoric-sdk/commit/03330999fa8ea872c57a94db063eadbdadc6f342))
|
|
57
|
-
* **cosmos:** support core proposals set by upgrade handler ([14e47cc](https://github.com/Agoric/agoric-sdk/commit/14e47cc503db18ee74d7d9bd3193797524b7f540))
|
|
58
|
-
* **cosmos:** upgrade wallet factory ([ceffbcd](https://github.com/Agoric/agoric-sdk/commit/ceffbcdd85bd4dfa3a7646b590133f9fd55755c8))
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Bug Fixes
|
|
62
|
-
|
|
63
|
-
* **cosmos:** add action context to core evals ([ce1197d](https://github.com/Agoric/agoric-sdk/commit/ce1197dca3c6e274f39ab9f125ed0ec8ad9388fd))
|
|
64
|
-
* avoid broken goleveldb ([f4bd519](https://github.com/Agoric/agoric-sdk/commit/f4bd519ff0675fec1ecb81eaf2488b0df72bd286))
|
|
65
|
-
* exempt more 3rd-party protos from link check ([0be9f00](https://github.com/Agoric/agoric-sdk/commit/0be9f0097d7657f33b5ecda467ff33309b228f51))
|
|
66
|
-
* govulncheck updates ([e83fb57](https://github.com/Agoric/agoric-sdk/commit/e83fb57406ff176c11322c5b61e8515d7d8235df))
|
|
67
|
-
* pick up snapshot initiation fix ([2d41178](https://github.com/Agoric/agoric-sdk/commit/2d41178e84d66fb3c4e990406989a4f6e1f4f386))
|
|
68
|
-
* unwrap account keeper for app module ([4807023](https://github.com/Agoric/agoric-sdk/commit/48070238018ce6afc361254e5e847e90752eb9cf))
|
|
69
|
-
* update protobuf download and generation for ibc-go v4 ([63bdd54](https://github.com/Agoric/agoric-sdk/commit/63bdd54f7629adc6dbb38632c0e1b0bc2526f0e2))
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### Reverts
|
|
73
|
-
|
|
74
|
-
* Revert "fix(cosmos): don't log expected missing tx context of CORE_EVAL" ([eb856af](https://github.com/Agoric/agoric-sdk/commit/eb856afcb32b4376ceb353c6895c65db0c251958))
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## [0.35.0-u13.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u12.0...@agoric/cosmos@0.35.0-u13.0) (2023-12-07)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Features
|
|
82
|
-
|
|
83
|
-
* **cosmos:** un-wire x/crisis ([#8582](https://github.com/Agoric/agoric-sdk/issues/8582)) ([19404a3](https://github.com/Agoric/agoric-sdk/commit/19404a3c5cd10d9c454f190b60cbf0aa715f605c))
|
|
84
|
-
* **x/swingset:** auto-provision smart wallet ([5073800](https://github.com/Agoric/agoric-sdk/commit/5073800f87c92a194a21c9cc59ad1bb570a39b95))
|
|
85
|
-
* **x/swingset:** refuse smart wallet messages if not provisioned ([50a5a55](https://github.com/Agoric/agoric-sdk/commit/50a5a557956562fc05b8c2defd99a0102a35153f))
|
|
86
|
-
* pick up return-grants from latest cosmos-sdk ([975533e](https://github.com/Agoric/agoric-sdk/commit/975533e088f96c80cf8d6f6b7c5f45665e3495ba))
|
|
87
|
-
* update ibc-go to v4, adapt packages and API ([6672e5c](https://github.com/Agoric/agoric-sdk/commit/6672e5cb780c8baa530ac59bff27d793e1ff8f50))
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### Bug Fixes
|
|
91
|
-
|
|
92
|
-
* handle hang-on-halt behavior from agoric-labs/cosmos-sdk[#305](https://github.com/Agoric/agoric-sdk/issues/305) ([7ae9a70](https://github.com/Agoric/agoric-sdk/commit/7ae9a705478727d1d7ace7c665861cfee14b5f28))
|
|
93
|
-
* update dependencies to fix tests ([9d750dd](https://github.com/Agoric/agoric-sdk/commit/9d750dd39993d380a5e889ea7faa4bb78c3257aa))
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Reverts
|
|
97
|
-
|
|
98
|
-
* Revert "fix: handle hang-on-halt behavior from agoric-labs/cosmos-sdk#305" ([3a37f5e](https://github.com/Agoric/agoric-sdk/commit/3a37f5e472405d1d3bee2075b47ecd3632ba4073)), closes [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305) [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## [0.35.0-u12.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u11wf.0...@agoric/cosmos@0.35.0-u12.0) (2023-11-10)
|
|
6
|
+
## [0.35.0-u16.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.34.1...@agoric/cosmos@0.35.0-u16.0) (2024-07-02)
|
|
103
7
|
|
|
104
8
|
|
|
105
9
|
### ⚠ BREAKING CHANGES
|
|
106
10
|
|
|
11
|
+
* **localchain:** make `localchain.query` and `queryMany` useful
|
|
107
12
|
* **vstorage:** Enforce path validation
|
|
108
|
-
|
|
109
|
-
### Features
|
|
110
|
-
|
|
111
|
-
* **cosmos:** Lower `BlockParams.MaxBytes` to 5MB ([84908e5](https://github.com/Agoric/agoric-sdk/commit/84908e5a5a181e3f64da0e298d0105fedb97570a))
|
|
112
|
-
|
|
113
|
-
### Bug Fixes
|
|
114
|
-
|
|
115
|
-
* **vibc:** accommodate ibc-go v3 breaking changes ([f582901](https://github.com/Agoric/agoric-sdk/commit/f582901fb3835d95d493c777aac6a63fc3ee4681))
|
|
116
|
-
* **vibc:** put extraneous `CounterpartyChannelID` in `Counterparty` struct ([9469971](https://github.com/Agoric/agoric-sdk/commit/946997192cec0ed6b07fdaa18d8f380f460ab004))
|
|
117
|
-
* **vstorage:** Enforce path validation ([d8db331](https://github.com/Agoric/agoric-sdk/commit/d8db3310fb21a8546388694752889f3563733010)), closes [#8337](https://github.com/Agoric/agoric-sdk/issues/8337)
|
|
118
|
-
* **cosmos:** Update cosmos-sdk with fix for state-sync restore of large payloads ([e04b398](https://github.com/Agoric/agoric-sdk/commit/e04b398bf16d884fa4708c16d4c03b39cc4e0f1b)), closes [#8325](https://github.com/Agoric/agoric-sdk/issues/8325)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## [0.35.0-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u11.0...@agoric/cosmos@0.35.0-u11wf.0) (2023-09-23)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @agoric/cosmos
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [0.35.0-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.34.1...@agoric/cosmos@0.35.0-u11.0) (2023-08-24)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### ⚠ BREAKING CHANGES
|
|
134
|
-
|
|
13
|
+
* **cosmos:** make vm comms use `context.Context`
|
|
135
14
|
* **cosmos:** add required export-dir export cmd option
|
|
136
15
|
* remove deprecated `ag-cosmos-helper`
|
|
137
16
|
|
|
138
17
|
### Features
|
|
139
18
|
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* **
|
|
144
|
-
* **
|
|
145
|
-
* **
|
|
146
|
-
* **
|
|
147
|
-
* **
|
|
148
|
-
* **
|
|
149
|
-
*
|
|
150
|
-
* **
|
|
151
|
-
* **
|
|
152
|
-
* **
|
|
153
|
-
* **
|
|
154
|
-
*
|
|
19
|
+
* a proposal to upgrade scaledPriceAuthorities ([e5ed0ff](https://github.com/Agoric/agoric-sdk/commit/e5ed0ff6abcb83f52b32d49125e21e6e41923ed0))
|
|
20
|
+
* add priceFeed for StkAtom ([6a861df](https://github.com/Agoric/agoric-sdk/commit/6a861dfa14f42b4547a24ba31175a3b1a74c97c1))
|
|
21
|
+
* agd vstorage 'path' for data or children ([2b56fc6](https://github.com/Agoric/agoric-sdk/commit/2b56fc66335c44b5d8ba06480841b14a6c4a83fb))
|
|
22
|
+
* **agd:** try harder to find cosmic-swingset ([dd547f0](https://github.com/Agoric/agoric-sdk/commit/dd547f0a8057109a0bbe27a814fb3fc403ad3fd1))
|
|
23
|
+
* **agvm:** use envvars to pass file descriptor numbers ([47b2e8c](https://github.com/Agoric/agoric-sdk/commit/47b2e8c5b2ef54118083baebd6f07cd654c32281))
|
|
24
|
+
* **app:** establish mechanism for adding core proposals by `upgradePlan.name` ([ac25ee0](https://github.com/Agoric/agoric-sdk/commit/ac25ee0bedbe1bc7d4ab7edd97cab336f34bbc0f))
|
|
25
|
+
* **cosmic-swingset:** add repair-metadata snapshot restore option ([4fc0113](https://github.com/Agoric/agoric-sdk/commit/4fc01134fab9402d5916f0593728acce4697da9e))
|
|
26
|
+
* **cosmic-swingset:** replace import/export options ([0f01712](https://github.com/Agoric/agoric-sdk/commit/0f01712cadef12784afa547d568a6e77b9a83344))
|
|
27
|
+
* **cosmic-swingset:** use x/swingset for swing-store export data ([1534add](https://github.com/Agoric/agoric-sdk/commit/1534adde558df456e3225b8384e2a7033d5a5d18))
|
|
28
|
+
* Cosmos upgrade handler calls swingset ([6757303](https://github.com/Agoric/agoric-sdk/commit/6757303fcf3e5aee21dd8727d4beb029950dbff0))
|
|
29
|
+
* **cosmos:** add `agd start --split-vm=PROGRAM` flag ([ec9ab05](https://github.com/Agoric/agoric-sdk/commit/ec9ab05db98fdb0a2f295ad62765ff29eafeeff2))
|
|
30
|
+
* **cosmos:** add `vm/jsonrpcconn` ([4184fb1](https://github.com/Agoric/agoric-sdk/commit/4184fb1a12b3c83d898cb8c43464e1e48838348c))
|
|
31
|
+
* **cosmos:** Add a "CapData" vstorage RPC endpoint ([8943f2f](https://github.com/Agoric/agoric-sdk/commit/8943f2f850e0cddb87a6fad0a36f01e4c350cf45)), closes [#7581](https://github.com/Agoric/agoric-sdk/issues/7581)
|
|
32
|
+
* **cosmos:** Add a vstorage package for decoding CapData ([8bdd7cb](https://github.com/Agoric/agoric-sdk/commit/8bdd7cb915f8e8d4103dc4d21b212aae67644b56))
|
|
33
|
+
* **cosmos:** add hooking kv reader ([fe21935](https://github.com/Agoric/agoric-sdk/commit/fe219356acd07721a8fc2f150095f72c10e8d9f9))
|
|
34
|
+
* **cosmos:** add required export-dir export cmd option ([3be2986](https://github.com/Agoric/agoric-sdk/commit/3be2986059c9f007d34518deef68e31956e9b45e))
|
|
35
|
+
* **cosmos:** Always include alleged name and slot id in vstorage CapData remotable representations ([e2cbffa](https://github.com/Agoric/agoric-sdk/commit/e2cbffaccbd1da7f38c2358fd4d1fbbc2e1abd9c))
|
|
36
|
+
* **cosmos:** clean up `OnStartHook` and `OnExitHook` signatures ([158d831](https://github.com/Agoric/agoric-sdk/commit/158d83156cf404d789882bb8bf34fe723d9704ec))
|
|
37
|
+
* **cosmos:** encapsulate comms to agvm RPC ([e9a5c94](https://github.com/Agoric/agoric-sdk/commit/e9a5c943d2518c432329f9c1fe96e5a3f47608b4))
|
|
38
|
+
* **cosmos:** fix and migrate swing-store ([a0389b8](https://github.com/Agoric/agoric-sdk/commit/a0389b887b1610f90dea192f2aedf722ce9c6d11))
|
|
39
|
+
* **cosmos:** implement `ProtoJSONMarshal*` and use it ([41b5c5f](https://github.com/Agoric/agoric-sdk/commit/41b5c5f6542f8457248f0e655153340c395c378c))
|
|
40
|
+
* **cosmos:** implement bidir JSON-RPC from `agd` to `agvm` subprocess ([37f3238](https://github.com/Agoric/agoric-sdk/commit/37f323830168c11ee1f3fe438a562eb0734ba038))
|
|
41
|
+
* **cosmos:** impose defaults when sending VM actions ([a710d68](https://github.com/Agoric/agoric-sdk/commit/a710d68512cf9983bdf5230e2e99f267521c7210))
|
|
42
|
+
* **cosmos:** KVEntry implements json Marshaler and Unmarshaller ([1bba859](https://github.com/Agoric/agoric-sdk/commit/1bba8592eee0e24e480c407095f0f63ccca4a242))
|
|
43
|
+
* **cosmos:** make vm comms use `context.Context` ([fa1754c](https://github.com/Agoric/agoric-sdk/commit/fa1754c791ba6c848e6b94f3a75051c6b4cc69f6))
|
|
44
|
+
* **cosmos:** Next upgrade is agoric-upgrade-16 ([#9565](https://github.com/Agoric/agoric-sdk/issues/9565)) ([d45b478](https://github.com/Agoric/agoric-sdk/commit/d45b478fe2dd21ff463660522e1998ab3e8bbe65))
|
|
45
|
+
* **cosmos:** prevent VM port handlers from panicking ([afd6017](https://github.com/Agoric/agoric-sdk/commit/afd60170d453865cfa871a01e8d8a74ffef9221a))
|
|
46
|
+
* **cosmos:** propagate and handle shutdown message ([ac12e6d](https://github.com/Agoric/agoric-sdk/commit/ac12e6d57b3a50e079744f7a6faced7f4bebb957))
|
|
47
|
+
* **cosmos:** separate swing-store export data from genesis file ([9a62f0b](https://github.com/Agoric/agoric-sdk/commit/9a62f0b8af0d3ab66000fbb4befbaece3a8cddb4))
|
|
48
|
+
* **cosmos:** separate vm server ([37e3254](https://github.com/Agoric/agoric-sdk/commit/37e325433b6024198d34052f3150951c33a29f62))
|
|
49
|
+
* **cosmos:** spawn JS on export command ([592948d](https://github.com/Agoric/agoric-sdk/commit/592948dc2fada0a9d1f56581ccae42040bfe4a53))
|
|
50
|
+
* **cosmos:** support core proposals set by upgrade handler ([605eb4b](https://github.com/Agoric/agoric-sdk/commit/605eb4b8f33d7646c3a9084d43ecd51029e12b80))
|
|
51
|
+
* **cosmos:** support snapshot export ([f87aaf1](https://github.com/Agoric/agoric-sdk/commit/f87aaf13678158e925394935a5c46f61820131e2))
|
|
52
|
+
* **cosmos:** un-wire x/crisis ([#8582](https://github.com/Agoric/agoric-sdk/issues/8582)) ([7153535](https://github.com/Agoric/agoric-sdk/commit/7153535c5c10fed309dc60f12f981c81841fdb93))
|
|
53
|
+
* **cosmos:** upgrade provisioning vat ([#8901](https://github.com/Agoric/agoric-sdk/issues/8901)) ([174e37d](https://github.com/Agoric/agoric-sdk/commit/174e37d7499b372c33ecaf6e05f82f43ebfff902))
|
|
54
|
+
* **cosmos:** use operational artifact level for swingset state export/restore ([161ddd3](https://github.com/Agoric/agoric-sdk/commit/161ddd34ca6c16da0ad3ef716fa5da3d2ba86b68))
|
|
55
|
+
* **cosmos:** wire in vlocalchain to the Cosmos app ([3ea527d](https://github.com/Agoric/agoric-sdk/commit/3ea527d9844dcf2b5f2c60d1bfb1760e064ec0f7))
|
|
56
|
+
* **cosmos:** wire new swingset port handler ([ea582bf](https://github.com/Agoric/agoric-sdk/commit/ea582bf7738f82d0abe5529ee1ac9f2e117c957a))
|
|
57
|
+
* expose node service to retrieve operator config ([cb12a53](https://github.com/Agoric/agoric-sdk/commit/cb12a53422014d2a0933411a7b842cc2e06031ed))
|
|
58
|
+
* **golang:** bump PFM to v6.1.2 ([#9120](https://github.com/Agoric/agoric-sdk/issues/9120)) ([5c28f49](https://github.com/Agoric/agoric-sdk/commit/5c28f496976128e59e0e5a8f1a8c24f7b496527d))
|
|
59
|
+
* **localchain:** make `localchain.query` and `queryMany` useful ([41209d5](https://github.com/Agoric/agoric-sdk/commit/41209d5b7c1de478d3f2ae709558e3e535c4ad8d))
|
|
60
|
+
* new 'boot' package with bootstrap configs ([8e3173b](https://github.com/Agoric/agoric-sdk/commit/8e3173b0b86a3dc90b31164bc4272c54e46a6641))
|
|
61
|
+
* pick up return-grants from latest cosmos-sdk ([a88eb8a](https://github.com/Agoric/agoric-sdk/commit/a88eb8a21fb914e49bf436eb86aa6be8b2546269))
|
|
62
|
+
* repair KREAd contract on zoe upgrade ([14040d4](https://github.com/Agoric/agoric-sdk/commit/14040d4fb2a1fcc8687e26ed9208d9824c579876))
|
|
63
|
+
* replace zoe and zcf ([3932a80](https://github.com/Agoric/agoric-sdk/commit/3932a80802b8f1839997994b95d919acaff95c06))
|
|
64
|
+
* Simple removal of lien primarilly through code search ([#8988](https://github.com/Agoric/agoric-sdk/issues/8988)) ([695c440](https://github.com/Agoric/agoric-sdk/commit/695c440c0f48a3591b15a43665682c5f1ebbad9d))
|
|
65
|
+
* start a new auction in a3p-integration ([969235b](https://github.com/Agoric/agoric-sdk/commit/969235b18abbd15187e343d5f616f12177d224c4))
|
|
66
|
+
* tolerate missing files in gaia 3-way diff ([2e4d8d3](https://github.com/Agoric/agoric-sdk/commit/2e4d8d33ae77cc50b99bbdfa1083316b6cfb3584))
|
|
67
|
+
* update ibc-go to v4, adapt packages and API ([0ec1b79](https://github.com/Agoric/agoric-sdk/commit/0ec1b79ea0419d8576d8806c3b670e730bf09dcd))
|
|
68
|
+
* upgrade ibc-go to v6.2.1 ([fa4695d](https://github.com/Agoric/agoric-sdk/commit/fa4695dce10091a6ac0f1423a361d27986b70f26))
|
|
69
|
+
* upgrade wallet-factory ([e370bff](https://github.com/Agoric/agoric-sdk/commit/e370bff50e00b7e134148332d1ccb410d626db1c))
|
|
70
|
+
* Upgrade Zoe ([37f96ee](https://github.com/Agoric/agoric-sdk/commit/37f96eeef41c5ff06efab5ae11d4ca14e5f6f295))
|
|
71
|
+
* **vat-transfer:** first cut at working proposal ([2864bd5](https://github.com/Agoric/agoric-sdk/commit/2864bd5c12300c3595df9676bcfde894dbe59b29))
|
|
72
|
+
* **vibc:** add `AsyncVersions` flag anticipating `ibc-go` ([ca5933c](https://github.com/Agoric/agoric-sdk/commit/ca5933cc41075dfba30c44cb3a987d9c721cd97d))
|
|
73
|
+
* **vibc:** use triggers to raise targeted events ([b89aaca](https://github.com/Agoric/agoric-sdk/commit/b89aaca2afd7d0901fc06d7a6bab27aab38d389b))
|
|
74
|
+
* **vlocalchain:** bare minimum implementation ([6e35dc6](https://github.com/Agoric/agoric-sdk/commit/6e35dc642ce08a199604b7888d4fb5bbbd4c7db1))
|
|
75
|
+
* **vlocalchain:** generalise tx and query implementation ([1bffe84](https://github.com/Agoric/agoric-sdk/commit/1bffe84890f1d159301f9facea2eed13cf6cdf34))
|
|
76
|
+
* **vlocalchain:** use jsonpb.Marshaler for VLOCALCHAIN_EXECUTE_TX responses ([2140e92](https://github.com/Agoric/agoric-sdk/commit/2140e929f3ce2edda3151bf2fbc542ff8971b677))
|
|
77
|
+
* vm-config package ([8b1ecad](https://github.com/Agoric/agoric-sdk/commit/8b1ecad8ab50db777bc11c3ee6fcdb37d6cb38b6))
|
|
78
|
+
* **vocalchain:** use `OrigName: false` for query response marshalling ([84992e9](https://github.com/Agoric/agoric-sdk/commit/84992e976bbb65b8c4d77c88312296c35e98dab4))
|
|
79
|
+
* **vtransfer:** only intercept packets for registered targets ([554fa49](https://github.com/Agoric/agoric-sdk/commit/554fa490ca4e0cdd05ddf526eb946caf6be45e98))
|
|
80
|
+
* **vtransfer:** prefix action types with `VTRANSFER_` ([80d69e9](https://github.com/Agoric/agoric-sdk/commit/80d69e94488683ed6fa650f048e8fb0fcd025042))
|
|
81
|
+
* **vtransfer:** save watched addresses to genesis ([89b50a0](https://github.com/Agoric/agoric-sdk/commit/89b50a082c63e236356f33d521cad5f15a4e80d2))
|
|
82
|
+
* **vtransfer:** use `vibc` middleware ([f40c5c8](https://github.com/Agoric/agoric-sdk/commit/f40c5c8d9f691ed32a1a9b03c5938f93341629db))
|
|
83
|
+
* **x/swingset:** add store data to genesis ([9df85cf](https://github.com/Agoric/agoric-sdk/commit/9df85cf4908d5f4dfa9c4adc7cb15b7bc7cd3893))
|
|
84
|
+
* **x/swingset:** add WaitUntilSwingStoreExportDone ([05bbee5](https://github.com/Agoric/agoric-sdk/commit/05bbee53906591f3520a14f7580145c5a2593208))
|
|
85
|
+
* **x/swingset:** allow taking snapshot latest height ([a1290ef](https://github.com/Agoric/agoric-sdk/commit/a1290eff74583838f096acfd9baddb6f623693a6))
|
|
86
|
+
* **x/swingset:** auto-provision smart wallet ([20a5485](https://github.com/Agoric/agoric-sdk/commit/20a5485b96d072a4cee990b3c24f8fb441ea909f))
|
|
87
|
+
* **x/swingset:** export swing store in genesis ([598abf7](https://github.com/Agoric/agoric-sdk/commit/598abf73ac555bd7284c8a91a03c205dc62d9b0c))
|
|
88
|
+
* **x/swingset:** import swing store from genesis state ([55ba7f6](https://github.com/Agoric/agoric-sdk/commit/55ba7f6c3d6a958d3eb5c6c8b191b649da05809f))
|
|
89
|
+
* **x/swingset:** refuse smart wallet messages if not provisioned ([75bd9a7](https://github.com/Agoric/agoric-sdk/commit/75bd9a7bf85bd9b3b9870d9cf42d63f08f0e4f68))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* avoid broken goleveldb ([a2bfb34](https://github.com/Agoric/agoric-sdk/commit/a2bfb34d14806e6492fb3293bdfa24e2199d40c2))
|
|
95
|
+
* **builders:** use proper `oracleBrand` subkey case ([bf531c3](https://github.com/Agoric/agoric-sdk/commit/bf531c36c83958924a1792e0c263ee38f4a65a11))
|
|
96
|
+
* **cosmos:** add action context to core evals ([7cfae88](https://github.com/Agoric/agoric-sdk/commit/7cfae88a1d2c31d91030a8742972d9f03d331059))
|
|
97
|
+
* **cosmos:** Add support for iavl options ([c6770ec](https://github.com/Agoric/agoric-sdk/commit/c6770ece8dd7f3f56c40b3cb80be245a99e01c9d))
|
|
98
|
+
* **cosmos:** correctly detect presence of Agoric VM ([c7e266e](https://github.com/Agoric/agoric-sdk/commit/c7e266e035cc454bf74e88e96959f862ece146f8))
|
|
99
|
+
* **cosmos:** don't init controller before upgrade ([b4260af](https://github.com/Agoric/agoric-sdk/commit/b4260afd158c9f1c6faae8ee95019e1e7c385e5f))
|
|
100
|
+
* **cosmos:** make agd upgrade work ([1aa1d26](https://github.com/Agoric/agoric-sdk/commit/1aa1d26f05875c91fd47da1ad7386d8979f94b03))
|
|
101
|
+
* **cosmos:** module order independent init and bootstrap ([e7f5b65](https://github.com/Agoric/agoric-sdk/commit/e7f5b658b67a18c0a13544515f61216598326265))
|
|
102
|
+
* **cosmos:** no global state in `vm` ([ab02669](https://github.com/Agoric/agoric-sdk/commit/ab0266908ec9f36587d3521287808f7a30ed9207))
|
|
103
|
+
* **cosmos:** only allow snapshot export at latest height ([#9601](https://github.com/Agoric/agoric-sdk/issues/9601)) ([377e093](https://github.com/Agoric/agoric-sdk/commit/377e093c1b9b4aefb8a70a4e7d24dd7cfc957c68)), closes [#9600](https://github.com/Agoric/agoric-sdk/issues/9600)
|
|
104
|
+
* **cosmos:** prevent Golang error wrapping stack frame divergence ([3390d90](https://github.com/Agoric/agoric-sdk/commit/3390d902f42a96e502d459cad224d97c9971e307))
|
|
105
|
+
* **cosmos:** Support building on Linux aarch64 ([ff2e5ed](https://github.com/Agoric/agoric-sdk/commit/ff2e5ed20e52e6484a6cba126b0739b0b1fc6360))
|
|
106
|
+
* **cosmos:** update more `vtransfer` app.go wiring ([a171561](https://github.com/Agoric/agoric-sdk/commit/a1715615a01fce060eb990e1b2bb9a6d6a2a3566))
|
|
107
|
+
* **cosmos:** use dedicated dedicate app creator for non start commands ([6232a22](https://github.com/Agoric/agoric-sdk/commit/6232a22e79d3b90eeab08d0587562ecae826a0f8))
|
|
108
|
+
* **cosmos:** vm.Action returns ActionHeader pointer ([c48fe18](https://github.com/Agoric/agoric-sdk/commit/c48fe184de76d0e426274dd97adf75afcf3e0b1d))
|
|
109
|
+
* **cosmos:** wrap PFM with `vtransfer`, not the other way around ([7459f16](https://github.com/Agoric/agoric-sdk/commit/7459f16fc4a3fed955341ebc2e725b6ca9727712))
|
|
110
|
+
* declare `vtransfer` in `storeUpgrades.Added` ([36f7c7e](https://github.com/Agoric/agoric-sdk/commit/36f7c7edd7453032f97f0ebcc03571e2e5b0f9ef))
|
|
111
|
+
* eliminate fee double-charge by using configurable decorator ([1ff7ea7](https://github.com/Agoric/agoric-sdk/commit/1ff7ea7da7aafc8b199cf681c9215ca46c31b0d6))
|
|
112
|
+
* exempt more 3rd-party protos from link check ([d2602b3](https://github.com/Agoric/agoric-sdk/commit/d2602b3bead66c57e07708e3e225a9b2aea0ac39))
|
|
113
|
+
* govulncheck updates ([34d5056](https://github.com/Agoric/agoric-sdk/commit/34d505671509c6883f55cca150b610a18978d1f0))
|
|
114
|
+
* handle hang-on-halt behavior from agoric-labs/cosmos-sdk[#305](https://github.com/Agoric/agoric-sdk/issues/305) ([a4fd510](https://github.com/Agoric/agoric-sdk/commit/a4fd51067ff86d84c084292d1f38b2ca3de639b9))
|
|
115
|
+
* pick up snapshot initiation fix ([38f6c3f](https://github.com/Agoric/agoric-sdk/commit/38f6c3f8dfd4a5ee35f6e7f85bc59853cb7325d9))
|
|
116
|
+
* unwrap account keeper for app module ([20a89f0](https://github.com/Agoric/agoric-sdk/commit/20a89f06061cae01166b1b2ca738815c58dc32ed))
|
|
117
|
+
* update dependencies to fix tests ([75d6b1d](https://github.com/Agoric/agoric-sdk/commit/75d6b1dcc0d7286770679bd6d042b38fa76c4312))
|
|
118
|
+
* update protobuf download and generation for ibc-go v4 ([9cdfaef](https://github.com/Agoric/agoric-sdk/commit/9cdfaefcf236711676a0f3ed6e47dbf3c6d77402))
|
|
119
|
+
* various fixes and features for u15 ([548e758](https://github.com/Agoric/agoric-sdk/commit/548e758962ad348816d2b3d1618688829cc7c62b))
|
|
120
|
+
* **vibc:** accommodate ibc-go v3 breaking changes ([10bcb5c](https://github.com/Agoric/agoric-sdk/commit/10bcb5cf67bad097e3d76238a333394d6e4c3122))
|
|
121
|
+
* **vibc:** propagate `Relayer` account address ([739c509](https://github.com/Agoric/agoric-sdk/commit/739c5092123f72a881cea2178b99dfe473c72adc))
|
|
122
|
+
* **vibc:** put extraneous `CounterpartyChannelID` in `Counterparty` struct ([76bdc3f](https://github.com/Agoric/agoric-sdk/commit/76bdc3f4ae23505cd4e4e11b8a9ce114d5f7498f))
|
|
123
|
+
* **vlocalchain:** sdkerrors.Wrap is deprecated ([fbef641](https://github.com/Agoric/agoric-sdk/commit/fbef6411fbcae072486e0c6a8370c628d2dee646))
|
|
124
|
+
* **vstorage:** Enforce path validation ([03871e8](https://github.com/Agoric/agoric-sdk/commit/03871e8429b81d8f051cef132968abf3a5590e12)), closes [#8337](https://github.com/Agoric/agoric-sdk/issues/8337)
|
|
125
|
+
* **vtransfer:** implement and manually test middleware ([23e3da9](https://github.com/Agoric/agoric-sdk/commit/23e3da9b3c1e621d46d5f9b0c7896c746f9e99f3))
|
|
126
|
+
* **vtransfer:** refactor and minor improvements ([803e381](https://github.com/Agoric/agoric-sdk/commit/803e38105de4047ccd7feeae2db3a512d43d2f93))
|
|
127
|
+
* **vtransfer:** some separation of keeper duties ([96fdbdf](https://github.com/Agoric/agoric-sdk/commit/96fdbdf7f39d785956214e3a2f1ef2f15a520a19))
|
|
128
|
+
* **x/swingset:** enforce snapshot restore before init ([35f03f9](https://github.com/Agoric/agoric-sdk/commit/35f03f9f2b72b47475a3ae4c5068bee60c1278da))
|
|
129
|
+
* **x/swingset:** guard snapshot restore for concurrency ([554a110](https://github.com/Agoric/agoric-sdk/commit/554a1102a08f466dad5d8291044150236896ec7a))
|
|
130
|
+
* **x/swingset:** handle defer errors on export write ([bff716b](https://github.com/Agoric/agoric-sdk/commit/bff716be8c85ac8e165d5274d972a155536d25d7))
|
|
131
|
+
* **x/swingset:** switch export/import to replay artifact level ([6ab24b2](https://github.com/Agoric/agoric-sdk/commit/6ab24b299f31affc0a638cc6352678a2c167044c))
|
|
132
|
+
* **x/vstorage:** value can be empty in genesis data ([b8a817d](https://github.com/Agoric/agoric-sdk/commit/b8a817dfa70c225741a32fb73780de75c5aa9184))
|
|
155
133
|
|
|
156
134
|
|
|
157
|
-
###
|
|
135
|
+
### Reverts
|
|
158
136
|
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
* **cosmos:** prevent Golang error wrapping stack frame divergence ([1d8acf6](https://github.com/Agoric/agoric-sdk/commit/1d8acf6270cadfbcdafb1081360155260d031ac1))
|
|
162
|
-
* **cosmos:** Support building on Linux aarch64 ([475708e](https://github.com/Agoric/agoric-sdk/commit/475708e63bb95d75184072547ca92586a978c5a0))
|
|
163
|
-
* **x/swingset:** enforce snapshot restore before init ([c946d58](https://github.com/Agoric/agoric-sdk/commit/c946d5866ef956c198d7ea14936eb9904aa272ae))
|
|
164
|
-
* **x/swingset:** guard snapshot restore for concurrency ([5320a30](https://github.com/Agoric/agoric-sdk/commit/5320a30a873455764104e13d89131e30a93a238c))
|
|
165
|
-
* **x/swingset:** switch export/import to replay artifact level ([c037ea3](https://github.com/Agoric/agoric-sdk/commit/c037ea3931877fe4d56df5b82cc7c3eb77a84a53))
|
|
166
|
-
* **x/vstorage:** value can be empty in genesis data ([9a51df5](https://github.com/Agoric/agoric-sdk/commit/9a51df515b87638b869564ab08445a0ce0d55707))
|
|
137
|
+
* Revert "fix(cosmos): don't log expected missing tx context of CORE_EVAL" ([003f0c2](https://github.com/Agoric/agoric-sdk/commit/003f0c2232815a8d64a3f9a5b05521a10160ce34))
|
|
138
|
+
* Revert "fix: handle hang-on-halt behavior from agoric-labs/cosmos-sdk#305" ([4d99888](https://github.com/Agoric/agoric-sdk/commit/4d998883cea2b7a0fa844f471620061adb42ff07)), closes [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305) [agoric-labs/cosmos-sdk#305](https://github.com/agoric-labs/cosmos-sdk/issues/305)
|
|
167
139
|
|
|
168
140
|
|
|
169
141
|
### Build System
|
|
170
142
|
|
|
171
|
-
* remove deprecated `ag-cosmos-helper` ([
|
|
143
|
+
* remove deprecated `ag-cosmos-helper` ([6866ebe](https://github.com/Agoric/agoric-sdk/commit/6866ebe670c257b60dfb6951c295e21ce0fe2fcc))
|
|
172
144
|
|
|
173
145
|
|
|
174
146
|
|
package/MAINTAINERS.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
When updating the protos here, be mindful that `@agoric/cosmic-proto` will need refreshing to get them.
|
|
2
|
+
|
|
3
|
+
https://github.com/Agoric/agoric-sdk/issues/8131 will help automate updating protos, but not the publishing to NPM of the codegen-ed JS utilities for working with the APIs they define.
|
package/Makefile
CHANGED
|
@@ -98,11 +98,11 @@ proto-lint: proto-tools
|
|
|
98
98
|
proto-check-breaking: proto-tools
|
|
99
99
|
${BIN}/buf breaking --against $(PR_TARGET_REPO)#branch=$(PR_TARGET_BRANCH),subdir=golang/cosmos
|
|
100
100
|
|
|
101
|
-
GOGO_PROTO_URL
|
|
102
|
-
# GOOGLE_API_URL
|
|
103
|
-
IBC_PROTO_URL
|
|
104
|
-
COSMOS_PROTO_PROTO_URL
|
|
105
|
-
COSMOS_SDK_PROTO_URL
|
|
101
|
+
GOGO_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/gogo/protobuf)
|
|
102
|
+
# GOOGLE_API_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/googleapis/googleapis)/google/api
|
|
103
|
+
IBC_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v6)/proto/ibc/core
|
|
104
|
+
COSMOS_PROTO_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-proto)/proto/cosmos_proto
|
|
105
|
+
COSMOS_SDK_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/cosmos
|
|
106
106
|
|
|
107
107
|
COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto
|
|
108
108
|
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
|
@@ -116,34 +116,37 @@ SDK_UPGRADE_TYPES = third_party/proto/cosmos/upgrade/v1beta1
|
|
|
116
116
|
|
|
117
117
|
proto-update-deps:
|
|
118
118
|
mkdir -p $(COSMOS_PROTO_TYPES)
|
|
119
|
-
|
|
119
|
+
url="$(COSMOS_PROTO_PROTO_URL)"; \
|
|
120
|
+
curl -sSL $$url/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto
|
|
120
121
|
|
|
121
122
|
mkdir -p $(GOGO_PROTO_TYPES)
|
|
122
|
-
|
|
123
|
+
url="$(GOGO_PROTO_URL)"; \
|
|
124
|
+
curl -sSL $$url/gogoproto/gogo.proto > $(GOGO_PROTO_TYPES)/gogo.proto
|
|
123
125
|
|
|
124
126
|
# Downloading from a not-a-go-module is problematic. These files are artifacts for now.
|
|
125
127
|
# mkdir -p $(GOOGLE_API_TYPES)
|
|
126
|
-
#
|
|
127
|
-
# curl -sSL
|
|
128
|
-
# curl -sSL
|
|
128
|
+
# url="$(GOOGLE_API_URL)"; \
|
|
129
|
+
# curl -sSL $$url/annotations.proto > $(GOOGLE_API_TYPES)/annotations.proto && \
|
|
130
|
+
# curl -sSL $$url/http.proto > $(GOOGLE_API_TYPES)/http.proto && \
|
|
131
|
+
# curl -sSL $$url/httpbody.proto > $(GOOGLE_API_TYPES)/httpbody.proto &&
|
|
129
132
|
|
|
130
133
|
mkdir -p $(GOOGLE_PROTO_TYPES)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
mkdir -p $(SDK_UPGRADE_TYPES)
|
|
146
|
-
curl -sSL
|
|
134
|
+
url="$(GOGO_PROTO_URL)"; \
|
|
135
|
+
curl -sSL $$url/protobuf/google/protobuf/any.proto > $(GOOGLE_PROTO_TYPES)/any.proto
|
|
136
|
+
|
|
137
|
+
url="$(IBC_PROTO_URL)"; \
|
|
138
|
+
mkdir -p $(IBC_CHANNEL_TYPES) && \
|
|
139
|
+
curl -sSL $$url/channel/v1/channel.proto > $(IBC_CHANNEL_TYPES)/channel.proto && \
|
|
140
|
+
mkdir -p $(IBC_CLIENT_TYPES) && \
|
|
141
|
+
curl -sSL $$url/client/v1/client.proto > $(IBC_CLIENT_TYPES)/client.proto
|
|
142
|
+
|
|
143
|
+
url="$(COSMOS_SDK_PROTO_URL)"; \
|
|
144
|
+
mkdir -p $(SDK_BASE_TYPES) && \
|
|
145
|
+
curl -sSL $$url/base/v1beta1/coin.proto > $(SDK_BASE_TYPES)/coin.proto && \
|
|
146
|
+
mkdir -p $(SDK_QUERY_TYPES) && \
|
|
147
|
+
curl -sSL $$url/base/query/v1beta1/pagination.proto > $(SDK_QUERY_TYPES)/pagination.proto && \
|
|
148
|
+
mkdir -p $(SDK_UPGRADE_TYPES) && \
|
|
149
|
+
curl -sSL $$url/upgrade/v1beta1/upgrade.proto > $(SDK_UPGRADE_TYPES)/upgrade.proto
|
|
147
150
|
|
|
148
151
|
UNAME_S ?= $(shell uname -s)
|
|
149
152
|
UNAME_M ?= $(shell uname -m)
|
|
@@ -202,3 +205,10 @@ grpc-gateway-stamp:
|
|
|
202
205
|
|
|
203
206
|
tools-clean:
|
|
204
207
|
rm -f proto-tools-stamp buf-stamp grpc-gateway-stamp
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
lint:
|
|
211
|
+
golangci-lint run
|
|
212
|
+
|
|
213
|
+
test:
|
|
214
|
+
go test -coverprofile=coverage.txt -covermode=atomic ./...
|
package/ante/ante.go
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package ante
|
|
2
2
|
|
|
3
3
|
import (
|
|
4
|
+
sdkioerrors "cosmossdk.io/errors"
|
|
4
5
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
5
6
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
6
7
|
"github.com/cosmos/cosmos-sdk/x/auth/ante"
|
|
@@ -21,19 +22,19 @@ type HandlerOptions struct {
|
|
|
21
22
|
|
|
22
23
|
func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error) {
|
|
23
24
|
if opts.AccountKeeper == nil {
|
|
24
|
-
return nil,
|
|
25
|
+
return nil, sdkioerrors.Wrap(sdkerrors.ErrLogic, "account keeper is required for AnteHandler")
|
|
25
26
|
}
|
|
26
27
|
if opts.BankKeeper == nil {
|
|
27
|
-
return nil,
|
|
28
|
+
return nil, sdkioerrors.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler")
|
|
28
29
|
}
|
|
29
30
|
if opts.SignModeHandler == nil {
|
|
30
|
-
return nil,
|
|
31
|
+
return nil, sdkioerrors.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder")
|
|
31
32
|
}
|
|
32
33
|
if opts.AdmissionData == nil {
|
|
33
|
-
return nil,
|
|
34
|
+
return nil, sdkioerrors.Wrap(sdkerrors.ErrLogic, "admission data is required for AnteHandler")
|
|
34
35
|
}
|
|
35
36
|
if opts.SwingsetKeeper == nil {
|
|
36
|
-
return nil,
|
|
37
|
+
return nil, sdkioerrors.Wrap(sdkerrors.ErrLogic, "swingset keeper is required for AnteHandler")
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
var sigGasConsumer = opts.SigGasConsumer
|
package/ante/inbound_test.go
CHANGED
|
@@ -6,6 +6,7 @@ import (
|
|
|
6
6
|
"reflect"
|
|
7
7
|
"testing"
|
|
8
8
|
|
|
9
|
+
sdkmath "cosmossdk.io/math"
|
|
9
10
|
swingtypes "github.com/Agoric/agoric-sdk/golang/cosmos/x/swingset/types"
|
|
10
11
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
|
11
12
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
@@ -210,11 +211,11 @@ func (msk mockSwingsetKeeper) IsHighPriorityAddress(ctx sdk.Context, addr sdk.Ac
|
|
|
210
211
|
return msk.isHighPriorityOwner, nil
|
|
211
212
|
}
|
|
212
213
|
|
|
213
|
-
func (msk mockSwingsetKeeper) GetBeansPerUnit(ctx sdk.Context) map[string]
|
|
214
|
+
func (msk mockSwingsetKeeper) GetBeansPerUnit(ctx sdk.Context) map[string]sdkmath.Uint {
|
|
214
215
|
return nil
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
func (msk mockSwingsetKeeper) ChargeBeans(ctx sdk.Context, addr sdk.AccAddress, beans
|
|
218
|
+
func (msk mockSwingsetKeeper) ChargeBeans(ctx sdk.Context, addr sdk.AccAddress, beans sdkmath.Uint) error {
|
|
218
219
|
return fmt.Errorf("not implemented")
|
|
219
220
|
}
|
|
220
221
|
|
package/ante/vm_admission.go
CHANGED
|
@@ -3,6 +3,7 @@ package ante
|
|
|
3
3
|
import (
|
|
4
4
|
"github.com/armon/go-metrics"
|
|
5
5
|
|
|
6
|
+
sdkioerrors "cosmossdk.io/errors"
|
|
6
7
|
"github.com/cosmos/cosmos-sdk/telemetry"
|
|
7
8
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
8
9
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
@@ -57,7 +58,7 @@ func (ad AdmissionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate boo
|
|
|
57
58
|
if numErrors > 0 {
|
|
58
59
|
// Add to instrumentation.
|
|
59
60
|
|
|
60
|
-
return ctx,
|
|
61
|
+
return ctx, sdkioerrors.Wrapf(ErrAdmissionRefused, "controller refused message admission: %s", errors[0].Error())
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
return next(ctx, tx, simulate)
|