Welcome to the In-Game Advertising Marketplace, where you can buy spaces within the game to advertise
Build the application
./gradlew clean deployNodes
Launch the CorDapp now
./build/nodes/runnodes
./build/nodes/runnodes --allow-hibernate-to-manage-app-schema
- (Since there's an error when using a schema) ISSUE: corda/corda-gradle-plugins#390 *
run vaultQuery contractStateType: com.template.states.AdInventoryState
flow start CreateNewAccount acctName: EA-SPORTS
flow start CreateNewAccount acctName: Rockstar-Games
flow start ShareAccountTo acctNameShared: EA-SPORTS, shareTo: advertiser
flow start ShareAccountTo acctNameShared: Rockstar-Games, shareTo: advertiser
ShareAccountTo will share the Publishers accountInfo to all the advertisers
flow start CreateNewAccount acctName: NIKE
flow start CreateNewAccount acctName: PUMA
flow start ShareAccountTo acctNameShared: NIKE, shareTo: publisher
flow start ShareAccountTo acctNameShared: PUMA, shareTo: publisher
ShareAccountTo will share the Advertisers accountInfo to all the publishers
flow start ProposeAdvertisementFlow whoAmI: NIKE, whereTo: EA-SPORTS, adType: "Banner", adPlacement: "Top", adCost: "1000 USD", adExpiry: "2023-04-21"
flow start ViewInboxByAccount acctname: EA-SPORTS
- Use ViewInboxByAccount to view any proposal made by advertisers -> for publishers
- Use ViewInboxByAccount to view any offers accepted by publishers -> for advertisers
flow start AcceptAdvertisementProposalFlow publisher: EA-SPORTS, advertiser: NIKE, linearId: