-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sui_getNormalizedMoveModulesByPackage api
Signed-off-by: grapebaba <281165273@qq.com>
- Loading branch information
Showing
15 changed files
with
14,313 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright 2022 281165273grape@gmail.com | ||
* | ||
* Licensed 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 io.sui.models.objects; | ||
|
||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* The type Move ability set. | ||
* | ||
* @author grapebaba | ||
* @since 2022.11 | ||
*/ | ||
public class MoveAbilitySet { | ||
|
||
private List<String> abilities; | ||
|
||
/** | ||
* Gets abilities. | ||
* | ||
* @return the abilities | ||
*/ | ||
public List<String> getAbilities() { | ||
return abilities; | ||
} | ||
|
||
/** | ||
* Sets abilities. | ||
* | ||
* @param abilities the abilities | ||
*/ | ||
public void setAbilities(List<String> abilities) { | ||
this.abilities = abilities; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (!(o instanceof MoveAbilitySet)) { | ||
return false; | ||
} | ||
MoveAbilitySet that = (MoveAbilitySet) o; | ||
return abilities.equals(that.abilities); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(abilities); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "MoveAbilitySet{" + "abilities=" + abilities + '}'; | ||
} | ||
} |
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,91 @@ | ||
/* | ||
* Copyright 2022 281165273grape@gmail.com | ||
* | ||
* Licensed 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 io.sui.models.objects; | ||
|
||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* The type Move module id. | ||
* | ||
* @author grapebaba | ||
* @since 2022.11 | ||
*/ | ||
public class MoveModuleId { | ||
|
||
private String address; | ||
|
||
private String name; | ||
|
||
/** | ||
* Gets address. | ||
* | ||
* @return the address | ||
*/ | ||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
/** | ||
* Sets address. | ||
* | ||
* @param address the address | ||
*/ | ||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
/** | ||
* Gets name. | ||
* | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* Sets name. | ||
* | ||
* @param name the name | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (!(o instanceof MoveModuleId)) { | ||
return false; | ||
} | ||
MoveModuleId that = (MoveModuleId) o; | ||
return address.equals(that.address) && name.equals(that.name); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(address, name); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "MoveModuleId{" + "address='" + address + '\'' + ", name='" + name + '\'' + '}'; | ||
} | ||
} |
Oops, something went wrong.