Static
Readonly
abi
abi: readonly [{
inputs: readonly [{
internalType: "contract ISuperfluid";
name: "host";
type: "address";
}];
stateMutability: "nonpayable";
type: "constructor";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "approveSubscription";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "uint128";
name: "amount";
type: "uint128";
}];
name: "calculateDistribution";
outputs: readonly [{
internalType: "uint256";
name: "actualAmount";
type: "uint256";
}, {
internalType: "uint128";
name: "newIndexValue";
type: "uint128";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "createIndex";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "address";
name: "subscriber";
type: "address";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "deleteSubscription";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "uint128";
name: "amount";
type: "uint128";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "distribute";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}];
name: "getIndex";
outputs: readonly [{
internalType: "bool";
name: "exist";
type: "bool";
}, {
internalType: "uint128";
name: "indexValue";
type: "uint128";
}, {
internalType: "uint128";
name: "totalUnitsApproved";
type: "uint128";
}, {
internalType: "uint128";
name: "totalUnitsPending";
type: "uint128";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}];
name: "getPublisherId";
outputs: readonly [{
internalType: "bytes32";
name: "publisherId";
type: "bytes32";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "address";
name: "subscriber";
type: "address";
}];
name: "getSubscription";
outputs: readonly [{
internalType: "bool";
name: "exist";
type: "bool";
}, {
internalType: "bool";
name: "approved";
type: "bool";
}, {
internalType: "uint128";
name: "units";
type: "uint128";
}, {
internalType: "uint256";
name: "pendingDistribution";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "bytes32";
name: "subscriptionId";
type: "bytes32";
}];
name: "getSubscriptionByID";
outputs: readonly [{
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "bool";
name: "approved";
type: "bool";
}, {
internalType: "uint128";
name: "units";
type: "uint128";
}, {
internalType: "uint256";
name: "pendingDistribution";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "subscriber";
type: "address";
}, {
internalType: "bytes32";
name: "publisherId";
type: "bytes32";
}];
name: "getSubscriptionId";
outputs: readonly [{
internalType: "bytes32";
name: "subscriptionId";
type: "bytes32";
}];
stateMutability: "pure";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "subscriber";
type: "address";
}];
name: "listSubscriptions";
outputs: readonly [{
internalType: "address[]";
name: "publishers";
type: "address[]";
}, {
internalType: "uint32[]";
name: "indexIds";
type: "uint32[]";
}, {
internalType: "uint128[]";
name: "unitsList";
type: "uint128[]";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "address";
name: "publisher";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "revokeSubscription";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "uint128";
name: "indexValue";
type: "uint128";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "updateIndex";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "contract ISuperfluidToken";
name: "token";
type: "address";
}, {
internalType: "uint32";
name: "indexId";
type: "uint32";
}, {
internalType: "address";
name: "subscriber";
type: "address";
}, {
internalType: "uint128";
name: "units";
type: "uint128";
}, {
internalType: "bytes";
name: "userData";
type: "bytes";
}];
name: "updateSubscriptionUnits";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}]