@flowtyio/flow-contracts 0.0.10 → 0.0.14
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/README.md +17 -11
- package/add.js +44 -4
- package/contracts/FlowStorageFees.cdc +193 -0
- package/contracts/FlowToken.cdc +274 -0
- package/contracts/FungibleTokenMetadataViews.cdc +183 -0
- package/contracts/TokenForwarding.cdc +82 -0
- package/contracts/dapper/DapperUtilityCoin.cdc +199 -0
- package/contracts/dapper/FlowUtilityToken.cdc +199 -0
- package/contracts/lost-and-found/FeeEstimator.cdc +62 -0
- package/contracts/lost-and-found/LostAndFound.cdc +758 -0
- package/contracts/lost-and-found/LostAndFoundHelper.cdc +42 -0
- package/contracts/nft-catalog/NFTCatalog.cdc +422 -0
- package/contracts/nft-catalog/NFTCatalogAdmin.cdc +175 -0
- package/flow.json +129 -13
- package/index.js +2 -2
- package/package.json +1 -1
package/flow.json
CHANGED
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"emulator-ft": {
|
|
14
14
|
"address": "ee82856bf20e2aa6",
|
|
15
15
|
"key": "a8201e155882e2a7ec94644ef0f023ecce8baec418276f95217db1ecf90b03db"
|
|
16
|
+
},
|
|
17
|
+
"emulator-flowtoken": {
|
|
18
|
+
"address": "0ae53cb6e3f42a79",
|
|
19
|
+
"key": "a8201e155882e2a7ec94644ef0f023ecce8baec418276f95217db1ecf90b03db"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"contracts": {
|
|
@@ -40,6 +44,14 @@
|
|
|
40
44
|
"mainnet": "0xf233dcee88fe0abe"
|
|
41
45
|
}
|
|
42
46
|
},
|
|
47
|
+
"FungibleTokenMetadataViews": {
|
|
48
|
+
"source": "./contracts/FungibleTokenMetadataViews.cdc",
|
|
49
|
+
"aliases": {
|
|
50
|
+
"emulator": "0xee82856bf20e2aa6",
|
|
51
|
+
"testnet": "0x9a0766d93b6608b7",
|
|
52
|
+
"mainnet": "0xf233dcee88fe0abe"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
43
55
|
"ViewResolver": {
|
|
44
56
|
"source": "./contracts/ViewResolver.cdc",
|
|
45
57
|
"aliases": {
|
|
@@ -52,77 +64,168 @@
|
|
|
52
64
|
"source": "./contracts/hybrid-custody/HybridCustody.cdc",
|
|
53
65
|
"aliases": {
|
|
54
66
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
55
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
67
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
68
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
56
69
|
}
|
|
57
70
|
},
|
|
58
71
|
"CapabilityFactory": {
|
|
59
72
|
"source": "./contracts/hybrid-custody/CapabilityFactory.cdc",
|
|
60
73
|
"aliases": {
|
|
61
74
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
62
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
75
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
76
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
63
77
|
}
|
|
64
78
|
},
|
|
65
79
|
"CapabilityDelegator": {
|
|
66
80
|
"source": "./contracts/hybrid-custody/CapabilityDelegator.cdc",
|
|
67
81
|
"aliases": {
|
|
68
82
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
69
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
83
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
84
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
70
85
|
}
|
|
71
86
|
},
|
|
72
87
|
"CapabilityFilter": {
|
|
73
88
|
"source": "./contracts/hybrid-custody/CapabilityFilter.cdc",
|
|
74
89
|
"aliases": {
|
|
75
90
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
76
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
91
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
92
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
77
93
|
}
|
|
78
94
|
},
|
|
79
95
|
"FTAllFactory": {
|
|
80
96
|
"source": "./contracts/hybrid-custody/factories/FTAllFactory.cdc",
|
|
81
97
|
"aliases": {
|
|
82
98
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
83
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
99
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
100
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
84
101
|
}
|
|
85
102
|
},
|
|
86
103
|
"FTBalanceFactory": {
|
|
87
104
|
"source": "./contracts/hybrid-custody/factories/FTBalanceFactory.cdc",
|
|
88
105
|
"aliases": {
|
|
89
106
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
90
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
107
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
108
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
91
109
|
}
|
|
92
110
|
},
|
|
93
111
|
"FTProviderFactory": {
|
|
94
112
|
"source": "./contracts/hybrid-custody/factories/FTProviderFactory.cdc",
|
|
95
113
|
"aliases": {
|
|
96
114
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
97
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
115
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
116
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
98
117
|
}
|
|
99
118
|
},
|
|
100
119
|
"FTReceiverFactory": {
|
|
101
120
|
"source": "./contracts/hybrid-custody/factories/FTReceiverFactory.cdc",
|
|
102
121
|
"aliases": {
|
|
103
122
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
104
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
123
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
124
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
105
125
|
}
|
|
106
126
|
},
|
|
107
127
|
"NFTCollectionPublicFactory": {
|
|
108
128
|
"source": "./contracts/hybrid-custody/factories/NFTCollectionPublicFactory.cdc",
|
|
109
129
|
"aliases": {
|
|
110
130
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
111
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
131
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
132
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
112
133
|
}
|
|
113
134
|
},
|
|
114
135
|
"NFTProviderAndCollectionPublicFactory": {
|
|
115
136
|
"source": "./contracts/hybrid-custody/factories/NFTProviderAndCollectionPublicFactory.cdc",
|
|
116
137
|
"aliases": {
|
|
117
138
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
118
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
139
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
140
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
119
141
|
}
|
|
120
142
|
},
|
|
121
143
|
"NFTProviderFactory": {
|
|
122
144
|
"source": "./contracts/hybrid-custody/factories/NFTProviderFactory.cdc",
|
|
123
145
|
"aliases": {
|
|
124
146
|
"emulator": "0xf8d6e0586b0a20c7",
|
|
125
|
-
"testnet": "0x294e44e1ec6993c6"
|
|
147
|
+
"testnet": "0x294e44e1ec6993c6",
|
|
148
|
+
"mainnet": "0xd8a7e05a7ac670c0"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"NFTCatalog": {
|
|
152
|
+
"source": "./contracts/nft-catalog/NFTCatalog.cdc",
|
|
153
|
+
"aliases": {
|
|
154
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
155
|
+
"testnet": "0x324c34e1c517e4db",
|
|
156
|
+
"mainnet": "0x49a7cda3a1eecc29"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"NFTCatalogAdmin": {
|
|
160
|
+
"source": "./contracts/nft-catalog/NFTCatalogAdmin.cdc",
|
|
161
|
+
"aliases": {
|
|
162
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
163
|
+
"testnet": "0x324c34e1c517e4db",
|
|
164
|
+
"mainnet": "0x49a7cda3a1eecc29"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"FlowToken": {
|
|
168
|
+
"source": "./contracts/FlowToken.cdc",
|
|
169
|
+
"aliases": {
|
|
170
|
+
"emulator": "0x0ae53cb6e3f42a79",
|
|
171
|
+
"testnet": "0x7e60df042a9c0868",
|
|
172
|
+
"mainnet": "0x1654653399040a61"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"FlowStorageFees": {
|
|
176
|
+
"source": "./contracts/FlowStorageFees.cdc",
|
|
177
|
+
"aliases": {
|
|
178
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
179
|
+
"testnet": "0x8c5303eaa26202d6",
|
|
180
|
+
"mainnet": "0xf919ee77447b7497"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"TokenForwarding": {
|
|
184
|
+
"source": "./contracts/TokenForwarding.cdc",
|
|
185
|
+
"aliases": {
|
|
186
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
187
|
+
"testnet": "0x51ea0e37c27a1f1a",
|
|
188
|
+
"mainnet": "0xe544175ee0461c4b"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"DapperUtilityCoin": {
|
|
192
|
+
"source": "./contracts/dapper/DapperUtilityCoin.cdc",
|
|
193
|
+
"aliases": {
|
|
194
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
195
|
+
"testnet": "0x82ec283f88a62e65",
|
|
196
|
+
"mainnet": "0xead892083b3e2c6c"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"FlowUtilityToken": {
|
|
200
|
+
"source": "./contracts/dapper/FlowUtilityToken.cdc",
|
|
201
|
+
"aliases": {
|
|
202
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
203
|
+
"testnet": "0x82ec283f88a62e65",
|
|
204
|
+
"mainnet": "0xead892083b3e2c6c"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"LostAndFound": {
|
|
208
|
+
"source": "./contracts/lost-and-found/LostAndFound.cdc",
|
|
209
|
+
"aliases": {
|
|
210
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
211
|
+
"testnet": "0xbe4635353f55bbd4",
|
|
212
|
+
"mainnet": "0x473d6a2c37eab5be"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"LostAndFoundHelper": {
|
|
216
|
+
"source": "./contracts/lost-and-found/LostAndFoundHelper.cdc",
|
|
217
|
+
"aliases": {
|
|
218
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
219
|
+
"testnet": "0xbe4635353f55bbd4",
|
|
220
|
+
"mainnet": "0x473d6a2c37eab5be"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"FeeEstimator": {
|
|
224
|
+
"source": "./contracts/lost-and-found/FeeEstimator.cdc",
|
|
225
|
+
"aliases": {
|
|
226
|
+
"emulator": "0xf8d6e0586b0a20c7",
|
|
227
|
+
"testnet": "0xbe4635353f55bbd4",
|
|
228
|
+
"mainnet": "0x473d6a2c37eab5be"
|
|
126
229
|
}
|
|
127
230
|
}
|
|
128
231
|
},
|
|
@@ -131,10 +234,23 @@
|
|
|
131
234
|
"emulator-account": [
|
|
132
235
|
"NonFungibleToken",
|
|
133
236
|
"MetadataViews",
|
|
134
|
-
"ViewResolver"
|
|
237
|
+
"ViewResolver",
|
|
238
|
+
"NFTCatalog",
|
|
239
|
+
"NFTCatalogAdmin",
|
|
240
|
+
"TokenForwarding",
|
|
241
|
+
"DapperUtilityCoin",
|
|
242
|
+
"FlowUtilityToken",
|
|
243
|
+
"FlowStorageFees",
|
|
244
|
+
"FeeEstimator",
|
|
245
|
+
"LostAndFound",
|
|
246
|
+
"LostAndFoundHelper"
|
|
135
247
|
],
|
|
136
248
|
"emulator-ft": [
|
|
137
|
-
"FungibleToken"
|
|
249
|
+
"FungibleToken",
|
|
250
|
+
"FungibleTokenMetadataViews"
|
|
251
|
+
],
|
|
252
|
+
"emulator-flowtoken": [
|
|
253
|
+
"FlowToken"
|
|
138
254
|
]
|
|
139
255
|
}
|
|
140
256
|
}
|
package/index.js
CHANGED
|
@@ -33,8 +33,8 @@ program.command("add-all")
|
|
|
33
33
|
.option('-a, --account <account>', 'Account to be used for signing', 'emulator-account')
|
|
34
34
|
.action(({config, account}) => {
|
|
35
35
|
if(!config) {
|
|
36
|
-
|
|
37
|
-
console.log("no config specified, using default config: ",
|
|
36
|
+
config = getDefaultConfigPath()
|
|
37
|
+
console.log("no config specified, using default config: ", config)
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
addAll(config, account)
|