Experimental Smalltalk Contract

— Name: Experimental Smalltalk Contract
— Script Lanuage: Smalltalk
— Blockchain: Ethereum Ropsten
— Deployed Contract:
— Version: 0.0.1 beta version
— Usage: Demonstrating a Simple Contract in Smalltalk Scripting

To deploy this contract to the blockchain and for any transaction, it is nessesary to install the MetaMask Tool and have an Ethereum wallet on it. But it is possible to play with the contract on a virtual Blockchain on Remix. The Smalltalk Contract needs to be first compiled to Solidity.

This very simple demo contract allows every blockchain wallet owner to change the number in the this Smat Contract, or to just query the value. The deployment and the a value change will cost gas to run. Different Apps can access the contract.

Smalltalk Testing App


The main poupose of the Distributed BlockChian Application for KaraSpace is the absolute open source transparency of the action and the temper free storage of the records. For this, the application code as well as the smart contract must be layed open, and must prove to describe the actual code that is running. For this, the source code and the development tools are provided.

This Experimental Contract is using the Smalltalk script, as it is the universal KaraSpace scripting paradigme.

Amber panal:

Simple Storage Dapp Example: Enter KaraSpace


Blockchain Smart Contract Sourcecode and Recources







'From Amber Smalltalk'!
SmartContract subclass: #SimpleStorage
	instanceVariableNames: 'storedData'
	package: 'BlockChain'!

!SimpleStorage class methodsFor: 'metadata' access: #private!
	"return the compiler version string"	
	^ '0.4.4'! !
!SimpleStorage methodsFor: 'public interface' access: #public!
set: anInteger
	"set the storedData to anInteger"			
	storedData := anInteger! !

	"get the storedData"	
	^ storedData! !

Further recources:

This post is also available in: Deutsch 简体中文