Skip to content

Commit

Permalink
make billing more flexible in VRF 2.5 (#11909)
Browse files Browse the repository at this point in the history
* make billing more flexible in VRF 2.5
	- percentage based billing
	- flat fee denominated in native

* fix linting issues

* address comments and fix failing tests

* run goimports

* fix linting issue
  • Loading branch information
jinhoonbang authored Jan 26, 2024
1 parent 5953007 commit 9635b27
Show file tree
Hide file tree
Showing 42 changed files with 5,021 additions and 3,074 deletions.
4 changes: 4 additions & 0 deletions common/txmgr/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ type TxMeta[ADDR types.Hashable, TX_HASH types.Hashable] struct {
// Used for keepers
UpkeepID *string `json:"UpkeepID,omitempty"`

// Used for VRF to know if the txn is a ForceFulfilment txn
ForceFulfilled *bool `json:"ForceFulfilled,omitempty"`
ForceFulfillmentAttempt *uint64 `json:"ForceFulfillmentAttempt,omitempty"`

// Used only for forwarded txs, tracks the original destination address.
// When this is set, it indicates tx is forwarded through To address.
FwdrDestAddress *ADDR `json:"ForwarderDestAddress,omitempty"`
Expand Down
Loading

0 comments on commit 9635b27

Please sign in to comment.