Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Readme #91

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Testnet/AddressMapper/README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Address Mapper Contract
Address mapper contract maps addresses such as you have two wallets: desktop and mobile wallets. You want to map the addresses of both wallets making one the primary address and the secondary address.

**Compiler Version**
```
Expand All @@ -13,3 +14,39 @@ ea55b6d2485904e940c1495472b3d25d1b2c01161f68714de02da8278f2635f1
```
4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C01020042542C900000000000000000E00022200B013000000E00000002000000000000C22C0000002000000040000000000010002000000002000004000000000000000400000000000000006000000002000000000000030040850000100000100000000010000010000000000000100000000000000000000000702C00004F000000000000000000000000000000000000000000000000000000004000000C000000542C00001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000C80C000000200000000E000000020000000000000000000000000000200000602E72656C6F6300000C000000004000000002000000100000000000000000000000000000400000420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A42C0000000000004800000002000500B0220000A409000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007202280500000A7201000070038C06000001280600000A6F0700000A2A7602280500000A7201000070038C06000001280600000A046F0800000A2A7202280500000A722B000070038C06000001280600000A6F0100002B2A7602280500000A722B000070038C06000001280600000A046F0200002B2A7202280500000A7243000070038C06000001280600000A6F0B00000A2A4602280500000A72630000706F0700000A2A4A02280500000A7263000070036F0800000A2A3E0203280C00000A020428070000062A13300400450000000100001102020328030000067B0600000416FE01726F000070280D00000A02031200FE1504000002120002280E00000A6F0F00000A7D050000041200177D060000040628040000062A00000013300400790000000200001102280E000006020328030000060A02067B0600000417FE01728D000070280D00000A02067B0500000403280200000602031201FE15040000021201067B050000047D050000041201187D06000004072804000006021202FE15050000021202067B050000047D070000041202037D0800000408280300002B2A000000133003002A0000000100001102280E000006020328030000060A02067B0600000417FE01728D000070280D00000A020328050000062A0000133003002300000001000011020328030000060A02067B0600000418FE0172CF000070280D00000A067B050000042ABA02280E00000602037E1100000A281200000A72090100707271010070280600000A280D00000A020328070000062A8A0202280600000602280E00000A6F0F00000A281300000A727D010070280D00000A2A00000042534A4201000100000000000C00000076342E302E33303331390000000005006C00000068030000237E0000D40300000003000023537472696E677300000000D4060000C00100002355530094080000100000002347554944000000A40800000001000023426C6F620000000000000002000001571DA201090A000000FA013300160000010000000E00000005000000080000000E0000000F0000001300000003000000060000000200000001000000010000000200000001000000020000000300000003000000000038010100000000000600A700CA010600D600CA0106009300B7010F00EA0100000A007B0254020A004C0254020A005B005402060051014A01060047004A010A00C70054020A0082005402060020014A01060089024A010A0032005402000000000100000000000100010001001000A3010000150001000100020100006D020000210001000F000A0110005B010000250005000F000A01100027010000250007000F0006060A00950056806B0298005680020198005680290098000600D602710006006D0295000600D60271000600C202710050200000000086001A029C0001006D200000000081002E02A30002008B200000000086000A01AB000400A8200000000081001501B2000500C6200000000081005601BA000700E3200000000086087D0157000800F5200000000081088701BA0008000821000000008618B101C00009001821000000008600F901BA000B006C21000000008600FA00BA000C00F4210000000086009002BA000D002C2200000000860042029C000E005B220000000086009101BA000F008A22000000008600B2020600100000000100DE0200000100DE0200000200CC0200000100CC0200000100CC0200000200F40000000100CC0200000100F400000001006F00000002009D0100000100CC0200000100CC0200000100CC0200000100CC02000001009D010900B10101001100B10106001900B1010A005100B1010600290051001000610074021500590004021B0059000F0221005900970228005900A102340059006C013C002900B10141002900AB024C0029003B0052007100720157002900340165003100670171003100F20275003100E602750008000800860008000C008B000800100090002E000B00CD002E001300D6002E001B00F500A10023008B00E10023008B00010123008B0047005C000200010000009701C8000200060003000100070003000480000000000000000000000000000000007B0200000400000000000000000000007D00120000000000020000000000000000000000000054020000000003000200040002000500020013002F0015002F0021006C000000003C4D6F64756C653E0076616C75655F5F0053797374656D2E507269766174652E436F72654C696200417070726F76656400494D657373616765006765745F4D6573736167650056616C756554797065006765745F53746174650049536D617274436F6E7472616374537461746500736D617274436F6E74726163745374617465004950657273697374656E7453746174650044656275676761626C6541747472696275746500436F6D70696C6174696F6E52656C61786174696F6E7341747472696275746500496E6465784174747269627574650052756E74696D65436F6D7061746962696C6974794174747269627574650076616C756500417070726F76650050656E64696E67004765744D617070696E67005365744D617070696E6700537472696E6700416464726573734D61707065644C6F6700536D617274436F6E74726163742E646C6C0053797374656D00456E756D00436C6561724D617070696E67496E666F005A65726F00436C656172006765745F53656E646572006765745F4F776E6572007365745F4F776E6572004368616E67654F776E6572006F776E657200416464726573734D6170706572002E63746F720053797374656D2E446961676E6F73746963730053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300446562756767696E674D6F646573004D61704164647265737300476574416464726573730053657441646472657373004765745365636F6E6461727941646472657373005365745365636F6E6461727941646472657373004765745072696D6172794164647265737300537472617469732E536D617274436F6E747261637473004E6F53746174757300466F726D617400536D617274436F6E7472616374004F626A6563740052656A65637400476574537472756374005365745374727563740041737365727400456E7375726541646D696E4F6E6C79005365636F6E64617279007365636F6E64617279005072696D617279007072696D617279006F705F457175616C697479006F705F496E657175616C6974790000295300650063006F006E00640061007200790041006400640072006500730073003A007B0030007D0000174D0061007000700069006E0067003A007B0030007D00001F4D0061007000700069006E00670049006E0066006F003A007B0030007D00000B4F0077006E0065007200001D41007300730065007200740020006600610069006C00650064002E0000414D0061007000700069006E00670020006900730020006E006F007400200069006E002000700065006E00640069006E0067002000730074006100740065002E00003954006800650020006D0061007000700069006E00670020006900730020006E006F007400200061007000700072006F007600650064002E00006754006800650020007B0030007D00200070006100720061006D0065007400650072002000630061006E0020006E006F0074002000620065002000640065006600610075006C00740028007A00650072006F002900200061006400640072006500730073002E00000B6F0077006E0065007200003F4F006E006C007900200063006F006E007400720061006300740020006F0077006E00650072002000630061006E0020006100630063006500730073002E0000000000EEE2C7F974D6C54DB86E6FFA481534DB00042001010803200001052001011111042000122D0500020E0E1C05200111190E062002010E1119063001011E000E040A01111007300102010E1E00042001010E05200101121D040701111005200201020E0420001239042000111908070311101110111406300101011E00040A011114030611190700020211191119087CEC85D7BEA7798E0400000000040100000004020000000206080306110C06200111191119072002011119111906200111101119072002011119111005200101111907200201121D111904280011190801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F777301080100020000000000000000000000000000000000000010000000000000000000000000000000982C00000000000000000000B22C0000002000000000000000000000000000000000000000000000A42C0000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF2500200010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000C43C00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
```

**Deployment**

Parameter required:
- `Address Owner`: Address of the Contract Owner

Once deployed, the address supplied during the deployment will be the owner of the contract. The owner of the Contract has special privileges such as the owner can:

- Approve the address mapping.
- Reject the mapping
- Change ownership of contract to other

**MapAddress**

Once deployed, user can call `MapAddress` method to map the secondary address. This method call must supply the secondary address that need to be mapped with the primary address. The address used to call this method becomes primary address and supplied address while calling this method becomes
secondary address.

**Approve**

The `Approve` method approves the mapping of address. Owner of the contract can only call this method and approve the mapping. This method call must supply the secondary address.

**Reject**

The owner of contract can reject the mapping of address calling `Reject` method. This method call requires secondary address to be passed as a parameter in the method call.

**ChangeOwner**

The owner of the contract can change the ownership of the contract to another address by calling `ChangeOwner` method. This method call requires new owner address to be passed as a parameter.

**GetPrimaryAddress**

The `GetPrimaryAddress` method gives the primary address based on the supplied secondary address. This method call requires secondary address to be passed as parameter in the method call.

**GetSecondaryAddress**

The `GetSecondaryAddress` method gives mapped secondary address. This method call must supply the primary address.
30 changes: 27 additions & 3 deletions Testnet/Identity/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Identity Contract

```
Identity contract that enables decentralised claim management for users
```
Identity contract that enables decentralised claim management for users.
It is a version of ERC 780 for claim management on the Stratis Platform. Particularly it is like a KYC claim to validate the identity of an individual whether he/she owns a given address.

**Compiler Version**
```
v2.0.0
Expand All @@ -16,3 +16,27 @@ v2.0.0
```
4D5A90000300000004000000FFFF0000B800000000000000400000000000000000000000000000000000000000000000000000000000000000000000800000000E1FBA0E00B409CD21B8014CCD21546869732070726F6772616D2063616E6E6F742062652072756E20696E20444F53206D6F64652E0D0D0A2400000000000000504500004C010200018E6DB60000000000000000E00022200B013000000A00000002000000000000AE2900000020000000400000000000100020000000020000040000000000000004000000000000000060000000020000000000000300408500001000001000000000100000100000000000001000000000000000000000005C2900004F000000000000000000000000000000000000000000000000000000004000000C000000402900001C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000080000000000000000000000082000004800000000000000000000002E74657874000000B409000000200000000A000000020000000000000000000000000000200000602E72656C6F6300000C0000000040000000020000000C000000000000000000000000000040000042000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090290000000000004800000002000500D42100006C07000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004602280500000A72010000706F0600000A2A4A02280500000A7201000070036F0700000A2A660203280800000A0202280900000A6F0A00000A28020000062A3A022805000006020328020000062A8A0202280100000602280900000A6F0A00000A280B00000A720D000070280C00000A2A00000013300400480000000100001102280500000602030428080000060A020304052809000006021201FE15040000021201037D040000041201047D050000041201057D060000041201067D0700000407280100002B2A13300300440000000200001102280500000602030428080000060A068E2D012A020304280A000006021201FE15030000021201037D010000041201047D020000041201067D0300000407280200002B2A8A02280500000A725D000070038C06000001048C0C000001280E00000A6F0F00000A2A8E02280500000A725D000070038C06000001048C0C000001280E00000A056F1000000A2A8A02280500000A725D000070038C06000001048C0C000001280E00000A6F1100000A2A000042534A4201000100000000000C00000076342E302E33303331390000000005006C000000F8020000237E0000640300009002000023537472696E677300000000F405000080000000235553007406000010000000234755494400000084060000E800000023426C6F6200000000000000020000015715A201090A000000FA013300160000010000000E00000004000000070000000A0000000F00000011000000070000000200000001000000010000000200000001000000020000000200000002000000000021010100000000000600C300E2010600F200E2010600AF00CF010F00020200000A00570239020A00310239020A00840039020600700033010A00E30039020A00980039020A005B003902060001003301060016013301060065023301000000000800000000000100010001001000840100001500010001000A0110004E000000210001000B000A01100041000000210004000B0006006C01810006003500850006001400880006006C0181000600350085000600140088000600110088005020000000008108A0012D0001006220000000008108AA018C0001007520000000008618C901220002008F20000000008600B4018C0003009E20000000008100730206000400C4200000000086003A0192000400182100000000860043019B00070068210000000086005A01A20009008B21000000008100630192000B00AF210000000081004F019B000E0000000100100100000100A90000000100C001000001007501000002003B00000003001900000001007501000002003B00000001007501000002003B00000001007501000002003B00000003001900000001007501000002003B000900C90101001100C90106001900C9010A004900C901060029007A00100051002302150051002E021B002900C9012200290064002800590095012D0031008302320029006C023A0029001D014700690050025F0051001102660051001A026C0051007E01730021002300E0002E000B00AF002E001300B8002E001B00D70041002300E00081002300E000A1002300E00040005300020001000000C301AA000200010003000100020003000480000000000000000000000000000000005702000004000000000000000000000078001E0000000000020000000000000000000000000039020000000003000200040002001B004E001B005A0000000055496E743332003C4D6F64756C653E004F6C644461746100646174610053797374656D2E507269766174652E436F72654C696200546F70696300746F70696300436C61696D4368616E67656400436C61696D52656D6F76656400494D657373616765006765745F4D6573736167650056616C756554797065006765745F53746174650049536D617274436F6E74726163745374617465004950657273697374656E7453746174650073746174650044656275676761626C6541747472696275746500436F6D70696C6174696F6E52656C61786174696F6E7341747472696275746500496E6465784174747269627574650052756E74696D65436F6D7061746962696C6974794174747269627574650076616C756500537472696E67004C6F6700536D617274436F6E74726163742E646C6C0053797374656D00416464436C61696D0052656D6F7665436C61696D00436C656172436C61696D00476574436C61696D00536574436C61696D00497373756564546F00697373756564546F00436C656172004964656E7469747950726F7669646572006765745F53656E646572006765745F4F776E6572007365745F4F776E6572004368616E67654F776E6572006E65774F776E6572002E63746F720053797374656D2E446961676E6F73746963730053797374656D2E52756E74696D652E436F6D70696C6572536572766963657300446562756767696E674D6F6465730047657442797465730053657442797465730047657441646472657373005365744164647265737300537472617469732E536D617274436F6E74726163747300466F726D617400536D617274436F6E7472616374004F626A6563740041737365727400456E737572654F776E65724F6E6C79006F705F457175616C6974790000000B4F0077006E0065007200004F54006800650020006D006500740068006F0064002000630061006E002000620065002000630061006C006C006500640020006200790020006F006E006C00790020006F0077006E00650072002E00001F43006C00610069006D005B007B0030007D005D005B007B0031007D005D0000000000DDF65F4D14FDB44894A2BB58E37AB9DB00042001010803200001052001011111042000122905200111190E062002010E111905200101121D042000122D0420001119070002021119111905200201020E0607021D05111006300101011E00040A0111100607021D05110C040A01110C0600030E0E1C1C0520011D050E062002010E1D05042001010E087CEC85D7BEA7798E0306111902060903061D05052001011119082003011119091D05062002011119090720021D0511190904280011190801000800000000001E01000100540216577261704E6F6E457863657074696F6E5468726F7773010801000200000000000401000000000000000000000000000000000000100000000000000000000000000000008429000000000000000000009E29000000200000000000000000000000000000000000000000000090290000000000000000000000005F436F72446C6C4D61696E006D73636F7265652E646C6C0000000000FF250020001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000C000000B03900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
```
**Deploying**

Parameters are not required to deploy this contract.
The address used to deploy the contract on the blockchain becomes the owner of the contract. The owner will get special privileges.
- Owner can change the ownership to another address
- Owner can Add a Claim on the Blockchain
- Owner can remove the claim

**Add Claim**

The owner of the Contract can add a claim by calling `AddClaim` method.

**Remove Claim**

The owner of the Contract can remove the claim by calling `RemoveClaim` method.

**Change Ownership of Contract**

The owner of the Contract can change ownership of the Contract to another address by calling the `ChangeOwner` method. Once called new address owner will be the owner of the Identity Contract.

**Get Claim**

The `GetClaim` method is to verify the user’s claim on the blockchain and validates the identity of an Individual.

Loading