@flowtyio/flow-contracts 0.1.0-beta.9 → 0.1.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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/contracts/FungibleTokenSwitchboard.cdc +360 -0
  3. package/contracts/MetadataViews.cdc +79 -6
  4. package/contracts/NonFungibleToken.cdc +17 -10
  5. package/contracts/capability-cache/CapabilityCache.cdc +97 -0
  6. package/contracts/dapper/TopShot.cdc +323 -259
  7. package/contracts/dapper/TopShotLocking.cdc +41 -15
  8. package/contracts/dapper/offers/DapperOffersV2.cdc +46 -43
  9. package/contracts/dapper/offers/OffersV2.cdc +40 -56
  10. package/contracts/dapper/offers/Resolver.cdc +20 -13
  11. package/contracts/emerald-city/FLOAT.cdc +259 -254
  12. package/contracts/example/ExampleNFT.cdc +2 -2
  13. package/contracts/find/FindViews.cdc +357 -353
  14. package/contracts/flow-utils/ScopedFTProviders.cdc +5 -2
  15. package/contracts/flow-utils/ScopedNFTProviders.cdc +6 -2
  16. package/contracts/flowty-drops/ContractManager.cdc +73 -0
  17. package/contracts/flowty-drops/DropFactory.cdc +75 -0
  18. package/contracts/flowty-drops/DropTypes.cdc +282 -0
  19. package/contracts/flowty-drops/FlowtyActiveCheckers.cdc +113 -0
  20. package/contracts/flowty-drops/FlowtyAddressVerifiers.cdc +64 -0
  21. package/contracts/flowty-drops/FlowtyDrops.cdc +461 -0
  22. package/contracts/flowty-drops/FlowtyPricers.cdc +48 -0
  23. package/contracts/flowty-drops/initializers/ContractBorrower.cdc +14 -0
  24. package/contracts/flowty-drops/initializers/ContractInitializer.cdc +7 -0
  25. package/contracts/flowty-drops/initializers/OpenEditionInitializer.cdc +57 -0
  26. package/contracts/flowty-drops/nft/BaseCollection.cdc +97 -0
  27. package/contracts/flowty-drops/nft/BaseNFT.cdc +107 -0
  28. package/contracts/flowty-drops/nft/ContractFactory.cdc +13 -0
  29. package/contracts/flowty-drops/nft/ContractFactoryTemplate.cdc +48 -0
  30. package/contracts/flowty-drops/nft/NFTMetadata.cdc +140 -0
  31. package/contracts/flowty-drops/nft/OpenEditionNFT.cdc +42 -0
  32. package/contracts/flowty-drops/nft/OpenEditionTemplate.cdc +54 -0
  33. package/contracts/flowty-drops/nft/UniversalCollection.cdc +29 -0
  34. package/contracts/fungible-token-router/FungibleTokenRouter.cdc +103 -0
  35. package/contracts/hybrid-custody/CapabilityDelegator.cdc +28 -26
  36. package/contracts/hybrid-custody/CapabilityFactory.cdc +20 -18
  37. package/contracts/hybrid-custody/CapabilityFilter.cdc +41 -24
  38. package/contracts/hybrid-custody/HybridCustody.cdc +303 -242
  39. package/contracts/hybrid-custody/factories/FTAllFactory.cdc +16 -4
  40. package/contracts/hybrid-custody/factories/FTBalanceFactory.cdc +16 -4
  41. package/contracts/hybrid-custody/factories/FTProviderFactory.cdc +17 -5
  42. package/contracts/hybrid-custody/factories/FTReceiverBalanceFactory.cdc +16 -4
  43. package/contracts/hybrid-custody/factories/FTReceiverFactory.cdc +16 -4
  44. package/contracts/hybrid-custody/factories/FTVaultFactory.cdc +46 -0
  45. package/contracts/hybrid-custody/factories/NFTCollectionFactory.cdc +45 -0
  46. package/contracts/hybrid-custody/factories/NFTCollectionPublicFactory.cdc +16 -4
  47. package/contracts/hybrid-custody/factories/NFTProviderAndCollectionFactory.cdc +22 -0
  48. package/contracts/hybrid-custody/factories/NFTProviderFactory.cdc +16 -4
  49. package/contracts/lost-and-found/LostAndFound.cdc +21 -17
  50. package/flow.json +181 -7
  51. package/package.json +1 -1
  52. package/contracts/hybrid-custody/factories/NFTProviderAndCollectionPublicFactory.cdc +0 -10
