Releases: DePayFi/widgets
v1.8.0
adding:
close: '<a function to be called if you want to close the widget once the payment has been confirmed>'
To both callback options for sent
and confirmed
.
v1.7.6
fix: open shadow root
v1.7.5
fix: all ether contracts are functions now and initalize contracts uppon request
v1.7.4
fix: version
v1.7.1
Turning EthersProvider (internal) into a function instead of setting it to a fix value at bootup
v1.7.0
Adding nonce
to sent
callback:
nonce: `<the sender nonce of the transaction>`
v1.6.0
Adds from
to callbacks sent
and confirmed
:
from:
<the address from which the payment is sent>
v1.5.0
Adds additional callbacks:
sent
A function that will be called once the payment has been sent to the network (but still needs to be mined/confirmed).
The widget will call the sent
function passing the following object as an argument:
{
tx: '<the transaction hash of the confirmed transaction>',
amount: '<the expected payment amount as big number string>',
token: '<the expected token address>'
}
confirmed
A function that will be called once the payment has been confirmed by the network.
The widget will call the confirmed
function passing the following object as an argument:
{
tx: '<the transaction hash of the confirmed transaction>',
amount: '<the expected payment amount as big number string>',
token: '<the expected token address>'
}
v1.4.4
- fix import into js apps
- use mixed named and default exports to have the same interface
DePayWidgets.
v1.4.2
fix donation widget, drop rollbar