@flowtyio/flow-contracts 0.0.11 → 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 +6 -0
- 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 +107 -2
- 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": {
|
|
@@ -135,6 +147,86 @@
|
|
|
135
147
|
"testnet": "0x294e44e1ec6993c6",
|
|
136
148
|
"mainnet": "0xd8a7e05a7ac670c0"
|
|
137
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"
|
|
229
|
+
}
|
|
138
230
|
}
|
|
139
231
|
},
|
|
140
232
|
"deployments": {
|
|
@@ -142,10 +234,23 @@
|
|
|
142
234
|
"emulator-account": [
|
|
143
235
|
"NonFungibleToken",
|
|
144
236
|
"MetadataViews",
|
|
145
|
-
"ViewResolver"
|
|
237
|
+
"ViewResolver",
|
|
238
|
+
"NFTCatalog",
|
|
239
|
+
"NFTCatalogAdmin",
|
|
240
|
+
"TokenForwarding",
|
|
241
|
+
"DapperUtilityCoin",
|
|
242
|
+
"FlowUtilityToken",
|
|
243
|
+
"FlowStorageFees",
|
|
244
|
+
"FeeEstimator",
|
|
245
|
+
"LostAndFound",
|
|
246
|
+
"LostAndFoundHelper"
|
|
146
247
|
],
|
|
147
248
|
"emulator-ft": [
|
|
148
|
-
"FungibleToken"
|
|
249
|
+
"FungibleToken",
|
|
250
|
+
"FungibleTokenMetadataViews"
|
|
251
|
+
],
|
|
252
|
+
"emulator-flowtoken": [
|
|
253
|
+
"FlowToken"
|
|
149
254
|
]
|
|
150
255
|
}
|
|
151
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)
|