-
-
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.
Showing
17 changed files
with
306 additions
and
306 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
73 changes: 0 additions & 73 deletions
73
lib/xdr/transactions/operations/bump_footprint_expiration.ex
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
defmodule StellarBase.XDR.Operations.ExtendFootprintTTL do | ||
@moduledoc """ | ||
Automatically generated by xdrgen | ||
DO NOT EDIT or your changes may be overwritten | ||
Target implementation: elixir_xdr at https://hex.pm/packages/elixir_xdr | ||
Representation of Stellar `ExtendFootprintTTL` type. | ||
""" | ||
|
||
@behaviour XDR.Declaration | ||
|
||
alias StellarBase.XDR.{ | ||
ExtensionPoint, | ||
UInt32 | ||
} | ||
|
||
@struct_spec XDR.Struct.new( | ||
ext: ExtensionPoint, | ||
extend_to: UInt32 | ||
) | ||
|
||
@type ext_type :: ExtensionPoint.t() | ||
@type extend_to_type :: UInt32.t() | ||
|
||
@type t :: %__MODULE__{ext: ext_type(), extend_to: extend_to_type()} | ||
|
||
defstruct [:ext, :extend_to] | ||
|
||
@spec new(ext :: ext_type(), extend_to :: extend_to_type()) :: t() | ||
def new( | ||
%ExtensionPoint{} = ext, | ||
%UInt32{} = extend_to | ||
), | ||
do: %__MODULE__{ext: ext, extend_to: extend_to} | ||
|
||
@impl true | ||
def encode_xdr(%__MODULE__{ext: ext, extend_to: extend_to}) do | ||
[ext: ext, extend_to: extend_to] | ||
|> XDR.Struct.new() | ||
|> XDR.Struct.encode_xdr() | ||
end | ||
|
||
@impl true | ||
def encode_xdr!(%__MODULE__{ext: ext, extend_to: extend_to}) do | ||
[ext: ext, extend_to: extend_to] | ||
|> XDR.Struct.new() | ||
|> XDR.Struct.encode_xdr!() | ||
end | ||
|
||
@impl true | ||
def decode_xdr(bytes, struct \\ @struct_spec) | ||
|
||
def decode_xdr(bytes, struct) do | ||
case XDR.Struct.decode_xdr(bytes, struct) do | ||
{:ok, {%XDR.Struct{components: [ext: ext, extend_to: extend_to]}, rest}} -> | ||
{:ok, {new(ext, extend_to), rest}} | ||
|
||
error -> | ||
error | ||
end | ||
end | ||
|
||
@impl true | ||
def decode_xdr!(bytes, struct \\ @struct_spec) | ||
|
||
def decode_xdr!(bytes, struct) do | ||
{%XDR.Struct{components: [ext: ext, extend_to: extend_to]}, rest} = | ||
XDR.Struct.decode_xdr!(bytes, struct) | ||
|
||
{new(ext, extend_to), rest} | ||
end | ||
end |
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
Oops, something went wrong.