Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/payment-detection/codegen-near.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
overwrite: true
schema: 'https://api.studio.thegraph.com/query/67444/request-payments-near-testnet/version/latest'
schema: 'src/thegraph/queries/near/schema.graphql'
documents: src/thegraph/queries/near/*.graphql
generates:
src/thegraph/generated/graphql-near.ts:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# GraphQL schema for Request Network NEAR payments
# This schema is used for generating TypeScript types for The Graph queries

type Query {
payments(
where: Payment_filter
orderBy: Payment_orderBy
orderDirection: OrderDirection
): [Payment!]!
}

enum OrderDirection {
asc
desc
}

enum Payment_orderBy {
timestamp
block
amount
}

input Payment_filter {
reference: String
to: String
tokenAddress: String
contractAddress: String
currency: String
maxRateTimespan_gte: Int
}

type Payment {
"Unique identifier"
id: ID!

"The payment recipient address"
to: String!

"The payment amount"
amount: BigInt!

"The indexed payment reference"
reference: String!

"The fee amount"
feeAmount: BigInt

"The fee recipient address"
feeAddress: String

"The sender address"
from: String!

"Block number"
block: Int!

"Block timestamp (Unix seconds)"
timestamp: Int!

"Receipt ID (NEAR transaction identifier)"
receiptId: String!

"Transaction hash"
txHash: String

"Gas price"
gasPrice: String

"Gas used"
gasUsed: String

"The contract address"
contractAddress: String!

"The token address (null for native NEAR payments)"
tokenAddress: String

"The currency symbol (for conversion payments)"
currency: String

"Amount in crypto (for conversion payments)"
amountInCrypto: String

"Fee amount in crypto (for conversion payments)"
feeAmountInCrypto: String

"Max rate timespan (for conversion payments)"
maxRateTimespan: Int
}

scalar BigInt
scalar Bytes
1 change: 0 additions & 1 deletion packages/smart-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"tron:deploy:test-token": "node scripts/tron/deploy-test-token.js"
},
"dependencies": {
"commerce-payments": "git+https://github.com/base/commerce-payments.git#v1.0.0",
"tslib": "2.8.1"
},
"devDependencies": {
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10158,10 +10158,6 @@ comment-parser@1.1.2:
resolved "https://registry.npmjs.org/comment-parser/-/comment-parser-1.1.2.tgz"
integrity sha512-AOdq0i8ghZudnYv8RUnHrhTgafUGs61Rdz9jemU5x2lnZwAWyOq7vySo626K59e1fVKH1xSRorJwPVRLSWOoAQ==

"commerce-payments@git+https://github.com/base/commerce-payments.git#v1.0.0":
version "0.0.0"
resolved "git+https://github.com/base/commerce-payments.git#d33b5d5f74fff55f1c0857b1cb6fb4995949330b"

common-ancestor-path@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz"
Expand Down