package/flow.json CHANGED
@@ -33,8 +33,8 @@
33
33
  "source": "./contracts/Burner.cdc",
34
34
  "aliases": {
35
35
  "emulator": "0xf8d6e0586b0a20c7",
36
- "testnet": "0x631e88ae7f1d7c20",
37
- "mainnet": "0x1d7e57aa55817448"
36
+ "testnet": "0x9a0766d93b6608b7",
37
+ "mainnet": "0xf233dcee88fe0abe"
38
38
  }
39
39
  },
40
40
  "MetadataViews": {
@@ -61,6 +61,14 @@
61
61
  "mainnet": "0xf233dcee88fe0abe"
62
62
  }
63
63
  },
64
+ "FungibleTokenSwitchboard": {
65
+ "source": "./contracts/FungibleTokenSwitchboard.cdc",
66
+ "aliases": {
67
+ "emulator": "0xee82856bf20e2aa6",
68
+ "testnet": "0x9a0766d93b6608b7",
69
+ "mainnet": "0xf233dcee88fe0abe"
70
+ }
71
+ },
64
72
  "ViewResolver": {
65
73
  "source": "./contracts/ViewResolver.cdc",
66
74
  "aliases": {
@@ -141,8 +149,8 @@
141
149
  "mainnet": "0xd8a7e05a7ac670c0"
142
150
  }
143
151
  },
