1
- POST http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/xprt/ identities/issue
1
+ POST http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/identities/issue
2
2
Content-Type: application/json
3
3
4
4
{
5
- "type" : " /xprt/identities/issue/request " ,
5
+ "type" : " /xprt/identities/github.com/persistenceOne/persistenceSDK/modules/identities/internal/transactions/ issue/transactionRequest " ,
6
6
"value" : {
7
7
"baseReq" : {
8
8
"from" : " {{ACCOUNT_1_ADDRESS}}" ,
9
9
"chain_id" : " {{CHAIN_ID}}"
10
10
},
11
- "to" : " {{ACCOUNT_1_ADDRESS}}" ,
12
- "fromID" : " " ,
13
- "maintainersID" :" " ,
14
- "classificationID" :" " ,
15
- "properties" : " {{ACCOUNT_1_NAME}}identities{{NONCE}}:{{ACCOUNT_1_NAME}}identities{{NONCE}},test1:test1"
16
- }
11
+ "fromID" : " test.MgVN53MovlOXmVrFOb6Rk8efEho=|Hi4ALDaDs923R0w64cr02MffbNA=" ,
12
+ "classificationID" :" test.UmQ7cvtwX3GGpbh7MpEf2-S6JiU=" ,
13
+ "to" : " cosmos14th3gcu50q778wal7fug8h5hf07l8t8dzulghf" ,
14
+ "immutableMetaProperties" :" ImmutableMetaPropertyName1:S|ImmutableMetaPropertyValue1,ImmutableMetaPropertyName2:I|ImmutableMetaPropertyValue2" ,
15
+ "immutableProperties" :" ImmutablePropertyName3:H|100,ImmutablePropertyName4:D|0.1010" ,
16
+ "mutableMetaProperties" :" MutableMetaPropertyName5:S|MutableMetaPropertyValue5,MutableMetaPropertyName6:S|MutableMetaPropertyValue6,burn:H|10,lock:H|20" ,
17
+ "mutableProperties" :" MutablePropertyName7:S|MutablePropertyValue7,MutablePropertyName8:S|MutablePropertyValue8"
18
+ }
17
19
}
18
20
19
21
> {%
@@ -37,47 +39,4 @@ Accept: application/json
37
39
});
38
40
%}
39
41
40
- ###
41
- GET http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/identities/identities/-
42
- Accept: application/json
43
-
44
- > {%
45
- client.test("Request executed successfully", function() {
46
- client.assert(response.status === 200, "Response status is not 200");
47
- });
48
-
49
- identities = JSON.parse(JSON.stringify(response.body)).result.value.identities.value.list;
50
- function checkProvisionedAddress(address, identity){
51
- for(i = 0; i < identity.value.provisionedAddressList.length; i++) {
52
- if (address === identity.value.provisionedAddressList[i]){
53
- return true;
54
- }
55
- }
56
- return false;
57
- }
58
- function checkProperty(propertyID, identity){
59
- properties = identity.value.immutables.value.properties.value.propertyList
60
- for(i = 0; i < properties.length; i++) {
61
- if (propertyID === properties[i].value.id.value.idString){
62
- return true;
63
- }
64
- }
65
- return false;
66
- }
67
- function getID(ID){
68
- identitiyID = [];
69
- for (identity in ID.value) {
70
- if (ID.value.hasOwnProperty(identity)){
71
- identitiyID[identitiyID.length] = ID.value[identity].value.idString;
72
- }
73
- }
74
- return identitiyID.join(".");
75
- }
76
- for (i = 0; i < identities.length; i++) {
77
- if (checkProvisionedAddress(client.global.get("ACCOUNT_1_ADDRESS"),identities[i])
78
- &&
79
- checkProperty(client.global.get("ACCOUNT_1_NAME")+"identities"+client.global.get("NONCE"), identities[i])) {
80
- client.global.set("ACCOUNT_1_ID", getID(identities[i].value.id));
81
- }
82
- }
83
- %}
42
+ ###
0 commit comments