Module: Aws::IoTTwinMaker::Types
Instance Attribute Summary
-
#component_type_id ⇒ String
rw
The ID of the component type in the entities in the list.
-
#extends_from ⇒ String
rw
The component type that the component types in the list extend.
-
#external_id ⇒ String
rw
The external ID.
-
#is_abstract ⇒ Boolean
rw
A Boolean value that specifies whether the component types in the list are abstract.
-
#namespace ⇒ String
rw
The namespace to which the component types in the list belong.
-
#parent_entity_id ⇒ String
rw
The parent of the entities in the list.
-
#resource_id ⇒ String
rw
The sync resource filter resource ID.
-
#resource_type ⇒ String
rw
The sync resource filter resource type.
-
#state ⇒ String
rw
The sync resource filter's state.
Instance Attribute Details
#component_type_id ⇒ String
(rw)
The ID of the component type in the entities in the list.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1801
class ListEntitiesFilter < Struct.new( :parent_entity_id, :component_type_id, :external_id, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ParentEntityId < ListEntitiesFilter; end class ComponentTypeId < ListEntitiesFilter; end class ExternalId < ListEntitiesFilter; end class Unknown < ListEntitiesFilter; end end
#extends_from ⇒ String
(rw)
The component type that the component types in the list extend.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1715
class ListComponentTypesFilter < Struct.new( :extends_from, :namespace, :is_abstract, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ExtendsFrom < ListComponentTypesFilter; end class Namespace < ListComponentTypesFilter; end class IsAbstract < ListComponentTypesFilter; end class Unknown < ListComponentTypesFilter; end end
#external_id ⇒ String
(rw)
The external ID.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1801
class ListEntitiesFilter < Struct.new( :parent_entity_id, :component_type_id, :external_id, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ParentEntityId < ListEntitiesFilter; end class ComponentTypeId < ListEntitiesFilter; end class ExternalId < ListEntitiesFilter; end class Unknown < ListEntitiesFilter; end end
#is_abstract ⇒ Boolean
(rw)
A Boolean value that specifies whether the component types in the list are abstract.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1715
class ListComponentTypesFilter < Struct.new( :extends_from, :namespace, :is_abstract, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ExtendsFrom < ListComponentTypesFilter; end class Namespace < ListComponentTypesFilter; end class IsAbstract < ListComponentTypesFilter; end class Unknown < ListComponentTypesFilter; end end
#namespace ⇒ String
(rw)
The namespace to which the component types in the list belong.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1715
class ListComponentTypesFilter < Struct.new( :extends_from, :namespace, :is_abstract, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ExtendsFrom < ListComponentTypesFilter; end class Namespace < ListComponentTypesFilter; end class IsAbstract < ListComponentTypesFilter; end class Unknown < ListComponentTypesFilter; end end
#parent_entity_id ⇒ String
(rw)
The parent of the entities in the list.
# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 1801
class ListEntitiesFilter < Struct.new( :parent_entity_id, :component_type_id, :external_id, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class ParentEntityId < ListEntitiesFilter; end class ComponentTypeId < ListEntitiesFilter; end class ExternalId < ListEntitiesFilter; end class Unknown < ListEntitiesFilter; end end
#resource_id ⇒ String
(rw)
The sync resource filter resource ID.

# File 'gems/aws-sdk-iottwinmaker/lib/aws-sdk-iottwinmaker/types.rb', line 2697
class SyncResourceFilter < Struct.new( :state, :resource_type, :resource_id, :external_id, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class State < SyncResourceFilter; end class ResourceType < SyncResourceFilter; end class ResourceId < SyncResourceFilter; end class ExternalId < SyncResourceFilter; end class Unknown < SyncResourceFilter; end end


pragma solidity ^0.4.24;
import "zos-lib/contracts/Initializable.sol";
import "../Crowdsale.sol";
import "../../token/ERC20/IERC20.sol";
import "../../token/ERC20/SafeERC20.sol";
import "../../math/SafeMath.sol";
/**
* @title AllowanceCrowdsale
* @dev Extension of Crowdsale where tokens are held by a wallet, which approves an allowance to the crowdsale.
*/
contract AllowanceCrowdsale is Initializable, Crowdsale {
using SafeMath for uint256;
using SafeERC20 for IERC20;
address private _tokenWallet;
/**
* @dev Constructor, takes token wallet address.
* @param tokenWallet Address holding the tokens, which has approved allowance to the crowdsale
*/
function initialize(address tokenWallet) public initializer {
assert(Crowdsale._hasBeenInitialized());
require(tokenWallet != address(0));
_tokenWallet = tokenWallet;
}
/**
* @return the address of the wallet that will hold the tokens.
*/
function tokenWallet() public view returns(address) {
return _tokenWallet;
}
/**
* @dev Checks the amount of tokens left in the allowance.
* @return Amount of tokens left in the allowance
*/
function remainingTokens() public view returns (uint256) {
return token().allowance(_tokenWallet, this);
}
/**
* @dev Overrides parent behavior by transferring tokens from wallet.
* @param beneficiary Token purchaser
* @param tokenAmount Amount of tokens purchased
*/
function _deliverTokens(
address beneficiary,
uint256 tokenAmount
)
internal
{
token().safeTransferFrom(_tokenWallet, beneficiary, tokenAmount);
}
uint256[50] private ______gap;
}
|


Information: If your funds been moved out of your wallet on 5th June 2019, please fill this form with all info required. This form is only for CHIPS. If you want to claim other coins, please use the specific form for those coins from the list below. If you have multiple addre...