-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from multiversx/composite-part-4
Move structs from "valuesMulti" and "valuesSingle". Merge input & output
- Loading branch information
Showing
5 changed files
with
44 additions
and
205 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,7 @@ | ||
package abi | ||
|
||
// Field is a field in a struct, enum etc. | ||
type Field struct { | ||
Name string | ||
Value SingleValue | ||
} |
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,17 @@ | ||
package abi | ||
|
||
// MultiValue is a multi-value | ||
type MultiValue struct { | ||
Items []any | ||
} | ||
|
||
// VariadicValues holds variadic values | ||
type VariadicValues struct { | ||
Items []any | ||
ItemCreator func() any | ||
} | ||
|
||
// OptionalValue holds an optional value | ||
type OptionalValue struct { | ||
Value any | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.