@agoric/cosmos 0.34.2-dev-3c781f6.0 → 0.34.2-dev-046eb05.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 +4 -10
- package/binding.gyp.in +1 -1
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/cmd/helper/main.go +0 -21
package/Makefile
CHANGED
|
@@ -38,15 +38,12 @@ ldflags += -compressdwarf=false
|
|
|
38
38
|
gcflags += -N -l
|
|
39
39
|
endif
|
|
40
40
|
|
|
41
|
-
ldflags_helper = $(ldflags) \
|
|
42
|
-
-X github.com/cosmos/cosmos-sdk/version.AppName=ag-cosmos-helper
|
|
43
41
|
BUILD_FLAGS := -tags "$(build_tags)" -gcflags '$(gcflags)' -ldflags '$(ldflags)'
|
|
44
|
-
BUILD_FLAGS_HELPER := -buildmode=exe -tags "$(build_tags)" -gcflags '$(gcflags)' -ldflags '$(ldflags_helper)'
|
|
45
42
|
|
|
46
43
|
all: compile-chain
|
|
47
44
|
|
|
48
|
-
compile-chain: compile-agd compile-
|
|
49
|
-
compile-go: compile-agd compile-
|
|
45
|
+
compile-chain: compile-agd compile-daemon
|
|
46
|
+
compile-go: compile-agd compile-libdaemon
|
|
50
47
|
compile-node: node-compile-gyp
|
|
51
48
|
|
|
52
49
|
compile-daemon: compile-libdaemon node-compile-gyp
|
|
@@ -60,10 +57,10 @@ node-compile-gyp:
|
|
|
60
57
|
fi
|
|
61
58
|
|
|
62
59
|
compile-agd: go-mod-cache
|
|
63
|
-
go build -v $(MOD_READONLY) $(
|
|
60
|
+
go build -v $(MOD_READONLY) $(BUILD_FLAGS) -buildmode=exe -o build/agd ./cmd/agd
|
|
64
61
|
|
|
65
62
|
install-agd: go-mod-cache
|
|
66
|
-
go install -v $(MOD_READONLY) $(
|
|
63
|
+
go install -v $(MOD_READONLY) $(BUILD_FLAGS) -buildmode=exe ./cmd/agd
|
|
67
64
|
|
|
68
65
|
# Only run from the package.json build:gyp script.
|
|
69
66
|
compile-gyp:
|
|
@@ -71,9 +68,6 @@ compile-gyp:
|
|
|
71
68
|
node-gyp configure build $(GYP_DEBUG) || { status=$$?; rm -f binding.gyp; exit $$status; }
|
|
72
69
|
rm -f binding.gyp
|
|
73
70
|
|
|
74
|
-
compile-helper: go-mod-cache
|
|
75
|
-
go build -v $(MOD_READONLY) $(BUILD_FLAGS_HELPER) -o build/ag-cosmos-helper ./cmd/helper
|
|
76
|
-
|
|
77
71
|
compile-libdaemon: go-mod-cache
|
|
78
72
|
go build -v $(MOD_READONLY) $(BUILD_FLAGS) -buildmode=c-shared -o build/libagcosmosdaemon.so ./cmd/libdaemon/main.go
|
|
79
73
|
|
package/binding.gyp.in
CHANGED
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
046eb05
|
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-046eb05.0+046eb05",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "046eb05f824bddad6e1980c2bfab7b3f57f1e60f"
|
|
39
39
|
}
|
package/cmd/helper/main.go
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
package main
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
"os"
|
|
5
|
-
"path/filepath"
|
|
6
|
-
|
|
7
|
-
gaia "github.com/Agoric/agoric-sdk/golang/cosmos/app"
|
|
8
|
-
"github.com/Agoric/agoric-sdk/golang/cosmos/daemon"
|
|
9
|
-
daemoncmd "github.com/Agoric/agoric-sdk/golang/cosmos/daemon/cmd"
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
func main() {
|
|
13
|
-
userHomeDir, err := os.UserHomeDir()
|
|
14
|
-
if err != nil {
|
|
15
|
-
panic(err)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
gaia.DefaultNodeHome = filepath.Join(userHomeDir, ".ag-cosmos-helper")
|
|
19
|
-
daemoncmd.AppName = "ag-cosmos-helper"
|
|
20
|
-
daemon.Run()
|
|
21
|
-
}
|