SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
Service Tokens
alex.batlin@trustology.io
https://github.com/Trustology/ServiceToken
Alex Batlin
Founder & CEO of Trustology
Before starting Trustology, Alex Batlin was the Global
Head of Emerging Business & Technology team and
the Global Blockchain Lead at BNY Mellon,
responsible for research and development of
emerging technology enabled business strategy,
business models, products and services.
Previously, Alex was a Senior Innovation Manager at
UBS, a founding head of both UBS's FinTech
Innovation Lab based in UK's Level 39 accelerator and
UBS's Crypto 2.0 Pathfinder research programme into
blockchain technology and its impact on business
models.
Alex is the founding member of EEA, USC, Trusted IoT
and R3 consortias.
Trustology
safeguarding crypto assets
Trustology is building a custody platform to
safeguard your crypto assets.
Our smart accounts will be customisable to satisfy
the diverse needs of individual, corporate, exchange
and institutional clients, now and in the future.
Problem
Consultancy
Q1 Q2 Q3 Q4
Budget Approval Consultancy NeedBudget Risk
Consultant Client
Service Units
Consultant
100
82
010
Client
100
91
19
Service Tokens
Consultant
100
82
010
Client
100
82
010
Service Token Components
Service Token Contracts
ServiceAgreement Workflow
ServiceTask Workflow
AgreementFactory
contract AgreementFactory {
event Agreement(ServiceAgreement agreement, ...);
ServiceAgreement[] public agreements; // registry of agreements
...
function createAgreement(...) {
ServiceAgreement agreement = new ServiceAgreement(...);
agreements.push(agreement);
Agreement(agreement, msg.sender, issuer, beneficiary);
}
function getAgreements() returns (ServiceAgreement[] _agreements) {
return agreements;
}
...
}
ServiceAgreement
contract ServiceAgreement {
enum States { Created, Proposed, Withdrawn, Accepted, Rejected }
event StateChange(States indexed oldState, States indexed newState);
States public state;
ServiceToken public token; // link to the created token
AgreementFactory public factory; // validatecontract is recognised by factory
... modifier onlyIssuer { require(msg.sender == issuer); _; } ...
function ServiceAgreement(...) {
... factory = AgreementFactory(msg.sender);
state = States.Created;
}
function propose(bytes32 hashedHash) onlyIssuer onlyCreated {
contentHash = hashedHash;
state = States.Proposed;
StateChange(States.Created, States.Proposed);
}
}
ServiceToken
contract ServiceToken {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
ServiceAgreement public agreement; // Backlink to agreement
ServiceTask[] public tasks; // Stores the registry of creating task contracts
...
function balanceOf(address _addr) constant returns (uint256 balance) {
if ((now > agreement.validFrom()) && (now < agreement.expiresEnd())) {
return balances[_addr]; // otherwise return the balance as is
} else {
return 0;
}
}
...
function transfer(address _to, uint256 _value) {
... require(now > agreement.validFrom());
require(now < agreement.expiresEnd()); ...
}
}

Contenu connexe

Similaire à Service Token QCON Presentation

Blockchain architected
Blockchain architectedBlockchain architected
Blockchain architectedIBM Sverige
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureNuri Cankaya
 
“Create your own cryptocurrency in an hour” - Sandip Pandey
“Create your own cryptocurrency in an hour” - Sandip Pandey“Create your own cryptocurrency in an hour” - Sandip Pandey
“Create your own cryptocurrency in an hour” - Sandip PandeyEIT Digital Alumni
 
Hello world contract
Hello world contractHello world contract
Hello world contractGene Leybzon
 
Blockchain envisioning - Solution brief
Blockchain envisioning  - Solution briefBlockchain envisioning  - Solution brief
Blockchain envisioning - Solution briefPablo Junco
 
