pipegate-sdk
Version:
A TypeScript client-side payment authentication SDK for stablecoins used with axios
130 lines (129 loc) • 3.75 kB
JavaScript
export const channelFactoryABI = [
{ type: "constructor", inputs: [], stateMutability: "nonpayable" },
{
type: "function",
name: "channels",
inputs: [{ name: "", type: "uint256", internalType: "uint256" }],
outputs: [{ name: "", type: "address", internalType: "address" }],
stateMutability: "view",
},
{
type: "function",
name: "createChannel",
inputs: [
{ name: "recipient", type: "address", internalType: "address" },
{ name: "_duration", type: "uint256", internalType: "uint256" },
{ name: "_tokenAddress", type: "address", internalType: "address" },
{ name: "_amount", type: "uint256", internalType: "uint256" },
],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "pricing",
inputs: [{ name: "", type: "address", internalType: "address" }],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "function",
name: "register",
inputs: [{ name: "price", type: "uint256", internalType: "uint256" }],
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
name: "totalChannels",
inputs: [],
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
stateMutability: "view",
},
{
type: "event",
name: "channelCreated",
inputs: [
{
name: "channelId",
type: "uint256",
indexed: true,
internalType: "uint256",
},
{
name: "channelAddress",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "sender",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "recipient",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "duration",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "tokenAddress",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "amount",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "price",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "timestamp",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "pricingRegistered",
inputs: [
{
name: "recipient",
type: "address",
indexed: true,
internalType: "address",
},
{
name: "price",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "timestamp",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
];