ipfs storage for images and other nontext items. for use with etica - runs on etica network and currencys
https://collect.etica-stats.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
880 B
26 lines
880 B
import { defineProperties } from "../utils/index.js"; |
|
export const PluginIdFallbackProvider = "org.ethers.plugins.provider.QualifiedPlugin"; |
|
export class CheckQualifiedPlugin { |
|
constructor() { |
|
defineProperties(this, { name: PluginIdFallbackProvider }); |
|
} |
|
connect(provider) { |
|
return this; |
|
} |
|
// Retruns true if this value should be considered qualified for |
|
// inclusion in the quorum. |
|
isQualified(action, result) { |
|
return true; |
|
} |
|
} |
|
export class PossiblyPrunedTransactionPlugin extends CheckQualifiedPlugin { |
|
isQualified(action, result) { |
|
if (action.method === "getTransaction" || action.method === "getTransactionReceipt") { |
|
if (result == null) { |
|
return false; |
|
} |
|
} |
|
return super.isQualified(action, result); |
|
} |
|
} |
|
//# sourceMappingURL=plugin-fallback.js.map
|