RequestIdLibrary
State Variables
SMART_CONTRACT_SIGNATURE_FLAG
uint256 internal constant SMART_CONTRACT_SIGNATURE_FLAG = 1 << 192;Functions
from
Creates a RequestId from a client address and a 32-bit index.
function from(address client1, uint32 id) internal pure returns (RequestId);| Name | Type | Description | 
|---|---|---|
client1 | address | The address of the client. | 
id | uint32 | The 32-bit index. | 
| Name | Type | Description | 
|---|---|---|
<none> | RequestId | The constructed RequestId. | 
from
Creates a RequestId from a client address, a 32-bit index, and a smart contract signature flag.
function from(address client1, uint32 id, bool isSmartContractSig) internal pure returns (RequestId);| Name | Type | Description | 
|---|---|---|
client1 | address | The address of the client. | 
id | uint32 | The 32-bit index. | 
isSmartContractSig | bool | Whether the request uses a smart contract signature. | 
| Name | Type | Description | 
|---|---|---|
<none> | RequestId | The constructed RequestId. | 
clientAndIndex
Extracts the client address and index from a RequestId.
function clientAndIndex(RequestId id) internal pure returns (address, uint32);| Name | Type | Description | 
|---|---|---|
id | RequestId | The RequestId to extract from. | 
| Name | Type | Description | 
|---|---|---|
<none> | address | The client address and the 32-bit index. | 
<none> | uint32 | 
clientIndexAndSignatureType
Extracts the client address and index from a RequestId.
function clientIndexAndSignatureType(RequestId id) internal pure returns (address, uint32, bool);| Name | Type | Description | 
|---|---|---|
id | RequestId | The RequestId to extract from. | 
| Name | Type | Description | 
|---|---|---|
<none> | address | The client address and the 32-bit index, and true if the signature is a smart contract signature. | 
<none> | uint32 | |
<none> | bool | 
client
function client(RequestId id) internal pure returns (address);isSmartContractSigned
function isSmartContractSigned(RequestId id) internal pure returns (bool);