This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bunch of minor fixes; Added missing actions to client
- Loading branch information
Showing
24 changed files
with
544 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
#Fri Jun 18 13:44:36 CEST 2021 | ||
cp.port=8080 | ||
universe=v2djcmVhdG9yWCIBAsm/OqGKaQ3cgMWH4pVS0MyICRv0ht248s3H7yjgPmLOa2Rlc2NyaXB0aW9udlRoZSBSYWRpeCBkZXYgVW5pdmVyc2VnZ2VuZXNpc4JZA8gBv2FpkEIBAlhZAb9jcnJpWDkGL0pGZ1YycVM4M0pVYXpiWWZSYkpEMWR4b2ZHcktLeHRpRUFtRzk4RHNCendVTEFnOVNvQy9YUkRic3pzcmFkaXgucGFydGljbGVzLnJyaf9CAQFYkwG/YWFYIQX//////////////////////////////////////////2FnWCEFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFjcnJpWDkGL0pGZ1YycVM4M0pVYXpiWWZSYkpEMWR4b2ZHcktLeHRpRUFtRzk4RHNCendVTEFnOVNvQy9YUkRic3pjdV90/0IBAVjnAb9hZHNSYWRpeCBOYXRpdmUgVG9rZW5zYWdYIQUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFpeDRodHRwczovL2Fzc2V0cy5yYWRpeGRsdC5jb20vaWNvbnMvaWNvbi14cmQtMzJ4MzIucG5nYW5kUmFkc2NycmlYOQYvSkZnVjJxUzgzSlVhemJZZlJiSkQxZHhvZkdyS0t4dGlFQW1HOThEc0J6d1VMQWc5U29DL1hSRGJzemVtX3RrbmN1cmx4HGh0dHBzOi8vdG9rZW5zLnJhZGl4ZGx0LmNvbS//QgEAQQFCAQFYvQG/YWFYIQUAAAAAAAAAAAAAAAAAAAAAAAAAAAM7Ljyf0IA86AAAAGFnWCEFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhbfVhb1gnBAICyb86oYppDdyAxYfilVLQzIgJG/SG3bjyzcfvKOA+Ys6FHC6LYXJYOQYvSkZnVjJxUzgzSlVhemJZZlJiSkQxZHhvZkdyS0t4dGlFQW1HOThEc0J6d1VMQWc5U29DL1hSRGJzemF0/0IBBEUBAAAAAUIBAViTAb9hYVghBf///////////////////////////MTRw2Avf8MX////YWdYIQUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWNycmlYOQYvSkZnVjJxUzgzSlVhemJZZlJiSkQxZHhvZkdyS0t4dGlFQW1HOThEc0J6d1VMQWc5U29DL1hSRGJzemN1X3T/QgEAQQFhc79hclghAePQPnf7hdQecg4DUw5M8xQtw7XV/8XTDoLXDlaAM07HYXNYIQEC1yXO+WcbDFLEKDU6VaSlF12hYd89AaG44UkWJzJOg2JzenZjcnlwdG8uZWNkc2Ffc2lnbmF0dXJlYXYB/2JzemRhdG9t/1g9Ab9haYZCAQJRAb9hZQBic3phc2F0AGF2AP9CAQFRAb9hZQFic3phc2F0AGF2AP9CAQBBAWJzemRhdG9t/2VtYWdpYzoxV//9ZG5hbWVsUmFkaXggRGV2bmV0ZHBvcnQZdTBrc2lnbmF0dXJlLnJYIQESw8m8rbKZUZvKDpCULEg61VJDrzEtTutxhlW6U1riAGtzaWduYXR1cmUuc1ghAS2hvdLqQfaUqitEMoEMY5rASE4IjdzR3lNtwnFZms99a3NpZ25hdHVyZS52AGJzem5yYWRpeC51bml2ZXJzZWl0aW1lc3RhbXAbAAWbCMH6QABkdHlwZQL/ | ||
ntp.pool=pool.ntp.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
radixdlt-java/radixdlt-java/src/main/java/com/radixdlt/client/lib/api/action/Action.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* (C) Copyright 2021 Radix DLT Ltd | ||
* | ||
* Radix DLT Ltd licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the | ||
* License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.radixdlt.client.lib.api.action; | ||
|
||
public interface Action { | ||
} |
37 changes: 37 additions & 0 deletions
37
radixdlt-java/radixdlt-java/src/main/java/com/radixdlt/client/lib/api/action/BurnAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* (C) Copyright 2021 Radix DLT Ltd | ||
* | ||
* Radix DLT Ltd licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the | ||
* License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.radixdlt.client.lib.api.action; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
import com.radixdlt.client.lib.api.AccountAddress; | ||
import com.radixdlt.client.lib.api.ActionType; | ||
import com.radixdlt.utils.UInt256; | ||
|
||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) | ||
public class BurnAction implements Action { | ||
private final ActionType type = ActionType.BURN; | ||
private final AccountAddress from; | ||
private final UInt256 amount; | ||
private final String rri; | ||
|
||
public BurnAction(AccountAddress from, UInt256 amount, String rri) { | ||
this.from = from; | ||
this.amount = amount; | ||
this.rri = rri; | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...adixdlt-java/src/main/java/com/radixdlt/client/lib/api/action/CreateFixedTokenAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* (C) Copyright 2021 Radix DLT Ltd | ||
* | ||
* Radix DLT Ltd licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the | ||
* License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.radixdlt.client.lib.api.action; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | ||
import com.radixdlt.client.lib.api.AccountAddress; | ||
import com.radixdlt.client.lib.api.ActionType; | ||
import com.radixdlt.crypto.ECPublicKey; | ||
import com.radixdlt.utils.UInt256; | ||
|
||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) | ||
public class CreateFixedTokenAction implements Action { | ||
private final ActionType type = ActionType.CREATE_FIXED; | ||
private final AccountAddress from; | ||
private final ECPublicKey signer; | ||
private final UInt256 amount; | ||
private final String rri; | ||
private final String name; | ||
private final String symbol; | ||
private final String iconUrl; | ||
private final String tokenUrl; | ||
private final String description; | ||
|
||
public CreateFixedTokenAction( | ||
AccountAddress from, | ||
ECPublicKey signer, UInt256 amount, | ||
String rri, | ||
String name, | ||
String symbol, | ||
String iconUrl, | ||
String tokenUrl, | ||
String description | ||
) { | ||
this.from = from; | ||
this.signer = signer; | ||
this.amount = amount; | ||
this.rri = rri; | ||
this.name = name; | ||
this.symbol = symbol; | ||
this.iconUrl = iconUrl; | ||
this.tokenUrl = tokenUrl; | ||
this.description = description; | ||
} | ||
} |
Oops, something went wrong.