@agoric/cosmos 0.34.1 → 0.34.2-calypso-dev-dabccdc.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/MAINTAINERS.md +3 -0
- package/Makefile +67 -41
- package/agoric/config.go +35 -0
- package/ante/ante.go +65 -0
- package/ante/expected_keepers.go +26 -0
- package/ante/inbound.go +137 -0
- package/ante/inbound_test.go +228 -0
- package/ante/vm_admission.go +65 -0
- package/app/app.go +396 -211
- package/app/export.go +13 -9
- package/app/sim_test.go +4 -4
- package/app/upgrade.go +215 -0
- package/binding.gyp.in +29 -4
- package/buf.work.yaml +4 -0
- package/cmd/agd/agvm.go +42 -0
- package/cmd/agd/find_binary.go +22 -7
- package/cmd/agd/main.go +133 -10
- package/cmd/libdaemon/main.go +67 -53
- package/cmd/libdaemon/main_test.go +37 -0
- package/daemon/cmd/genaccounts.go +22 -18
- package/daemon/cmd/root.go +253 -52
- package/daemon/cmd/root_test.go +190 -2
- package/daemon/cmd/testnet.go +17 -6
- package/daemon/main.go +6 -3
- 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 -0
- package/go.mod +207 -0
- package/go.sum +1877 -0
- package/package.json +13 -21
- package/proto/agoric/swingset/genesis.proto +14 -0
- package/proto/agoric/swingset/swingset.proto +6 -3
- package/proto/agoric/vlocalchain/.clang-format +7 -0
- package/proto/agoric/vlocalchain/vlocalchain.proto +31 -0
- package/proto/agoric/vstorage/query.proto +53 -1
- package/proto/agoric/vtransfer/genesis.proto +18 -0
- package/scripts/protocgen.sh +16 -6
- package/third_party/proto/buf.yaml +1 -0
- package/third_party/proto/cosmos/base/query/v1beta1/pagination.proto +4 -1
- package/third_party/proto/cosmos/base/v1beta1/coin.proto +7 -4
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +16 -6
- package/third_party/proto/cosmos_proto/cosmos.proto +97 -0
- package/third_party/proto/google/api/annotations.proto +1 -1
- package/third_party/proto/google/api/http.proto +181 -120
- package/third_party/proto/google/api/httpbody.proto +9 -6
- package/third_party/proto/google/protobuf/any.proto +1 -7
- package/third_party/proto/ibc/core/channel/v1/channel.proto +15 -1
- package/third_party/proto/ibc/core/client/v1/client.proto +9 -6
- package/tools/tools.go +11 -0
- package/types/events.go +41 -0
- package/types/kv_entry.go +114 -0
- package/types/kv_entry_helpers.go +276 -0
- package/types/kv_entry_helpers_test.go +237 -0
- package/types/kv_entry_test.go +143 -0
- package/upgradegaia.sh +75 -0
- package/vm/action.go +134 -0
- package/vm/action_test.go +149 -0
- package/vm/client.go +113 -0
- package/vm/client_test.go +182 -0
- package/vm/controller.go +49 -0
- package/vm/core_proposals.go +51 -0
- 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 +26 -37
- package/x/swingset/alias.go +9 -6
- package/x/swingset/client/cli/query.go +2 -2
- package/x/swingset/client/cli/tx.go +52 -33
- package/x/swingset/client/proposal_handler.go +2 -17
- package/x/swingset/genesis.go +163 -37
- package/x/swingset/handler.go +2 -1
- package/x/swingset/keeper/extension_snapshotter.go +309 -0
- package/x/swingset/keeper/extension_snapshotter_test.go +104 -0
- package/x/swingset/keeper/keeper.go +95 -48
- package/x/swingset/keeper/keeper_test.go +77 -0
- package/x/swingset/keeper/migrations.go +7 -2
- package/x/swingset/keeper/msg_server.go +71 -56
- package/x/swingset/keeper/proposal.go +15 -9
- package/x/swingset/keeper/querier.go +24 -15
- package/x/swingset/keeper/swing_store_exports_handler.go +872 -0
- package/x/swingset/keeper/swing_store_exports_handler_test.go +247 -0
- package/x/swingset/keeper/test_utils.go +16 -0
- package/x/swingset/module.go +33 -11
- package/x/swingset/proposal_handler.go +5 -4
- package/x/swingset/swingset.go +73 -0
- package/x/swingset/testing/queue.go +17 -0
- package/x/swingset/types/codec.go +2 -2
- package/x/swingset/types/default-params.go +23 -17
- package/x/swingset/types/expected_keepers.go +14 -2
- package/x/swingset/types/genesis.pb.go +361 -18
- package/x/swingset/types/msgs.go +87 -26
- package/x/swingset/types/msgs.pb.go +16 -16
- package/x/swingset/types/params.go +76 -1
- package/x/swingset/types/params_test.go +116 -0
- package/x/swingset/types/proposal.go +10 -9
- package/x/swingset/types/swingset.pb.go +83 -81
- package/x/swingset/types/types.go +30 -28
- package/x/vbank/genesis.go +0 -2
- package/x/vbank/handler.go +2 -1
- package/x/vbank/keeper/keeper.go +3 -2
- package/x/vbank/keeper/querier.go +9 -4
- package/x/vbank/keeper/rewards.go +1 -1
- package/x/vbank/module.go +0 -5
- package/x/vbank/types/msgs.go +0 -12
- package/x/vbank/vbank.go +34 -32
- package/x/vbank/vbank_test.go +20 -20
- package/x/vibc/alias.go +3 -0
- package/x/vibc/handler.go +17 -15
- package/x/vibc/keeper/keeper.go +113 -89
- package/x/vibc/keeper/triggers.go +101 -0
- package/x/vibc/module.go +5 -8
- package/x/vibc/types/expected_keepers.go +28 -6
- package/x/vibc/types/ibc_module.go +336 -0
- package/x/vibc/types/msgs.go +1 -1
- package/x/vibc/types/msgs.pb.go +1 -1
- 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/README.md +138 -0
- package/x/vstorage/capdata/capdata.go +298 -0
- package/x/vstorage/capdata/capdata_test.go +352 -0
- package/x/vstorage/client/cli/query.go +51 -4
- package/x/vstorage/genesis.go +0 -3
- package/x/vstorage/handler.go +2 -1
- package/x/vstorage/keeper/grpc_query.go +220 -0
- package/x/vstorage/keeper/keeper.go +75 -57
- package/x/vstorage/keeper/keeper_grpc_test.go +300 -0
- package/x/vstorage/keeper/keeper_test.go +40 -62
- package/x/vstorage/keeper/querier.go +39 -14
- package/x/vstorage/keeper/querier_test.go +113 -0
- package/x/vstorage/module.go +0 -5
- package/x/vstorage/testing/queue.go +27 -0
- package/x/vstorage/types/path_keys.go +22 -10
- package/x/vstorage/types/path_keys_test.go +84 -18
- package/x/vstorage/types/query.pb.go +646 -36
- package/x/vstorage/types/query.pb.gw.go +119 -0
- package/x/vstorage/types/types.go +0 -66
- package/x/vstorage/vstorage.go +33 -35
- package/x/vstorage/vstorage_test.go +19 -19
- 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/app/const.go +0 -6
- package/cmd/helper/main.go +0 -21
- 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 -285
- package/x/lien/keeper/keeper.go +0 -254
- package/x/lien/keeper/keeper_test.go +0 -623
- package/x/lien/lien.go +0 -203
- package/x/lien/lien_test.go +0 -529
- 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/swingset/keeper/snapshotter.go +0 -491
- package/x/swingset/keeper/snapshotter_test.go +0 -185
- package/x/swingset/legacy/v32/params.go +0 -37
- package/x/swingset/legacy/v32/params_test.go +0 -133
- package/x/vibc/ibc.go +0 -442
- /package/{src/index.cjs → index.cjs} +0 -0
|
@@ -433,7 +433,7 @@ type MsgInstallBundle struct {
|
|
|
433
433
|
Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter" yaml:"submitter"`
|
|
434
434
|
// Either bundle or compressed_bundle will be set.
|
|
435
435
|
// Default compression algorithm is gzip.
|
|
436
|
-
CompressedBundle []byte `protobuf:"bytes,3,opt,name=compressed_bundle,json=compressedBundle,proto3" json:"compressedBundle" yaml:"
|
|
436
|
+
CompressedBundle []byte `protobuf:"bytes,3,opt,name=compressed_bundle,json=compressedBundle,proto3" json:"compressedBundle" yaml:"compressedBundle"`
|
|
437
437
|
// Size in bytes of uncompression of compressed_bundle.
|
|
438
438
|
UncompressedSize int64 `protobuf:"varint,4,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressedSize"`
|
|
439
439
|
}
|
|
@@ -553,7 +553,7 @@ func init() {
|
|
|
553
553
|
func init() { proto.RegisterFile("agoric/swingset/msgs.proto", fileDescriptor_788baa062b181a57) }
|
|
554
554
|
|
|
555
555
|
var fileDescriptor_788baa062b181a57 = []byte{
|
|
556
|
-
//
|
|
556
|
+
// 788 bytes of a gzipped FileDescriptorProto
|
|
557
557
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
|
|
558
558
|
0x14, 0x8e, 0xe3, 0x50, 0x36, 0xaf, 0xd9, 0x6d, 0x63, 0x95, 0xad, 0xd7, 0x0b, 0x99, 0xac, 0xa5,
|
|
559
559
|
0x15, 0x01, 0xd4, 0x44, 0xb0, 0xb7, 0xed, 0x29, 0x16, 0x42, 0x5a, 0xa4, 0xa0, 0xc5, 0x2b, 0x84,
|
|
@@ -590,20 +590,20 @@ var fileDescriptor_788baa062b181a57 = []byte{
|
|
|
590
590
|
0x01, 0x8d, 0x2d, 0xcf, 0x33, 0x66, 0xc1, 0xc4, 0xc3, 0xca, 0x0b, 0xd8, 0x1a, 0xf3, 0x7f, 0xf9,
|
|
591
591
|
0xe9, 0x3c, 0x4d, 0x18, 0xca, 0x91, 0x94, 0xa1, 0x87, 0xc2, 0x9e, 0x88, 0x75, 0x33, 0x27, 0x96,
|
|
592
592
|
0x57, 0x56, 0xbf, 0x87, 0x95, 0x29, 0xdf, 0x40, 0xdb, 0x26, 0x7e, 0x98, 0xc1, 0x78, 0x72, 0x9c,
|
|
593
|
-
0x3b, 0x96, 0x79, 0xe7, 0x41, 0xc2, 0xd0, 0x6e, 0x45, 0x1a, 0x85, 0xf7,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
593
|
+
0x3b, 0x96, 0x79, 0xe7, 0x41, 0xc2, 0xd0, 0x6e, 0x45, 0x1a, 0x85, 0xf7, 0x7d, 0x61, 0x60, 0x95,
|
|
594
|
+
0xd1, 0xcd, 0x35, 0xb1, 0x32, 0x84, 0xf6, 0x2c, 0x58, 0xa8, 0x4f, 0xdd, 0x4b, 0xcc, 0x4f, 0x4c,
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 0x03, 0x5e, 0xfc, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x51, 0x66, 0x1b, 0xd5,
|
|
606
|
+
0x4b, 0x08, 0x00, 0x00,
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -5,6 +5,7 @@ import (
|
|
|
5
5
|
|
|
6
6
|
yaml "gopkg.in/yaml.v2"
|
|
7
7
|
|
|
8
|
+
sdkmath "cosmossdk.io/math"
|
|
8
9
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
9
10
|
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
|
|
10
11
|
)
|
|
@@ -18,7 +19,7 @@ var (
|
|
|
18
19
|
ParamStoreKeyQueueMax = []byte("queue_max")
|
|
19
20
|
)
|
|
20
21
|
|
|
21
|
-
func NewStringBeans(key string, beans
|
|
22
|
+
func NewStringBeans(key string, beans sdkmath.Uint) StringBeans {
|
|
22
23
|
return StringBeans{
|
|
23
24
|
Key: key,
|
|
24
25
|
Beans: beans,
|
|
@@ -163,3 +164,77 @@ func validateQueueMax(i interface{}) error {
|
|
|
163
164
|
}
|
|
164
165
|
return nil
|
|
165
166
|
}
|
|
167
|
+
|
|
168
|
+
// UpdateParams appends any missing params, configuring them to their defaults,
|
|
169
|
+
// then returning the updated params or an error. Existing params are not
|
|
170
|
+
// modified, regardless of their value, and they are not removed if they no
|
|
171
|
+
// longer appear in the defaults.
|
|
172
|
+
func UpdateParams(params Params) (Params, error) {
|
|
173
|
+
newBpu, err := appendMissingDefaultBeansPerUnit(params.BeansPerUnit, DefaultBeansPerUnit())
|
|
174
|
+
if err != nil {
|
|
175
|
+
return params, err
|
|
176
|
+
}
|
|
177
|
+
newPff, err := appendMissingDefaultPowerFlagFees(params.PowerFlagFees, DefaultPowerFlagFees)
|
|
178
|
+
if err != nil {
|
|
179
|
+
return params, err
|
|
180
|
+
}
|
|
181
|
+
newQm, err := appendMissingDefaultQueueSize(params.QueueMax, DefaultQueueMax)
|
|
182
|
+
if err != nil {
|
|
183
|
+
return params, err
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
params.BeansPerUnit = newBpu
|
|
187
|
+
params.PowerFlagFees = newPff
|
|
188
|
+
params.QueueMax = newQm
|
|
189
|
+
return params, nil
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// appendMissingDefaultBeansPerUnit appends the default beans per unit entries
|
|
193
|
+
// not in the list of bean costs already, returning the possibly-updated list,
|
|
194
|
+
// or an error.
|
|
195
|
+
func appendMissingDefaultBeansPerUnit(bpu []StringBeans, defaultBpu []StringBeans) ([]StringBeans, error) {
|
|
196
|
+
existingBpu := make(map[string]struct{}, len(bpu))
|
|
197
|
+
for _, ob := range bpu {
|
|
198
|
+
existingBpu[ob.Key] = struct{}{}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
for _, b := range defaultBpu {
|
|
202
|
+
if _, exists := existingBpu[b.Key]; !exists {
|
|
203
|
+
bpu = append(bpu, b)
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return bpu, nil
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// appendMissingDefaultPowerFlagFees appends the default power flag fee entries
|
|
210
|
+
// not in the list of power flags already, returning the possibly-updated list,
|
|
211
|
+
// or an error.
|
|
212
|
+
func appendMissingDefaultPowerFlagFees(pff []PowerFlagFee, defaultPff []PowerFlagFee) ([]PowerFlagFee, error) {
|
|
213
|
+
existingPff := make(map[string]struct{}, len(pff))
|
|
214
|
+
for _, of := range pff {
|
|
215
|
+
existingPff[of.PowerFlag] = struct{}{}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
for _, f := range defaultPff {
|
|
219
|
+
if _, exists := existingPff[f.PowerFlag]; !exists {
|
|
220
|
+
pff = append(pff, f)
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return pff, nil
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// appendMissingDefaultQueueSize appends the default queue size entries not in
|
|
227
|
+
// the list of sizes already, returning the possibly-updated list, or an error.
|
|
228
|
+
func appendMissingDefaultQueueSize(qs []QueueSize, defaultQs []QueueSize) ([]QueueSize, error) {
|
|
229
|
+
existingQs := make(map[string]struct{}, len(qs))
|
|
230
|
+
for _, os := range qs {
|
|
231
|
+
existingQs[os.Key] = struct{}{}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
for _, s := range defaultQs {
|
|
235
|
+
if _, exists := existingQs[s.Key]; !exists {
|
|
236
|
+
qs = append(qs, s)
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return qs, nil
|
|
240
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
package types
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"reflect"
|
|
5
|
+
"testing"
|
|
6
|
+
|
|
7
|
+
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
type beans = StringBeans
|
|
11
|
+
|
|
12
|
+
func TestAddStorageBeanCost(t *testing.T) {
|
|
13
|
+
var defaultStorageCost beans
|
|
14
|
+
for _, b := range DefaultParams().BeansPerUnit {
|
|
15
|
+
if b.Key == BeansPerStorageByte {
|
|
16
|
+
defaultStorageCost = b
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if defaultStorageCost.Key == "" {
|
|
20
|
+
t.Fatalf("no beans per storage byte in default params")
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
for _, tt := range []struct {
|
|
24
|
+
name string
|
|
25
|
+
in []beans
|
|
26
|
+
want []beans
|
|
27
|
+
}{
|
|
28
|
+
{
|
|
29
|
+
name: "empty",
|
|
30
|
+
in: []beans{},
|
|
31
|
+
want: []beans{defaultStorageCost},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "already_only_same",
|
|
35
|
+
in: []beans{defaultStorageCost},
|
|
36
|
+
want: []beans{defaultStorageCost},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "already_only_different",
|
|
40
|
+
in: []beans{NewStringBeans(BeansPerStorageByte, sdk.NewUint(123))},
|
|
41
|
+
want: []beans{NewStringBeans(BeansPerStorageByte, sdk.NewUint(123))},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "already_same",
|
|
45
|
+
in: []beans{
|
|
46
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
47
|
+
defaultStorageCost,
|
|
48
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
49
|
+
},
|
|
50
|
+
want: []beans{
|
|
51
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
52
|
+
defaultStorageCost,
|
|
53
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "already_different",
|
|
58
|
+
in: []beans{
|
|
59
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
60
|
+
NewStringBeans(BeansPerStorageByte, sdk.NewUint(789)),
|
|
61
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
62
|
+
},
|
|
63
|
+
want: []beans{
|
|
64
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
65
|
+
NewStringBeans(BeansPerStorageByte, sdk.NewUint(789)),
|
|
66
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "missing",
|
|
71
|
+
in: []beans{
|
|
72
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
73
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
74
|
+
},
|
|
75
|
+
want: []beans{
|
|
76
|
+
NewStringBeans("foo", sdk.NewUint(123)),
|
|
77
|
+
NewStringBeans("bar", sdk.NewUint(456)),
|
|
78
|
+
defaultStorageCost,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
} {
|
|
82
|
+
t.Run(tt.name, func(t *testing.T) {
|
|
83
|
+
got, err := appendMissingDefaultBeansPerUnit(tt.in, []StringBeans{defaultStorageCost})
|
|
84
|
+
if err != nil {
|
|
85
|
+
t.Errorf("got error %v", err)
|
|
86
|
+
} else if !reflect.DeepEqual(got, tt.want) {
|
|
87
|
+
t.Errorf("want %v, got %v", tt.want, got)
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
func TestUpdateParams(t *testing.T) {
|
|
94
|
+
|
|
95
|
+
in := Params{
|
|
96
|
+
BeansPerUnit: []beans{},
|
|
97
|
+
BootstrapVatConfig: "baz",
|
|
98
|
+
FeeUnitPrice: sdk.NewCoins(sdk.NewInt64Coin("denom", 789)),
|
|
99
|
+
PowerFlagFees: []PowerFlagFee{},
|
|
100
|
+
QueueMax: []QueueSize{},
|
|
101
|
+
}
|
|
102
|
+
want := Params{
|
|
103
|
+
BeansPerUnit: DefaultBeansPerUnit(),
|
|
104
|
+
BootstrapVatConfig: "baz",
|
|
105
|
+
FeeUnitPrice: sdk.NewCoins(sdk.NewInt64Coin("denom", 789)),
|
|
106
|
+
PowerFlagFees: DefaultPowerFlagFees,
|
|
107
|
+
QueueMax: DefaultQueueMax,
|
|
108
|
+
}
|
|
109
|
+
got, err := UpdateParams(in)
|
|
110
|
+
if err != nil {
|
|
111
|
+
t.Fatalf("UpdateParam error %v", err)
|
|
112
|
+
}
|
|
113
|
+
if !reflect.DeepEqual(got, want) {
|
|
114
|
+
t.Errorf("got %v, want %v", got, want)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -4,8 +4,9 @@ import (
|
|
|
4
4
|
"encoding/json"
|
|
5
5
|
"strings"
|
|
6
6
|
|
|
7
|
+
sdkioerrors "cosmossdk.io/errors"
|
|
7
8
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
8
|
-
|
|
9
|
+
govv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
|
9
10
|
)
|
|
10
11
|
|
|
11
12
|
const (
|
|
@@ -14,15 +15,15 @@ const (
|
|
|
14
15
|
)
|
|
15
16
|
|
|
16
17
|
var (
|
|
17
|
-
_
|
|
18
|
+
_ govv1beta1.Content = &CoreEvalProposal{}
|
|
18
19
|
)
|
|
19
20
|
|
|
20
21
|
func init() {
|
|
21
|
-
|
|
22
|
+
govv1beta1.RegisterProposalType(ProposalTypeCoreEval)
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
// NewCoreEvalProposal creates a new core eval proposal.
|
|
25
|
-
func NewCoreEvalProposal(title, description string, evals []CoreEval)
|
|
26
|
+
func NewCoreEvalProposal(title, description string, evals []CoreEval) govv1beta1.Content {
|
|
26
27
|
return &CoreEvalProposal{
|
|
27
28
|
Title: title,
|
|
28
29
|
Description: description,
|
|
@@ -44,17 +45,17 @@ func (cep *CoreEvalProposal) ProposalType() string { return ProposalTypeCoreEval
|
|
|
44
45
|
|
|
45
46
|
// ValidateBasic runs basic stateless validity checks
|
|
46
47
|
func (cep *CoreEvalProposal) ValidateBasic() error {
|
|
47
|
-
err :=
|
|
48
|
+
err := govv1beta1.ValidateAbstract(cep)
|
|
48
49
|
if err != nil {
|
|
49
50
|
return err
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
if len(cep.Evals) == 0 {
|
|
53
|
-
return
|
|
54
|
+
return sdkioerrors.Wrap(sdkerrors.ErrInvalidRequest, "no core evals provided")
|
|
54
55
|
}
|
|
55
56
|
for i, eval := range cep.Evals {
|
|
56
57
|
if err := eval.ValidateBasic(); err != nil {
|
|
57
|
-
return
|
|
58
|
+
return sdkioerrors.Wrapf(err, "invalid core eval %d", i)
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
@@ -67,12 +68,12 @@ func (ce CoreEval) ValidateBasic() error {
|
|
|
67
68
|
var rm json.RawMessage
|
|
68
69
|
err := json.Unmarshal([]byte(ce.JsonPermits), &rm)
|
|
69
70
|
if err != nil {
|
|
70
|
-
return
|
|
71
|
+
return sdkioerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid permit.json: %s", err.Error())
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
// Ensure jscode is not empty.
|
|
74
75
|
if len(strings.TrimSpace(ce.JsCode)) == 0 {
|
|
75
|
-
return
|
|
76
|
+
return sdkioerrors.Wrap(sdkerrors.ErrInvalidRequest, "no code.js provided")
|
|
76
77
|
}
|
|
77
78
|
return nil
|
|
78
79
|
}
|
|
@@ -27,7 +27,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
27
27
|
|
|
28
28
|
// CoreEvalProposal is a gov Content type for evaluating code in the SwingSet
|
|
29
29
|
// core.
|
|
30
|
-
// See `agoric-sdk
|
|
30
|
+
// See `bridgeCoreEval` in agoric-sdk packages/vats/src/core/chain-behaviors.js.
|
|
31
31
|
type CoreEvalProposal struct {
|
|
32
32
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
|
33
33
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
@@ -495,24 +495,27 @@ func (m *Egress) GetPowerFlags() []string {
|
|
|
495
495
|
return nil
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
//
|
|
499
|
-
|
|
498
|
+
// SwingStoreArtifact encodes an artifact of a swing-store export.
|
|
499
|
+
// Artifacts may be stored or transmitted in any order. Most handlers do
|
|
500
|
+
// maintain the artifact order from their original source as an effect of how
|
|
501
|
+
// they handle the artifacts.
|
|
502
|
+
type SwingStoreArtifact struct {
|
|
500
503
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
|
|
501
504
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"data"`
|
|
502
505
|
}
|
|
503
506
|
|
|
504
|
-
func (m *
|
|
505
|
-
func (m *
|
|
506
|
-
func (*
|
|
507
|
-
func (*
|
|
507
|
+
func (m *SwingStoreArtifact) Reset() { *m = SwingStoreArtifact{} }
|
|
508
|
+
func (m *SwingStoreArtifact) String() string { return proto.CompactTextString(m) }
|
|
509
|
+
func (*SwingStoreArtifact) ProtoMessage() {}
|
|
510
|
+
func (*SwingStoreArtifact) Descriptor() ([]byte, []int) {
|
|
508
511
|
return fileDescriptor_ff9c341e0de15f8b, []int{8}
|
|
509
512
|
}
|
|
510
|
-
func (m *
|
|
513
|
+
func (m *SwingStoreArtifact) XXX_Unmarshal(b []byte) error {
|
|
511
514
|
return m.Unmarshal(b)
|
|
512
515
|
}
|
|
513
|
-
func (m *
|
|
516
|
+
func (m *SwingStoreArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
514
517
|
if deterministic {
|
|
515
|
-
return
|
|
518
|
+
return xxx_messageInfo_SwingStoreArtifact.Marshal(b, m, deterministic)
|
|
516
519
|
} else {
|
|
517
520
|
b = b[:cap(b)]
|
|
518
521
|
n, err := m.MarshalToSizedBuffer(b)
|
|
@@ -522,26 +525,26 @@ func (m *ExtensionSnapshotterArtifactPayload) XXX_Marshal(b []byte, deterministi
|
|
|
522
525
|
return b[:n], nil
|
|
523
526
|
}
|
|
524
527
|
}
|
|
525
|
-
func (m *
|
|
526
|
-
|
|
528
|
+
func (m *SwingStoreArtifact) XXX_Merge(src proto.Message) {
|
|
529
|
+
xxx_messageInfo_SwingStoreArtifact.Merge(m, src)
|
|
527
530
|
}
|
|
528
|
-
func (m *
|
|
531
|
+
func (m *SwingStoreArtifact) XXX_Size() int {
|
|
529
532
|
return m.Size()
|
|
530
533
|
}
|
|
531
|
-
func (m *
|
|
532
|
-
|
|
534
|
+
func (m *SwingStoreArtifact) XXX_DiscardUnknown() {
|
|
535
|
+
xxx_messageInfo_SwingStoreArtifact.DiscardUnknown(m)
|
|
533
536
|
}
|
|
534
537
|
|
|
535
|
-
var
|
|
538
|
+
var xxx_messageInfo_SwingStoreArtifact proto.InternalMessageInfo
|
|
536
539
|
|
|
537
|
-
func (m *
|
|
540
|
+
func (m *SwingStoreArtifact) GetName() string {
|
|
538
541
|
if m != nil {
|
|
539
542
|
return m.Name
|
|
540
543
|
}
|
|
541
544
|
return ""
|
|
542
545
|
}
|
|
543
546
|
|
|
544
|
-
func (m *
|
|
547
|
+
func (m *SwingStoreArtifact) GetData() []byte {
|
|
545
548
|
if m != nil {
|
|
546
549
|
return m.Data
|
|
547
550
|
}
|
|
@@ -557,67 +560,66 @@ func init() {
|
|
|
557
560
|
proto.RegisterType((*PowerFlagFee)(nil), "agoric.swingset.PowerFlagFee")
|
|
558
561
|
proto.RegisterType((*QueueSize)(nil), "agoric.swingset.QueueSize")
|
|
559
562
|
proto.RegisterType((*Egress)(nil), "agoric.swingset.Egress")
|
|
560
|
-
proto.RegisterType((*
|
|
563
|
+
proto.RegisterType((*SwingStoreArtifact)(nil), "agoric.swingset.SwingStoreArtifact")
|
|
561
564
|
}
|
|
562
565
|
|
|
563
566
|
func init() { proto.RegisterFile("agoric/swingset/swingset.proto", fileDescriptor_ff9c341e0de15f8b) }
|
|
564
567
|
|
|
565
568
|
var fileDescriptor_ff9c341e0de15f8b = []byte{
|
|
566
|
-
//
|
|
567
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55,
|
|
568
|
-
0x14,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
0xef,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
0xf9,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
0xff, 0xff, 0xd2, 0xc0, 0xc3, 0x71, 0x69, 0x06, 0x00, 0x00,
|
|
569
|
+
// 842 bytes of a gzipped FileDescriptorProto
|
|
570
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6f, 0xe3, 0x44,
|
|
571
|
+
0x14, 0x8e, 0x49, 0x52, 0x9a, 0x97, 0x6c, 0xbb, 0x0c, 0x95, 0x36, 0x54, 0x6c, 0xa6, 0xf2, 0x85,
|
|
572
|
+
0x4a, 0xab, 0x8d, 0xb7, 0x20, 0x84, 0x94, 0x15, 0x87, 0xb8, 0xea, 0x6a, 0x25, 0x04, 0x0a, 0x8e,
|
|
573
|
+
0xca, 0x01, 0x81, 0xac, 0x89, 0x33, 0x31, 0xd3, 0x3a, 0x1e, 0xef, 0xcc, 0xf4, 0xd7, 0xfe, 0x03,
|
|
574
|
+
0x70, 0x41, 0x42, 0x9c, 0x38, 0xf6, 0xcc, 0x5f, 0xb2, 0xc7, 0x3d, 0x22, 0x0e, 0x06, 0xb5, 0x17,
|
|
575
|
+
0xd4, 0x63, 0x8e, 0x48, 0x48, 0x68, 0x66, 0x1c, 0xc7, 0xa2, 0x48, 0xf4, 0xc2, 0x29, 0xf3, 0x7e,
|
|
576
|
+
0x7d, 0xef, 0x7d, 0xdf, 0x1b, 0x4f, 0xa0, 0x47, 0x62, 0x2e, 0x58, 0xe4, 0xc9, 0x33, 0x96, 0xc6,
|
|
577
|
+
0x92, 0xaa, 0xf2, 0xd0, 0xcf, 0x04, 0x57, 0x1c, 0x6d, 0xda, 0x78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e7, 0xf7,
|
|
619
|
+
0xab, 0x9e, 0xf3, 0xc3, 0x75, 0xaf, 0xf6, 0xfa, 0xba, 0x57, 0xfb, 0xe5, 0xba, 0x57, 0xfb, 0xf2,
|
|
620
|
+
0x69, 0x45, 0x9e, 0xa1, 0xfd, 0x73, 0xb0, 0x1f, 0x83, 0x91, 0x27, 0xe6, 0x09, 0x49, 0xe3, 0xa5,
|
|
621
|
+
0x6e, 0xe7, 0xab, 0xff, 0x0d, 0xa3, 0xdb, 0x64, 0xcd, 0x3c, 0xf7, 0x1f, 0xfc, 0x1d, 0x00, 0x00,
|
|
622
|
+
0xff, 0xff, 0xee, 0x34, 0x5f, 0xf6, 0x57, 0x06, 0x00, 0x00,
|
|
621
623
|
}
|
|
622
624
|
|
|
623
625
|
func (this *Params) Equal(that interface{}) bool {
|
|
@@ -1138,7 +1140,7 @@ func (m *Egress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
1138
1140
|
return len(dAtA) - i, nil
|
|
1139
1141
|
}
|
|
1140
1142
|
|
|
1141
|
-
func (m *
|
|
1143
|
+
func (m *SwingStoreArtifact) Marshal() (dAtA []byte, err error) {
|
|
1142
1144
|
size := m.Size()
|
|
1143
1145
|
dAtA = make([]byte, size)
|
|
1144
1146
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
@@ -1148,12 +1150,12 @@ func (m *ExtensionSnapshotterArtifactPayload) Marshal() (dAtA []byte, err error)
|
|
|
1148
1150
|
return dAtA[:n], nil
|
|
1149
1151
|
}
|
|
1150
1152
|
|
|
1151
|
-
func (m *
|
|
1153
|
+
func (m *SwingStoreArtifact) MarshalTo(dAtA []byte) (int, error) {
|
|
1152
1154
|
size := m.Size()
|
|
1153
1155
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1154
1156
|
}
|
|
1155
1157
|
|
|
1156
|
-
func (m *
|
|
1158
|
+
func (m *SwingStoreArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1157
1159
|
i := len(dAtA)
|
|
1158
1160
|
_ = i
|
|
1159
1161
|
var l int
|
|
@@ -1351,7 +1353,7 @@ func (m *Egress) Size() (n int) {
|
|
|
1351
1353
|
return n
|
|
1352
1354
|
}
|
|
1353
1355
|
|
|
1354
|
-
func (m *
|
|
1356
|
+
func (m *SwingStoreArtifact) Size() (n int) {
|
|
1355
1357
|
if m == nil {
|
|
1356
1358
|
return 0
|
|
1357
1359
|
}
|
|
@@ -2419,7 +2421,7 @@ func (m *Egress) Unmarshal(dAtA []byte) error {
|
|
|
2419
2421
|
}
|
|
2420
2422
|
return nil
|
|
2421
2423
|
}
|
|
2422
|
-
func (m *
|
|
2424
|
+
func (m *SwingStoreArtifact) Unmarshal(dAtA []byte) error {
|
|
2423
2425
|
l := len(dAtA)
|
|
2424
2426
|
iNdEx := 0
|
|
2425
2427
|
for iNdEx < l {
|
|
@@ -2442,10 +2444,10 @@ func (m *ExtensionSnapshotterArtifactPayload) Unmarshal(dAtA []byte) error {
|
|
|
2442
2444
|
fieldNum := int32(wire >> 3)
|
|
2443
2445
|
wireType := int(wire & 0x7)
|
|
2444
2446
|
if wireType == 4 {
|
|
2445
|
-
return fmt.Errorf("proto:
|
|
2447
|
+
return fmt.Errorf("proto: SwingStoreArtifact: wiretype end group for non-group")
|
|
2446
2448
|
}
|
|
2447
2449
|
if fieldNum <= 0 {
|
|
2448
|
-
return fmt.Errorf("proto:
|
|
2450
|
+
return fmt.Errorf("proto: SwingStoreArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2449
2451
|
}
|
|
2450
2452
|
switch fieldNum {
|
|
2451
2453
|
case 1:
|