144
- "NFTProviderAndCollectionPublicFactory": {
145
- "source": "./contracts/hybrid-custody/factories/NFTProviderAndCollectionPublicFactory.cdc",
152
+ "NFTProviderAndCollectionFactory": {
153
+ "source": "./contracts/hybrid-custody/factories/NFTProviderAndCollectionFactory.cdc",
146
154
  "aliases": {
147
155
  "emulator": "0xf8d6e0586b0a20c7",
148
156
  "testnet": "0x294e44e1ec6993c6",
@@ -186,7 +194,7 @@
186
194
  "aliases": {
187
195
  "emulator": "0xf8d6e0586b0a20c7",
188
196
  "testnet": "0x8c5303eaa26202d6",
189
- "mainnet": "0xf919ee77447b7497"
197
+ "mainnet": "0xe467b9dd11fa00df"
190
198
  }
191
199
  },
192
200
  "TokenForwarding": {
@@ -346,6 +354,160 @@
346
354
  "emulator": "0xf8d6e0586b0a20c7",
347
355
  "testing": "0x0000000000000007"
348
356
  }
357
+ },
358
+ "ContractManager": {
359
+ "source": "./contracts/flowty-drops/ContractManager.cdc",
360
+ "aliases": {
361
+ "testing": "0x0000000000000006",
362
+ "testnet": "0x772a10c786851a1b",
363
+ "emulator": "0xf8d6e0586b0a20c7"
364
+ }
365
+ },
366
+ "ContractInitializer": {
367
+ "source": "./contracts/flowty-drops/initializers/ContractInitializer.cdc",
368
+ "aliases": {
369
+ "testing": "0x0000000000000006",
370
+ "testnet": "0x772a10c786851a1b",
371
+ "emulator": "0xf8d6e0586b0a20c7"
372
+ }
373
+ },
374
+ "ContractBorrower": {
375
+ "source": "./contracts/flowty-drops/initializers/ContractBorrower.cdc",
376
+ "aliases": {
377
+ "testing": "0x0000000000000006",
378
+ "testnet": "0x772a10c786851a1b",
379
+ "emulator": "0xf8d6e0586b0a20c7"
380
+ }
381
+ },
382
+ "OpenEditionInitializer": {
383
+ "source": "./contracts/flowty-drops/initializers/OpenEditionInitializer.cdc",
384
+ "aliases": {
385
+ "testing": "0x0000000000000006",
386
+ "testnet": "0x772a10c786851a1b",
387
+ "emulator": "0xf8d6e0586b0a20c7"
388
+ }
389
+ },
390
+ "BaseCollection": {
391
+ "source": "./contracts/flowty-drops/nft/BaseCollection.cdc",
392
+ "aliases": {
393
+ "testing": "0x0000000000000006",
394
+ "testnet": "0x772a10c786851a1b",
395
+ "emulator": "0xf8d6e0586b0a20c7"
396
+ }
397
+ },
398
+ "ContractFactoryTemplate": {
399
+ "source": "./contracts/flowty-drops/nft/ContractFactoryTemplate.cdc",
400
+ "aliases": {
401
+ "testing": "0x0000000000000006",
402
+ "testnet": "0x772a10c786851a1b",
403
+ "emulator": "0xf8d6e0586b0a20c7"
404
+ }
405
+ },
406
+ "ContractFactory": {
407
+ "source": "./contracts/flowty-drops/nft/ContractFactory.cdc",
408
+ "aliases": {
409
+ "testing": "0x0000000000000006",
410
+ "testnet": "0x772a10c786851a1b",
411
+ "emulator": "0xf8d6e0586b0a20c7"
412
+ }
413
+ },
414
+ "OpenEditionTemplate": {
415
+ "source": "./contracts/flowty-drops/nft/OpenEditionTemplate.cdc",
416
+ "aliases": {
417
+ "testing": "0x0000000000000006",
418
+ "testnet": "0x772a10c786851a1b",
419
+ "emulator": "0xf8d6e0586b0a20c7"
420
+ }
421
+ },
422
+ "UniversalCollection": {
423
+ "source": "./contracts/flowty-drops/nft/UniversalCollection.cdc",
424
+ "aliases": {
425
+ "testing": "0x0000000000000006",
426
+ "testnet": "0x772a10c786851a1b",
427
+ "emulator": "0xf8d6e0586b0a20c7"
428
+ }
429
+ },
430
+ "BaseNFT": {
431
+ "source": "./contracts/flowty-drops/nft/BaseNFT.cdc",
432
+ "aliases": {
433
+ "testing": "0x0000000000000006",
434
+ "testnet": "0x772a10c786851a1b",
435
+ "emulator": "0xf8d6e0586b0a20c7"
436
+ }
437
+ },
438
+ "NFTMetadata": {
439
+ "source": "./contracts/flowty-drops/nft/NFTMetadata.cdc",
440
+ "aliases": {
441
+ "testing": "0x0000000000000006",
442
+ "testnet": "0x772a10c786851a1b",
443
+ "emulator": "0xf8d6e0586b0a20c7"
444
+ }
445
+ },
446
+ "FlowtyDrops": {
447
+ "source": "./contracts/flowty-drops/FlowtyDrops.cdc",
448
+ "aliases": {
449
+ "testing": "0x0000000000000006",
450
+ "testnet": "0x772a10c786851a1b",
451
+ "emulator": "0xf8d6e0586b0a20c7"
452
+ }
453
+ },
454
+ "DropFactory": {
455
+ "source": "./contracts/flowty-drops/DropFactory.cdc",
456
+ "aliases": {
457
+ "testing": "0x0000000000000006",
458
+ "testnet": "0x772a10c786851a1b",
459
+ "emulator": "0xf8d6e0586b0a20c7"
460
+ }
461
+ },
462
+ "FlowtyActiveCheckers": {
463
+ "source": "./contracts/flowty-drops/FlowtyActiveCheckers.cdc",
464
+ "aliases": {
465
+ "testing": "0x0000000000000006",
466
+ "testnet": "0x772a10c786851a1b",
467
+ "emulator": "0xf8d6e0586b0a20c7"
468
+ }
469
+ },
470
+ "FlowtyPricers": {
471
+ "source": "./contracts/flowty-drops/FlowtyPricers.cdc",
472
+ "aliases": {
473
+ "testing": "0x0000000000000006",
474
+ "testnet": "0x772a10c786851a1b",
475
+ "emulator": "0xf8d6e0586b0a20c7"
476
+ }
477
+ },
478
+ "FlowtyAddressVerifiers": {
479
+ "source": "./contracts/flowty-drops/FlowtyAddressVerifiers.cdc",
480
+ "aliases": {
481
+ "testing": "0x0000000000000006",
482
+ "testnet": "0x772a10c786851a1b",
483
+ "emulator": "0xf8d6e0586b0a20c7"
484
+ }
485
+ },
486
+ "DropTypes": {
487
+ "source": "./contracts/flowty-drops/DropTypes.cdc",
488
+ "aliases": {
489
+ "testing": "0x0000000000000006",
490
+ "testnet": "0x934da91a977f1ac4",
491
+ "emulator": "0xf8d6e0586b0a20c7"
492
+ }
493
+ },
494
+ "CapabilityCache": {
495
+ "source": "./contracts/capability-cache/CapabilityCache.cdc",
496
+ "aliases": {
497
+ "testing": "0x0000000000000007",
498
+ "emulator": "0xf8d6e0586b0a20c7",
499
+ "testnet": "0x83d75469f66d2ee6",
500
+ "mainnet": "0xacc5081c003e24cf"
501
+ }
502
+ },
503
+ "FungibleTokenRouter": {
504
+ "source": "./contracts/fungible-token-router/FungibleTokenRouter.cdc",
505
+ "aliases": {
506
+ "testing": "0x0000000000000007",
507
+ "emulator": "0xf8d6e0586b0a20c7",
508
+ "testnet": "0x83231f90a288bc35",
509
+ "mainnet": "0x707c0b39a8d689cb"
510
+ }
349
511
  }
350
512
  },
