ISCTypes
ISC_MAGIC_ADDRESS
address ISC_MAGIC_ADDRESS
ISC_ERC20BASETOKENS_ADDRESS
address ISC_ERC20BASETOKENS_ADDRESS
ISC_ERC721_ADDRESS
address ISC_ERC721_ADDRESS
IotaAddress
IotaObjectID
IotaCoinInfo
struct IotaCoinInfo {
string coinType;
uint8 decimals;
string name;
string symbol;
string description;
string iconUrl;
uint64 totalSupply;
}
IRC27NFTMetadata
struct IRC27NFTMetadata {
string standard;
string version;
string mimeType;
string uri;
string name;
string description;
}
ISCHname
ISCChainID
ISCAgentID
struct ISCAgentID {
bytes data;
}
ISCAgentIDKindNil
uint8 ISCAgentIDKindNil
ISCAgentIDKindAddress
uint8 ISCAgentIDKindAddress
ISCAgentIDKindContract
uint8 ISCAgentIDKindContract
ISCAgentIDKindEthereumAddress
uint8 ISCAgentIDKindEthereumAddress
ISCRequestID
ISCDictItem
struct ISCDictItem {
bytes key;
bytes value;
}
ISCDict
struct ISCDict {
struct ISCDictItem[] items;
}
ISCTarget
struct ISCTarget {
ISCHname contractHname;
ISCHname entryPoint;
}
ISCMessage
struct ISCMessage {
struct ISCTarget target;
bytes[] params;
}
ISCSendMetadata
struct ISCSendMetadata {
struct ISCMessage message;
struct ISCAssets allowance;
uint64 gasBudget;
}
ISCSendOptions
struct ISCSendOptions {
int64 timelock;
struct ISCExpiration expiration;
}
ISCExpiration
struct ISCExpiration {
int64 time;
IotaAddress returnAddress;
}
ISCAssets
struct ISCAssets {
struct CoinBalance[] coins;
IotaObjectID[] objects;
}
CoinBalance
struct CoinBalance {
string coinType;
uint64 amount;
}
ISCTypes
newEthereumAgentID
function newEthereumAgentID(address addr, ISCChainID iscChainID) internal pure returns (struct ISCAgentID)
Create a new Ethereum AgentID.
Parameters
Name | Type | Description |
---|---|---|
addr | address | The Ethereum address. |
iscChainID | ISCChainID | The ISC chain ID. |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct ISCAgentID | The new ISCAgentID. |
newL1AgentID
function newL1AgentID(IotaAddress addr) internal pure returns (struct ISCAgentID)
isEthereum
function isEthereum(struct ISCAgentID a) internal pure returns (bool)
ethAddress
function ethAddress(struct ISCAgentID a) internal pure returns (address)
Get the Ethereum address from an ISCAgentID.
Parameters
Name | Type | Description |
---|---|---|
a | struct ISCAgentID | The ISCAgentID. |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The Ethereum address. |
chainID
function chainID(struct ISCAgentID a) internal pure returns (ISCChainID)
Get the chain ID from an ISCAgentID.
Parameters
Name | Type | Description |
---|---|---|
a | struct ISCAgentID | The ISCAgentID. |
Return Values
Name | Type | Description |
---|---|---|
[0] | ISCChainID | The ISCChainID. |
asObjectID
function asObjectID(uint256 tokenID) internal pure returns (IotaObjectID)
getCoinAmount
function getCoinAmount(struct CoinBalance[] coins, string coinType) internal pure returns (uint64)
bytesEqual
function bytesEqual(bytes a, bytes b) internal pure returns (bool)
stringsEqual
function stringsEqual(string a, string b) internal pure returns (bool)