@agoric/cosmos 0.34.2-dev-241c60a.0 → 0.34.2-dev-7728545.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/Makefile +1 -1
- package/git-revision.txt +1 -1
- package/go.mod +1 -1
- package/go.sum +2 -2
- package/package.json +2 -2
- package/x/lien/keeper/account.go +13 -8
package/Makefile
CHANGED
|
@@ -106,7 +106,7 @@ t:
|
|
|
106
106
|
|
|
107
107
|
TM_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/tendermint/tendermint)/proto/tendermint
|
|
108
108
|
GOGO_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/gogo/protobuf)
|
|
109
|
-
IBC_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/
|
|
109
|
+
IBC_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v4)/proto/ibc/core
|
|
110
110
|
COSMOS_SDK_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/cosmos
|
|
111
111
|
|
|
112
112
|
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7728545
|
package/go.mod
CHANGED
|
@@ -158,7 +158,7 @@ replace google.golang.org/grpc => google.golang.org/grpc v1.33.2
|
|
|
158
158
|
replace github.com/tendermint/tendermint => github.com/agoric-labs/cometbft v0.34.27-alpha.agoric.3
|
|
159
159
|
|
|
160
160
|
// We need a fork of cosmos-sdk until all of the differences are merged.
|
|
161
|
-
replace github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.
|
|
161
|
+
replace github.com/cosmos/cosmos-sdk => github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.3
|
|
162
162
|
|
|
163
163
|
// For testing against a local cosmos-sdk or tendermint
|
|
164
164
|
// replace github.com/cosmos/cosmos-sdk => ../../../forks/cosmos-sdk
|
package/go.sum
CHANGED
|
@@ -93,8 +93,8 @@ github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBA
|
|
|
93
93
|
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
|
94
94
|
github.com/agoric-labs/cometbft v0.34.27-alpha.agoric.3 h1:RrKcZClqKav60DA4XEEskEwSsNB3l4ENkBVR66jORvQ=
|
|
95
95
|
github.com/agoric-labs/cometbft v0.34.27-alpha.agoric.3/go.mod h1:BcCbhKv7ieM0KEddnYXvQZR+pZykTKReJJYf7YC7qhw=
|
|
96
|
-
github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.
|
|
97
|
-
github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.
|
|
96
|
+
github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.3 h1:kEcWMDCGVHOrk9FBvHPCgpVK4uCjHtoKDbRQqj5T4Og=
|
|
97
|
+
github.com/agoric-labs/cosmos-sdk v0.45.16-alpha.agoric.3/go.mod h1:T0VCPrAAeps81/pnD8b0+oBCMDxrkrD48W1t/XYYUeI=
|
|
98
98
|
github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1 h1:2jvHI/2d+psWAZy6FQ0vXJCHUtfU3ZbbW+pQFL04arQ=
|
|
99
99
|
github.com/agoric-labs/cosmos-sdk/ics23/go v0.8.0-alpha.agoric.1/go.mod h1:E45NqnlpxGnpfTWL/xauN7MRwEE28T4Dd4uraToOaKg=
|
|
100
100
|
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-7728545.0+7728545",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "7728545e0aeacc459474f51ef0837dbc12c78e52"
|
|
42
42
|
}
|
package/x/lien/keeper/account.go
CHANGED
|
@@ -16,16 +16,16 @@ import (
|
|
|
16
16
|
// In addition to the methods declared in authtypes.AccountI, additional
|
|
17
17
|
// expectations are enforced dynamically through casting and reflection:
|
|
18
18
|
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
19
|
+
// - non-module accounts are expected to obey the GenesisAccount interface,
|
|
20
|
+
// i.e. to have a Validate() method;
|
|
21
21
|
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
22
|
+
// - UnpackInterfacesMessage is needed for unpacking accounts embedded
|
|
23
|
+
// in an Any message;
|
|
24
24
|
//
|
|
25
|
-
//
|
|
25
|
+
// - MarshalYAML() is used for String rendering;
|
|
26
26
|
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
27
|
+
// - protobuf Messages are expected to implement a number of "XXX"-prefixed
|
|
28
|
+
// methods not visible in the Message interface.
|
|
29
29
|
//
|
|
30
30
|
// Declaring the expected methods here allows them to implicitly fall through
|
|
31
31
|
// to an embedded omniAccount.
|
|
@@ -116,7 +116,7 @@ func (uva unlockedVestingAccount) GetOriginalVesting() sdk.Coins {
|
|
|
116
116
|
return sdk.NewCoins()
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
//GetDelegatedFree implements the vestexported.VestingAccount interface.
|
|
119
|
+
// GetDelegatedFree implements the vestexported.VestingAccount interface.
|
|
120
120
|
func (uva unlockedVestingAccount) GetDelegatedFree() sdk.Coins {
|
|
121
121
|
return uva.lien.Delegated
|
|
122
122
|
}
|
|
@@ -172,6 +172,11 @@ func (fca fakeClawbackAccount) PostReward(ctx sdk.Context, reward sdk.Coins, act
|
|
|
172
172
|
return nil
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
// ReturnGrants implements the vestexported.ClawbackVestingAccountI interface.
|
|
176
|
+
func (fca fakeClawbackAccount) ReturnGrants(ctx sdk.Context, action vestexported.ReturnGrantAction) error {
|
|
177
|
+
return action.TakeGrants(ctx, fca.omniGrantAccount) // XXX or just fail here
|
|
178
|
+
}
|
|
179
|
+
|
|
175
180
|
// LienAccount wraps an omniClawbackAccount to implement lien encumbrance.
|
|
176
181
|
// The LockedCoins() method is the maximum of the coins locked for
|
|
177
182
|
// liens, and the coins locked in the underlying VestingAccount.
|