351
513
  "deployments": {
@@ -377,11 +539,23 @@
377
539
  "FindViews",
378
540
  "FLOAT",
379
541
  "ExampleNFT",
380
- "ExampleToken"
542
+ "ExampleToken",
543
+ "HybridCustody",
544
+ "CapabilityFactory",
545
+ "CapabilityDelegator",
546
+ "CapabilityFilter",
547
+ "FTAllFactory",
548
+ "FTBalanceFactory",
549
+ "FTProviderFactory",
550
+ "FTReceiverFactory",
551
+ "NFTCollectionPublicFactory",
552
+ "NFTProviderAndCollectionFactory",
553
+ "NFTProviderFactory"
381
554
  ],
382
555
  "emulator-ft": [
383
556
  "FungibleToken",
384
- "FungibleTokenMetadataViews"
557
+ "FungibleTokenMetadataViews",
558
+ "FungibleTokenSwitchboard"
385
559
  ],
386
560
  "emulator-flowtoken": [
387
561
  "FlowToken"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowtyio/flow-contracts",
3
- "version": "0.1.0-beta.9",
3
+ "version": "0.1.0",
4
4
  "main": "index.json",
5
5
  "description": "An NPM package for common flow contracts",
6
6
  "author": "flowtyio",
@@ -1,10 +0,0 @@
1
- import "CapabilityFactory"
2
- import "NonFungibleToken"
3
-
4
- pub contract NFTProviderAndCollectionFactory {
5
- pub struct Factory: CapabilityFactory.Factory {
6
- pub fun getCapability(acct: &AuthAccount, path: CapabilityPath): Capability {
7
- return acct.getCapability<&{NonFungibleToken.Provider, NonFungibleToken.CollectionPublic}>(path)
8
- }
9
- }
10
- }