@agoric/cosmos 0.35.0-u19.2 → 0.35.0-u21.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/.clang-format +116 -0
- package/CHANGELOG.md +18 -18
- package/Makefile +38 -67
- package/ante/ante.go +2 -2
- package/ante/inbound_test.go +1 -1
- package/app/app.go +173 -142
- package/app/export.go +6 -6
- package/app/genesis.go +4 -0
- package/app/sim_test.go +299 -50
- package/app/upgrade.go +142 -96
- package/app/upgrade_test.go +63 -0
- package/cmd/agd/agvm.go +1 -1
- package/cmd/agd/main.go +1 -1
- package/cmd/libdaemon/main.go +34 -1
- package/daemon/cmd/root.go +26 -35
- package/daemon/cmd/root_test.go +5 -4
- package/daemon/cmd/testnet.go +221 -95
- package/daemon/main.go +1 -0
- package/git-revision.txt +1 -1
- package/go.mod +93 -58
- package/go.sum +148 -95
- package/package.json +6 -3
- package/proto/agoric/swingset/genesis.proto +7 -11
- package/proto/agoric/swingset/msgs.proto +56 -75
- package/proto/agoric/swingset/query.proto +7 -10
- package/proto/agoric/swingset/swingset.proto +79 -108
- package/proto/agoric/vbank/genesis.proto +5 -5
- package/proto/agoric/vbank/msgs.proto +1 -2
- package/proto/agoric/vbank/vbank.proto +42 -52
- package/proto/agoric/vibc/msgs.proto +8 -11
- package/proto/agoric/vstorage/genesis.proto +6 -9
- package/proto/agoric/vstorage/query.proto +19 -48
- package/proto/agoric/vstorage/vstorage.proto +4 -10
- package/proto/agoric/vtransfer/genesis.proto +7 -7
- package/proto/buf.gen.gogo.yaml +8 -0
- package/proto/buf.gen.pulsar.yaml +17 -0
- package/proto/buf.gen.swagger.yaml +5 -0
- package/proto/buf.yaml +10 -0
- package/scripts/protocgen.sh +14 -21
- package/third_party/proto/amino/amino.proto +79 -0
- package/third_party/proto/cosmos/base/v1beta1/coin.proto +7 -2
- package/third_party/proto/cosmos/ics23/v1/proofs.proto +243 -0
- package/third_party/proto/cosmos/msg/v1/msg.proto +30 -0
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +17 -5
- package/third_party/proto/cosmos_proto/cosmos.proto +16 -1
- package/third_party/proto/gogoproto/gogo.proto +2 -2
- package/third_party/proto/google/protobuf/any.proto +6 -3
- package/third_party/proto/ibc/core/channel/v1/channel.proto +1 -1
- package/third_party/proto/ibc/core/client/v1/client.proto +4 -2
- package/types/address_hooks.go +5 -12
- package/types/address_hooks_test.go +34 -34
- package/types/codec.go +23 -0
- package/types/ibc_packet.go +64 -0
- package/types/ibc_packet_test.go +117 -0
- package/vm/client.go +32 -7
- package/vm/proto_json.go +2 -2
- package/x/swingset/abci.go +1 -1
- package/x/swingset/alias.go +0 -1
- package/x/swingset/config.go +1 -1
- package/x/swingset/keeper/extension_snapshotter.go +1 -1
- package/x/swingset/keeper/extension_snapshotter_test.go +1 -1
- package/x/swingset/keeper/keeper.go +1 -1
- package/x/swingset/keeper/keeper_test.go +1 -1
- package/x/swingset/keeper/querier.go +1 -30
- package/x/swingset/keeper/swing_store_exports_handler.go +1 -1
- package/x/swingset/keeper/swing_store_exports_handler_test.go +1 -1
- package/x/swingset/module.go +1 -14
- package/x/swingset/types/default-params.go +24 -16
- package/x/swingset/types/genesis.pb.go +2 -2
- package/x/swingset/types/msgs.pb.go +4 -3
- package/x/swingset/types/msgs_test.go +1 -1
- package/x/swingset/types/query.pb.go +4 -3
- package/x/swingset/types/swingset.pb.go +2 -2
- package/x/vbank/genesis.go +1 -1
- package/x/vbank/keeper/querier.go +1 -21
- package/x/vbank/module.go +1 -16
- package/x/vbank/types/genesis.pb.go +2 -2
- package/x/vbank/types/msgs.pb.go +3 -2
- package/x/vbank/types/query.pb.go +4 -3
- package/x/vbank/types/vbank.pb.go +2 -2
- package/x/vbank/vbank_test.go +95 -16
- package/x/vibc/keeper/keeper.go +8 -5
- package/x/vibc/keeper/migrations.go +36 -0
- package/x/vibc/keeper/triggers.go +6 -32
- package/x/vibc/module.go +9 -17
- package/x/vibc/types/expected_keepers.go +6 -10
- package/x/vibc/types/ibc_module.go +30 -20
- package/x/vibc/types/msgs.go +1 -1
- package/x/vibc/types/msgs.pb.go +5 -4
- package/x/vibc/types/receiver.go +17 -17
- package/x/vlocalchain/keeper/keeper.go +3 -3
- package/x/vlocalchain/types/vlocalchain.pb.go +1 -1
- package/x/vlocalchain/vlocalchain_test.go +6 -6
- package/x/vstorage/README.md +0 -8
- package/x/vstorage/alias.go +0 -1
- package/x/vstorage/client/cli/query.go +1 -1
- package/x/vstorage/genesis.go +1 -1
- package/x/vstorage/keeper/keeper.go +40 -5
- package/x/vstorage/keeper/keeper_test.go +24 -24
- package/x/vstorage/keeper/querier.go +1 -32
- package/x/vstorage/keeper/querier_test.go +41 -6
- package/x/vstorage/module.go +1 -14
- package/x/vstorage/types/genesis.pb.go +2 -2
- package/x/vstorage/types/path_keys.go +7 -8
- package/x/vstorage/types/query.pb.go +8 -5
- package/x/vstorage/types/vstorage.pb.go +2 -2
- package/x/vstorage/vstorage_test.go +3 -3
- package/x/vtransfer/genesis.go +1 -1
- package/x/vtransfer/handler.go +4 -2
- package/x/vtransfer/ibc_middleware.go +4 -4
- package/x/vtransfer/ibc_middleware_test.go +14 -16
- package/x/vtransfer/keeper/keeper.go +38 -48
- package/x/vtransfer/module.go +1 -14
- package/x/vtransfer/types/expected_keepers.go +2 -18
- package/x/vtransfer/types/genesis.pb.go +2 -2
- package/x/vtransfer/utils_test.go +15 -15
- package/daemon/cmd/genaccounts.go +0 -195
- package/e2e_test/Makefile +0 -29
- package/e2e_test/README.md +0 -100
- package/e2e_test/go.mod +0 -239
- package/e2e_test/go.sum +0 -1323
- package/e2e_test/ibc_conformance_test.go +0 -56
- package/e2e_test/pfm_test.go +0 -613
- package/e2e_test/util.go +0 -271
package/.clang-format
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
Language: Proto
|
|
3
|
+
BasedOnStyle: Google
|
|
4
|
+
AccessModifierOffset: -2
|
|
5
|
+
AlignAfterOpenBracket: Align
|
|
6
|
+
AlignConsecutiveAssignments: true
|
|
7
|
+
AlignConsecutiveDeclarations: true
|
|
8
|
+
AlignEscapedNewlines: Right
|
|
9
|
+
AlignOperands: true
|
|
10
|
+
AlignTrailingComments: true
|
|
11
|
+
AllowAllParametersOfDeclarationOnNextLine: true
|
|
12
|
+
AllowShortBlocksOnASingleLine: true
|
|
13
|
+
AllowShortCaseLabelsOnASingleLine: false
|
|
14
|
+
AllowShortFunctionsOnASingleLine: Empty
|
|
15
|
+
AllowShortIfStatementsOnASingleLine: false
|
|
16
|
+
AllowShortLoopsOnASingleLine: false
|
|
17
|
+
AlwaysBreakAfterDefinitionReturnType: None
|
|
18
|
+
AlwaysBreakAfterReturnType: None
|
|
19
|
+
AlwaysBreakBeforeMultilineStrings: false
|
|
20
|
+
AlwaysBreakTemplateDeclarations: false
|
|
21
|
+
BinPackArguments: true
|
|
22
|
+
BinPackParameters: true
|
|
23
|
+
BraceWrapping:
|
|
24
|
+
AfterClass: false
|
|
25
|
+
AfterControlStatement: false
|
|
26
|
+
AfterEnum: false
|
|
27
|
+
AfterFunction: false
|
|
28
|
+
AfterNamespace: false
|
|
29
|
+
AfterObjCDeclaration: false
|
|
30
|
+
AfterStruct: false
|
|
31
|
+
AfterUnion: false
|
|
32
|
+
AfterExternBlock: false
|
|
33
|
+
BeforeCatch: false
|
|
34
|
+
BeforeElse: false
|
|
35
|
+
IndentBraces: false
|
|
36
|
+
SplitEmptyFunction: true
|
|
37
|
+
SplitEmptyRecord: true
|
|
38
|
+
SplitEmptyNamespace: true
|
|
39
|
+
BreakBeforeBinaryOperators: None
|
|
40
|
+
BreakBeforeBraces: Attach
|
|
41
|
+
BreakBeforeInheritanceComma: false
|
|
42
|
+
BreakBeforeTernaryOperators: true
|
|
43
|
+
BreakConstructorInitializersBeforeComma: false
|
|
44
|
+
BreakConstructorInitializers: BeforeColon
|
|
45
|
+
BreakAfterJavaFieldAnnotations: false
|
|
46
|
+
BreakStringLiterals: true
|
|
47
|
+
ColumnLimit: 120
|
|
48
|
+
CommentPragmas: '^ IWYU pragma:'
|
|
49
|
+
CompactNamespaces: false
|
|
50
|
+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
51
|
+
ConstructorInitializerIndentWidth: 4
|
|
52
|
+
ContinuationIndentWidth: 4
|
|
53
|
+
Cpp11BracedListStyle: true
|
|
54
|
+
DerivePointerAlignment: false
|
|
55
|
+
DisableFormat: false
|
|
56
|
+
ExperimentalAutoDetectBinPacking: false
|
|
57
|
+
FixNamespaceComments: true
|
|
58
|
+
ForEachMacros:
|
|
59
|
+
- foreach
|
|
60
|
+
- Q_FOREACH
|
|
61
|
+
- BOOST_FOREACH
|
|
62
|
+
IncludeBlocks: Preserve
|
|
63
|
+
IncludeCategories:
|
|
64
|
+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
|
65
|
+
Priority: 2
|
|
66
|
+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
|
67
|
+
Priority: 3
|
|
68
|
+
- Regex: '.*'
|
|
69
|
+
Priority: 1
|
|
70
|
+
IncludeIsMainRegex: '(Test)?$'
|
|
71
|
+
IndentCaseLabels: false
|
|
72
|
+
IndentPPDirectives: None
|
|
73
|
+
IndentWidth: 2
|
|
74
|
+
IndentWrappedFunctionNames: false
|
|
75
|
+
JavaScriptQuotes: Leave
|
|
76
|
+
JavaScriptWrapImports: true
|
|
77
|
+
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
78
|
+
MacroBlockBegin: ''
|
|
79
|
+
MacroBlockEnd: ''
|
|
80
|
+
MaxEmptyLinesToKeep: 1
|
|
81
|
+
NamespaceIndentation: None
|
|
82
|
+
ObjCBlockIndentWidth: 2
|
|
83
|
+
ObjCSpaceAfterProperty: false
|
|
84
|
+
ObjCSpaceBeforeProtocolList: true
|
|
85
|
+
PenaltyBreakAssignment: 2
|
|
86
|
+
PenaltyBreakBeforeFirstCallParameter: 19
|
|
87
|
+
PenaltyBreakComment: 300
|
|
88
|
+
PenaltyBreakFirstLessLess: 120
|
|
89
|
+
PenaltyBreakString: 1000
|
|
90
|
+
PenaltyExcessCharacter: 1000000
|
|
91
|
+
PenaltyReturnTypeOnItsOwnLine: 60
|
|
92
|
+
PointerAlignment: Right
|
|
93
|
+
RawStringFormats:
|
|
94
|
+
- Delimiters:
|
|
95
|
+
- pb
|
|
96
|
+
Language: TextProto
|
|
97
|
+
BasedOnStyle: Google
|
|
98
|
+
ReflowComments: true
|
|
99
|
+
SortIncludes: true
|
|
100
|
+
SortUsingDeclarations: true
|
|
101
|
+
SpaceAfterCStyleCast: false
|
|
102
|
+
SpaceAfterTemplateKeyword: true
|
|
103
|
+
SpaceBeforeAssignmentOperators: true
|
|
104
|
+
SpaceBeforeParens: ControlStatements
|
|
105
|
+
SpaceInEmptyParentheses: false
|
|
106
|
+
SpacesBeforeTrailingComments: 1
|
|
107
|
+
SpacesInAngles: false
|
|
108
|
+
SpacesInContainerLiterals: false
|
|
109
|
+
SpacesInCStyleCastParentheses: false
|
|
110
|
+
SpacesInParentheses: false
|
|
111
|
+
SpacesInSquareBrackets: false
|
|
112
|
+
Standard: Cpp11
|
|
113
|
+
TabWidth: 8
|
|
114
|
+
UseTab: Never
|
|
115
|
+
---
|
|
116
|
+
|
package/CHANGELOG.md
CHANGED
|
@@ -3,23 +3,7 @@
|
|
|
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
|
-
**Note:** Version bump only for package @agoric/cosmos
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.35.0-u19.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.35.0-u19.0...@agoric/cosmos@0.35.0-u19.1) (2025-03-03)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @agoric/cosmos
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.35.0-u19.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.34.1...@agoric/cosmos@0.35.0-u19.0) (2025-02-24)
|
|
6
|
+
## [0.35.0-u21.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmos@0.34.1...@agoric/cosmos@0.35.0-u21.0) (2025-06-19)
|
|
23
7
|
|
|
24
8
|
|
|
25
9
|
### ⚠ BREAKING CHANGES
|
|
@@ -54,6 +38,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
54
38
|
* **cosmos:** Add a vstorage package for decoding CapData ([8bdd7cb](https://github.com/Agoric/agoric-sdk/commit/8bdd7cb915f8e8d4103dc4d21b212aae67644b56))
|
|
55
39
|
* **cosmos:** add hooking kv reader ([496a430](https://github.com/Agoric/agoric-sdk/commit/496a430c772a1f996e515ef9622e7668e00ea843))
|
|
56
40
|
* **cosmos:** add required export-dir export cmd option ([3be2986](https://github.com/Agoric/agoric-sdk/commit/3be2986059c9f007d34518deef68e31956e9b45e))
|
|
41
|
+
* **cosmos:** add Reserve withdrawal upgrade ([9e97cbd](https://github.com/Agoric/agoric-sdk/commit/9e97cbd7438e3df5aec96091d18ecdcde720978b))
|
|
57
42
|
* **cosmos:** Always include alleged name and slot id in vstorage CapData remotable representations ([e2cbffa](https://github.com/Agoric/agoric-sdk/commit/e2cbffaccbd1da7f38c2358fd4d1fbbc2e1abd9c))
|
|
58
43
|
* **cosmos:** clean up `OnStartHook` and `OnExitHook` signatures ([158d831](https://github.com/Agoric/agoric-sdk/commit/158d83156cf404d789882bb8bf34fe723d9704ec))
|
|
59
44
|
* **cosmos:** encapsulate comms to agvm RPC ([e9a5c94](https://github.com/Agoric/agoric-sdk/commit/e9a5c943d2518c432329f9c1fe96e5a3f47608b4))
|
|
@@ -64,7 +49,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
64
49
|
* **cosmos:** impose defaults when sending VM actions ([a710d68](https://github.com/Agoric/agoric-sdk/commit/a710d68512cf9983bdf5230e2e99f267521c7210))
|
|
65
50
|
* **cosmos:** KVEntry implements json Marshaler and Unmarshaller ([1bba859](https://github.com/Agoric/agoric-sdk/commit/1bba8592eee0e24e480c407095f0f63ccca4a242))
|
|
66
51
|
* **cosmos:** make vm comms use `context.Context` ([fa1754c](https://github.com/Agoric/agoric-sdk/commit/fa1754c791ba6c848e6b94f3a75051c6b4cc69f6))
|
|
67
|
-
* **cosmos:**
|
|
52
|
+
* **cosmos:** new `IBCPacket` helpers to tame JSON ([f5a10b6](https://github.com/Agoric/agoric-sdk/commit/f5a10b6457501c9be9ae396bd1c7a8d43ea42dd6))
|
|
53
|
+
* **cosmos:** Next upgrade is agoric-upgrade-21 ([39b5190](https://github.com/Agoric/agoric-sdk/commit/39b5190966dca03d8022ebd191c786647c8a3c3f))
|
|
68
54
|
* **cosmos:** prevent VM port handlers from panicking ([afd6017](https://github.com/Agoric/agoric-sdk/commit/afd60170d453865cfa871a01e8d8a74ffef9221a))
|
|
69
55
|
* **cosmos:** propagate and handle shutdown message ([ac12e6d](https://github.com/Agoric/agoric-sdk/commit/ac12e6d57b3a50e079744f7a6faced7f4bebb957))
|
|
70
56
|
* **cosmos:** separate swing-store export data from genesis file ([f476bd5](https://github.com/Agoric/agoric-sdk/commit/f476bd50fb3ca5df0c4f43b20e059e05a2659b4c))
|
|
@@ -74,8 +60,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
74
60
|
* **cosmos:** support core proposals set by upgrade handler ([605eb4b](https://github.com/Agoric/agoric-sdk/commit/605eb4b8f33d7646c3a9084d43ecd51029e12b80))
|
|
75
61
|
* **cosmos:** support snapshot export ([4386f8e](https://github.com/Agoric/agoric-sdk/commit/4386f8e67136f184b94febb5d65990a26e101cf3))
|
|
76
62
|
* **cosmos:** un-wire x/crisis ([#8582](https://github.com/Agoric/agoric-sdk/issues/8582)) ([7153535](https://github.com/Agoric/agoric-sdk/commit/7153535c5c10fed309dc60f12f981c81841fdb93))
|
|
63
|
+
* **cosmos:** upgrade IBC vat for next release ([c994490](https://github.com/Agoric/agoric-sdk/commit/c99449081560480e7e2dd6fc069b12dbcc630370))
|
|
77
64
|
* **cosmos:** upgrade provisioning vat ([#8901](https://github.com/Agoric/agoric-sdk/issues/8901)) ([174e37d](https://github.com/Agoric/agoric-sdk/commit/174e37d7499b372c33ecaf6e05f82f43ebfff902))
|
|
78
65
|
* **cosmos:** upgrade skips proposals with no variant ([4ce1372](https://github.com/Agoric/agoric-sdk/commit/4ce13721201d9a62a40352d909f97a44d8e5b25d))
|
|
66
|
+
* **cosmos:** upgrade vat-bank ([8727b79](https://github.com/Agoric/agoric-sdk/commit/8727b79cf7b9e520630b793ea963a9f375d9707a))
|
|
79
67
|
* **cosmos:** use `x/vbank` ConsensusVersion to upgrade monitoring ([0e367d3](https://github.com/Agoric/agoric-sdk/commit/0e367d3e9870622acc8a38afe57c2b6cbe629341))
|
|
80
68
|
* **cosmos:** use operational artifact level for swingset state export/restore ([161ddd3](https://github.com/Agoric/agoric-sdk/commit/161ddd34ca6c16da0ad3ef716fa5da3d2ba86b68))
|
|
81
69
|
* **cosmos:** wire in vlocalchain to the Cosmos app ([3ea527d](https://github.com/Agoric/agoric-sdk/commit/3ea527d9844dcf2b5f2c60d1bfb1760e064ec0f7))
|
|
@@ -138,17 +126,24 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
138
126
|
* **builders:** use proper `oracleBrand` subkey case ([52f02b7](https://github.com/Agoric/agoric-sdk/commit/52f02b75b6706ee455a32ff83617dd5afb7342a7))
|
|
139
127
|
* **cosmic-swingset:** add missing bits for maxVatsOnline ([8c0c177](https://github.com/Agoric/agoric-sdk/commit/8c0c17752f7439db6f7aee9f88be1dedce2a1bf1))
|
|
140
128
|
* **cosmic-swingset:** plumbing for maxVatsOnline ([45a759a](https://github.com/Agoric/agoric-sdk/commit/45a759a71c8abc724618a12dfd8ae72552b9783e))
|
|
129
|
+
* **cosmos-vm:** allow interleaved client requests ([a2a1cec](https://github.com/Agoric/agoric-sdk/commit/a2a1cec831c4556add77e099621253526596a0f6))
|
|
130
|
+
* **cosmos-vstorage:** split 'size_delta' counter into 'size_increase' and 'size_decrease' ([#11063](https://github.com/Agoric/agoric-sdk/issues/11063)) ([3825031](https://github.com/Agoric/agoric-sdk/commit/38250315cedf68dc801b75bee867818a3846fae7)), closes [#11062](https://github.com/Agoric/agoric-sdk/issues/11062) [#10938](https://github.com/Agoric/agoric-sdk/issues/10938) [/github.com/Agoric/agoric-sdk/pull/10997#discussion_r1956583919](https://github.com/Agoric//github.com/Agoric/agoric-sdk/pull/10997/issues/discussion_r1956583919)
|
|
141
131
|
* **cosmos:** add action context to core evals ([7cfae88](https://github.com/Agoric/agoric-sdk/commit/7cfae88a1d2c31d91030a8742972d9f03d331059))
|
|
132
|
+
* **cosmos:** add some missing pieces ([5cf1f52](https://github.com/Agoric/agoric-sdk/commit/5cf1f522d319434ec30cfb7961e2f3e607326b5f))
|
|
142
133
|
* **cosmos:** Add support for iavl options ([c6770ec](https://github.com/Agoric/agoric-sdk/commit/c6770ece8dd7f3f56c40b3cb80be245a99e01c9d))
|
|
143
134
|
* **cosmos:** correctly detect presence of Agoric VM ([c7e266e](https://github.com/Agoric/agoric-sdk/commit/c7e266e035cc454bf74e88e96959f862ece146f8))
|
|
144
135
|
* **cosmos:** don't init controller before upgrade ([b4260af](https://github.com/Agoric/agoric-sdk/commit/b4260afd158c9f1c6faae8ee95019e1e7c385e5f))
|
|
145
136
|
* **cosmos:** don't rerun store migrations on upgrade ([8738a9b](https://github.com/Agoric/agoric-sdk/commit/8738a9bee247096da1dc72e2d2ba9c338a0cb739))
|
|
146
137
|
* **cosmos:** express dependency between proposals ([3cb85b8](https://github.com/Agoric/agoric-sdk/commit/3cb85b8a67fb69adf1bb0404cd101d205e05cd20))
|
|
138
|
+
* **cosmos:** get `agd start` running again ([ff54e13](https://github.com/Agoric/agoric-sdk/commit/ff54e1369ac9dbbc79ec2e480ea8605201009746))
|
|
139
|
+
* **cosmos:** ibc-go app migration up to `v7.2` ([ef4d95d](https://github.com/Agoric/agoric-sdk/commit/ef4d95d9a9c08a73b5622119a89707eaff6f41cf))
|
|
147
140
|
* **cosmos:** make agd upgrade work ([1aa1d26](https://github.com/Agoric/agoric-sdk/commit/1aa1d26f05875c91fd47da1ad7386d8979f94b03))
|
|
148
141
|
* **cosmos:** module order independent init and bootstrap ([e7f5b65](https://github.com/Agoric/agoric-sdk/commit/e7f5b658b67a18c0a13544515f61216598326265))
|
|
142
|
+
* **cosmos:** more upgrade corrections for app ([11ac62e](https://github.com/Agoric/agoric-sdk/commit/11ac62e451216f9153218ab12ef6cadeec5d6b9b))
|
|
149
143
|
* **cosmos:** no global state in `vm` ([ab02669](https://github.com/Agoric/agoric-sdk/commit/ab0266908ec9f36587d3521287808f7a30ed9207))
|
|
150
144
|
* **cosmos:** only allow snapshot export at latest height ([#9601](https://github.com/Agoric/agoric-sdk/issues/9601)) ([6bc363b](https://github.com/Agoric/agoric-sdk/commit/6bc363b5624bab5fd151ec4889b5f5116f2cf53c)), closes [#9600](https://github.com/Agoric/agoric-sdk/issues/9600)
|
|
151
145
|
* **cosmos:** prevent Golang error wrapping stack frame divergence ([3390d90](https://github.com/Agoric/agoric-sdk/commit/3390d902f42a96e502d459cad224d97c9971e307))
|
|
146
|
+
* **cosmos:** resolve compilation errors ([607c136](https://github.com/Agoric/agoric-sdk/commit/607c136adddd5f9316b5be65cd861250f466bad4))
|
|
152
147
|
* **cosmos:** return an error if version is unsupported ([d17e55b](https://github.com/Agoric/agoric-sdk/commit/d17e55b5d5c0a178e49ed9a0402ed52827074426))
|
|
153
148
|
* **cosmos:** Support building on Linux aarch64 ([ff2e5ed](https://github.com/Agoric/agoric-sdk/commit/ff2e5ed20e52e6484a6cba126b0739b0b1fc6360))
|
|
154
149
|
* **cosmos:** update more `vtransfer` app.go wiring ([a171561](https://github.com/Agoric/agoric-sdk/commit/a1715615a01fce060eb990e1b2bb9a6d6a2a3566))
|
|
@@ -161,9 +156,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
161
156
|
* **golang/cosmos:** fix-up a rebase ([59fdc6f](https://github.com/Agoric/agoric-sdk/commit/59fdc6ff6fbe6f167467c15c153c71b82a54bcf4))
|
|
162
157
|
* govulncheck updates ([34d5056](https://github.com/Agoric/agoric-sdk/commit/34d505671509c6883f55cca150b610a18978d1f0))
|
|
163
158
|
* 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))
|
|
159
|
+
* **libdaemon:** handle panics in `//export` functions` ([22d8d3f](https://github.com/Agoric/agoric-sdk/commit/22d8d3feb9f7bf09a31f5ed3c6999642726609a6))
|
|
164
160
|
* **network:** introduce `Finalizer` to close network ([54b9b00](https://github.com/Agoric/agoric-sdk/commit/54b9b009fff3fd3ab54f731adee97195acaa238f))
|
|
165
161
|
* pick up snapshot initiation fix ([38f6c3f](https://github.com/Agoric/agoric-sdk/commit/38f6c3f8dfd4a5ee35f6e7f85bc59853cb7325d9))
|
|
162
|
+
* remove all error on app ([22a0a7d](https://github.com/Agoric/agoric-sdk/commit/22a0a7dc73d1c61e51db100a60086bf5608f75bb))
|
|
163
|
+
* remove all errors from root ([982eedf](https://github.com/Agoric/agoric-sdk/commit/982eedf3b732a2a9b45bac0cd36b3ab24c9b0da9))
|
|
164
|
+
* remove CometBFT committing client ([4df9f70](https://github.com/Agoric/agoric-sdk/commit/4df9f707bc5a1c7582624da3487a3bde511acbe2))
|
|
166
165
|
* remove unesesary error checks and returns ([5f789e8](https://github.com/Agoric/agoric-sdk/commit/5f789e8ea8079f9176723ca318c6aeabb3b1ccfa))
|
|
166
|
+
* simcli get flags ([a054b7e](https://github.com/Agoric/agoric-sdk/commit/a054b7e2ea1e3c570d1fd40f64ac044eb0e781ac))
|
|
167
167
|
* unwrap account keeper for app module ([20a89f0](https://github.com/Agoric/agoric-sdk/commit/20a89f06061cae01166b1b2ca738815c58dc32ed))
|
|
168
168
|
* update dependencies to fix tests ([75d6b1d](https://github.com/Agoric/agoric-sdk/commit/75d6b1dcc0d7286770679bd6d042b38fa76c4312))
|
|
169
169
|
* update protobuf download and generation for ibc-go v4 ([9cdfaef](https://github.com/Agoric/agoric-sdk/commit/9cdfaefcf236711676a0f3ed6e47dbf3c6d77402))
|
package/Makefile
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
NAME := $(shell sed -ne 's/.*"name": "\([^"]*\)".*/\1/p' package.json)
|
|
4
4
|
VERSION := $(shell sed -ne 's/.*"version": "\([^"]*\)".*/\1/p' package.json)
|
|
5
5
|
GIT_COMMIT = $(shell hash=`git rev-parse --short HEAD 2>/dev/null`; if test -n "$$hash"; then echo $$hash`git diff --quiet || echo -dirty`; else cat git-revision.txt; fi)
|
|
6
|
-
PR_TARGET_REPO =
|
|
6
|
+
PR_TARGET_REPO = https://github.com/Agoric/agoric-sdk.git
|
|
7
7
|
# TODO: figure out how to handle other branches like pismo-release
|
|
8
8
|
PR_TARGET_BRANCH = master
|
|
9
|
+
DOCKER := $(shell which docker)
|
|
9
10
|
|
|
10
11
|
default: all
|
|
11
12
|
|
|
@@ -90,22 +91,38 @@ endif
|
|
|
90
91
|
### Protobuf ###
|
|
91
92
|
###############################################################################
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
protoVer=0.15.3
|
|
95
|
+
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
|
|
96
|
+
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)
|
|
95
97
|
|
|
96
|
-
proto-
|
|
97
|
-
${BIN}/buf lint
|
|
98
|
+
proto-all: proto-format proto-lint proto-gen
|
|
98
99
|
|
|
99
|
-
proto-
|
|
100
|
-
|
|
100
|
+
proto-gen:
|
|
101
|
+
@echo "Generating Protobuf files"
|
|
102
|
+
@$(protoImage) sh ./scripts/protocgen.sh
|
|
101
103
|
|
|
102
|
-
|
|
104
|
+
proto-format:
|
|
105
|
+
@$(protoImage) find ./proto -name "*.proto" -exec clang-format -i {} \;
|
|
106
|
+
|
|
107
|
+
proto-lint:
|
|
108
|
+
@$(protoImage) buf lint --error-format=json ./proto
|
|
109
|
+
|
|
110
|
+
proto-check-breaking:
|
|
111
|
+
@$(protoImage) buf breaking --against $(PR_TARGET_REPO)#branch=$(PR_TARGET_BRANCH),subdir=golang/cosmos
|
|
112
|
+
|
|
113
|
+
GOGO_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/gogoproto)
|
|
103
114
|
# GOOGLE_API_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/googleapis/googleapis)/google/api
|
|
104
|
-
IBC_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/
|
|
115
|
+
IBC_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v7)/proto/ibc/core
|
|
105
116
|
COSMOS_PROTO_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-proto)/proto/cosmos_proto
|
|
106
117
|
COSMOS_SDK_PROTO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/cosmos
|
|
118
|
+
COSMOS_SDK_AMINO_URL = file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/amino
|
|
119
|
+
|
|
120
|
+
# Needed for cosmic-proto.
|
|
121
|
+
COSMOS_ICS23_URL = https://buf.build/cosmos/ics23/raw/main/-/cosmos/ics23/v1
|
|
107
122
|
|
|
108
123
|
COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto
|
|
124
|
+
COSMOS_ICS23_TYPES = third_party/proto/cosmos/ics23/v1
|
|
125
|
+
COSMOS_SDK_AMINO_TYPES = third_party/proto/amino
|
|
109
126
|
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
|
110
127
|
GOOGLE_API_TYPES = third_party/proto/google/api
|
|
111
128
|
GOOGLE_PROTO_TYPES = third_party/proto/google/protobuf
|
|
@@ -114,12 +131,17 @@ IBC_CLIENT_TYPES = third_party/proto/ibc/core/client/v1
|
|
|
114
131
|
SDK_BASE_TYPES = third_party/proto/cosmos/base/v1beta1
|
|
115
132
|
SDK_QUERY_TYPES = third_party/proto/cosmos/base/query/v1beta1
|
|
116
133
|
SDK_UPGRADE_TYPES = third_party/proto/cosmos/upgrade/v1beta1
|
|
134
|
+
SDK_MSG_TYPES = third_party/proto/cosmos/msg/v1
|
|
117
135
|
|
|
118
136
|
proto-update-deps:
|
|
119
137
|
mkdir -p $(COSMOS_PROTO_TYPES)
|
|
120
138
|
url="$(COSMOS_PROTO_PROTO_URL)"; \
|
|
121
139
|
curl -sSL $$url/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto
|
|
122
140
|
|
|
141
|
+
mkdir -p $(COSMOS_ICS23_TYPES)
|
|
142
|
+
url="$(COSMOS_ICS23_URL)"; \
|
|
143
|
+
curl -sSL $$url/proofs.proto > $(COSMOS_ICS23_TYPES)/proofs.proto
|
|
144
|
+
|
|
123
145
|
mkdir -p $(GOGO_PROTO_TYPES)
|
|
124
146
|
url="$(GOGO_PROTO_URL)"; \
|
|
125
147
|
curl -sSL $$url/gogoproto/gogo.proto > $(GOGO_PROTO_TYPES)/gogo.proto
|
|
@@ -147,66 +169,15 @@ proto-update-deps:
|
|
|
147
169
|
mkdir -p $(SDK_QUERY_TYPES) && \
|
|
148
170
|
curl -sSL $$url/base/query/v1beta1/pagination.proto > $(SDK_QUERY_TYPES)/pagination.proto && \
|
|
149
171
|
mkdir -p $(SDK_UPGRADE_TYPES) && \
|
|
150
|
-
curl -sSL $$url/upgrade/v1beta1/upgrade.proto > $(SDK_UPGRADE_TYPES)/upgrade.proto
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
UNAME_M ?= $(shell uname -m)
|
|
154
|
-
|
|
155
|
-
BUF_VERSION ?= 1.0.0
|
|
156
|
-
|
|
157
|
-
PROTOC_VERSION ?= 3.11.2
|
|
158
|
-
ifeq ($(UNAME_S),Linux)
|
|
159
|
-
ifeq ($(UNAME_M),aarch64)
|
|
160
|
-
PROTOC_ZIP ?= protoc-${PROTOC_VERSION}-linux-aarch_64.zip
|
|
161
|
-
else
|
|
162
|
-
PROTOC_ZIP ?= protoc-${PROTOC_VERSION}-linux-x86_64.zip
|
|
163
|
-
endif
|
|
164
|
-
endif
|
|
165
|
-
ifeq ($(UNAME_S),Darwin)
|
|
166
|
-
PROTOC_ZIP ?= protoc-${PROTOC_VERSION}-osx-x86_64.zip
|
|
167
|
-
endif
|
|
168
|
-
|
|
169
|
-
proto-tools: proto-tools-stamp buf grpc-gateway-stamp
|
|
170
|
-
|
|
171
|
-
proto-tools-stamp:
|
|
172
|
-
echo "Installing protoc compiler..."
|
|
173
|
-
mkdir -p "${BIN}"
|
|
174
|
-
(cd /tmp; \
|
|
175
|
-
curl -OL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"; \
|
|
176
|
-
unzip -o ${PROTOC_ZIP} -d "${BIN}/.." bin/protoc 'include/*'; \
|
|
177
|
-
rm -f ${PROTOC_ZIP})
|
|
178
|
-
|
|
179
|
-
echo "Installing protoc-gen-gocosmos..."
|
|
180
|
-
go install github.com/regen-network/cosmos-proto/protoc-gen-gocosmos
|
|
181
|
-
|
|
182
|
-
# Create dummy file to satisfy dependency and avoid
|
|
183
|
-
# rebuilding when this Makefile target is hit twice
|
|
184
|
-
# in a row
|
|
185
|
-
touch $@
|
|
186
|
-
|
|
187
|
-
buf: buf-stamp
|
|
188
|
-
|
|
189
|
-
buf-stamp:
|
|
190
|
-
echo "Installing buf..."
|
|
191
|
-
curl -sSL \
|
|
192
|
-
"https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/buf-${UNAME_S}-${UNAME_M}" \
|
|
193
|
-
-o "${BIN}/buf" && \
|
|
194
|
-
chmod +x "${BIN}/buf"
|
|
195
|
-
|
|
196
|
-
touch $@
|
|
197
|
-
|
|
198
|
-
GATEWAY_PKGS = \
|
|
199
|
-
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \
|
|
200
|
-
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \
|
|
201
|
-
google.golang.org/protobuf/cmd/protoc-gen-go
|
|
202
|
-
|
|
203
|
-
grpc-gateway-stamp:
|
|
204
|
-
go install $(GATEWAY_PKGS)
|
|
205
|
-
touch $@
|
|
172
|
+
curl -sSL $$url/upgrade/v1beta1/upgrade.proto > $(SDK_UPGRADE_TYPES)/upgrade.proto && \
|
|
173
|
+
mkdir -p $(SDK_MSG_TYPES) && \
|
|
174
|
+
curl -sSL $$url/msg/v1/msg.proto > $(SDK_MSG_TYPES)/msg.proto
|
|
206
175
|
|
|
207
|
-
|
|
208
|
-
|
|
176
|
+
url="$(COSMOS_SDK_AMINO_URL)"; \
|
|
177
|
+
mkdir -p $(COSMOS_SDK_AMINO_TYPES) && \
|
|
178
|
+
curl -sSL $$url/amino.proto > $(COSMOS_SDK_AMINO_TYPES)/amino.proto
|
|
209
179
|
|
|
180
|
+
.PHONY: proto-all proto-format proto-lint proto-gen proto-check-breaking proto-update-deps
|
|
210
181
|
|
|
211
182
|
lint:
|
|
212
183
|
golangci-lint run
|
package/ante/ante.go
CHANGED
|
@@ -5,8 +5,8 @@ import (
|
|
|
5
5
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
6
6
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
7
7
|
"github.com/cosmos/cosmos-sdk/x/auth/ante"
|
|
8
|
-
ibcante "github.com/cosmos/ibc-go/
|
|
9
|
-
ibckeeper "github.com/cosmos/ibc-go/
|
|
8
|
+
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
|
|
9
|
+
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
|
package/ante/inbound_test.go
CHANGED
|
@@ -12,7 +12,7 @@ import (
|
|
|
12
12
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
13
13
|
"github.com/cosmos/cosmos-sdk/types/tx"
|
|
14
14
|
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
|
15
|
-
"github.com/
|
|
15
|
+
"github.com/cosmos/gogoproto/proto"
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
func TestInboundAnteHandle(t *testing.T) {
|