Building and deploying microservices with event sourcing, CQRS and Docker (Me...
Building and deploying microservices with event sourcing, CQRS and Docker (Me...Building and deploying microservices with event sourcing, CQRS and Docker (Me...
Building and deploying microservices with event sourcing, CQRS and Docker (Me...Chris Richardson
 
Working with Smart contracts in Javascript
Working with Smart contracts in JavascriptWorking with Smart contracts in Javascript
Working with Smart contracts in JavascriptMikhail Kuznetcov
 
Blockchain on Azure
Blockchain on AzureBlockchain on Azure
Blockchain on AzureNuri Cankaya
 
Stacks 2.0 Introduction ($STX)
Stacks 2.0 Introduction ($STX)Stacks 2.0 Introduction ($STX)
Stacks 2.0 Introduction ($STX)Trevor Owens
 
Using Queryable State for Fun and Profit
Using Queryable State for Fun and ProfitUsing Queryable State for Fun and Profit
Using Queryable State for Fun and ProfitFlink Forward
 
Brugu Blockchain Services
Brugu Blockchain ServicesBrugu Blockchain Services
Brugu Blockchain Serviceslaurastephen7
 
Blockchain technology-in-fin tech - Anton Sitnikov
Blockchain technology-in-fin tech - Anton SitnikovBlockchain technology-in-fin tech - Anton Sitnikov
Blockchain technology-in-fin tech - Anton SitnikovDataFest Tbilisi
 
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...Daniel Riceberg
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Codemotion
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Codemotion
 
Blockchain development services
Blockchain development servicesBlockchain development services
Blockchain development servicesVishvendra Saini
 
Blokpark - Decentralized SaaS Property Management System
Blokpark - Decentralized SaaS Property Management SystemBlokpark - Decentralized SaaS Property Management System
Blokpark - Decentralized SaaS Property Management SystemDaniel Riceberg
 
P8 a blockchain framework for insurance processes
P8 a blockchain framework for insurance processesP8 a blockchain framework for insurance processes
P8 a blockchain framework for insurance processesdevid8
 
Security in the blockchain
Security in the blockchainSecurity in the blockchain
Security in the blockchainBellaj Badr
 

Similaire à Service Token QCON Presentation (20)

Blockchain architected
Blockchain architectedBlockchain architected
Blockchain architected
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on Azure
 
“Create your own cryptocurrency in an hour” - Sandip Pandey
“Create your own cryptocurrency in an hour” - Sandip Pandey“Create your own cryptocurrency in an hour” - Sandip Pandey
“Create your own cryptocurrency in an hour” - Sandip Pandey
 
Hello world contract
Hello world contractHello world contract
Hello world contract
 
Ethereum Smart Contracts 101 with Cryptizens.io
Ethereum Smart Contracts 101 with Cryptizens.ioEthereum Smart Contracts 101 with Cryptizens.io
Ethereum Smart Contracts 101 with Cryptizens.io
 
Blockchain envisioning - Solution brief
Blockchain envisioning  - Solution briefBlockchain envisioning  - Solution brief
Blockchain envisioning - Solution brief
 
Building and deploying microservices with event sourcing, CQRS and Docker (Me...
Building and deploying microservices with event sourcing, CQRS and Docker (Me...Building and deploying microservices with event sourcing, CQRS and Docker (Me...
Building and deploying microservices with event sourcing, CQRS and Docker (Me...
 
Working with Smart contracts in Javascript
Working with Smart contracts in JavascriptWorking with Smart contracts in Javascript
Working with Smart contracts in Javascript
 
Blockchain on Azure
Blockchain on AzureBlockchain on Azure
Blockchain on Azure
 
Stacks 2.0 Introduction ($STX)
Stacks 2.0 Introduction ($STX)Stacks 2.0 Introduction ($STX)
Stacks 2.0 Introduction ($STX)
 
Using Queryable State for Fun and Profit
Using Queryable State for Fun and ProfitUsing Queryable State for Fun and Profit
Using Queryable State for Fun and Profit
 
Brugu Blockchain Services
Brugu Blockchain ServicesBrugu Blockchain Services
Brugu Blockchain Services
 
Blockchain technology-in-fin tech - Anton Sitnikov
Blockchain technology-in-fin tech - Anton SitnikovBlockchain technology-in-fin tech - Anton Sitnikov
Blockchain technology-in-fin tech - Anton Sitnikov
 
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...
Blokpark - Decentralized SaaS Property Management System Backed by Real Estat...
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
 
Blockchain development services
Blockchain development servicesBlockchain development services
Blockchain development services
 
Blokpark - Decentralized SaaS Property Management System
Blokpark - Decentralized SaaS Property Management SystemBlokpark - Decentralized SaaS Property Management System
Blokpark - Decentralized SaaS Property Management System
 
P8 a blockchain framework for insurance processes
P8 a blockchain framework for insurance processesP8 a blockchain framework for insurance processes
P8 a blockchain framework for insurance processes
 
Security in the blockchain
Security in the blockchainSecurity in the blockchain
Security in the blockchain
 

Dernier

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Dernier (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

Service Token QCON Presentation

  • 2. Alex Batlin Founder & CEO of Trustology Before starting Trustology, Alex Batlin was the Global Head of Emerging Business & Technology team and the Global Blockchain Lead at BNY Mellon, responsible for research and development of emerging technology enabled business strategy, business models, products and services. Previously, Alex was a Senior Innovation Manager at UBS, a founding head of both UBS's FinTech Innovation Lab based in UK's Level 39 accelerator and UBS's Crypto 2.0 Pathfinder research programme into blockchain technology and its impact on business models. Alex is the founding member of EEA, USC, Trusted IoT and R3 consortias.
  • 3. Trustology safeguarding crypto assets Trustology is building a custody platform to safeguard your crypto assets. Our smart accounts will be customisable to satisfy the diverse needs of individual, corporate, exchange and institutional clients, now and in the future.
  • 4. Problem Consultancy Q1 Q2 Q3 Q4 Budget Approval Consultancy NeedBudget Risk Consultant Client
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. AgreementFactory contract AgreementFactory { event Agreement(ServiceAgreement agreement, ...); ServiceAgreement[] public agreements; // registry of agreements ... function createAgreement(...) { ServiceAgreement agreement = new ServiceAgreement(...); agreements.push(agreement); Agreement(agreement, msg.sender, issuer, beneficiary); } function getAgreements() returns (ServiceAgreement[] _agreements) { return agreements; } ... }
  • 17. ServiceAgreement contract ServiceAgreement { enum States { Created, Proposed, Withdrawn, Accepted, Rejected } event StateChange(States indexed oldState, States indexed newState); States public state; ServiceToken public token; // link to the created token AgreementFactory public factory; // validatecontract is recognised by factory ... modifier onlyIssuer { require(msg.sender == issuer); _; } ... function ServiceAgreement(...) { ... factory = AgreementFactory(msg.sender); state = States.Created; } function propose(bytes32 hashedHash) onlyIssuer onlyCreated { contentHash = hashedHash; state = States.Proposed; StateChange(States.Created, States.Proposed); } }
  • 18. ServiceToken contract ServiceToken { event Transfer(address indexed _from, address indexed _to, uint256 _value); ServiceAgreement public agreement; // Backlink to agreement ServiceTask[] public tasks; // Stores the registry of creating task contracts ... function balanceOf(address _addr) constant returns (uint256 balance) { if ((now > agreement.validFrom()) && (now < agreement.expiresEnd())) { return balances[_addr]; // otherwise return the balance as is } else { return 0; } } ... function transfer(address _to, uint256 _value) { ... require(now > agreement.validFrom()); require(now < agreement.expiresEnd()); ... } }