Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fireblocks/fireblocks-sdk-py into…
Browse files Browse the repository at this point in the history
… tokens-and-contracts

# Conflicts:
#	fireblocks_sdk/api_types.py
#	fireblocks_sdk/sdk.py
  • Loading branch information
orman committed Nov 13, 2023
2 parents bf8407f + 6fa3d60 commit ed8f0f7
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.22.1
current_version = 1.23.0
commit = false
tag = false

Expand Down
35 changes: 26 additions & 9 deletions fireblocks_sdk/api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,24 @@ def __init__(self, name_prefix=None, name_suffix=None, min_amount_threshold=None
self.before = before
self.after = after

class PagedExchangeAccountRequestFilters(object):
""" Optional filters to apply for request
Args
limit (number, optional): Results page size
before (string, optional): cursor string received from previous request
after (string, optional): cursor string received from previous request
Constraints
- You should only insert 'before' or 'after' (or none of them), but not both
- For default and max 'limit' values please see: https://docs.fireblocks.com/api/swagger-ui/#/
"""

def __init__(self, limit=None, before=None, after=None):
self.limit = limit
self.before = before
self.after = after

class GetAssetWalletsFilters(object):
""" Optional filters to apply for request
Expand Down Expand Up @@ -392,7 +410,7 @@ def __init__(
self.internalType = internalType
self.description = description
self.components = components

def to_dict(self):
return convert_class_to_dict(self.__dict__)

Expand Down Expand Up @@ -420,13 +438,13 @@ def __init__(
):
self.contractId = contractId
self.constructorParams = constructorParams

def to_dict(self):
return convert_class_to_dict(self.__dict__)

class CreateTokenRequest:
def __init__(
self,
self,
symbol: str,
name: str,
blockchainId: str,
Expand All @@ -438,7 +456,7 @@ def __init__(
self.blockchainId = blockchainId
self.vaultAccountId = vaultAccountId
self.createParams = createParams

def to_dict(self):
return convert_class_to_dict(self.__dict__)

Expand Down Expand Up @@ -474,11 +492,11 @@ def __init__(
self.outputs = outputs
self.description = description
self.returns = returns

def to_dict(self):
return convert_class_to_dict(self.__dict__)

class ContractUploadRequest(object):
class ContractUploadRequest(object):
def __init__(
self,
name: str,
Expand All @@ -500,10 +518,9 @@ def __init__(
self.compilerOutputMetadata = compilerOutputMetadata
self.docs = docs
self.attributes = attributes

def to_dict(self):
return convert_class_to_dict(self.__dict__)

class PolicyTransactionType(str, Enum):
ANY = "*"
CONTRACT_CALL = "CONTRACT_CALL"
Expand Down
Loading

0 comments on commit ed8f0f7

Please sign in to comment.