@flowtyio/flow-contracts 0.0.5 → 0.0.7
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/flow.json +64 -0
- package/index.js +4 -1
- package/package.json +3 -2
package/flow.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"networks": {
|
|
3
|
+
"emulator": "127.0.0.1:3569",
|
|
4
|
+
"mainnet": "access.mainnet.nodes.onflow.org:9000",
|
|
5
|
+
"sandboxnet": "access.sandboxnet.nodes.onflow.org:9000",
|
|
6
|
+
"testnet": "access.devnet.nodes.onflow.org:9000"
|
|
7
|
+
},
|
|
8
|
+
"accounts": {
|
|
9
|
+
"emulator-account": {
|
|
10
|
+
"address": "f8d6e0586b0a20c7",
|
|
11
|
+
"key": "a8201e155882e2a7ec94644ef0f023ecce8baec418276f95217db1ecf90b03db"
|
|
12
|
+
},
|
|
13
|
+
"emulator-ft": {
|
|
14
|
+
"address": "ee82856bf20e2aa6",
|
|
15
|
+
"key": "a8201e155882e2a7ec94644ef0f023ecce8baec418276f95217db1ecf90b03db"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"contracts": {
|
|
19
|
+
"NonFungibleToken": {
|
|
20
|
+
"source": "./contracts/NonFungibleToken.cdc",
|
|
21
|
+
"aliases": {
|
|
22
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
23
|
+
"testnet": "0x631e88ae7f1d7c20",
|
|
24
|
+
"mainnet": "0x1d7e57aa55817448"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"MetadataViews": {
|
|
28
|
+
"source": "./contracts/MetadataViews.cdc",
|
|
29
|
+
"aliases": {
|
|
30
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
31
|
+
"testnet": "0x631e88ae7f1d7c20",
|
|
32
|
+
"mainnet": "0x1d7e57aa55817448"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"FungibleToken": {
|
|
36
|
+
"source": "./contracts/FungibleToken.cdc",
|
|
37
|
+
"aliases": {
|
|
38
|
+
"emulator": "0xee82856bf20e2aa6",
|
|
39
|
+
"testnet": "0x9a0766d93b6608b7",
|
|
40
|
+
"mainnet": "0xf233dcee88fe0abe"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"ViewResolver": {
|
|
44
|
+
"source": "./contracts/ViewResolver.cdc",
|
|
45
|
+
"aliases": {
|
|
46
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
47
|
+
"testnet": "0x631e88ae7f1d7c20",
|
|
48
|
+
"mainnet": "0x1d7e57aa55817448"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"deployments": {
|
|
53
|
+
"emulator": {
|
|
54
|
+
"emulator-account": [
|
|
55
|
+
"NonFungibleToken",
|
|
56
|
+
"MetadataViews",
|
|
57
|
+
"ViewResolver"
|
|
58
|
+
],
|
|
59
|
+
"emulator-ft": [
|
|
60
|
+
"FungibleToken"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
package/index.js
CHANGED
|
@@ -32,8 +32,11 @@ program.command("add-all")
|
|
|
32
32
|
.option('-c, --config <config>', 'File location of the config to be edited')
|
|
33
33
|
.option('-a, --account <account>', 'Account to be used for signing', 'emulator-account')
|
|
34
34
|
.action(({config, account}) => {
|
|
35
|
+
console.log("config: ", config, "account: ", account)
|
|
36
|
+
|
|
35
37
|
if(!config) {
|
|
36
|
-
config = getDefaultConfigPath()
|
|
38
|
+
options.config = getDefaultConfigPath()
|
|
39
|
+
console.log("no config specified, using default config: ", options.config)
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
addAll(config, account)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowtyio/flow-contracts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "index.json",
|
|
5
5
|
"description": "An NPM package for common flow contracts",
|
|
6
6
|
"author": "flowtyio",
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"*.js",
|
|
30
|
-
"README.md",
|
|
31
30
|
"index.json",
|
|
32
31
|
"contracts/*.cdc",
|
|
32
|
+
"flow.json",
|
|
33
|
+
"README.md",
|
|
33
34
|
"LICENSE"
|
|
34
35
|
]
|
|
35
36
|
}
|