drgorb / insurechain Goto Github PK
View Code? Open in Web Editor NEWInsuretech Use-Case - Automatic partner reconcilliation
License: MIT License
Insuretech Use-Case - Automatic partner reconcilliation
License: MIT License
when the user selects a different address in Metamask, the current user (displayed on top left) should change and the active role should change as well.
request registration in the system
When we send a transaction, we should wait for the transaction to be handled
the application loads before web3 can be injected. the appController (or some other piece) have to be modified, in order to wait until everything is loaded before starting
add function to get the retailer details by address
home page contains user details page appears:
retailers
insurance
Write a function that calculates the warranty price according to:
Bonus: Make this method upgradable
the metamask plugin injects the web3 object into the page. By calling web3.eth.accounts
you get an array with exactly one entry which corresponds to the currently selected account in metamask.
When the application opens, it should check the role for the currently active account and set the permissions accordingly
fields:
each user must have a role in order to access the functions which are not public. the role is determined by the address.
Each address should get a list of roles it can use
insurance holding the warranty
retailer who sold the warranty
create claim button for any retailer
cancel warranty button for the retailer who sold the warranty
Creation form
fields needed:
the warranties should be listable in total and by insurance
add a warrantyCount
to both InsureChain
and InsuranceManager.insurances
add a getWarrantyByIndex(uint idx)
to InusreChain
add a getWarrantyByIndex(address insuranceAddress, uint idx)
to InusreChain
as a developer, I want to be able to do everything only with npm.
in InsuranceManager there should be a method to get the balances for each retailer
The Insurance should update the policy number
each time the contract is deployed all the data is lost.
we need a script which creates an initial state of the contract after the deployment.
Search fields:
Should show:
Search fields:
if the extended warranty has not started yet, the retailer can cancel the warranty
in order to display the retailer information on the warranty details page the retailers address has to be returned
Page to create an insurance in the system (insurance only)
We need a page where an insurance can approve / deny a retailer
If a retailer just requested to become a retailer for an insurance, the home page is blank.
It should show a message saying that its request is pending
( makes it two different values to handle this )
each action on the smart-contract which requires external intervention will trigger an event which should be displayed to the user. The events are generated by the smart-contract and handled by the angular service.
we need a way to send the events to the right users. A kind of internal Messaging Service to the application.
If the event happens while the application is offline, the event will be picked up when the application starts.
already received events have to be persisted between restarts of the application until they have been handled.
Warranty structure:
Fields:
Search fields:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.