- Preparing search index...
- The search index is not available
cardstack
Class PrepaidCardMarketV2Class
Constructors
constructor
- new PrepaidCardMarketV2Class(layer2Web3: default, layer2Signer?: Signer): PrepaidCardMarketV2Class
-
Parameters
-
layer2Web3: default
-
Optional
layer2Signer: Signer
Properties
Private
layer2Web3
layer2Web3: default
Private
Optional
layer2Signer
layer2Signer?: Signer
Methods
isPaused
- isPaused(marketAddress?: string): Promise<boolean>
-
Parameters
-
Optional
marketAddress: string
Returns Promise<boolean>
Private
getAddTokensPayload
- getAddTokensPayload(issuerAddress: string, tokenAddress: string, amount: BN): Promise<string>
-
Parameters
-
issuerAddress: string
-
tokenAddress: string
-
amount: BN
Returns Promise<string>
addTokens
- addTokens(txnHash: string): Promise<SuccessfulTransactionReceipt>
-
Returns Promise<SuccessfulTransactionReceipt>
- addTokens(issuerSafeAddress: string, issuerAddress: string, tokenAddress: string, amount: string, txnOptions?: TransactionOptions): Promise<SuccessfulTransactionReceipt>
-
Parameters
-
issuerSafeAddress: string
-
issuerAddress: string
-
tokenAddress: string
-
amount: string
-
Returns Promise<SuccessfulTransactionReceipt>
getSKUInfo
- getSKUInfo(sku: string, marketAddress?: string): Promise<undefined | {
faceValue: number;
issuer: string;
issuingToken: string;
customizationDID: string;
askPrice: string;
}>
-
Parameters
-
sku: string
-
Optional
marketAddress: string
Returns Promise<undefined | {
faceValue: number;
issuer: string;
issuingToken: string;
customizationDID: string;
askPrice: string;
}>
addSKU
- addSKU(prepaidCardAddress: string, issuerSafe: string, faceValue: number, customizationDID: string, token: string, marketAddress?: string, txnOptions?: TransactionOptions, contractOptions?: ContractOptions): Promise<SuccessfulTransactionReceipt>
-
Parameters
-
prepaidCardAddress: string
-
issuerSafe: string
-
faceValue: number
-
customizationDID: string
-
token: string
-
Optional
marketAddress: string
-
-
Optional
contractOptions: ContractOptions
Returns Promise<SuccessfulTransactionReceipt>
Private
executeAddSKU
- executeAddSKU(prepaidCardAddress: string, marketAddress: string, issuerSafeAddress: string, faceValue: number, customizationDID: string, tokenAddress: string, rate: string, payload: SendPayload, signatures: Signature[], nonce: BN): Promise<GnosisExecTx>
-
Parameters
-
prepaidCardAddress: string
-
marketAddress: string
-
issuerSafeAddress: string
-
faceValue: number
-
customizationDID: string
-
tokenAddress: string
-
rate: string
-
-
-
nonce: BN
Private
getAddSKUPayload
- getAddSKUPayload(prepaidCardAddress: string, marketAddress: string, issuerSafeAddress: string, faceValue: number, customizationDID: string, tokenAddress: string, rate: string): Promise<SendPayload>
-
Parameters
-
prepaidCardAddress: string
-
marketAddress: string
-
issuerSafeAddress: string
-
faceValue: number
-
customizationDID: string
-
tokenAddress: string
-
rate: string
getQuantity
- getQuantity(sku: string): Promise<number>
-
Returns Promise<number>
getSKU
- getSKU(issuer: string, token: string, faceValue: number, customizationDID: string): Promise<number>
-
Parameters
-
issuer: string
-
token: string
-
faceValue: number
-
customizationDID: string
Returns Promise<number>
setAsk
- setAsk(txnHash: string): Promise<SuccessfulTransactionReceipt>
-
Returns Promise<SuccessfulTransactionReceipt>
- setAsk(prepaidCard: string, sku: string, askPrice: string, txnOptions?: TransactionOptions, contractOptions?: ContractOptions): Promise<SuccessfulTransactionReceipt>
-
Parameters
-
prepaidCard: string
-
sku: string
-
askPrice: string
-
-
Optional
contractOptions: ContractOptions
Returns Promise<SuccessfulTransactionReceipt>
Private
getSetAskPayload
- getSetAskPayload(prepaidCardAddress: string, sku: string, askPrice: string, marketAddress: string, rate: string): Promise<SendPayload>
-
Parameters
-
prepaidCardAddress: string
-
sku: string
-
askPrice: string
-
marketAddress: string
-
rate: string
Private
executeSetAsk
- executeSetAsk(prepaidCardAddress: string, sku: string, askPrice: string, marketAddress: string, rate: string, payload: SendPayload, signatures: Signature[], nonce: BN): Promise<GnosisExecTx>
-
Parameters
-
prepaidCardAddress: string
-
sku: string
-
askPrice: string
-
marketAddress: string
-
rate: string
-
-
-
nonce: BN
getPrepaidCardsFromTxn
- getPrepaidCardsFromTxn(txnHash: string): Promise<string[]>
-
Returns Promise<string[]>
Private
createPrepaidCardEventABI